From hzeng@hf.tvia.com Thu Jan 31 19:51:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx2.hf.tvia.com (unknown [61.132.182.9]) by mail.gnome.org (Postfix) with ESMTP id 5704D18B75 for ; Thu, 31 Jan 2002 19:51:44 -0500 (EST) Received: from hzeng ([192.168.2.65]) by mx2.hf.tvia.com (8.11.6/8.11.6) with SMTP id g110gvZ00563 for ; Fri, 1 Feb 2002 08:42:57 +0800 Message-ID: <000d01c1aaba$40ddc800$4102a8c0@hf.tvia.com> From: "hzeng" To: Subject: What event has happened? Date: Fri, 1 Feb 2002 08:49:06 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: base64 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQogICAgQXQgdGhlIHZpcnR1YWwgc2NyZWVuIG9mIFhXaW5kb3csd2hlbiBJIGRvIG5vdGhp bmcgdG8gbXkgYXBwIHdpbmRvdyBhbmQgb25seSBtb3ZlIHRoZQ0KIG1vdXNlLCBzbyBteSBhcHAg d2luZG93IHdpbGwgbW92ZSBvdXQgb2YgdGhlIHZpZXcgcG9ydCBib3JkZXJlZCBieSB0aGUgbW9u aXRvci4gSW4gdGhpcw0KIHNpdHVhdGlvbiBJIHdhbnQgdG8gZG8gc29tZSB0aGluZyBpbiBteSBh cHAsIGJ1dCBob3cgY2FuIEkgZ2V0IHRoZSBzaWduYWwsIG9yIHdoYXQgZXZlbnQNCiBoYXBwZW4/ IA0KDQpUaGFuayB5b3UgdmVyeSBtdWNoICENCkh6ZW5nDQo= From kasonhuang@kinposh.com.cn Thu Jan 31 21:27:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 16770180FA for ; Thu, 31 Jan 2002 21:27:00 -0500 (EST) Subject: how to change focus problem in two tables? MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="----_=_NextPart_001_01C1AAC7.ED85BA24" Date: Fri, 1 Feb 2002 10:27:00 +0800 Message-ID: <92CD479384374A439EFA0077E7C50F821FE889@kes01.kinposh.com.cn> X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: how to change focus problem in two tables? Thread-Index: AcGqx+vblN/cEhbsEda2uQCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Cc: , "Paul Davis" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1AAC7.ED85BA24 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable how to change focus problem in two tables?

hello:
do anyone tell me = how to change focus of buttons in two GtkTable with "up down left = right"key on the condition of no mouse supporting.if a easy = way?

i find i could change = focus in one table,not happened in two tables.

eg:buttons in two = tables
__________________________________
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|_______________|_________________ |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |        table_a
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|_______________|_________________ |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|______________ | = _________________ |

        =20 3D"ole0.bmp"focus with keyboard = control 3D"ole1.bmp"
__________________________________
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |  
|_______________|_________________ = |      
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |      =
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |      
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |       table_b
|_______________|_________________ = |       
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |        
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |         
|_______________| = _________________|         &= nbsp;  =


------_=_NextPart_001_01C1AAC7.ED85BA24 Content-Type: image/bmp; name="ole0.bmp" Content-Transfer-Encoding: base64 Content-Description: ole0.bmp Content-Location: No%20AttachName Qk0yAQAAAAAAAD4AAAAoAAAADAAAAD0AAAABAAEAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAA AP///wD/8AAA/fAAAPnwAAD48AAA8PAAAPBwAADgcAAA4DAAAMAwAADAEAAAgBAAAP3wAAD98AAA /fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD9 8AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3w AAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAA AP3wAAD98AAA/fAAAP3wAAD/8AAA ------_=_NextPart_001_01C1AAC7.ED85BA24 Content-Type: image/bmp; name="ole1.bmp" Content-Transfer-Encoding: base64 Content-Description: ole1.bmp Content-Location: No%20AttachName-2 Qk0iAgAAAAAAAD4AAAAoAAAADAAAAHkAAAABAAEAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAA AP///wD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA /fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD9 8AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3w AAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAA AP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA /fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD9 8AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3w AAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA//AAAMAQAADAMAAA4DAA AOBwAADwcAAA8PAAAPjwAAD58AAA/fAAAP/wAAD/8AAA ------_=_NextPart_001_01C1AAC7.ED85BA24-- From shiraz_baig@yahoo.com Fri Feb 1 00:05:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13904.mail.yahoo.com (web13904.mail.yahoo.com [216.136.175.67]) by mail.gnome.org (Postfix) with SMTP id DBB1618779 for ; Fri, 1 Feb 2002 00:05:57 -0500 (EST) Message-ID: <20020201050557.82681.qmail@web13904.mail.yahoo.com> Received: from [203.135.6.194] by web13904.mail.yahoo.com via HTTP; Thu, 31 Jan 2002 21:05:57 PST Date: Thu, 31 Jan 2002 21:05:57 -0800 (PST) From: Shiraz Baig Subject: Re: drawing a line To: gtk-list@gnome.org In-Reply-To: <3C594C38.9080303@ng-london.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Thanks for the reply. But I have not really understood the answer. My doubt is that if Drawing the line with the timer function does not need any "expose" event. Then why is pushing_button needing it? Why can't pushing_button also draw the line without expose_event? Thanks. Shiraz --- John.Cupitt@ng-london.org.uk wrote: > Shiraz Baig wrote: > > > Hi, > > I want to draw a line when I push a button. I > have > > written the following code. It draws line thru > two > > alternative signal commands. > > a. Thru the timer function. > > b. Thru the push button. > > > > It works with the timer function. But it does not > work > > with the push button. > > > > Question: > > Can anyone suggest how can it draw the line when > I > > click the button? > > > > > Hi, you need to connect to "expose_event" and do > your repaint there. > > Don't paint on button click. Instead, change your > model (your internal > representation of what it is you are showing on the > screen), and ask for > a repaint to be queued for your window with > gtk_widget_draw(). > > Also, you have a problem with your button callback. > > The scribble example covers some of this stuff: > > http://www.gtk.org/tutorial/sec-thedrawingareawidget.html > > John > > > > > ========================================================== > > Coming soon: > Aelbert Cuyp 13 February - 12 May 2002 > > For information and tickets: > http://www.nationalgallery.org.uk __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From hp@redhat.com Fri Feb 1 00:54:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 5D7F41876E for ; Fri, 1 Feb 2002 00:54:45 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g115sho24923; Fri, 1 Feb 2002 00:54:43 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200201291451.JAA17130@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 00:54:43 -0500 In-Reply-To: <200201291451.JAA17130@renoir.op.net> Message-ID: Lines: 10 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > i sincerely hope that in a future release of the 1.2 series, > pkg-config gets added. > Note that pkg-config has some dubious "legacy hacks" in it - try "pkg-config --cflags gtk" for example. Havoc From hp@redhat.com Fri Feb 1 00:57:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wilber.gimp.org (graft.XCF.Berkeley.EDU [128.32.247.248]) by mail.gnome.org (Postfix) with ESMTP id 35C90187C7 for ; Fri, 1 Feb 2002 00:57:22 -0500 (EST) Received: from nat-pool-meridian.redhat.com ([12.107.208.200] helo=icon.labs.redhat.com) by wilber.gimp.org with esmtp (Exim 3.12 #1 (Debian)) id 16WWhN-000728-00 for ; Thu, 31 Jan 2002 21:57:21 -0800 Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g115vI224927; Fri, 1 Feb 2002 00:57:18 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Isaac Pernas" Cc: Subject: Re: GtkEntry color Background References: <003e01c1a8c4$6308c4e0$03001aac@berta> From: Havoc Pennington Date: 01 Feb 2002 00:57:18 -0500 In-Reply-To: <003e01c1a8c4$6308c4e0$03001aac@berta> Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Isaac Pernas" writes: > Estoy intentando cambiar el fondo d un GtkEntry pero por m=E1s que lo > intento no me deja. Nos=E9 que estoy haciendo mal. La versi=F3n de mis > librer=EDas Gtk es la 1.2. > I'm trying to change de background color for my GtkEntry but i can=B4t. > I don't know what i'm doing wrong. I have de Gtk+ 1.2 version. > This funcxtion changes the color of the background when youn click the > button. >=20 See http://pobox.com/~hp/gtk-colors.html Havoc From hp@redhat.com Fri Feb 1 00:58:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 6AD1F1876E for ; Fri, 1 Feb 2002 00:58:50 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g115wni24931; Fri, 1 Feb 2002 00:58:49 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Andreas Scherf Cc: Gtk Liste Subject: Re: GtkListStore getting values in Gtk2.0 References: <1012487955.25095.3.camel@xerxes> From: Havoc Pennington Date: 01 Feb 2002 00:58:49 -0500 In-Reply-To: <1012487955.25095.3.camel@xerxes> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Andreas Scherf writes: > Hello, im porting some apps to Gtk+2.0, i wondering how to get values > back from a GtkListStore ? I saw only functions to add or del values > inside the List but no function to get the data back.What i want is to > print a GtkTreeView so istored the data inside a GtkListStore but after > showing them i couldn't get the data back ? Have i messed something ? > gtk_tree_model_get() Havoc From corsepiu@faw.uni-ulm.de Fri Feb 1 01:46:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.faw.uni-ulm.de (www.faw.uni-ulm.de [134.60.100.4]) by mail.gnome.org (Postfix) with SMTP id D29A91876E for ; Fri, 1 Feb 2002 01:46:29 -0500 (EST) Received: (qmail 4670 invoked from network); 1 Feb 2002 06:46:29 -0000 Received: from ultra2.faw.uni-ulm.de (HELO mailserv.faw.uni-ulm.de) (172.16.15.2) by www-intern.faw.uni-ulm.de with SMTP; 1 Feb 2002 06:46:29 -0000 Received: (qmail 5844 invoked by uid 0); 1 Feb 2002 06:46:27 -0000 Received: from dialin6.faw.uni-ulm.de (corsepiu@172.18.1.6) by mailserv.faw.uni-ulm.de with SMTP; 1 Feb 2002 06:46:27 -0000 Subject: Re: Does GTK+ support OpenGL and Inventor ? From: Ralf Corsepius To: "Lin, Lynn" Cc: gtk-list@gnome.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1012546025.32320.462.camel@mccallum> Mime-Version: 1.0 X-Mailer: Evolution/1.0.2 Date: 01 Feb 2002 07:47:09 +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am Don, 2002-01-31 um 20.07 schrieb Lin, Lynn: > Hi there, > > If I create a GtkWidget* gtk_drawing_area_new, can I call OpenGL or > Inventor routines to draw 3D graphics on the GTK drawing area widget ? If > yes, how to do it ? There exist several more or less immature ports of InventorXt to Gtk+. You might want to consult google and search for SoGtk. I have a port of InventorXt to Gtk+ of my own, but unfortunately, it's not in a shape worth being released nor will I have time to do so in the foreseeable furture. Ralf From shiraz_baig@yahoo.com Fri Feb 1 01:58:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13903.mail.yahoo.com (web13903.mail.yahoo.com [216.136.175.29]) by mail.gnome.org (Postfix) with SMTP id BCE0118AC7 for ; Fri, 1 Feb 2002 01:58:32 -0500 (EST) Message-ID: <20020201065832.15093.qmail@web13903.mail.yahoo.com> Received: from [203.135.6.194] by web13903.mail.yahoo.com via HTTP; Thu, 31 Jan 2002 22:58:32 PST Date: Thu, 31 Jan 2002 22:58:32 -0800 (PST) From: Shiraz Baig Subject: Re: drawing a line To: Sven Neumann Cc: gtk-list@gnome.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Mr Sven Neumann has given an excellent answer. Now I understand the difference between two functions (gtk_signal_connect and gtk_signal_connect_object). I changed the parameters as suggested by Mr Neumann and viola! I am drawing the lines without "expose" event and only with pushing a button. Thanks. I Must also thank Jeff Trefftzs who gave similar views though in too abbreviated a form. Bye Shiraz --- Sven Neumann wrote: > Hi, > > Shiraz Baig writes: > > > I want to draw a line when I push a button. I have > > written the following code. It draws line thru two > > alternative signal commands. > > a. Thru the timer function. > > b. Thru the push button. > > > > It works with the timer function. But it does not > work > > with the push button. > > you will need a separate function for the button > clicked > callback since it is called with the GtkButton as > first > parameter. Alternatively you could use > gtk_signal_connect_object() which swaps the > parameters. > > > Salut, Sven __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Fri Feb 1 02:00:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wilber.gimp.org (graft.XCF.Berkeley.EDU [128.32.247.248]) by mail.gnome.org (Postfix) with ESMTP id 0C8D818D5A for ; Fri, 1 Feb 2002 02:00:09 -0500 (EST) Received: from web9902.mail.yahoo.com ([216.136.129.37]) by wilber.gimp.org with smtp (Exim 3.12 #1 (Debian)) id 16WXg8-0007dj-00 for ; Thu, 31 Jan 2002 23:00:08 -0800 Message-ID: <20020201070008.29297.qmail@web9902.mail.yahoo.com> Received: from [213.29.206.62] by web9902.mail.yahoo.com via HTTP; Thu, 31 Jan 2002 23:00:08 PST Date: Thu, 31 Jan 2002 23:00:08 -0800 (PST) From: Vahid Zahiri Subject: Re: Send signal? To: Ishan Cc: gtk-list@gtk.org In-Reply-To: <000001c1aa7b$8560d6a0$59e3e30a@ishan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi ishan i can execute callbackfunction :), but i want get selection text in other applications by button3 click on my entry. but i find better way (on GTK world)to do this. thanks Vahid --- Ishan wrote: > Why on earth would you want the computer to think > that way? Better execute > the callback function which you have written for the > clicked signal of your > button. Hope this helps, > Ishan > > > Hi All > > > I want send a click signal to a widget, > > is it possible? > > > I want widget thinked mouse click on it. > > is it possible? > > > Thanks in advance > > Vahid Zahiri > > __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From inimss@yahoo.com Fri Feb 1 03:07:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by mail.gnome.org (Postfix) with SMTP id F0F55181BB for ; Fri, 1 Feb 2002 03:07:56 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 1 Feb 2002 08:07:54 -0000 Message-ID: <3C5A4CCD.ED06E07D@yahoo.com> Date: Fri, 01 Feb 2002 13:37:41 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: [INIMSS] GtkCList :: Wrapping Text in Cells Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, How can I make the text in the cell of GtkCList wrap-around within it? If it can't be done with GtkCList, then which widget should I use for the purpose? Thanks Dino Cherian K _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From lettere@di.unipi.it Fri Feb 1 03:29:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailserver.di.unipi.it (apis.di.unipi.it [131.114.4.6]) by mail.gnome.org (Postfix) with ESMTP id 5DFF6185C6 for ; Fri, 1 Feb 2002 03:29:03 -0500 (EST) Received: from idra.di.unipi.it (idra [131.114.2.113]) by mailserver.di.unipi.it (8.11.6/8.11.6) with ESMTP id g118T1823411 for ; Fri, 1 Feb 2002 09:29:01 +0100 Received: from localhost (lettere@localhost) by idra.di.unipi.it (8.11.2/8.9.1) with ESMTP id g118SKU27731 for ; Fri, 1 Feb 2002 09:28:20 +0100 X-Authentication-Warning: idra.di.unipi.it: lettere owned process doing -bs Date: Fri, 1 Feb 2002 09:28:16 +0100 (CET) From: Marco Lettere To: Subject: colors in pixmap Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello everyone, suppose I've a pixmap with a color which I want to modify with 3 slider widgets for RGB. The way I'm performing it now is to destroy the old pixmap, change the xpm C structure and then recreate the pixmap with the new data. Isn't there a better way (less expensive) of performing this operation I'm thinking about something like gtk_pixmap_update_color(Gtkpixmap* pix,int colorIndex,GdkColor* newColor); thanx, M. ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| From coframi.balr001@rd.francetelecom.com Fri Feb 1 03:32:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id C223818303 for ; Fri, 1 Feb 2002 03:32:46 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1AK0QZ7L>; Fri, 1 Feb 2002 09:32:38 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , gtk-list@gnome.org Subject: RE: [INIMSS] GtkCList :: Wrapping Text in Cells Date: Fri, 1 Feb 2002 09:32:38 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-a778d693-1656-11d6-b1e4-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-a778d693-1656-11d6-b1e4-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AAFB.01CD9CD0" ------_=_NextPart_001_01C1AAFB.01CD9CD0 Content-Type: text/plain Hello, you can get the text of a GtkCList cell using gtk_clist_get_text (GtkCList * clist, gchar * texte); and put a text in a cell using gtk_clist_set_text (GtkCList * clist, int row, int column, gchar * texte); With your variable texte, you can use all string.h functions (strcat, strcpy, sprintf...) I don't know if I understood your question Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : vendredi 1 fevrier 2002 09:08 A : gtk-list@gnome.org Objet : [INIMSS] GtkCList :: Wrapping Text in Cells Hi, How can I make the text in the cell of GtkCList wrap-around within it? If it can't be done with GtkCList, then which widget should I use for the purpose? Thanks Dino Cherian K _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AAFB.01CD9CD0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] GtkCList :: Wrapping Text in Cells

Hello,

you can get the text of a GtkCList cell using = gtk_clist_get_text (GtkCList * clist, gchar * texte); and put a text in = a cell using gtk_clist_set_text (GtkCList * clist,  int row, int = column, gchar * texte);


With your variable texte, you can use all string.h = functions (strcat, strcpy, sprintf...)

I don't know if I understood your question

Isabelle


-----Message d'origine-----
De : Dino Cherian K [mailto:inimss@yahoo.com]
Envoye : vendredi 1 fevrier 2002 09:08
A : gtk-list@gnome.org
Objet : [INIMSS] GtkCList :: Wrapping Text in = Cells


Hi,

How can I make the text in the cell of GtkCList = wrap-around within it?

If it can't be done with GtkCList, then which widget = should I use for
the purpose?

Thanks
Dino Cherian K

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

------_=_NextPart_001_01C1AAFB.01CD9CD0-- ------=_NextPartTM-000-a778d693-1656-11d6-b1e4-00508b69ab48-- From inimss@yahoo.com Fri Feb 1 04:00:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp018.mail.yahoo.com (smtp018.mail.yahoo.com [216.136.174.115]) by mail.gnome.org (Postfix) with SMTP id 403C0188EB for ; Fri, 1 Feb 2002 04:00:46 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 1 Feb 2002 09:00:38 -0000 Message-ID: <3C5A592D.40C96998@yahoo.com> Date: Fri, 01 Feb 2002 14:30:29 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: zze-coframi balr001 Cc: gtk-list@gnome.org Subject: Re: [INIMSS] GtkCList :: Wrapping Text in Cells References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I think you had not really understood the situation. I actually meant to wrap the text only in the display of the cell and not the data. By default the text that exceeds the limit of the cell is truncated. I want to avoid this truncation and make the text displayed wrapped-down so that we can view the whole text. May be the height of the row will have to be varied. Thanks Dino Cherian K > zze-coframi balr001 wrote: > > Hello, > > you can get the text of a GtkCList cell using gtk_clist_get_text > (GtkCList * clist, gchar * texte); and put a text in a cell using > gtk_clist_set_text (GtkCList * clist, int row, int column, gchar * > texte); > > With your variable texte, you can use all string.h functions (strcat, > strcpy, sprintf...) > > I don't know if I understood your question > > Isabelle > > -----Message d'origine----- > De : Dino Cherian K [mailto:inimss@yahoo.com] > Envoye : vendredi 1 fevrier 2002 09:08 > A : gtk-list@gnome.org > Objet : [INIMSS] GtkCList :: Wrapping Text in Cells > > Hi, > > How can I make the text in the cell of GtkCList wrap-around within it? > > If it can't be done with GtkCList, then which widget should I use for > the purpose? > > Thanks > Dino Cherian K > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From sven@gimp.org Fri Feb 1 04:07:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id AAF031892D for ; Fri, 1 Feb 2002 04:07:43 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16WZfZ-00035w-00; Fri, 01 Feb 2002 10:07:41 +0100 To: Shiraz Baig Cc: gtk-list@gnome.org Subject: Re: drawing a line References: <20020201065832.15093.qmail@web13903.mail.yahoo.com> From: Sven Neumann Date: 01 Feb 2002 10:07:40 +0100 In-Reply-To: <20020201065832.15093.qmail@web13903.mail.yahoo.com> Message-ID: Lines: 17 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Shiraz Baig writes: > I changed the parameters as suggested by Mr Neumann > and viola! I am drawing the lines without "expose" > event and only with pushing a button. now move your mouse over the line you've just drawn or obscure the window by moving another window over it. Assuming you are using a drawing_area to draw on directly, X will clear the area you've just painted on and since you aren't redrawing in your expose event handler, the line you've just drawn will be gone. Salut, Sven From coframi.balr001@rd.francetelecom.com Fri Feb 1 04:56:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id 5FD6818AF1 for ; Fri, 1 Feb 2002 04:56:00 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Fri, 1 Feb 2002 10:55:29 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , zze-coframi balr001 Cc: gtk-list@gnome.org Subject: RE: [INIMSS] GtkCList :: Wrapping Text in Cells Date: Fri, 1 Feb 2002 10:55:29 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, Now I undestand your point. Why don't you use ScrolledWindow ?? If you don't want to see the scroll bar, you put the gtk_policy to Never I explain : 1- You create you window 2- You add you scrolledwindow and put gtk_scrolled_window_set_policy (scrollwindow, GTK_POLICY_NEVER, GTK_POLICY_NEVER) 3- You add your GtkCList in your scrolledwindow With that you will be able to see the whole text that is in the cell using you arrow key Does this solution is OK for you ?? Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : vendredi 1 fevrier 2002 10:00 A : zze-coframi balr001 Cc : gtk-list@gnome.org Objet : Re: [INIMSS] GtkCList :: Wrapping Text in Cells Hi I think you had not really understood the situation. I actually meant to wrap the text only in the display of the cell and not the data. By default the text that exceeds the limit of the cell is truncated. I want to avoid this truncation and make the text displayed wrapped-down so that we can view the whole text. May be the height of the row will have to be varied. Thanks Dino Cherian K > zze-coframi balr001 wrote: > > Hello, > > you can get the text of a GtkCList cell using gtk_clist_get_text > (GtkCList * clist, gchar * texte); and put a text in a cell using > gtk_clist_set_text (GtkCList * clist, int row, int column, gchar * > texte); > > With your variable texte, you can use all string.h functions (strcat, > strcpy, sprintf...) > > I don't know if I understood your question > > Isabelle > > -----Message d'origine----- > De : Dino Cherian K [mailto:inimss@yahoo.com] > Envoye : vendredi 1 fevrier 2002 09:08 > A : gtk-list@gnome.org > Objet : [INIMSS] GtkCList :: Wrapping Text in Cells > > Hi, > > How can I make the text in the cell of GtkCList wrap-around within it? > > If it can't be done with GtkCList, then which widget should I use for > the purpose? > > Thanks > Dino Cherian K > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From John.Cupitt@ng-london.org.uk Fri Feb 1 06:56:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id D0786187D5 for ; Fri, 1 Feb 2002 06:56:47 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HG7G>; Fri, 1 Feb 2002 11:56:46 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HG7F; Fri, 1 Feb 2002 11:56:39 -0000 Message-ID: <3C5A7F3C.1@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: hzeng@hf.tvia.com Cc: gtk-list@gnome.org Subject: Re: What event has happened? Date: Fri, 1 Feb 2002 11:42:52 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="windows-1252" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hzeng wrote: > At the virtual screen of XWindow,when I do nothing to my app window and only move the > mouse, so my app window will move out of the view port bordered by the monitor. In this > situation I want to do some thing in my app, but how can I get the signal, or what event > happen? Hi, I think you need "enter_notify_event" and "leave_notify_event". The event watch in testgtk uses these sugnals. John ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From John.Cupitt@ng-london.org.uk Fri Feb 1 07:20:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 36098187D5 for ; Fri, 1 Feb 2002 07:20:18 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HG90>; Fri, 1 Feb 2002 12:20:17 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HG99; Fri, 1 Feb 2002 12:20:07 -0000 Message-ID: <3C5A84BB.5080605@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: shiraz_baig@yahoo.com Cc: gtk-list@gnome.org Subject: Re: drawing a line Date: Fri, 1 Feb 2002 12:06:19 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hiya, try the page for the drawing area widget: http://gtk.org/tutorial/sec-thedrawingareawidget.html I think this explains the problem. With a window system, you don't just draw on the screen. What happens when your window is covered or uncovered? You need to be able to recreate any part of your display when it is exposed. The rule is: do all drawing in the expose handler. If you want to draw in respose to an event, set some hints somewhere and trigger an expose. As Sven said, you also have a bug in your button callback. John Shiraz Baig wrote: > Hi, > Thanks for the reply. But I have not really > understood the answer. My doubt is that if Drawing the > line with the timer function does not need any > "expose" event. Then why is pushing_button needing it? > Why can't pushing_button also draw the line without > expose_event? > Thanks. > Shiraz > > --- John.Cupitt@ng-london.org.uk wrote: > >>Shiraz Baig wrote: >> >> > Hi, >> > I want to draw a line when I push a button. I >>have >> > written the following code. It draws line thru >>two >> > alternative signal commands. >> > a. Thru the timer function. >> > b. Thru the push button. >> > >> > It works with the timer function. But it does not >>work >> > with the push button. >> > >> > Question: >> > Can anyone suggest how can it draw the line when >>I >> > click the button? >> > >> >> >>Hi, you need to connect to "expose_event" and do >>your repaint there. >> >>Don't paint on button click. Instead, change your >>model (your internal >>representation of what it is you are showing on the >>screen), and ask for >>a repaint to be queued for your window with >>gtk_widget_draw(). >> >>Also, you have a problem with your button callback. >> >>The scribble example covers some of this stuff: >> ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From hzeng@hf.tvia.com Fri Feb 1 08:06:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx2.hf.tvia.com (unknown [61.132.182.9]) by mail.gnome.org (Postfix) with ESMTP id 73843182C8 for ; Fri, 1 Feb 2002 08:06:28 -0500 (EST) Received: from hzeng ([192.168.2.65]) by mx2.hf.tvia.com (8.11.6/8.11.6) with SMTP id g11CvSZ10197; Fri, 1 Feb 2002 20:57:28 +0800 Message-ID: <000801c1ab20$de71fd00$4102a8c0@hf.tvia.com> From: "hzeng" To: Cc: References: <3C5A7F3C.1@ng-london.org.uk> Subject: Re: What event has happened? Date: Fri, 1 Feb 2002 21:03:38 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: base64 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQogICAgSSB0aGluayB5b3UgbWlzdW5kZXJzdGFuZCBteSBtZWFuaW5nLiBJIHdhbnQgdG8g Z2V0IHRoZSBzaWduYWwgZW1pdCBieSB0aGUgYXBwIHdpbmRvdyB3aGVuIA0KICAgIEkgbW92ZSB0 aGUgbW91c2UgaW4gYW55d2h3ZXJlIG9mIHRoZSB2aXJ0dWFsIGRlc2t0b3AsIHRoZSBlbnRlcl9u b3RpZnlfZXZlbnQgYW5kIHRoZSBsZWF2ZV9ub3RpZnlfZXZlbnQgaXMNCiAgICBlbWl0IG9ubHkg dGhlIG1vdXNlIGVudGVyIHRoZSBhcHAgd2luZG93IGFuZCBsZWF2ZSB0aGUgYXBwIHdpbmRvdy4g SSBtdXN0IGRvIHNvbWUgc3BlY2lhbCB3b3JrIHdoZW4gDQogICAgbXkgYXBwIG1vdmUgb3V0IG9m IHRoZSBtb25pdG9yIGJvcmRlciBpbiB2ZXJ0dWFsIHNjcmVlbiBvciBldmVuIHRoZSB2aXN1YWwg cG9zaXRpb24gb2YgdGhlIGFwcCB3aW5kb3cgY2hhbmdlZCwNCiAgICBJIGp1c3QgZG9uJ3Qga25v dyBpZiB0aGVyZSBhcmUgc3VjaCBzaWduYWxzIGluIGd0ay4gTWF5YmUgIHRoZSBndGsgZG9uJ3Qg Y2FyZSBhYm91dCB0aGVzZSBzaXR1YWwgYW5kIGxlZnQgaXQgdG8gYmUgZG9uZSBieSANCiAgICBY c2VydmVyLiAgSSBoYXZlIHRyeSBtYW55IGV2ZW50IGJ1dCB0aGV5IGRvZXNuJ3QgZml0LiBTb3Jy eSBhYm91dCBteSBwb29yIEVuZ2xpc2guDQogICAgVGhhbmtzIGFueXdheSENCkh6ZW5nDQogICAg DQotLS0tLSBPcmlnaW5hbCBNZXNzYWdlIC0tLS0tIA0KDQo+IA0KPiBIaSwgSSB0aGluayB5b3Ug bmVlZCAiZW50ZXJfbm90aWZ5X2V2ZW50IiBhbmQgImxlYXZlX25vdGlmeV9ldmVudCIuIFRoZSAN Cj4gZXZlbnQgd2F0Y2ggaW4gdGVzdGd0ayB1c2VzIHRoZXNlIHN1Z25hbHMuDQo+IA0KPiBKb2hu DQo+IA0KDQo= From John.Cupitt@ng-london.org.uk Fri Feb 1 08:15:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 0AD2C18711 for ; Fri, 1 Feb 2002 08:15:10 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HHDC>; Fri, 1 Feb 2002 13:15:09 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HHDB; Fri, 1 Feb 2002 13:15:05 -0000 Message-ID: <3C5A919D.8040800@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: hzeng@hf.tvia.com Cc: gtk-list@gnome.org Subject: Re: What event has happened? Date: Fri, 1 Feb 2002 13:01:17 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="windows-1252" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ah, sorry, I misunderstood. You could grab the pointer: then you get all mouse movement until you ungrab. Of course, this will stop all other programs from working :-( so you must be very careful. gdk_pointer_grab() and gdk_pointer_ungrab(). John hzeng wrote: > Hi, > I think you misunderstand my meaning. I want to get the signal emit by the app window when > I move the mouse in anywhwere of the virtual desktop, the enter_notify_event and the leave_notify_event is > emit only the mouse enter the app window and leave the app window. I must do some special work when > my app move out of the monitor border in vertual screen or even the visual position of the app window changed, > I just don't know if there are such signals in gtk. Maybe the gtk don't care about these situal and left it to be done by > Xserver. I have try many event but they doesn't fit. Sorry about my poor English. > Thanks anyway! > Hzeng > > ----- Original Message ----- > > >>Hi, I think you need "enter_notify_event" and "leave_notify_event". The >>event watch in testgtk uses these sugnals. >> >>John >> >> > -- John Cupitt, john.cupitt@ng-london.org.uk, +44 (0)20 7747 2570 VASARI Lab, The National Gallery, Trafalgar Square, London, WC2N 5DN ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From lnx1138@us.ibm.com Fri Feb 1 09:31:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from e1.ny.us.ibm.com (e1.ny.us.ibm.com [32.97.182.101]) by mail.gnome.org (Postfix) with ESMTP id A6CC418D28 for ; Fri, 1 Feb 2002 09:31:12 -0500 (EST) Received: from northrelay01.pok.ibm.com (northrelay01.pok.ibm.com [9.117.200.21]) by e1.ny.us.ibm.com (8.9.3/8.9.3) with ESMTP id JAA488954 for ; Fri, 1 Feb 2002 09:28:05 -0500 Received: from chavez.austin.ibm.com (chavez.austin.ibm.com [9.53.216.228]) by northrelay01.pok.ibm.com (8.11.1m3/NCO v5.01) with ESMTP id g11EVAg190060 for ; Fri, 1 Feb 2002 09:31:10 -0500 Subject: Re: GUI design From: Luciano Chavez To: gtk-list@gnome.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 01 Feb 2002 08:31:07 -0600 Message-Id: <1012573868.2054.4.camel@chavez> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-01-30 at 20:34, Raymond Wan wrote: > > Hi all, > > Not directly related to GTK+, but I was wondering if anyone could > suggest a book which talks about how to design a GUI. In particular, what > are the do's and don'ts of GUI design. And, even better, if such a book > exists which is directed at GTK+. > > Thanks in advance! > > Ray > Ray, If you want to follow UI guidelines related to GTK+ or GNOME apps, read what the GNOME Usability Project is proposing. See http://developer.gnome.org/projects/gup/. > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- regards, Luciano Chavez lnx1138@us.ibm.com http://sf.net/projects/evms From engenharia3@maqplas.com.br Fri Feb 1 09:47:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id 1CE6018D21 for ; Fri, 1 Feb 2002 09:47:31 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11ElP35095578 for ; Fri, 1 Feb 2002 12:47:25 -0200 (BRST) Subject: GTK without X ??? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 12:44:08 -0200 Message-Id: <1012574649.1123.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I hear (in Linux for PlayStation2 Forum) about some version of GTK+ that access directly the framebuffer, does not need for X, this proceed ????, if yes where can I found information about this (for PC X86) ? Thanks in advance Flavio Alberto From lapenta_jm@yahoo.com Fri Feb 1 09:53:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14002.mail.yahoo.com (web14002.mail.yahoo.com [216.136.175.93]) by mail.gnome.org (Postfix) with SMTP id DDEFE18458 for ; Fri, 1 Feb 2002 09:53:27 -0500 (EST) Message-ID: <20020201145327.81863.qmail@web14002.mail.yahoo.com> Received: from [129.55.200.20] by web14002.mail.yahoo.com via HTTP; Fri, 01 Feb 2002 06:53:27 PST Date: Fri, 1 Feb 2002 06:53:27 -0800 (PST) From: Jason LaPenta Subject: Problem with *widget on show_event w/ idle process To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm using glade. I'm starting up an idle process when the main window is shown. I'm passing a widget pointer to the idle process so it can do widget lookups with lookup_widget(). If I start the idle process under a show event, then lookup_widget fails and causes my program to exit; Any ideas why this is? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From coframi.balr001@rd.francetelecom.com Fri Feb 1 09:56:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id D456418E0B for ; Fri, 1 Feb 2002 09:56:46 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Fri, 1 Feb 2002 15:50:59 +0100 Message-ID: From: zze-coframi balr001 To: =?iso-8859-1?Q?=27Fl=E1vio_Alberto_Lopes_Soares=27?= , gtk-list Subject: RE: GTK without X ??? Date: Fri, 1 Feb 2002 15:50:59 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, there's a version of GTK that directly access the framebuffer, but it's under developpement. It's GTK 1.3.X This version of GTK doesn't need an X Server. You can find it in = rmpfind.net or on gtk.org You can find information on it on gtk.org or directfb.org Isabelle -----Message d'origine----- De : Fl=E1vio Alberto Lopes Soares [mailto:engenharia3@maqplas.com.br] Envoy=E9 : vendredi 1 f=E9vrier 2002 15:44 =C0 : gtk-list Objet : GTK without X ??? Hello all, I hear (in Linux for PlayStation2 Forum) about some version of GTK+ = that access directly the framebuffer, does not need for X, this proceed = ????, if yes where can I found information about this (for PC X86) ? Thanks in advance Flavio Alberto _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From coframi.balr001@rd.francetelecom.com Fri Feb 1 10:01:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id 67E6F196B6 for ; Fri, 1 Feb 2002 10:01:47 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1AK0RA7Q>; Fri, 1 Feb 2002 16:01:33 +0100 Message-ID: From: zze-coframi balr001 To: 'Jason LaPenta' , gtk-list@gnome.org Subject: RE: Problem with *widget on show_event w/ idle process Date: Fri, 1 Feb 2002 16:01:33 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-a778e229-1656-11d6-b1e4-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-a778e229-1656-11d6-b1e4-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AB31.568C0A50" ------_=_NextPart_001_01C1AB31.568C0A50 Content-Type: text/plain Hello, Do you have named your widget using gtk_widget_set_name (GtkWidget * , char *); ?? Before making your call to lookup_widget, try to print the result of gtk_widget_get_name (GtkWidget *) GtkWdget * window = gtk_widget_new (....) gtk_widget_set_name (window, "toto"); ............. In a callback on a widget, GtkWidget * window = (GtkWidget *) lookup_widget (widget, "toto"); Isabelle -----Message d'origine----- De : Jason LaPenta [mailto:lapenta_jm@yahoo.com] Envoye : vendredi 1 fevrier 2002 15:53 A : gtk-list@gnome.org Objet : Problem with *widget on show_event w/ idle process Hello, I'm using glade. I'm starting up an idle process when the main window is shown. I'm passing a widget pointer to the idle process so it can do widget lookups with lookup_widget(). If I start the idle process under a show event, then lookup_widget fails and causes my program to exit; Any ideas why this is? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AB31.568C0A50 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: Problem with *widget on show_event w/ idle process

Hello,

Do you have named your widget using = gtk_widget_set_name (GtkWidget * , char *); ??

Before making your call to lookup_widget, try to = print the result of gtk_widget_get_name (GtkWidget *)

GtkWdget * window =3D gtk_widget_new (....)
gtk_widget_set_name (window, = "toto");

.............

In a callback on a widget,

GtkWidget * window =3D (GtkWidget *) lookup_widget = (widget, "toto");

Isabelle


-----Message d'origine-----
De : Jason LaPenta [mailto:lapenta_jm@yahoo.com]
Envoye : vendredi 1 fevrier 2002 15:53
A : gtk-list@gnome.org
Objet : Problem with *widget on show_event w/ idle = process


Hello,

I'm using glade.
I'm starting up an idle process when the main
window is shown. I'm passing a widget pointer = to
the idle process so it can do widget lookups = with

lookup_widget(). If I start the idle process
under a show event, then lookup_widget fails = and
causes my program to exit; Any ideas why this = is?


Thanks
Jason

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! =
http://auctions.yahoo.com
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list

------_=_NextPart_001_01C1AB31.568C0A50-- ------=_NextPartTM-000-a778e229-1656-11d6-b1e4-00508b69ab48-- From engenharia3@maqplas.com.br Fri Feb 1 10:15:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id A274619717 for ; Fri, 1 Feb 2002 10:15:26 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11FFKnp096677; Fri, 1 Feb 2002 13:15:21 -0200 (BRST) Subject: RE: GTK without X ??? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: zze-coframi balr001 Cc: gtk-list In-Reply-To: References: Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 13:11:59 -0200 Message-Id: <1012576326.1122.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Can I compile my application normally (I making my application using GTK+ 1.2.10), or I must make some changes ? Thanks in advance Flavio Alberto Em 01 Feb 2002 15:50:59 +0100, zze-coframi balr001 escreveu: > Hello, > > there's a version of GTK that directly access the framebuffer, but it's > under developpement. It's GTK 1.3.X > This version of GTK doesn't need an X Server. You can find it in rmpfind.net > or on gtk.org > You can find information on it on gtk.org or directfb.org > > Isabelle > From coframi.balr001@rd.francetelecom.com Fri Feb 1 10:21:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id CAA591973E for ; Fri, 1 Feb 2002 10:21:04 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Fri, 1 Feb 2002 16:19:37 +0100 Message-ID: From: zze-coframi balr001 To: =?iso-8859-1?Q?=27Fl=E1vio_Alberto_Lopes_Soares=27?= , zze-coframi balr001 Cc: gtk-list Subject: RE: GTK without X ??? Date: Fri, 1 Feb 2002 16:19:37 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, you don't need to make some changes. You just have to compile your code using the GTK 1.3.X for linux-fb librairies. Isabelle -----Message d'origine----- De : Fl=E1vio Alberto Lopes Soares [mailto:engenharia3@maqplas.com.br] Envoy=E9 : vendredi 1 f=E9vrier 2002 16:12 =C0 : zze-coframi balr001 Cc : gtk-list Objet : RE: GTK without X ??? Can I compile my application normally (I making my application using GTK+ 1.2.10), or I must make some changes ? Thanks in advance Flavio Alberto Em 01 Feb 2002 15:50:59 +0100, zze-coframi balr001 escreveu: > Hello, >=20 > there's a version of GTK that directly access the framebuffer, but = it's > under developpement. It's GTK 1.3.X > This version of GTK doesn't need an X Server. You can find it in rmpfind.net > or on gtk.org > You can find information on it on gtk.org or directfb.org >=20 > Isabelle >=20 From paulm@khan.dev.magentatech.com.au Thu Jan 31 21:14:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from magentatech.com.au (magent3.lnk.telstra.net [139.130.198.117]) by mail.gnome.org (Postfix) with ESMTP id 4DDFC18AED for ; Thu, 31 Jan 2002 21:14:44 -0500 (EST) Received: from khan.magentatech.com.au (kmsv [134.18.8.154]) by magentatech.com.au (8.8.8+Sun/8.8.8) with ESMTP id NAA16045 for ; Fri, 1 Feb 2002 13:07:59 +1100 (EST) Received: from blade.dev.magentatech.com.au (blade [134.18.8.105]) by khan.magentatech.com.au (8.9.3+Sun/8.9.3) with ESMTP id NAA08881 for ; Fri, 1 Feb 2002 13:16:02 +1100 (EST) Received: from blade (blade [134.18.8.105]) by blade.dev.magentatech.com.au (8.9.3+Sun/8.9.3) with SMTP id NAA09610 for ; Fri, 1 Feb 2002 13:16:24 +1100 (EST) Message-Id: <200202010216.NAA09610@blade.dev.magentatech.com.au> Date: Fri, 1 Feb 2002 13:16:24 +1100 (EST) From: Paul Moore Reply-To: Paul Moore Subject: linker problems To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: MULTIPART/mixed; BOUNDARY=Herd_of_Elephants_369_000 X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4.2 SunOS 5.8 sun4u sparc Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --Herd_of_Elephants_369_000 Content-Type: TEXT/plain; charset=US-ASCII Content-Transfer-Encoding: QUOTED-PRINTABLE Content-MD5: G2Hm9R+GHLsWMHwVOBHRwQ== Hi - I'm trying to build gtk+-1.2.10 on Solaris 8.=20 I started off by building glib-1.2.10. I ran the configure script, did a ma= ke,=20 followed by a make install. See the attached file (lib_list) for a list of= =20 libraries that were installed as a result of the make install. I then tried to build gtk+-1.2.10. I can not get the configure script to=20 complete successfully. The error is ------------------------------------------------------------------------- *** Could not run GLIB test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding GLIB or finding the wrong *** version of GLIB. If it is not finding GLIB, you'll need to set your *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point *** to the installed location Also, make sure you have run ldconfig if tha= t *** is required on your system *** *** If you have an old version installed, it is best to remove it, although *** you may also be able to get things to work by modifying LD_LIBRARY_PATH *** *** If you have a RedHat 5.0 system, you should remove the GTK package that *** came with the system with the command *** *** rpm --erase --nodeps gtk gtk-devel configure: error:=20 *** GLIB 1.2.8 or better is required. The latest version of GLIB *** is always available from ftp://ftp.gtk.org/. ------------------------------------------------------------------------- I've set the LD_LIBRARY_PATH as requested. Here is what the LD_LIBRARY_PATH= is=20 set to: /usr/lib:/usr/ucblib:/usr/dt/lib:/usr/openwin/lib:/usr/ccs/lib:/opt/SUNWspr= o/lib :/opt1/SUNWspro/lib:/opt/galaxy/lib:/opt/SUNWmotif/lib:/opt/softbench/lib:/= users /davidf/lib:/usr/local/lib/glib/include:/usr/local/lib:/usr/local/lib/pkgco= nfig You can see that the location of the GLIB libs (/usr/loacl/lib) appears in = the=20 LD_LIBRARY_PATH variable. Can you give me any idea why configure fails when I have correctly specifie= d the=20 path to the glib libraries. Thanks - Paul Moore. --Herd_of_Elephants_369_000 Content-Type: TEXT/plain; name=configure_output; charset=US-ASCII; x-unix-mode=0664 Content-Transfer-Encoding: BASE64 Content-Description: configure_output Content-MD5: GBWxdok639TVsFXVZBCVaw== U2NyaXB0IHN0YXJ0ZWQgb24gRnJpIEZlYiAwMSAxMjo1Nzo0MCAyMDAyCkRJ U1BMQVkgYWxyZWFkeSBzZXQgdG86IGJsYWRlOjIuMA0Ka2hhbltwYXVsbV0+ IC4vY29uZmlndXJlDQpsb2FkaW5nIGNhY2hlIC4vY29uZmlnLmNhY2hlDQpj aGVja2luZyBmb3IgYSBCU0QgY29tcGF0aWJsZSBpbnN0YWxsLi4uIC4vaW5z dGFsbC1zaCAtYw0KY2hlY2tpbmcgd2hldGhlciBidWlsZCBlbnZpcm9ubWVu dCBpcyBzYW5lLi4uIHllcw0KY2hlY2tpbmcgd2hldGhlciBtYWtlIHNldHMg JHtNQUtFfS4uLiAoY2FjaGVkKSB5ZXMNCmNoZWNraW5nIGZvciB3b3JraW5n IGFjbG9jYWwuLi4gbWlzc2luZw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYXV0 b2NvbmYuLi4gbWlzc2luZw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYXV0b21h a2UuLi4gbWlzc2luZw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYXV0b2hlYWRl ci4uLiBtaXNzaW5nDQpjaGVja2luZyBmb3Igd29ya2luZyBtYWtlaW5mby4u LiBtaXNzaW5nDQpjaGVja2luZyBob3N0IHN5c3RlbSB0eXBlLi4uIHNwYXJj LXN1bi1zb2xhcmlzMi44DQpjaGVja2luZyBidWlsZCBzeXN0ZW0gdHlwZS4u LiBzcGFyYy1zdW4tc29sYXJpczIuOA0KY2hlY2tpbmcgZm9yIHJhbmxpYi4u LiAoY2FjaGVkKSByYW5saWINCmNoZWNraW5nIGZvciBnY2MuLi4gKGNhY2hl ZCkgY2MNCmNoZWNraW5nIHdoZXRoZXIgdGhlIEMgY29tcGlsZXIgKGNjICAp IHdvcmtzLi4uIHllcw0KY2hlY2tpbmcgd2hldGhlciB0aGUgQyBjb21waWxl ciAoY2MgICkgaXMgYSBjcm9zcy1jb21waWxlci4uLiBubw0KY2hlY2tpbmcg d2hldGhlciB3ZSBhcmUgdXNpbmcgR05VIEMuLi4gKGNhY2hlZCkgbm8NCmNo ZWNraW5nIHdoZXRoZXIgY2MgYWNjZXB0cyAtZy4uLiAoY2FjaGVkKSB5ZXMN CmNoZWNraW5nIGZvciBub24tR05VIGxkLi4uIChjYWNoZWQpIC91c3IvY2Nz L2Jpbi9sZA0KY2hlY2tpbmcgaWYgdGhlIGxpbmtlciAoL3Vzci9jY3MvYmlu L2xkKSBpcyBHTlUgbGQuLi4gKGNhY2hlZCkgbm8NCmNoZWNraW5nIGZvciBC U0QtY29tcGF0aWJsZSBubS4uLiAoY2FjaGVkKSAvdXNyL2Njcy9iaW4vbm0g LXANCmNoZWNraW5nIHdoZXRoZXIgbG4gLXMgd29ya3MuLi4gKGNhY2hlZCkg eWVzDQpsb2FkaW5nIGNhY2hlIC4vY29uZmlnLmNhY2hlIHdpdGhpbiBsdGNv bmZpZw0KY2hlY2tpbmcgd2hldGhlciB3ZSBhcmUgdXNpbmcgR05VIEMuLi4g bm8NCmNoZWNraW5nIGZvciBvYmplY3Qgc3VmZml4Li4uIG8NCmNoZWNraW5n IGZvciBleGVjdXRhYmxlIHN1ZmZpeC4uLiAoY2FjaGVkKSBubw0KY2hlY2tp bmcgZm9yIGNjIG9wdGlvbiB0byBwcm9kdWNlIFBJQy4uLiAtS1BJQw0KY2hl Y2tpbmcgaWYgY2MgUElDIGZsYWcgLUtQSUMgd29ya3MuLi4geWVzDQpjaGVj a2luZyBpZiBjYyBzdXBwb3J0cyAtYyAtbyBmaWxlLm8uLi4geWVzDQpjaGVj a2luZyBpZiBjYyBzdXBwb3J0cyAtYyAtbyBmaWxlLmxvLi4uIG5vDQpjaGVj a2luZyBpZiBjYyBzdGF0aWMgZmxhZyAtQnN0YXRpYyB3b3Jrcy4uLiAtQnN0 YXRpYw0KY2hlY2tpbmcgaWYgdGhlIGxpbmtlciAoL3Vzci9jY3MvYmluL2xk KSBpcyBHTlUgbGQuLi4gbm8NCmNoZWNraW5nIHdoZXRoZXIgdGhlIGxpbmtl ciAoL3Vzci9jY3MvYmluL2xkKSBzdXBwb3J0cyBzaGFyZWQgbGlicmFyaWVz Li4uIHllcw0KY2hlY2tpbmcgY29tbWFuZCB0byBwYXJzZSAvdXNyL2Njcy9i aW4vbm0gLXAgb3V0cHV0Li4uIG9rDQpjaGVja2luZyBob3cgdG8gaGFyZGNv ZGUgbGlicmFyeSBwYXRocyBpbnRvIHByb2dyYW1zLi4uIGltbWVkaWF0ZQ0K Y2hlY2tpbmcgZm9yIC91c3IvY2NzL2Jpbi9sZCBvcHRpb24gdG8gcmVsb2Fk IG9iamVjdCBmaWxlcy4uLiAtcg0KY2hlY2tpbmcgZHluYW1pYyBsaW5rZXIg Y2hhcmFjdGVyaXN0aWNzLi4uIHNvbGFyaXMyLjggbGQuc28NCmNoZWNraW5n IGlmIGxpYnRvb2wgc3VwcG9ydHMgc2hhcmVkIGxpYnJhcmllcy4uLiB5ZXMN CmNoZWNraW5nIHdoZXRoZXIgdG8gYnVpbGQgc2hhcmVkIGxpYnJhcmllcy4u LiB5ZXMNCmNoZWNraW5nIHdoZXRoZXIgdG8gYnVpbGQgc3RhdGljIGxpYnJh cmllcy4uLiB5ZXMNCmNoZWNraW5nIGZvciBvYmpkaXIuLi4gLmxpYnMNCmNy ZWF0aW5nIGxpYnRvb2wNCmxvYWRpbmcgY2FjaGUgLi9jb25maWcuY2FjaGUN CmNoZWNraW5nIHdoZXRoZXIgdG8gZW5hYmxlIG1haW50YWluZXItc3BlY2lm aWMgcG9ydGlvbnMgb2YgTWFrZWZpbGVzLi4uIG5vDQpjaGVja2luZyBob3N0 IHN5c3RlbSB0eXBlLi4uIHNwYXJjLXN1bi1zb2xhcmlzMi44DQpjaGVja2lu ZyB3aGV0aGVyIGJ1aWxkIGVudmlyb25tZW50IGlzIHNhbmUuLi4geWVzDQpj aGVja2luZyBmb3IgZ2NjLi4uIChjYWNoZWQpIGNjDQpjaGVja2luZyB3aGV0 aGVyIHRoZSBDIGNvbXBpbGVyIChjYyAtZyApIHdvcmtzLi4uIHllcw0KY2hl Y2tpbmcgd2hldGhlciB0aGUgQyBjb21waWxlciAoY2MgLWcgKSBpcyBhIGNy b3NzLWNvbXBpbGVyLi4uIG5vDQpjaGVja2luZyB3aGV0aGVyIHdlIGFyZSB1 c2luZyBHTlUgQy4uLiAoY2FjaGVkKSBubw0KY2hlY2tpbmcgd2hldGhlciBj YyBhY2NlcHRzIC1nLi4uIChjYWNoZWQpIHllcw0KY2hlY2tpbmcgZm9yIFBP U0lYaXplZCBJU0MuLi4gbm8NCmNoZWNraW5nIGZvciBjYyBvcHRpb24gdG8g YWNjZXB0IEFOU0kgQy4uLiBub25lIG5lZWRlZA0KY2hlY2tpbmcgZm9yIGEg QlNEIGNvbXBhdGlibGUgaW5zdGFsbC4uLiAuL2luc3RhbGwtc2ggLWMNCmNo ZWNraW5nIHdoZXRoZXIgbWFrZSBzZXRzICR7TUFLRX0uLi4gKGNhY2hlZCkg eWVzDQpjaGVja2luZyBmb3IgZ2F3ay4uLiBubw0KY2hlY2tpbmcgZm9yIG1h d2suLi4gbm8NCmNoZWNraW5nIGZvciBuYXdrLi4uIG5hd2sNCmNoZWNraW5n IGZvciBwZXJsNS4uLiBubw0KY2hlY2tpbmcgZm9yIHBlcmwuLi4gcGVybA0K Y2hlY2tpbmcgZm9yIGluZGVudC4uLiBpbmRlbnQNCmNoZWNraW5nIHdoZXRo ZXIgbWFrZSBpcyBHTlUgTWFrZS4uLiBubw0KY2hlY2tpbmcgaG93IHRvIHJ1 biB0aGUgQyBwcmVwcm9jZXNzb3IuLi4gY2MgLUUNCmNoZWNraW5nIGZvciBB TlNJIEMgaGVhZGVyIGZpbGVzLi4uIHllcw0KY2hlY2tpbmcgZm9yIHdvcmtp bmcgY29uc3QuLi4geWVzDQpjaGVja2luZyBmb3IgaW5saW5lLi4uIG5vDQpj aGVja2luZyBmb3Igb2ZmX3QuLi4geWVzDQpjaGVja2luZyBmb3Igc2l6ZV90 Li4uIHllcw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYWxsb2NhLmguLi4geWVz DQpjaGVja2luZyBmb3IgYWxsb2NhLi4uIHllcw0KY2hlY2tpbmcgZm9yIHVu aXN0ZC5oLi4uIHllcw0KY2hlY2tpbmcgZm9yIGdldHBhZ2VzaXplLi4uIHll cw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgbW1hcC4uLiB5ZXMNCmNoZWNraW5n IGZvciBhcmd6LmguLi4gbm8NCmNoZWNraW5nIGZvciBsaW1pdHMuaC4uLiB5 ZXMNCmNoZWNraW5nIGZvciBsb2NhbGUuaC4uLiB5ZXMNCmNoZWNraW5nIGZv ciBubF90eXBlcy5oLi4uIHllcw0KY2hlY2tpbmcgZm9yIG1hbGxvYy5oLi4u IHllcw0KY2hlY2tpbmcgZm9yIHN0cmluZy5oLi4uIHllcw0KY2hlY2tpbmcg Zm9yIHVuaXN0ZC5oLi4uIChjYWNoZWQpIHllcw0KY2hlY2tpbmcgZm9yIHN5 cy9wYXJhbS5oLi4uIHllcw0KY2hlY2tpbmcgZm9yIGdldGN3ZC4uLiB5ZXMN CmNoZWNraW5nIGZvciBtdW5tYXAuLi4geWVzDQpjaGVja2luZyBmb3IgcHV0 ZW52Li4uIHllcw0KY2hlY2tpbmcgZm9yIHNldGVudi4uLiBubw0KY2hlY2tp bmcgZm9yIHNldGxvY2FsZS4uLiB5ZXMNCmNoZWNraW5nIGZvciBzdHJjaHIu Li4geWVzDQpjaGVja2luZyBmb3Igc3RyY2FzZWNtcC4uLiB5ZXMNCmNoZWNr aW5nIGZvciBzdHJkdXAuLi4geWVzDQpjaGVja2luZyBmb3IgX19hcmd6X2Nv dW50Li4uIG5vDQpjaGVja2luZyBmb3IgX19hcmd6X3N0cmluZ2lmeS4uLiBu bw0KY2hlY2tpbmcgZm9yIF9fYXJnel9uZXh0Li4uIG5vDQpjaGVja2luZyBm b3Igc3RwY3B5Li4uIG5vDQpjaGVja2luZyBmb3IgTENfTUVTU0FHRVMuLi4g eWVzDQpjaGVja2luZyB3aGV0aGVyIE5MUyBpcyByZXF1ZXN0ZWQuLi4geWVz DQpjaGVja2luZyBmb3IgbGliaW50bC5oLi4uIHllcw0KY2hlY2tpbmcgZm9y IGRnZXR0ZXh0IGluIGxpYmMuLi4geWVzDQpjaGVja2luZyBmb3IgbXNnZm10 Li4uIC9iaW4vbXNnZm10DQpjaGVja2luZyBmb3IgZGNnZXR0ZXh0Li4uIHll cw0KY2hlY2tpbmcgZm9yIGdtc2dmbXQuLi4gL2Jpbi9tc2dmbXQNCmNoZWNr aW5nIGZvciB4Z2V0dGV4dC4uLiAvYmluL3hnZXR0ZXh0DQpmb3VuZCB4Z2V0 dGV4dCBwcm9ncmFtIGlzIG5vdCBHTlUgeGdldHRleHQ7IGlnbm9yZSBpdA0K Y2hlY2tpbmcgZm9yIGNhdGFsb2dzIHRvIGJlIGluc3RhbGxlZC4uLiAgYXog Y2EgY3MgZGEgZGUgZWwgZXMgZXQgZXUgZmkgZnIgZ2EgZ2wgaHIgaHUgaXQg amEga28gbHQgbmwgbm8gbm4gcGwgcHQgcHRfQlIgcm8gcnUgc2sgc2wgc3Ag c3Igc3YgdHIgdWsgdmkgd2EgemhfQ04uR0IyMzEyIHpoX1RXLkJpZzUNCmNo ZWNraW5nIGZvciBleHRyYSBmbGFncyB0byBnZXQgQU5TSSBsaWJyYXJ5IHBy b3RvdHlwZXMuLi4gbm9uZSBuZWVkZWQNCmNoZWNraW5nIGZvciBleHRyYSBm bGFncyBmb3IgUE9TSVggY29tcGxpYW5jZS4uLiBub25lIG5lZWRlZA0KY2hl Y2tpbmcgZm9yIGdsaWItY29uZmlnLi4uIC91c3IvbG9jYWwvYmluL2dsaWIt Y29uZmlnDQpjaGVja2luZyBmb3IgR0xJQiAtIHZlcnNpb24gPj0gMS4yLjgu Li4gbm8NCioqKiBDb3VsZCBub3QgcnVuIEdMSUIgdGVzdCBwcm9ncmFtLCBj aGVja2luZyB3aHkuLi4NCioqKiBUaGUgdGVzdCBwcm9ncmFtIGNvbXBpbGVk LCBidXQgZGlkIG5vdCBydW4uIFRoaXMgdXN1YWxseSBtZWFucw0KKioqIHRo YXQgdGhlIHJ1bi10aW1lIGxpbmtlciBpcyBub3QgZmluZGluZyBHTElCIG9y IGZpbmRpbmcgdGhlIHdyb25nDQoqKiogdmVyc2lvbiBvZiBHTElCLiBJZiBp dCBpcyBub3QgZmluZGluZyBHTElCLCB5b3UnbGwgbmVlZCB0byBzZXQgeW91 cg0KKioqIExEX0xJQlJBUllfUEFUSCBlbnZpcm9ubWVudCB2YXJpYWJsZSwg b3IgZWRpdCAvZXRjL2xkLnNvLmNvbmYgdG8gcG9pbnQNCioqKiB0byB0aGUg aW5zdGFsbGVkIGxvY2F0aW9uICBBbHNvLCBtYWtlIHN1cmUgeW91IGhhdmUg cnVuIGxkY29uZmlnIGlmIHRoYXQNCioqKiBpcyByZXF1aXJlZCBvbiB5b3Vy IHN5c3RlbQ0KKioqDQoqKiogSWYgeW91IGhhdmUgYW4gb2xkIHZlcnNpb24g aW5zdGFsbGVkLCBpdCBpcyBiZXN0IHRvIHJlbW92ZSBpdCwgYWx0aG91Z2gN CioqKiB5b3UgbWF5IGFsc28gYmUgYWJsZSB0byBnZXQgdGhpbmdzIHRvIHdv cmsgYnkgbW9kaWZ5aW5nIExEX0xJQlJBUllfUEFUSA0KKioqDQoqKiogSWYg eW91IGhhdmUgYSBSZWRIYXQgNS4wIHN5c3RlbSwgeW91IHNob3VsZCByZW1v dmUgdGhlIEdUSyBwYWNrYWdlIHRoYXQNCioqKiBjYW1lIHdpdGggdGhlIHN5 c3RlbSB3aXRoIHRoZSBjb21tYW5kDQoqKioNCioqKiAgICBycG0gLS1lcmFz ZSAtLW5vZGVwcyBndGsgZ3RrLWRldmVsDQpjb25maWd1cmU6IGVycm9yOiAN CioqKiBHTElCIDEuMi44IG9yIGJldHRlciBpcyByZXF1aXJlZC4gVGhlIGxh dGVzdCB2ZXJzaW9uIG9mIEdMSUINCioqKiBpcyBhbHdheXMgYXZhaWxhYmxl IGZyb20gZnRwOi8vZnRwLmd0ay5vcmcvLg0Ka2hhbltwYXVsbV0+IGV4aXQK c2NyaXB0IGRvbmUgb24gRnJpIEZlYiAwMSAxMjo1ODoxNCAyMDAyCg== --Herd_of_Elephants_369_000 Content-Type: TEXT/plain; name=lib_list; charset=us-ascii; x-unix-mode=0664 Content-Description: lib_list Content-MD5: REcIQAPQJl9I9JwWGankUA== total 3904 -rw-r--r-- 1 root other 8096 Feb 21 2001 a2ps.header.ps drwxrwxr-x 3 paulm vicpol 512 Jan 31 18:58 glib lrwxrwxrwx 1 paulm vicpol 21 Jan 31 19:33 libglib-1.2.so.0 -> libglib-1.2.so.0.0.10 -rwxr-xr-x 1 paulm vicpol 549796 Jan 31 19:33 libglib-1.2.so.0.0.10 -rw-r--r-- 1 paulm vicpol 1267956 Jan 31 19:33 libglib.a -rwxr-xr-x 1 paulm vicpol 668 Jan 31 19:33 libglib.la lrwxrwxrwx 1 paulm vicpol 21 Jan 31 19:33 libglib.so -> libglib-1.2.so.0.0.10 lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgmodule-1.2.so.0 -> libgmodule-1.2.so.0.0.10 -rwxr-xr-x 1 paulm vicpol 21492 Jan 31 19:33 libgmodule-1.2.so.0.0.10 -rw-r--r-- 1 paulm vicpol 49908 Jan 31 19:33 libgmodule.a -rw-r--r-- 1 paulm vicpol 694 Jan 31 19:33 libgmodule.la lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgmodule.so -> libgmodule-1.2.so.0.0.10 lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgthread-1.2.so.0 -> libgthread-1.2.so.0.0.10 -rwxr-xr-x 1 paulm vicpol 17304 Jan 31 19:33 libgthread-1.2.so.0.0.10 -rw-r--r-- 1 paulm vicpol 47040 Jan 31 19:33 libgthread.a -rwxr-xr-x 1 paulm vicpol 698 Jan 31 19:33 libgthread.la lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgthread.so -> libgthread-1.2.so.0.0.10 drwxrwxr-x 2 paulm vicpol 512 Jan 31 19:33 pkgconfig --Herd_of_Elephants_369_000-- From engenharia3@maqplas.com.br Fri Feb 1 11:01:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id C858718776 for ; Fri, 1 Feb 2002 11:01:42 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11G0sCV016065 for ; Fri, 1 Feb 2002 14:00:59 -0200 (BRST) Subject: Catching keys combinations From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 13:58:12 -0200 Message-Id: <1012579101.1122.2.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello again, I need to catch key combinations (ex.: CTRL + X + any key) , my application windows are connected with the key_press_event, but I view only 1 key press in moment, what I do ? Thanks in advance Flavio Alberto From lapenta_jm@yahoo.com Fri Feb 1 11:04:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14006.mail.yahoo.com (web14006.mail.yahoo.com [216.136.175.122]) by mail.gnome.org (Postfix) with SMTP id 37F7918123 for ; Fri, 1 Feb 2002 11:04:59 -0500 (EST) Message-ID: <20020201160458.86534.qmail@web14006.mail.yahoo.com> Received: from [129.55.200.20] by web14006.mail.yahoo.com via HTTP; Fri, 01 Feb 2002 08:04:58 PST Date: Fri, 1 Feb 2002 08:04:58 -0800 (PST) From: Jason LaPenta Subject: Problem passing pointer to widget with gtk_idle_add() To: gtk-list@gnome.org Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hello, When I pass a pointer to a widget with void on_scan_window_show( GtkWidget *widget, gpointer user_data ) { printf( " adding main_idle 0x%x\n", widget ); g_idle_id = gtk_idle_add( main_idle, widget ); } By the time the user_data pointer gets to gint main_idle ( gpointer user_data ) { ... } My user_data( which should be a pointer to widget ) looks like it got casted to a 16bit int for some reason. At the very least it is mangled. Anybody know why? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From hp@redhat.com Fri Feb 1 11:10:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 03D9C18215 for ; Fri, 1 Feb 2002 11:10:40 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11GAcw25262; Fri, 1 Feb 2002 11:10:38 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: zze-coframi balr001 , gtk-list Subject: Re: GTK without X ??? References: <1012576326.1122.1.camel@flavio.maqplas> From: Havoc Pennington Date: 01 Feb 2002 11:10:38 -0500 In-Reply-To: <1012576326.1122.1.camel@flavio.maqplas> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Fl=E1vio Alberto Lopes Soares writes: > Can I compile my application normally (I making my application using > GTK+ 1.2.10), or I must make some changes ? >=20 You will need to port to 1.3.x/2.0, which is fairly simple and a good idea anyway. There's some information in the reference manual: http://developer.gnome.org/doc/API/2.0/gtk/gtk-framebuffer.html Havoc From hp@redhat.com Fri Feb 1 11:12:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 5DFDA197DC for ; Fri, 1 Feb 2002 11:12:11 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11GCB825266; Fri, 1 Feb 2002 11:12:11 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: gtk-list@gnome.org Subject: Re: GUI design References: <1012573868.2054.4.camel@chavez> From: Havoc Pennington Date: 01 Feb 2002 11:12:11 -0500 In-Reply-To: <1012573868.2054.4.camel@chavez> Message-ID: Lines: 8 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "User Interface Design for Programmers" by Joel Spolsky is good. It's online in shortened form but the paper version is enough better to be worth buying I think. Havoc From pbd@op.net Fri Feb 1 11:31:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 260051825C for ; Fri, 1 Feb 2002 11:31:39 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA15209; Fri, 1 Feb 2002 11:31:34 -0500 (EST) Message-Id: <200202011631.LAA15209@renoir.op.net> To: Fl vio Alberto Lopes Soares Cc: gtk-list Subject: Re: Catching keys combinations In-reply-to: Your message of "01 Feb 2002 13:58:12 -0200." <1012579101.1122.2.camel@flavio.maqplas> Date: Fri, 01 Feb 2002 11:29:08 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I need to catch key combinations (ex.: CTRL + X + any key) , my >application windows are connected with the key_press_event, but I view >only 1 key press in moment, what I do ? if i understand your question (which i am not confident about), then you must keep track of keys yourself. modifier keys known to the X server will change the "state" field of a GdkEventKey. in general, keys like "ctrl" and "alt" are set up as modifier keys. the "X" key will not be. so, you need to create a data structure to track which keys are "down", and modify your action according to its state. --p From pbd@op.net Fri Feb 1 11:32:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 0A27519816 for ; Fri, 1 Feb 2002 11:32:28 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA15282; Fri, 1 Feb 2002 11:32:21 -0500 (EST) Message-Id: <200202011632.LAA15282@renoir.op.net> To: Havoc Pennington Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX In-reply-to: Your message of "01 Feb 2002 00:54:43 EST." Date: Fri, 01 Feb 2002 11:29:55 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > >Paul Davis writes: >> i sincerely hope that in a future release of the 1.2 series, >> pkg-config gets added. >> > >Note that pkg-config has some dubious "legacy hacks" in it - try >"pkg-config --cflags gtk" for example. which version? 0.8.0 just reports an error if i try that. From hp@redhat.com Fri Feb 1 12:04:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 9D92518109 for ; Fri, 1 Feb 2002 12:04:54 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11H4rs25349; Fri, 1 Feb 2002 12:04:53 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011632.LAA15282@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 12:04:52 -0500 In-Reply-To: <200202011632.LAA15282@renoir.op.net> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > > >Paul Davis writes: > >> i sincerely hope that in a future release of the 1.2 series, > >> pkg-config gets added. > >> > > > >Note that pkg-config has some dubious "legacy hacks" in it - try > >"pkg-config --cflags gtk" for example. > > which version? 0.8.0 just reports an error if i try that. 0.8 should have this. I'm pretty sure it was there almost from the start, even before 0.8. What error do you get? If you "strace -f" is there any fork/exec of gtk-config going on? Havoc From hp@redhat.com Fri Feb 1 12:08:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id E88EF18109 for ; Fri, 1 Feb 2002 12:08:32 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11H8Sn25353; Fri, 1 Feb 2002 12:08:28 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "K P-W" Cc: gtk-list@gnome.org Subject: Re: setting the font in a program using gtk 1.3.12 References: From: Havoc Pennington Date: 01 Feb 2002 12:08:28 -0500 In-Reply-To: Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "K P-W" writes: > I have been trying to find out how tp set the font and the fontsize in > my program using gtk version 1.3.12 because the standard font is > unreadable. This really isn't a reason to hardcode the font in your app - that will just result in every app having a different font. What you need to do is fix the default font on your system. You can do this by editing etc/pango/pangox.aliases if using old-style X fonts and etc/X11/XftConfig if using Xft fonts. Change what the "sans" alias points to. If your font is just too small, you have DPI set wrong on your X server. Do "xdpyinfo" to get the current DPI. Measure your monitor with a ruler, and put its correct size in /etc/X11/XF86Config (see "man XF86Config" - search for DisplaySize). Havoc From rsteinke@w-link.net Fri Feb 1 12:11:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 279B818E33 for ; Fri, 1 Feb 2002 12:11:11 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.33 #1 (Debian)) id 16WhDO-0002NH-00; Fri, 01 Feb 2002 09:11:06 -0800 Date: Fri, 01 Feb 2002 09:11:06 -0800 From: rsteinke@w-link.net To: lettere@di.unipi.it, gtk-list@gnome.org Subject: Re: colors in pixmap Message-ID: <3C5ACC2A.nail6X81NWRBW@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Marco Lettere > > hello everyone, > > suppose I've a pixmap with a color which I want to modify with 3 slider > widgets for RGB. > The way I'm performing it now is to destroy the old pixmap, change the xpm > C structure and then recreate the pixmap with the new data. > Isn't there a better way (less expensive) of performing this operation > I'm thinking about something like > > gtk_pixmap_update_color(Gtkpixmap* pix,int colorIndex,GdkColor* newColor); Is this just a solid color pixmap? If so, you could just use gdk_draw_rectangle(), and avoid using the xpm entirely. If not, you probably should create a series of pixmaps, one for each color, and swap them in and out. Ron Steinke From engenharia3@maqplas.com.br Fri Feb 1 12:20:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id 3669018246 for ; Fri, 1 Feb 2002 12:20:43 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11HJxCV021112; Fri, 1 Feb 2002 15:20:00 -0200 (BRST) Subject: Re: GTK without X ??? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Havoc Pennington Cc: zze-coframi balr001 , gtk-list In-Reply-To: References: <1012576326.1122.1.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 15:17:21 -0200 Message-Id: <1012583843.1123.3.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello again Where can I download GTK+2.0 ? Thanks Flavio Alberto Em 01 Feb 2002 11:10:38 -0500, Havoc Pennington escreveu: > > Flávio Alberto Lopes Soares writes: > > Can I compile my application normally (I making my application using > > GTK+ 1.2.10), or I must make some changes ? > > > > You will need to port to 1.3.x/2.0, which is fairly simple and a good > idea anyway. > > There's some information in the reference manual: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-framebuffer.html > > Havoc From sven@gimp.org Fri Feb 1 12:27:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id BCA1A187C6 for ; Fri, 1 Feb 2002 12:27:38 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16WhGL-00008f-00; Fri, 01 Feb 2002 18:14:09 +0100 To: Havoc Pennington Cc: Paul Davis , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011632.LAA15282@renoir.op.net> From: Sven Neumann Date: 01 Feb 2002 18:14:09 +0100 In-Reply-To: Message-ID: Lines: 35 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Havoc Pennington writes: > Paul Davis writes: > > > > > >Paul Davis writes: > > >> i sincerely hope that in a future release of the 1.2 series, > > >> pkg-config gets added. > > >> > > > > > >Note that pkg-config has some dubious "legacy hacks" in it - try > > >"pkg-config --cflags gtk" for example. pkg-config --libs gtk Package gtk was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk' found which pkg-config /usr/local/bin/pkg-config which gtk-config /usr/bin/gtk-config > If you "strace -f" is there any fork/exec of gtk-config going on? I hope you are joking here. Forking gtk-config would be a really evil hack. If that's indeed what pkg-config does, a crash is what you deserve. Salut, Sven From pbd@op.net Fri Feb 1 12:30:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9B5E618E17 for ; Fri, 1 Feb 2002 12:30:27 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA22617; Fri, 1 Feb 2002 12:30:21 -0500 (EST) Message-Id: <200202011730.MAA22617@renoir.op.net> To: Havoc Pennington Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX In-reply-to: Your message of "01 Feb 2002 12:04:52 EST." Date: Fri, 01 Feb 2002 12:27:55 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >0.8 should have this. I'm pretty sure it was there almost from the >start, even before 0.8. > >What error do you get? > >If you "strace -f" is there any fork/exec of gtk-config going on? it doesn't fork/exec it, doesn't open it, stat it, read it or mmap it. --p From hp@redhat.com Fri Feb 1 13:04:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id D836519836 for ; Fri, 1 Feb 2002 13:04:56 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11I4th07499; Fri, 1 Feb 2002 13:04:55 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Sven Neumann Cc: Paul Davis , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011632.LAA15282@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 13:04:54 -0500 In-Reply-To: Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sven Neumann writes: > I hope you are joking here. Forking gtk-config would be a really > evil hack. If that's indeed what pkg-config does, a crash is what > you deserve. > It allows you to use PKG_CHECK_MODULES with the GNOME 1 platform. It's kind of a cheesy special case, but there's nothing broken about it. (Other than it doesn't seem to work for you but does work for me, I don't understand what that could possibly be about.) Havoc From hp@redhat.com Fri Feb 1 13:05:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id A7C8719836 for ; Fri, 1 Feb 2002 13:05:45 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11I5ig07503; Fri, 1 Feb 2002 13:05:44 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: zze-coframi balr001 , gtk-list Subject: Re: GTK without X ??? References: <1012576326.1122.1.camel@flavio.maqplas> <1012583843.1123.3.camel@flavio.maqplas> From: Havoc Pennington Date: 01 Feb 2002 13:05:44 -0500 In-Reply-To: <1012583843.1123.3.camel@flavio.maqplas> Message-ID: Lines: 7 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Fl=E1vio Alberto Lopes Soares writes: > Where can I download GTK+2.0 ? Get 1.3.13 (the unstable version that will become 2.0). It's on ftp.gtk.org. Havoc From pbd@op.net Fri Feb 1 13:17:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id B8E0B18760 for ; Fri, 1 Feb 2002 13:17:11 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA28161; Fri, 1 Feb 2002 13:17:05 -0500 (EST) Message-Id: <200202011817.NAA28161@renoir.op.net> To: Havoc Pennington Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX In-reply-to: Your message of "01 Feb 2002 13:04:54 EST." Date: Fri, 01 Feb 2002 13:14:39 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> I hope you are joking here. Forking gtk-config would be a really >> evil hack. If that's indeed what pkg-config does, a crash is what >> you deserve. >> > >It allows you to use PKG_CHECK_MODULES with the GNOME 1 platform. It's >kind of a cheesy special case, but there's nothing broken about it. ah. thats different. thats an m4 macro that probably calls pkg-config and handles failure. that doesn't mean pkg-config itself can handle it. --p From seberino@dt092n42.san.rr.com Fri Feb 1 14:10:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 7138018772 for ; Fri, 1 Feb 2002 14:10:49 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16Wj5F-00009e-00 for gtk-list@gnome.org; Fri, 01 Feb 2002 11:10:49 -0800 Date: Fri, 1 Feb 2002 11:10:49 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: Is this "thread-safe" in GTK+.... Message-ID: <20020201111049.B527@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I want to use pthreads to have a thread that just generates numbers used by GTK+ in another thread for drawing. (pixmap plot of the numbers) I believe variables are global with pthreads but are there any gotchas to this? Do I need to use semaphores? (I must find out what they are first!) :( Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From scherfa@web.de Fri Feb 1 14:22:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id D6BF3181B8 for ; Fri, 1 Feb 2002 14:22:53 -0500 (EST) Received: from [62.180.24.173] (helo=u-173-24.mannheim.ipdial.viaginterkom.de) by smtp.web.de with asmtp (Exim 4.11 #37) id 16WjFc-0002ML-00; Fri, 01 Feb 2002 20:21:33 +0100 Subject: Re: GNode and GtkCTree From: Andreas Scherf To: Randy Rueckner Cc: Gtk Liste In-Reply-To: <200201311440.g0VEe69198610@pax10e3.mipool.uni-jena.de> References: <200201311440.g0VEe69198610@pax10e3.mipool.uni-jena.de> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 01 Feb 2002 20:21:36 +0100 Message-Id: <1012591297.1591.2.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am Don, 2002-01-31 um 15.40 schrieb Randy Rueckner: > hello there! > > i write a little application to manipulate and filter magnetic resonance > tomographie - images using glib/gtk. > the main part is done - gtk is really great, but now i have a little > problem and hope someone here can help me. > i want to build a GtkCTree which shows the local images, but that is no > easy task. > the images are named as follows: xxxx-yyy-zzz.ima, where xxxx, yyy, zzz > are integers (xxxx ist the patient id, yyy the study no and zzz the image > no in the study yyy). > the GtkCTree should look like this: > > ---local IMA's // the root_item > |-+-3331 // patient_id = 3331 > |-+-4222 > |---4546 > | |-+-2 // study_no = 2 ( for patient_id = 4546) > | |-+-3 > | |---6 > | | |-23 // image_no = 23 (in study_no = 6) > | | |-24 // filename for this entry: 4546-6-24.ima > | | |-25 > | | |-84 > | |-+-8 // study_no = 8 > |-+-5123 // this is the next patient_id > |-+-5423 > > i hope you understand what i mean. > so i read all image names into an array, split them and build an GNode > tree. my GNode - tree is correct. > now i tried to add my GNode_root_item into an empty GtkCTree. > but in my application there is only an empty item shown, like this: > > -+- > > and nothing more... > i can click on plus, but without an effect. where is the rest of my tree. > please help me. > > thanks in advance > randy There are a few things that goes wrong here, but you could send me your code and i will have a look at it. Or you change your app to work with gtk+2.0 the Tree and list functions are now a lot easier to handle and adding pictures or widgets is simpler than in gtk+1.2 i think in long term it was better to choose gtk+2.0 for this task. MfG Scherfy -- Andreas Scherf ICQ: 52910964 scherfa@web.de b.de From hp@redhat.com Fri Feb 1 14:59:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id C533B18923 for ; Fri, 1 Feb 2002 14:59:19 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11JxGc07370; Fri, 1 Feb 2002 14:59:16 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011817.NAA28161@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 14:59:16 -0500 In-Reply-To: <200202011817.NAA28161@renoir.op.net> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > ah. thats different. thats an m4 macro that probably calls pkg-config > and handles failure. that doesn't mean pkg-config itself can handle it. > No, pkg-config itself definitely does ask a set of legacy *-config scripts for results if it can't find .pc files for a module. I wrote the code, so I'm sure it exists. ;-) I think I see the problem now - "pkg-config --cflags gtk" goes via gnome-config, which you probably don't have. Change it to "pkg-config --cflags gtk+" (add the "+") and it will call gtk-config instead. If that still doesn't work, or you do have gnome-config installed, then send me the output if you add the --debug option. Havoc From rwalden@tripos.com Fri Feb 1 16:48:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id 20B94181CC for ; Fri, 1 Feb 2002 16:48:35 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id PAA26482 for <@firewall.tripos.com:gtk-list@gnome.org>; Fri, 1 Feb 2002 15:48:34 -0600 (CST) Received: from elara.tripos.com(172.20.5.15) by gatekeeper.tripos.com via smap (V5.5) id xma026467; Fri, 1 Feb 02 15:48:17 -0600 Received: from ariel.tripos.com (ariel [172.20.5.145]) by tripos.com (980919.SGI.STAND) via ESMTP id PAA04804 for ; Fri, 1 Feb 2002 15:48:16 -0600 (CST) Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id PAA27663 for ; Fri, 1 Feb 2002 15:48:16 -0600 (CST) Message-ID: <3C5B0D1F.54F3BA42@tripos.com> Date: Fri, 01 Feb 2002 15:48:15 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 Cc: gtk-list@gnome.org Subject: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It seems to me that glib innow REQUIRES the use of GNU gettext, which is covered under GPL. If that's true, then GTK2 can no longer be used for commercial software development. Is this intentional? Am I missing something? Is there a way to use glib/GTK2 without GNU gettext? Thanks, Ralph Walden -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Fri Feb 1 17:26:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 967EA183AA for ; Fri, 1 Feb 2002 17:26:34 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11MQXq31536; Fri, 1 Feb 2002 17:26:33 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ralph Walden Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> From: Havoc Pennington Date: 01 Feb 2002 17:26:32 -0500 In-Reply-To: <3C5B0D1F.54F3BA42@tripos.com> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > It seems to me that glib innow REQUIRES the use of > GNU gettext, which is covered under GPL. > > If that's true, then GTK2 can no longer be used > for commercial software development. > > Is this intentional? > > Am I missing something? Is there a way to use glib/GTK2 without > GNU gettext? > GNU gettext is now available under the LGPL, at our request. I think GTK is supposed to still work with other gettext, though. Havoc From rwalden@tripos.com Fri Feb 1 17:32:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id 56D641863B for ; Fri, 1 Feb 2002 17:32:45 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id QAA27608; Fri, 1 Feb 2002 16:32:44 -0600 (CST) Received: from elara.tripos.com(172.20.5.15) by gatekeeper.tripos.com via smap (V5.5) id xma027604; Fri, 1 Feb 02 16:32:01 -0600 Received: from ariel.tripos.com (ariel [172.20.5.145]) by tripos.com (980919.SGI.STAND) via ESMTP id QAA05226; Fri, 1 Feb 2002 16:32:00 -0600 (CST) Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id QAA05357; Fri, 1 Feb 2002 16:31:59 -0600 (CST) Message-ID: <3C5B175F.6CD6F8AD@tripos.com> Date: Fri, 01 Feb 2002 16:31:59 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Where can I obtain the LGPL version of gettext? I downloaded the gettext-0.11 version from gnu.org, and there is no mention of LGPL, only GPL. Thanks, Ralph Walden Havoc Pennington wrote: > > Ralph Walden writes: > > It seems to me that glib innow REQUIRES the use of > > GNU gettext, which is covered under GPL. > > > > If that's true, then GTK2 can no longer be used > > for commercial software development. > > > > Is this intentional? > > > > Am I missing something? Is there a way to use glib/GTK2 without > > GNU gettext? > > > > GNU gettext is now available under the LGPL, at our request. > > I think GTK is supposed to still work with other gettext, though. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From rwalden@tripos.com Fri Feb 1 17:34:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id BED7818C92 for ; Fri, 1 Feb 2002 17:34:45 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id QAA27665; Fri, 1 Feb 2002 16:34:45 -0600 (CST) Received: from elara.tripos.com(172.20.5.15) by gatekeeper.tripos.com via smap (V5.5) id xma027660; Fri, 1 Feb 02 16:34:30 -0600 Received: from ariel.tripos.com (ariel [172.20.5.145]) by tripos.com (980919.SGI.STAND) via ESMTP id QAA05240; Fri, 1 Feb 2002 16:34:29 -0600 (CST) Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id QAA09534; Fri, 1 Feb 2002 16:34:29 -0600 (CST) Message-ID: <3C5B17F5.3F536D54@tripos.com> Date: Fri, 01 Feb 2002 16:34:29 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Oops, sorry. I didn't look closely enough. in the NEWS file with gettext-0.11: Version 0.10.40 - September 2001 * The libintl library is now covered by the GNU LGPL. The tools are still covered by the GNU GPL. Thanks, Ralph Walden Havoc Pennington wrote: > > Ralph Walden writes: > > It seems to me that glib innow REQUIRES the use of > > GNU gettext, which is covered under GPL. > > > > If that's true, then GTK2 can no longer be used > > for commercial software development. > > > > Is this intentional? > > > > Am I missing something? Is there a way to use glib/GTK2 without > > GNU gettext? > > > > GNU gettext is now available under the LGPL, at our request. > > I think GTK is supposed to still work with other gettext, though. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Fri Feb 1 17:47:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 29C2318115 for ; Fri, 1 Feb 2002 17:47:02 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11Ml0s19617; Fri, 1 Feb 2002 17:47:00 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ralph Walden Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> <3C5B175F.6CD6F8AD@tripos.com> From: Havoc Pennington Date: 01 Feb 2002 17:47:00 -0500 In-Reply-To: <3C5B175F.6CD6F8AD@tripos.com> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > Where can I obtain the LGPL version of gettext? > > I downloaded the gettext-0.11 version from > gnu.org, and there is no mention of LGPL, only GPL. > Look at intl/COPYING.LIB-2.1 in the source tree. Only the library part of gettext is LGPL, the command line utilities like msgfmt are still GPL. 0.10.40 and 0.11 both have the LGPL. Havoc From sandmann@daimi.au.dk Fri Feb 1 18:44:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from alex.daimi.au.dk (alex.daimi.au.dk [130.225.16.45]) by mail.gnome.org (Postfix) with ESMTP id C9D6D18FC3 for ; Fri, 1 Feb 2002 18:44:28 -0500 (EST) Received: (from sandmann@localhost) by alex.daimi.au.dk (8.11.6/8.11.6) id g11NiO417319; Sat, 2 Feb 2002 00:44:24 +0100 (MET) To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: Is this "thread-safe" in GTK+.... References: <20020201111049.B527@spawar.navy.mil> From: Soeren Sandmann Date: 02 Feb 2002 00:44:24 +0100 In-Reply-To: <20020201111049.B527@spawar.navy.mil> Message-ID: Lines: 75 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Chris Seberino writes: > I want to use pthreads to have a thread that just generates > numbers used by GTK+ in another thread for drawing. > (pixmap plot of the numbers) >=20 > I believe variables are global with pthreads but > are there any gotchas to this? Do I need to > use semaphores? (I must find out what they are first!) :( There are lots of gotchas with threads. One way to do what you want without using threads is like this: typedef struct MyComputation MyComputation; struct MyComputation { =20=20=20=20 /* put all your computation's state here */; gboolean cancelled_by_user;=20=20=20=20 } gboolean run_my_computation (gpointer data) { MyComputation *my_computation =3D data; /* don't run for more than about 10-20 ms if you can avoid it=20 */ ; if (computation is finished || my_computation->cancelled_by_user) { g_free (my_computation); return FALSE; /* don't call me again */ } else { return TRUE; /* please call me again */ } } and then later do my_computation =3D g_new (MyComputation, 1); my_computation->cancelled_by_user =3D FALSE; my_computation->... =3D ...; g_idle_add (run_my_computation, my_computation); This will make sure your application is responsive and in addition provide these benefits: - the user can stop the computation. In the callback for the click on "cancel", just do=20 my_computation->cancelled_by_user =3D TRUE; - you can easily have a progress/activity bar - you don't have to mess with threads and locking. If you must use threads for some reason, then you will generally want to avoid calling gdk and gtk functions from the thread. Instead use the same trick and=20 g_idle_add (function_that_does_what_do_need_to_do, ...);=20 The function_that_does_what_you_need_to_do() can safely call any gtk and gdk functions it wants to. S=F8ren From scherfa@web.de Fri Feb 1 19:18:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id A0084181CC for ; Fri, 1 Feb 2002 19:18:51 -0500 (EST) Received: from [62.180.25.216] (helo=d-216-25.mannheim.ipdial.viaginterkom.de) by smtp.web.de with asmtp (Exim 4.11 #37) id 16Wnt6-0001Z1-00 for gtk-list@gnome.org; Sat, 02 Feb 2002 01:18:36 +0100 Subject: How to set only ONE Column editable (GTK2) From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 02 Feb 2002 01:18:42 +0100 Message-Id: <1012609123.30197.3.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have another problem, i have 2 columns : Number Name Now i want that the user could edit the name but not want that he could change the number. I have solved this by dont let the changes come trough : column = g_object_get_data (G_OBJECT (cell), "column"); if ((gint) column==NUMBER_COLUMN) { return; } But thats a bad result, could i set the column number 0 to not_EDITABLE ? Thanks Scherfy -- Andreas Scherf ICQ: 52910964 scherfa@web.de From hp@redhat.com Fri Feb 1 20:11:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id D0CE11825D for ; Fri, 1 Feb 2002 20:11:12 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g121BAp22392; Fri, 1 Feb 2002 20:11:10 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Andreas Scherf Cc: Gtk Liste Subject: Re: How to set only ONE Column editable (GTK2) References: <1012609123.30197.3.camel@xerxes> From: Havoc Pennington Date: 01 Feb 2002 20:11:10 -0500 In-Reply-To: <1012609123.30197.3.camel@xerxes> Message-ID: Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Andreas Scherf writes: > I have another problem, > i have 2 columns : > Number Name > Now i want that the user could edit the name but not want that he could > change the number. I have solved this by dont let the changes come > trough : > column = g_object_get_data (G_OBJECT (cell), "column"); > > if ((gint) column==NUMBER_COLUMN) { > return; > } > But thats a bad result, could i set the column number 0 to not_EDITABLE > ? > You can use a different cell renderer for each column, right. Havoc From monkeyiq@gmx.net Sat Feb 2 07:29:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from monkeyiq.dnsalias.org (CPE-203-45-214-174.qld.bigpond.net.au [203.45.214.174]) by mail.gnome.org (Postfix) with ESMTP id A60AF18FA5 for ; Sat, 2 Feb 2002 07:29:41 -0500 (EST) Received: by monkeyiq.dnsalias.org id g12CVhj24647 ; Sat, 2 Feb 2002 22:31:43 +1000 Date: Sat, 2 Feb 2002 22:31:43 +1000 Message-Id: <200202021231.g12CVhj24647@monkeyiq.dnsalias.org> To: GTK Mailing List Subject: GtkTreeView and gtk 1.3.13 From: monkeyiq MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I recently upgraded to the rawhide rpms for gtk 1.3.13 and now I am getting a segv on app startup of Ego: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 24632)] __strtol_internal (nptr=0x8108c30 "\002", endptr=0x0, base=3, group=-1073746544) at eval.c:38 38 eval.c: No such file or directory. in eval.c (gdb) bt #0 __strtol_internal (nptr=0x8108c30 "\002", endptr=0x0, base=3, group=-1073746544) at eval.c:38 #1 0x409cf548 in g_closure_invoke () at eval.c:41 #2 0x409e4358 in signal_emit_unlocked_R () at eval.c:41 #3 0x409e30b6 in g_signal_emit_valist () at eval.c:41 #4 0x409e3403 in g_signal_emit_by_name () at eval.c:41 #5 0x406b04d6 in gtk_tree_model_row_inserted () at eval.c:41 #6 0x406bcf61 in gtk_tree_store_append () at eval.c:41 #7 0x080799c3 in Ego::ContextView::makeDummyView (this=0x80ffa70) at ContextView.cpp:2168 Any thoughts on code that may have changed 1.3.12 -> .13 that I might look at first? -- ----------------------------------------------------- http://witme.sourceforge.net/libferris.web/ From v.j.arkesteijn@utwente.nl Sat Feb 2 09:33:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ken (dyn093252.inbel.utwente.nl [130.89.93.252]) by mail.gnome.org (Postfix) with ESMTP id 2AA8C18B04 for ; Sat, 2 Feb 2002 09:33:53 -0500 (EST) Received: by ken (Postfix, from userid 1000) id 00FA819DF; Sat, 2 Feb 2002 15:35:47 +0100 (CET) Date: Sat, 2 Feb 2002 15:35:46 +0100 From: Vincent Arkesteijn To: gtk-list@gnome.org Subject: scrolled window: scroll in only one direction? Message-ID: <20020202153542.A4579@ken> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I would like to have a scrolled window, in which the child is only scrolled in one direction. In the other direction, the child's size should change when the user changes the size of the window. Is this possible? Background: I have an application that shows some data inside a drawing area in real time. As there may be more data than fits in the window, I want the drawing area inside a scrolled window. Let's assume this scrolls in the vertical direction. When new data is received, it is drawn in the right, and the older data is automatically moved left. Now I want the width of the window to determine how far back in time the data is visible, so no horizontal scrolling by the user. So in the horizontal direction, everything should work like there was no scrolled window, just as in the scribble drawing program in the tutorial. I have tried changing the size of the drawing area whenever a configure event is raised, but this hasn't worked very well yet and to me it sounds more like a hack than a real good solution. I would appreciate your help. Vincent. From hp@redhat.com Sat Feb 2 09:58:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 8AFEF18EDC for ; Sat, 2 Feb 2002 09:58:22 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g12EwKU29258; Sat, 2 Feb 2002 09:58:20 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Vincent Arkesteijn Cc: gtk-list@gnome.org Subject: Re: scrolled window: scroll in only one direction? References: <20020202153542.A4579@ken> From: Havoc Pennington Date: 02 Feb 2002 09:58:20 -0500 In-Reply-To: <20020202153542.A4579@ken> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Vincent Arkesteijn writes: > > I would like to have a scrolled window, in which the child is only > scrolled in one direction. In the other direction, the child's size > should change when the user changes the size of the window. Is this > possible? > I think you just want to set GTK_POLICY_NEVER on one direction? Havoc From neofolk@yahoo.de Sat Feb 2 15:10:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp017.mail.yahoo.com (smtp017.mail.yahoo.com [216.136.174.114]) by mail.gnome.org (Postfix) with SMTP id 33A1918145 for ; Sat, 2 Feb 2002 15:10:47 -0500 (EST) Received: from p3ee37673.dip.t-dialin.net (HELO p3desktop) (62.227.118.115) by smtp.mail.vip.sc5.yahoo.com with SMTP; 2 Feb 2002 20:10:39 -0000 Message-ID: <001e01c1ac25$5ed06e50$6600a8c0@p3desktop> Reply-To: "Oliver Kroll :ALT EUROPA: - Magazin" From: "Oliver Kroll :ALT EUROPA: - Magazin" To: Subject: CList: how to change column-count at runtime Date: Sat, 2 Feb 2002 21:08:20 +0100 Organization: :ALT EUROPA: - Magazin MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001B_01C1AC2D.BE3DEE00" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_001B_01C1AC2D.BE3DEE00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi all, i created a form (clist included) with glade. i filled a ctree with databases and tables from the mysql-server, now i = like to read the data stored in a mysql-table into the clist. this is no problem so far. but how can i change the column-count from the gtk-clist at runtime, so = that it will fit to the column-count of the mysql-resultset? thanks a lot for your help. sincerly oliver k. ------=_NextPart_000_001B_01C1AC2D.BE3DEE00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi all,
 
i created a form (clist included) with=20 glade.
 
i filled a ctree with databases and = tables from the=20 mysql-server, now i like to read the data stored in a mysql-table into = the=20 clist.
this is no problem so far.
 
but how can i change the column-count = from the=20 gtk-clist at runtime, so that it will fit to the column-count of the=20 mysql-resultset?
 
thanks a lot for your = help.
 
sincerly
 
oliver k.
 
 
------=_NextPart_000_001B_01C1AC2D.BE3DEE00-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From pbd@op.net Sat Feb 2 15:55:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 7C2A418E03 for ; Sat, 2 Feb 2002 15:55:10 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-108.fast.net [209.92.60.108]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA26748 for ; Sat, 2 Feb 2002 15:55:09 -0500 (EST) Message-Id: <200202022055.PAA26748@renoir.op.net> To: gtk-list@gnome.org Subject: HTML-formatted mail/attachments Date: Sat, 02 Feb 2002 15:53:00 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: is there any chance that we could get this, like linux-kernel and others, to reject mail containing either only HTML-formatted mail or HTML attachments? i send polite messages to people who send such things, but the incoming flow is growing all the time, and individual filtering by procmail will do little to stem it. --p From shiraz_baig@yahoo.com Sun Feb 3 09:54:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13907.mail.yahoo.com (web13907.mail.yahoo.com [216.136.175.70]) by mail.gnome.org (Postfix) with SMTP id 8921A1810E for ; Sun, 3 Feb 2002 09:54:33 -0500 (EST) Message-ID: <20020203145432.54196.qmail@web13907.mail.yahoo.com> Received: from [203.135.0.66] by web13907.mail.yahoo.com via HTTP; Sun, 03 Feb 2002 06:54:32 PST Date: Sun, 3 Feb 2002 06:54:32 -0800 (PST) From: Shiraz Baig Subject: Re: drawing a line To: Sven Neumann Cc: gtk-list@gnome.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I do understand the advantage of "expose" but I wanted to understand the fundamentals first. Therefore, i wanted to draw the drawline like this. Thanks for all the help. BTW, I have now drawn the line with "expose" event. But I am slightly confused, becuase it calls the expose function three times. This is how I tested it. I just put a statement in the "expose" function call as; int static turn=0 g_print turn++; And I found that when I first draw the line this command prints 0,1 and 2. That means that it has been exposed three times. I thought that it is only being exposed when it is created. Any comments on that? I am now grappling with drawing the line in color. And the tutorial does not talk about color. The "ref" does talk about it but no example is available. I did find some examples from other sources, but they are too complicated. I would first like to understand the basics and then go on to complexities. So, if there is a simple 10 line program to draw a line in color I shall welcome it. Thanks and bye Shiraz --- Sven Neumann wrote: > Hi, > > Shiraz Baig writes: > > > I changed the parameters as suggested by Mr > Neumann > > and viola! I am drawing the lines without "expose" > > event and only with pushing a button. > > now move your mouse over the line you've just drawn > or obscure the window by moving another window over > it. Assuming you are using a drawing_area to draw on > directly, X will clear the area you've just painted > on and since you aren't redrawing in your expose > event handler, the line you've just drawn will be > gone. > > > Salut, Sven __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From sven@gimp.org Sun Feb 3 10:38:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E6BCFE.dip.t-dialin.net [217.230.188.254]) by mail.gnome.org (Postfix) with ESMTP id 71BC8180E2 for ; Sun, 3 Feb 2002 10:38:31 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16XOio-0004nA-00; Sun, 03 Feb 2002 16:38:26 +0100 To: Shiraz Baig Cc: gtk-list@gnome.org Subject: Re: drawing a line References: <20020203145432.54196.qmail@web13907.mail.yahoo.com> From: Sven Neumann Date: 03 Feb 2002 16:38:26 +0100 In-Reply-To: <20020203145432.54196.qmail@web13907.mail.yahoo.com> Message-ID: Lines: 35 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Shiraz Baig writes: > I do understand the advantage of "expose" but I > wanted to understand the fundamentals first. actually I don't think the concept of expose events as exposed by X11 (and thus GDK) has any advantages, but that's a different question... > BTW, I have now drawn the line with "expose" event. > But I am slightly confused, becuase it calls the > expose function three times. This is how I tested it. > I just put a statement in the "expose" function call > as; > int static turn=0 > g_print turn++; > > And I found that when I first draw the line this > command prints 0,1 and 2. That means that it has been > exposed three times. I thought that it is only being > exposed when it is created. Any comments on that? the expose event is called whenever the window (or parts of it) need to be repainted. This is the case if the gtk_widget_queue_draw() or a similar function is called and whenever the X server decides that it needs to happen (for example because the window was obscured by another window and becomes unobscured). You should note that the expose_event carries an expose rectangle (event->area) so you probably see three expose events on different areas of your windows. You will only want to redraw the entire window on every expose event if you are lazy. Salut, Sven From kasonhuang@kinposh.com.cn Sun Feb 3 22:30:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id C2C1D1826A for ; Sun, 3 Feb 2002 22:30:25 -0500 (EST) Subject: about how to create a function named of gtk_button_ellipse_new_with_label()? Date: Mon, 4 Feb 2002 11:30:17 +0800 MIME-Version: 1.0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F821FF2DC@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: about how to create a function named of gtk_button_ellipse_new_with_label()? Thread-Index: AcGtLEHLChfgThlgEda2uQCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: about how to create a function named of = gtk_button_ellipse_new_with_label()?

hello:
could anyone tell me = the inheritence of the gtk.
if i want to create = a function named gtk_button_ellipse_new_with_label(),how to do = that?
for gtk is writed = with c not c++,in c++ you could incapsuate a ellipsebutton class by = rewriting the virtual function in the button class

could any = know?
Thanks in = advance.
kason

From satyajit.kanungo@wipro.com Mon Feb 4 02:17:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 9D56A180E7 for ; Mon, 4 Feb 2002 02:17:53 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g147GrX20099 for ; Mon, 4 Feb 2002 12:46:53 +0530 (IST) Received: from satyajit ([10.114.9.188]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GQZYW600.0EO for ; Mon, 4 Feb 2002 12:46:54 +0530 From: "satyajit kanungo" To: Subject: gtk+1.3 library Date: Mon, 4 Feb 2002 12:54:39 +0530 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I am trying to build gtk+-1.3.12 (from GNOME alpha release) on my Linux machine. and it builds properly on my system. I found the gtk sources still using deprecated features such as GtkTypeInfo,GtkType variables, gtk_signal_new etc. Are there any plans to removed these features in future versions. I am thinking of making the changes to remove the above deprecated features from the library. Any suggestions ?? regards satyajit From coframi.balr001@rd.francetelecom.com Mon Feb 4 03:51:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id A1C99180DD for ; Mon, 4 Feb 2002 03:51:37 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Mon, 4 Feb 2002 09:28:37 +0100 Message-ID: From: zze-coframi balr001 To: "'Oliver Kroll :ALT EUROPA: - Magazin'" , gtk-list@gnome.org Subject: RE: CList: how to change column-count at runtime Date: Mon, 4 Feb 2002 09:28:46 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-48e65877-1946-11d6-ac1e-00508b692753" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-48e65877-1946-11d6-ac1e-00508b692753 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AD55.F6B24C30" ------_=_NextPart_001_01C1AD55.F6B24C30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, =20 I don't know if it's possible to change the number of columns during runtime. Why don't you try to delete your clist and to create a new one = with the right number of columns ??=20 =20 Isabelle -----Message d'origine----- De : Oliver Kroll :ALT EUROPA: - Magazin [mailto:neofolk@yahoo.de] Envoy=E9 : samedi 2 f=E9vrier 2002 21:08 =C0 : gtk-list@gnome.org Objet : CList: how to change column-count at runtime hi all, =20 i created a form (clist included) with glade. =20 i filled a ctree with databases and tables from the mysql-server, now i = like to read the data stored in a mysql-table into the clist. this is no problem so far. =20 but how can i change the column-count from the gtk-clist at runtime, so = that it will fit to the column-count of the mysql-resultset? =20 thanks a lot for your help. =20 sincerly =20 oliver k. =20 =20 ------_=_NextPart_001_01C1AD55.F6B24C30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
I=20 don't know if it's possible to change the number of columns during = runtime. Why=20 don't you try to delete your clist and to create a new one with the = right number=20 of columns ??
 
Isabelle
-----Message d'origine-----
De : Oliver Kroll = :ALT=20 EUROPA: - Magazin [mailto:neofolk@yahoo.de]
Envoy=E9 : = samedi 2=20 f=E9vrier 2002 21:08
=C0 :=20 gtk-list@gnome.org
Objet : CList: how to change = column-count at=20 runtime

hi all,
 
i created a form (clist included) = with=20 glade.
 
i filled a ctree with databases and = tables from=20 the mysql-server, now i like to read the data stored in a mysql-table = into the=20 clist.
this is no problem so = far.
 
but how can i change the = column-count from the=20 gtk-clist at runtime, so that it will fit to the column-count of the=20 mysql-resultset?
 
thanks a lot for your = help.
 
sincerly
 
oliver k.
 
 
------_=_NextPart_001_01C1AD55.F6B24C30-- ------=_NextPartTM-000-48e65877-1946-11d6-ac1e-00508b692753-- From inimss@yahoo.com Mon Feb 4 04:32:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp015.mail.yahoo.com (smtp015.mail.yahoo.com [216.136.173.59]) by mail.gnome.org (Postfix) with SMTP id 02E491821C for ; Mon, 4 Feb 2002 04:32:49 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 Feb 2002 09:32:46 -0000 Message-ID: <3C5E5536.6BDBFC5C@yahoo.com> Date: Mon, 04 Feb 2002 15:02:38 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list Subject: [INIMSS] A Newbie Question Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All Can I depend on the pointer returned by functions like gtk_entry_get_text(entry1). Can I keep it for later processing. Thank You Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From rhfreeman@micron.com Mon Feb 4 05:55:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id 8CF9C181BF for ; Mon, 4 Feb 2002 05:55:06 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g14At5K19246 for ; Mon, 4 Feb 2002 03:55:05 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g14At5219234 for ; Mon, 4 Feb 2002 03:55:05 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Mon, 4 Feb 2002 03:55:03 -0700 Message-ID: From: rhfreeman To: "'gtk-list@gnome.org'" Subject: Paned questions Date: Mon, 4 Feb 2002 03:54:58 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, I'm wanting to use the paned widgets to re-size my current widgets but I'm a bit unsure about how it works. My program is quite simple. It has a window with a vbox in it. It keeps adding hboxes to the vbox like this: (no hboxes) +------------+ | | | | | | | | | | +------------+ +------------+ | | | | | (hbox) | | | | | +------------+ +------------+ | hbox 1 | | | |------------| | hbox 2 | | | +------------+ +------------+ | hbox 1 | |------------| | hbox 2 | |------------| | hbox 3 | +------------+ I want a paned widget on the separator between hboxes. So I want a paned widget controlling hbox1/hbox2 and another one controlling hbox2/hbox3. So my questions are: 1. Can a widget have multiple paned widgets attached to it? 2. Can a paned widget control any widget type? As most example code I've seen seems to be re-sizing a frame. Thanks!!! Rich From liviu@heart.med.upatras.gr Mon Feb 4 06:11:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from heart.med.upatras.gr (unknown [150.140.167.160]) by mail.gnome.org (Postfix) with ESMTP id 39C8418449 for ; Mon, 4 Feb 2002 06:11:13 -0500 (EST) Received: from there (IDENT:i4eXe/KcT2xezAPGrXSLJOV5SyG7/uqz@zakinthos.med.upatras.gr [150.140.167.161]) by heart.med.upatras.gr (8.9.3/8.8.7) with SMTP id OAA09940 for ; Mon, 4 Feb 2002 14:10:56 +0200 Message-Id: <200202041210.OAA09940@heart.med.upatras.gr> Content-Type: text/plain; charset="iso-8859-15" From: Liviu Vladutu Reply-To: LiviuVladutu@ieee.org Organization: Medical Physics Dept., School of Medicine To: gtk-list@gnome.org Subject: gtk+ Date: Mon, 4 Feb 2002 13:12:40 +0200 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi everyone, I'd like to ask you where can Ifind the latest source (rpm preferred) distribution for gtk+ running under Linux (RedHat). Liviu From inimss@yahoo.com Mon Feb 4 06:14:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by mail.gnome.org (Postfix) with SMTP id 1E6C1189A7 for ; Mon, 4 Feb 2002 06:14:29 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 Feb 2002 11:14:15 -0000 Message-ID: <3C5E6CFF.3FC290E0@yahoo.com> Date: Mon, 04 Feb 2002 16:44:07 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list , gtk-app-devel Subject: [INIMSS] How can I change the text of a button. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Any body please help me in finding a way to change the text of a GtkButton. Thanks Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:17:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9906.mail.yahoo.com (web9906.mail.yahoo.com [216.136.129.249]) by mail.gnome.org (Postfix) with SMTP id 5764C18A83 for ; Mon, 4 Feb 2002 06:17:46 -0500 (EST) Message-ID: <20020204111745.25122.qmail@web9906.mail.yahoo.com> Received: from [213.29.206.62] by web9906.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:17:45 PST Date: Mon, 4 Feb 2002 03:17:45 -0800 (PST) From: Vahid Zahiri Subject: Re: gtk+ To: LiviuVladutu@ieee.org Cc: gtk-list@gnome.org In-Reply-To: <200202041210.OAA09940@heart.med.upatras.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi Liviu you can download gtk 1.2 (stable version)from : ftp://ftp.gtk.org/pub/gtk/v1.2/binary/RPMS/RedHat-6.2/ or gtk 1.3 form : ftp://ftp.gtk.org/pub/gtk/v1.3/binary/RedHat-7.1/ Vahid --- Liviu Vladutu wrote: > Hi everyone, > > I'd like to ask you where can Ifind the latest > source (rpm preferred) > distribution for gtk+ running under Linux (RedHat). > Liviu > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:29:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9901.mail.yahoo.com (web9901.mail.yahoo.com [216.136.129.36]) by mail.gnome.org (Postfix) with SMTP id 614221812B for ; Mon, 4 Feb 2002 06:29:21 -0500 (EST) Message-ID: <20020204112920.35954.qmail@web9901.mail.yahoo.com> Received: from [213.29.206.62] by web9901.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:29:20 PST Date: Mon, 4 Feb 2002 03:29:20 -0800 (PST) From: Vahid Zahiri Subject: Re: [INIMSS] How can I change the text of a button. To: gtk-list@gnome.org Cc: gtk-list@gnome.org In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Dino you can add a label to button by : gtk_container_add(GTK_CONTAINER(button),label); and change label by: gtk_label_set_text(label ,"hello ;-)" ); Vahid --- Dino Cherian K wrote: > Hi > > Any body please help me in finding a way to change > the text of a > GtkButton. > > Thanks > Dino CK > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at > http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:29:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9901.mail.yahoo.com (web9901.mail.yahoo.com [216.136.129.36]) by mail.gnome.org (Postfix) with SMTP id 6CDCF18248 for ; Mon, 4 Feb 2002 06:29:21 -0500 (EST) Message-ID: <20020204112920.35954.qmail@web9901.mail.yahoo.com> Received: from [213.29.206.62] by web9901.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:29:20 PST Date: Mon, 4 Feb 2002 03:29:20 -0800 (PST) From: Vahid Zahiri Subject: Re: [INIMSS] How can I change the text of a button. To: gtk-list@gnome.org Cc: gtk-list@gnome.org In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Dino you can add a label to button by : gtk_container_add(GTK_CONTAINER(button),label); and change label by: gtk_label_set_text(label ,"hello ;-)" ); Vahid --- Dino Cherian K wrote: > Hi > > Any body please help me in finding a way to change > the text of a > GtkButton. > > Thanks > Dino CK > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at > http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:29:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9907.mail.yahoo.com (web9907.mail.yahoo.com [216.136.129.250]) by mail.gnome.org (Postfix) with SMTP id E5AF81812B for ; Mon, 4 Feb 2002 06:29:27 -0500 (EST) Message-ID: <20020204112927.28295.qmail@web9907.mail.yahoo.com> Received: from [213.29.206.62] by web9907.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:29:27 PST Date: Mon, 4 Feb 2002 03:29:27 -0800 (PST) From: Vahid Zahiri Subject: Re: [INIMSS] How can I change the text of a button. To: gtk-list@gnome.org In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Dino you can add a label to button by : gtk_container_add(GTK_CONTAINER(button),label); and change label by: gtk_label_set_text(label ,"hello ;-)" ); Vahid --- Dino Cherian K wrote: > Hi > > Any body please help me in finding a way to change > the text of a > GtkButton. > > Thanks > Dino CK > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at > http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:34:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9905.mail.yahoo.com (web9905.mail.yahoo.com [216.136.129.248]) by mail.gnome.org (Postfix) with SMTP id 0269D184C7 for ; Mon, 4 Feb 2002 06:34:48 -0500 (EST) Message-ID: <20020204113448.2698.qmail@web9905.mail.yahoo.com> Received: from [213.29.206.62] by web9905.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:34:48 PST Date: Mon, 4 Feb 2002 03:34:48 -0800 (PST) From: Vahid Zahiri Subject: Sorry :( To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi all sorry if you get 3 mail instead one mail; vahid __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From flavio@maqplas.com.br Mon Feb 4 06:59:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aspdroid.ns1.com.br (aspdroid.ns1.com.br [200.185.44.19]) by mail.gnome.org (Postfix) with ESMTP id 9939018449 for ; Mon, 4 Feb 2002 06:59:19 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by aspdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g14BVodB032946 for ; Mon, 4 Feb 2002 09:31:51 -0200 (BRST) Subject: How to compile in gtk+ 1.3 From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 04 Feb 2002 09:56:05 -0200 Message-Id: <1012823766.1474.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I downloaded the GTK+ 1.3 (rpm packages) and make upgrade, aparently all OK, now I want to compile an aplication that I was making with gtk+1.2.10 (the interface was generated by Glade), but it always compile in gtk+1.2, I see in Makefile that it make many references to gtk+1.2, what I has to change to compile in gtk+1.3 ? Thanks in advance Flavio Alberto From sven@gimp.org Mon Feb 4 07:05:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 6098318259; Mon, 4 Feb 2002 07:05:27 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16XhsA-0002Mk-00; Mon, 04 Feb 2002 13:05:22 +0100 To: Dino Cherian K Cc: gtk-list , gtk-app-devel Subject: Re: [INIMSS] How can I change the text of a button. References: <3C5E6CFF.3FC290E0@yahoo.com> From: Sven Neumann Date: 04 Feb 2002 13:05:22 +0100 In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> Message-ID: Lines: 12 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Dino Cherian K writes: > Any body please help me in finding a way to change the text of a > GtkButton. gtk_label_set_text (GTK_LABEL (GTK_BIN (button)->child), "foo"); Salut, Sven From coframi.balr001@rd.francetelecom.com Mon Feb 4 07:23:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id 66B2B18294 for ; Mon, 4 Feb 2002 07:23:18 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Mon, 4 Feb 2002 13:23:00 +0100 Message-ID: From: zze-coframi balr001 To: "'LiviuVladutu@ieee.org'" , gtk-list@gnome.org Subject: RE: gtk+ Date: Mon, 4 Feb 2002 13:23:09 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: http://www.rpmfind.net -----Message d'origine----- De : Liviu Vladutu [mailto:liviu@heart.med.upatras.gr] Envoy=E9 : lundi 4 f=E9vrier 2002 12:13 =C0 : gtk-list@gnome.org Objet : gtk+ Hi everyone, I'd like to ask you where can Ifind the latest source (rpm preferred)=20 distribution for gtk+ running under Linux (RedHat). Liviu _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From flavio@maqplas.com.br Mon Feb 4 09:39:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pkdroid.ns1.com.br (pkdroid.ns1.com.br [200.185.44.16]) by mail.gnome.org (Postfix) with ESMTP id 51E2C18CDF for ; Mon, 4 Feb 2002 09:39:52 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by pkdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g14EdjVX070038 for ; Mon, 4 Feb 2002 12:39:45 -0200 (BRST) Subject: Run time error in gtk1.3 application From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: multipart/mixed; boundary="=-VE59CUR5uqi/Gdat/QKL" X-Mailer: Evolution/0.10 (Preview Release) Date: 04 Feb 2002 12:36:38 -0200 Message-Id: <1012833399.1475.3.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-VE59CUR5uqi/Gdat/QKL Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello all,=20 I make some modifications in my Makefile (attached in mail) in order to compile my application in gtk+1.3 (gtk+2.0), in compilation I get this messages (was several similar messages to each file of my application, I put only piece of messages) : gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 -c callbacks.c gcc: -lgtk-x11-1.3: linker input file unused since linking not donegcc: -lgdk-x11-1.3: linker input file unused since linking not donegcc: -lXi: linker input file unused since linking not done gcc: -lgdk_pixbuf-1.3: linker input file unused since linking not done gcc: -lm: linker input file unused since linking not done gcc: -lpangox: linker input file unused since linking not done gcc: -lpangoxft: linker input file unused since linking not done gcc: -lXft: linker input file unused since linking not done gcc: -lXrender: linker input file unused since linking not done gcc: -lXext: linker input file unused since linking not done gcc: -lX11: linker input file unused since linking not done gcc: -lfreetype: linker input file unused since linking not done gcc: -lpango: linker input file unused since linking not done gcc: -latk: linker input file unused since linking not done gcc: -lgobject-1.3: linker input file unused since linking not donegcc: -lgmodule-1.3: linker input file unused since linking not donegcc: -ldl: linker input file unused since linking not done gcc: -lglib-1.3: linker input file unused since linking not done And when I ran the compiled program, this crashed and emited these messages: (process:5172): GRuntime-CRITICAL **: gtype.c:1762:g_type_register_static(): initialization assertion failed, use g_type_init() prior to this function (process:5172): GRuntime-CRITICAL **: file gobject.c: line 588 (g_object_new): assertion `G_TYPE_IS_OBJECT (object_type)' failed Falha de segmenta=E7=E3o (core dumped) << Portuguese =3D Segmentation fault (core dumped) Where's the problem ? I must modify my application (made in Gtk1.2.10) to run in gtk1.3 ? ps: please note the line in Makefile (line 139) is original line, and line above is modified by me. Thanks in advance Flavio Alberto --=-VE59CUR5uqi/Gdat/QKL Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile Content-ID: 1012832202.1465.2.camel@flavio.maqplas Content-Transfer-Encoding: 7bit # Generated automatically from Makefile.in by configure. # Makefile.in generated automatically by automake 1.4a from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. SHELL = /bin/sh srcdir = . top_srcdir = .. prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin libexecdir = ${exec_prefix}/libexec datadir = ${prefix}/share sysconfdir = ${prefix}/etc sharedstatedir = ${prefix}/com localstatedir = ${prefix}/var libdir = ${exec_prefix}/lib infodir = ${prefix}/info mandir = ${prefix}/man includedir = ${prefix}/include oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/ihm_princ pkglibdir = $(libdir)/ihm_princ pkgincludedir = $(includedir)/ihm_princ top_builddir = .. ACLOCAL = aclocal -I macros AUTOCONF = autoconf AUTOMAKE = automake AUTOHEADER = autoheader INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL_PROGRAM} INSTALL_STRIP_FLAG = transform = s,x,x, NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_alias = i686-pc-linux host_triplet = i686-pc-linux-gnu BUILD_INCLUDED_LIBINTL = no CATALOGS = CATOBJEXT = .gmo CC = gcc DATADIRNAME = share GENCAT = gencat GLIBC21 = yes GMOFILES = GMSGFMT = /usr/bin/msgfmt GNOMEGNORBA_LIBS = -rdynamic -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOMEUI_LIBS = -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOME_APPLETS_LIBS = GNOME_CAPPLET_LIBS = GNOME_CONFIG = /usr/bin/gnome-config GNOME_DOCKLETS_LIBS = GNOME_INCLUDEDIR = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNOME_LIBDIR = -rdynamic -L/usr/lib -L/usr/X11R6/lib GNOME_LIBS = -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNORBA_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNORBA_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GTKXMHTML_LIBS = -rdynamic -lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm GTK_CFLAGS = -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include GTK_CONFIG = /usr/bin/gtk-config GTK_LIBS = -lSM -lICE -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm INSTOBJEXT = .mo INTLBISON = bison INTLLIBS = INTLOBJS = INTL_LIBTOOL_SUFFIX_PREFIX = LIBICONV = MAKEINFO = makeinfo MKINSTALLDIRS = ./mkinstalldirs MSGFMT = /usr/bin/msgfmt ORBIT_CFLAGS = -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include ORBIT_CONFIG = /usr/bin/orbit-config ORBIT_IDL = /usr/bin/orbit-idl ORBIT_LIBS = -L/usr/lib -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lglib -lnsl -lm PACKAGE = ihm_princ POFILES = POSUB = po PTHREAD_LIB = -lpthread RANLIB = ranlib USE_INCLUDED_LIBINTL = no USE_NLS = yes VERSION = 0.1 XPM_LIBS = -lXpm ZVT_LIBS = -rdynamic -lzvt -lutil -lSM -lICE -lgdk_imlib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm cflags_set = yes cxxflags_set = @cxxflags_set@ INCLUDES = -I$(top_srcdir)/intl $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = main.c support.c support.h interface.c interface.h callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = PROGRAMS = $(bin_PROGRAMS) DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. CPPFLAGS = -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include LDFLAGS = LIBS = ihm_princ_OBJECTS = main.o support.o interface.o callbacks.o auxiliar.o parametro.o ihm_princ_DEPENDENCIES = ihm_princ_LDFLAGS = CFLAGS = -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 #CFLAGS = -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best DEP_FILES = .deps/callbacks.P .deps/interface.P .deps/main.P \ .deps/support.P SOURCES = $(ihm_princ_SOURCES) OBJECTS = $(ihm_princ_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) distclean-binPROGRAMS: maintainer-clean-binPROGRAMS: install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) list='$(bin_PROGRAMS)'; for p in $$list; do \ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: ihm_princ: $(ihm_princ_OBJECTS) $(ihm_princ_DEPENDENCIES) @rm -f ihm_princ $(LINK) $(ihm_princ_LDFLAGS) $(ihm_princ_OBJECTS) $(ihm_princ_LDADD) $(LIBS) tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = src distdir: $(DISTFILES) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(top_distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; \ cd $(top_srcdir) \ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) -include $(DEP_FILES) mostlyclean-depend: clean-depend: distclean-depend: -rm -rf .deps maintainer-clean-depend: %.o: %.c @echo '$(COMPILE) -c $<'; \ $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.lo: %.c @echo '$(LTCOMPILE) -c $<'; \ $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ < .deps/$(*F).pp > .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-binPROGRAMS install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-binPROGRAMS uninstall: uninstall-am all-am: Makefile $(PROGRAMS) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ mostlyclean-tags mostlyclean-depend mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \ distclean-depend distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-tags \ maintainer-clean-depend maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile tags mostlyclean-tags distclean-tags \ clean-tags maintainer-clean-tags distdir mostlyclean-depend \ distclean-depend clean-depend maintainer-clean-depend info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: --=-VE59CUR5uqi/Gdat/QKL-- From leidola@newcon.de Mon Feb 4 09:46:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (mail-1.newcon.de [195.145.56.9]) by mail.gnome.org (Postfix) with ESMTP id 61F9018D2A for ; Mon, 4 Feb 2002 09:46:15 -0500 (EST) Received: from [213.70.108.72] ([213.70.108.72]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id PAA23432; Mon, 4 Feb 2002 15:46:07 +0100 Subject: Re: How to compile in gtk+ 1.3 From: Olaf Leidinger To: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares , GTK Mailing List , FREE PASCAL list In-Reply-To: <1012823766.1474.1.camel@flavio.maqplas> References: <1012823766.1474.1.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <1012834104.899.82.camel@attic> Mime-Version: 1.0 X-Mailer: Evolution/0.12 (Preview Release) Date: 04 Feb 2002 15:48:35 +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 04 Feb 2002 09:56:05 -0200 schrieb Fl=E1vio Alberto Lopes Soares: > Hello all, > I downloaded the GTK+ 1.3 (rpm packages) and make upgrade, aparently all > OK, > now I want to compile an aplication that I was making with gtk+1.2.10 > (the interface was generated by Glade), > but it always compile in gtk+1.2, I see in Makefile that it make many > references to gtk+1.2, what I has to change to compile > in gtk+1.3 ? >=20 > Thanks in advance >=20 > Flavio Alberto >=20 > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list >=20 Hello! You might hack the configure script in the way that it doesn't look for gtk and glib and add `pkg-config gtk+-2.0 --cflags` to the CFLAGS environment variable and 'pkg-config gtk+-2.0 --libs` to LDFLAGS. A (perhaps) more comfortable way is to change the gtk-config and glib-config file for the moment. Look for a line like: echo -L/usr/X11R6/lib -lgtk -lgdk $my_glib_libs -lXi ... comment this line with a # and write the following: echo `pkg-config gtk+-2.0 --libs` Look for the line with the cflags and change it to echo `pkg-config gtk+-2.0 --cflags` And finally look for a line that sais --version) echo 1.2.10 =20 or whatever and note down your version here. Well, this all is just a really dirty hack but it works. I'd love to see a much simpler way (let's say changing to config file that it looks for GTK2 directly - but I'm not famillar with the config-file). Good luck with your work, Ciao Olaf From leidola@newcon.de Mon Feb 4 10:23:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (mail-1.newcon.de [195.145.56.9]) by mail.gnome.org (Postfix) with ESMTP id 8538C189D1 for ; Mon, 4 Feb 2002 10:23:36 -0500 (EST) Received: from [213.70.108.73] ([213.70.108.73]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id QAA24379; Mon, 4 Feb 2002 16:23:31 +0100 Subject: Re: Paned questions From: Olaf Leidinger To: rhfreeman , GTK Mailing List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1012836355.901.104.camel@attic> Mime-Version: 1.0 X-Mailer: Evolution/0.12 (Preview Release) Date: 04 Feb 2002 16:25:58 +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 04 Feb 2002 03:54:58 -0700 schrieb rhfreeman: > Hi folks, > > I'm wanting to use the paned widgets to re-size my current widgets but I'm a > bit unsure about how it works. > > My program is quite simple. It has a window with a vbox in it. It keeps > adding hboxes to the vbox like this: > > (no hboxes) > > +------------+ > | | > | | > | | > | | > | | > +------------+ > > +------------+ > | | > | | > | (hbox) | > | | > | | > +------------+ > > +------------+ > | hbox 1 | > | | > |------------| > | hbox 2 | > | | > +------------+ > > +------------+ > | hbox 1 | > |------------| > | hbox 2 | > |------------| > | hbox 3 | > +------------+ > > I want a paned widget on the separator between hboxes. So I want a paned > widget controlling hbox1/hbox2 and another one controlling hbox2/hbox3. > > So my questions are: > > 1. Can a widget have multiple paned widgets attached to it? > 2. Can a paned widget control any widget type? As most example code I've > seen seems to be re-sizing a frame. > > Thanks!!! > > Rich > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hello! As I understood it a paned widget has two containers where you can add widgets, a left side and a right one (or an upper and a lower). +--------------+ | | | container 1 | | | +=== gutter ===+ | | | container 2 | | | +--------------+ You can surely make a hbox to be child of a container. And I think you don't have to set all the two childs of a paned widget so you might create the following combination: +----vbox----------+ | +- hpaned 1----+ | | | | | | | child 1 | | | | | | | +=== gutter ===+ | | | | | | | child 2 | | | | | | | +--------------+ | | +- hpaned 2 ---+ | | | | | | | empty/not | | | | visible | | | | | | | +=== gutter ===+ | | | | | | | child 2 | | | | | | | +--------------+ | +------------------+ or something similar. Ciao Olaf From lapenta_jm@yahoo.com Mon Feb 4 11:12:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14004.mail.yahoo.com (web14004.mail.yahoo.com [216.136.175.120]) by mail.gnome.org (Postfix) with SMTP id 5AD2F18154 for ; Mon, 4 Feb 2002 11:12:12 -0500 (EST) Message-ID: <20020204161211.13516.qmail@web14004.mail.yahoo.com> Received: from [129.55.200.20] by web14004.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 08:12:11 PST Date: Mon, 4 Feb 2002 08:12:11 -0800 (PST) From: Jason LaPenta Subject: clist : lines truncated using clist_append To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm using gtk_clist_append( (GtkCList *)dsp_message_clist, data ); and my data, which is about 58 chars long, get truncated to about 30 chars when I add it to the list. I've tried making the column wider with gtk_clist_set_column_width( (GtkCList *)dsp_message_clist, 1, width * 2); But now, even thought there's tons of room, the text still get truncated. Do you know what I can do to fix this problem? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From hp@redhat.com Mon Feb 4 11:32:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 9FEDE181BF for ; Mon, 4 Feb 2002 11:32:48 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g14GWYU29668; Mon, 4 Feb 2002 11:32:34 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "satyajit kanungo" Cc: Subject: Re: gtk+1.3 library References: From: Havoc Pennington Date: 04 Feb 2002 11:32:34 -0500 In-Reply-To: Message-ID: Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "satyajit kanungo" writes: > I found the gtk sources still using deprecated features such as > GtkTypeInfo,GtkType variables, gtk_signal_new etc. Are there any > plans to removed these features in future versions. > > I am thinking of making the changes to remove the above deprecated > features from the library. Any suggestions ?? I believe there are outstanding patches in bugzilla related to this. I could be wrong. But you probably want to try to find them before working on it. We do want to remove them eventually, but it isn't as high a priority as other things. Havoc From hp@redhat.com Mon Feb 4 11:36:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id E96E418E6B for ; Mon, 4 Feb 2002 11:35:59 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g14GZxu29673; Mon, 4 Feb 2002 11:35:59 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: gtk-list Subject: Re: Run time error in gtk1.3 application References: <1012833399.1475.3.camel@flavio.maqplas> From: Havoc Pennington Date: 04 Feb 2002 11:35:59 -0500 In-Reply-To: <1012833399.1475.3.camel@flavio.maqplas> Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Fl=E1vio Alberto Lopes Soares writes: >=20 > I make some modifications in my Makefile (attached in mail) in order > to compile my application in gtk+1.3 (gtk+2.0), in compilation I get > this messages (was several similar messages to each file of my > application, I put only piece of messages) : Your Makefile is all screwed up somehow. Note that you're getting GTK 1.2 flags in there, and GNOME 1.x. You need GNOME 2 to use GTK 2. Show us the Makefile.am, rather than the Makefile. Havoc From hummaida@cs.man.ac.uk Mon Feb 4 12:47:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mail.gnome.org (Postfix) with ESMTP id 7E2DF18402 for ; Mon, 4 Feb 2002 12:47:05 -0500 (EST) Received: from cs.man.ac.uk ([62.252.236.59]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020204174703.IWAG7000.mta06-svc.ntlworld.com@cs.man.ac.uk> for ; Mon, 4 Feb 2002 17:47:03 +0000 Message-ID: <3C5EC950.8070501@cs.man.ac.uk> Date: Mon, 04 Feb 2002 17:48:00 +0000 From: A R Hummaida User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: fileselection question Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dear all well this question is kind of related to the file selection widget. i have the following GList *my_selection_list; //global // call back for ok button on file selection void on_file_selection_ok_button_clicked (GtkWidget * w, gpointer user_data) { . . gchar *file_selected ; file_selected = gtk_file_selection_get_filename (GTK_FILE_SELECTION (file_selection_widget)); . . . if (g_list_find(my_selection_list,file_selected)==NULL) { my_selection_list=g_list_append (my_selection_list,file_selected); g_print("file selected is %s\n",file_selected); . . } } so i want a file to be selected only once.this works the first time as the list is empty but next tries don't print the file name even though a different file is selected. i have tried many of these glist functions to no avail. please help Thanks From hunchback@netcabo.pt Mon Feb 4 12:59:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id BCE0D18794 for ; Mon, 4 Feb 2002 12:59:50 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Mon, 4 Feb 2002 17:54:17 +0000 Content-Class: urn:content-classes:message From: To: "gtk-list" , "Flávio Alberto Lopes Soares" Subject: RE: Run time error in gtk1.3 application Date: Mon, 4 Feb 2002 17:54:17 -0000 Message-ID: <21f601c1ada4$f6f88b10$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcGtpPb4SiWHvBmIEdaCdgBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, >gcc: -lgtk-x11-1.3: linker input file unused since linking not donegcc: >-lgdk-x11-1.3: linker input file unused since linking not donegcc: = -lXi: >linker input file unused since linking not done >gcc: -lgdk_pixbuf-1.3: linker input file unused since linking not done >gcc: -lm: linker input file unused since linking not done >gcc: -lpangox: linker input file unused since linking not done >gcc: -lpangoxft: linker input file unused since linking not done >gcc: -lXft: linker input file unused since linking not done >gcc: -lXrender: linker input file unused since linking not done >gcc: -lXext: linker input file unused since linking not done >gcc: -lX11: linker input file unused since linking not done >gcc: -lfreetype: linker input file unused since linking not done >gcc: -lpango: linker input file unused since linking not done >gcc: -latk: linker input file unused since linking not done >gcc: -lgobject-1.3: linker input file unused since linking not donegcc: >-lgmodule-1.3: linker input file unused since linking not donegcc: = -ldl: >linker input file unused since linking not done >gcc: -lglib-1.3: linker input file unused since linking not done this happens because you're trying to link a file with the gtk libs that = doesn't uses them. your Makefile may not be correct... >And when I ran the compiled program, this crashed and emited these >messages: >(process:5172): GRuntime-CRITICAL **: >gtype.c:1762:g_type_register_static(): initialization assertion failed, >use g_type_init() prior to this function >(process:5172): GRuntime-CRITICAL **: file gobject.c: line 588 >(g_object_new): assertion `G_TYPE_IS_OBJECT (object_type)' failed >Falha de segmenta=E7=E3o (core dumped) << Portuguese =3D Segmentation = fault >(core dumped) as for this i don't know... i haven't worked with 1.3 (and i haven't = seen this error on 1.2). Cumprimentos, Nuno Afonso From John.Cupitt@ng-london.org.uk Mon Feb 4 13:03:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 3B104188F8 for ; Mon, 4 Feb 2002 13:03:16 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HKJ9>; Mon, 4 Feb 2002 18:03:15 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HKJ7; Mon, 4 Feb 2002 18:03:03 -0000 Message-ID: <3C5EC997.3030504@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: hummaida@cs.man.ac.uk Cc: gtk-list@gnome.org Subject: Re: fileselection question Date: Mon, 4 Feb 2002 17:49:11 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I think you're comparing pointers when you should be comparing strings. Add the selected filename to your list with my_selection_list = g_list_prepend( my_selection_list, g_strdup( file_selected ) ); (prepend is faster than append, and you need to strdup pointers you get back from _get_filename()) Test for is-filename-there-already by looping along your list and strcmp()ing each element. You can use g_list_find_custom for this: if( g_list_find_custom( my_selection_list, file_selected, strcmp ) ) { HTH, John A R Hummaida wrote: > i have the following > > > GList *my_selection_list; //global > > // call back for ok button on file selection > > void on_file_selection_ok_button_clicked (GtkWidget * w, gpointer > user_data) > { > . > . > gchar *file_selected ; > > file_selected = > gtk_file_selection_get_filename (GTK_FILE_SELECTION > (file_selection_widget)); > . > . > . > if (g_list_find(my_selection_list,file_selected)==NULL) > { my_selection_list=g_list_append > (my_selection_list,file_selected); > g_print("file selected is %s\n",file_selected); > . > . > > } > } > > so i want a file to be selected only once.this works the first time as > the list is empty but next tries don't > print the file name even though a different file is selected. i have > tried many of these glist functions to no avail. please help ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From kasonhuang@kinposh.com.cn Mon Feb 4 19:24:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 0ED63180E3 for ; Mon, 4 Feb 2002 19:24:22 -0500 (EST) Subject: RE: [INIMSS] How can I change the text of a button. Date: Tue, 5 Feb 2002 08:24:08 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F821FF5DB@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: [INIMSS] How can I change the text of a button. Thread-Index: AcGtbT2hiiHrqIWgRQC0AJgLsj1onQAbIgDQ From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: "Dino Cherian K" Cc: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi Dino: you can try gtk_label_set_text();and you must add the label to the = button container. eg: gtk_label_set_text(GTK_LABEL(m_pLabel),m_LabelText); if any question about it ,you could ask me. kason -----Original Message----- From: Dino Cherian K [mailto:inimss@yahoo.com] Sent: Monday, February 04, 2002 7:14 PM To: gtk-list; gtk-app-devel Subject: [INIMSS] How can I change the text of a button. Hi Any body please help me in finding a way to change the text of a GtkButton. Thanks Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From kasonhuang@kinposh.com.cn Mon Feb 4 19:49:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wilber.gimp.org (graft.XCF.Berkeley.EDU [128.32.247.248]) by mail.gnome.org (Postfix) with ESMTP id A100618B60 for ; Mon, 4 Feb 2002 19:49:23 -0500 (EST) Received: from [210.78.17.12] (helo=kes01.kinposh.com.cn) by wilber.gimp.org with esmtp (Exim 3.12 #1 (Debian)) id 16XtnW-0004UT-00 for ; Mon, 04 Feb 2002 16:49:22 -0800 Subject: SOS about gtk xim? MIME-Version: 1.0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable Date: Tue, 5 Feb 2002 08:49:09 +0800 Message-ID: <92CD479384374A439EFA0077E7C50F821FF622@kes01.kinposh.com.cn> content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SOS about gtk xim? Thread-Index: AcGt3unVzctprRoPEda2uQCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SOS about gtk xim?

hi all:
  I have a = problem about gtk xim. Now I start a program with xim by handmake way, = then I can start kinput2; but if I start it using a shell, I can't start = kinput2. I don't know why? please help me!

Thanks a lot!
kason

From Volkan_Arslan@gmx.net Tue Feb 5 04:39:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id AD8AD188FA for ; Tue, 5 Feb 2002 04:39:40 -0500 (EST) Received: (qmail 21704 invoked by uid 0); 5 Feb 2002 09:39:39 -0000 Received: from ru-pc11.inf.ethz.ch (HELO gmx.net) (129.132.12.191) by mail.gmx.net (mp009-rz3) with SMTP; 5 Feb 2002 09:39:39 -0000 Message-ID: <3C5FA856.F49CECF1@gmx.net> Date: Tue, 05 Feb 2002 10:39:34 +0100 From: Volkan Arslan X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Release date of GTK+ 2.0 ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, does someone know, when GTK+ 2.0 will be released ? I have looked at www.gtk.org, but couldn't find anything regarding the release date of GTK+ 2.0. Best regards, Volkan Arslan From root@localhost.localdomain Tue Feb 5 07:28:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.225.173]) by mail.gnome.org (Postfix) with ESMTP id 0FF5D18DF0 for ; Tue, 5 Feb 2002 07:28:02 -0500 (EST) Received: (from root@localhost) by localhost.localdomain (8.11.2/8.11.2) id g15CLpF01961; Tue, 5 Feb 2002 17:51:51 +0530 Date: Tue, 5 Feb 2002 17:51:51 +0530 Message-Id: <200202051221.g15CLpF01961@localhost.localdomain> To: gtk-list@gnome.org From: Dino Subject: [INIMSS] How to avoid focusing on CList column titles. Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, How can I avoid the focusing of the column titles in a CList when i go thru the widgets in a window using the TAB key. Thank You Dino CK From flavio@maqplas.com.br Tue Feb 5 08:22:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id D5A8818180 for ; Tue, 5 Feb 2002 08:22:15 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g15DM7wc031623; Tue, 5 Feb 2002 11:22:08 -0200 (BRST) Subject: Re: Run time error in gtk1.3 application From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Havoc Pennington Cc: gtk-list Content-Type: multipart/mixed; boundary="=-CYk0BJZM1LkgXCEhrsBr" X-Mailer: Evolution/0.10 (Preview Release) Date: 05 Feb 2002 11:18:03 -0200 Message-Id: <1012915087.1142.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello all, I was writing this message bellow when my mail-server crash yesterday, then I attempt to run autogen.sh and my application compileted normally & run normally, I see the Makefile and found some references to gtk-1.2, gtk-2.0, glib-1.2, glib-2.0, I don't know what's the diferences behind this new Makefile (made by autogen.sh) and old (compile but not run), I suspect that my application compiled in gtk-1.2 and not in gtk-2.0, but I don't know to say. If anyone has a clue I thanks very much. Thanks in advance Flavio Alberto=20 ******************************************************** ORIGINAL MAIL ***************************************************************************= ** I made the changes that Olaf sugests and now doesn't show "stranger" messages in compilation, but the resulting program continues with the same crash when I run it. The Makefile has many references to glib-1.2 & gtk-1.2 (old) and I don't know how to change these files, if I change 1.2 to 2.0 the errors are this :=20 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-2.0 -I/usr/lib/glib/include -I/usr/include/gtk-2.0 -I/usr/X11R6/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -Wall -Wunused -c main.c In file included from /usr/include/libgnomeui/libgnomeui.h:19, from /usr/include/gnome.h:17, from main.c:10: /usr/include/libgnomeui/gnome-canvas-image.h:15: gtk/gtkpacker.h: Arquivo ou diret=F3rio n=E3o encontrado In file included from /usr/include/libgnomeui/libgnomeui.h:24, from /usr/include/gnome.h:17, from main.c:10: /usr/include/libgnomeui/gnome-canvas-text.h:15: gtk/gtkpacker.h: Arquivo ou diret=F3rio n=E3o encontrado In file included from /usr/include/libgnomeui/libgnomeui.h:26, from /usr/include/gnome.h:17, from main.c:10: /usr/include/libgnomeui/gnome-canvas-widget.h:15: gtk/gtkpacker.h: File not found make: *** [main.o] Error 1 Really, the file gtkpacker.h doesn't exists inside gtk-2.0, I have to change some thing in my program ? I will send the glib-config & gtk-config that I edited how sugests Olaf and the Makefile.am & Makefile that ./configure script generated; Excuse-me for send so many files but really I don't know what to do. Thanks for all help Flavio Alberto Em 04 Feb 2002 11:35:59 -0500, Havoc Pennington escreveu: >=20 > Fl=E1vio Alberto Lopes Soares writes: > >=20 > > I make some modifications in my Makefile (attached in mail) in order > > to compile my application in gtk+1.3 (gtk+2.0), in compilation I get > > this messages (was several similar messages to each file of my > > application, I put only piece of messages) : >=20 > Your Makefile is all screwed up somehow. Note that you're getting GTK > 1.2 flags in there, and GNOME 1.x. You need GNOME 2 to use GTK 2. >=20 > Show us the Makefile.am, rather than the Makefile. >=20 > Havoc --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-sh Content-Disposition: attachment; filename=glib-config Content-ID: 1012846901.13020.0.camel@flavio.maqplas Content-Transfer-Encoding: 7bit #!/bin/sh prefix=/usr exec_prefix=${prefix} exec_prefix_set=no usage() { cat <&2 fi lib_glib=yes while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg if test $exec_prefix_set = no ; then exec_prefix=$optarg fi ;; --prefix) echo_prefix=yes ;; --exec-prefix=*) exec_prefix=$optarg exec_prefix_set=yes ;; --exec-prefix) echo_exec_prefix=yes ;; --version) echo 1.3.7 exit 0 ;; --cflags) echo_cflags=yes ;; --libs) echo_libs=yes ;; glib) lib_glib=yes ;; gmodule) lib_gmodule=yes ;; gthread) lib_gthread=yes ;; *) usage 1 1>&2 ;; esac shift done if test "$echo_prefix" = "yes"; then echo $prefix fi if test "$echo_exec_prefix" = "yes"; then echo $exec_prefix fi if test "$echo_cflags" = "yes"; then cflags="" if test "$lib_gthread" = "yes"; then cflags="$cflags -D_REENTRANT" fi echo -I${prefix}/include/glib-2.0 -I/usr/lib/glib/include $includes $cflags fi if test "$echo_libs" = "yes"; then libsp="" libsa="" if test "$lib_glib" = "yes"; then libsp="$libsp -lglib" fi if test "$lib_gthread" = "yes"; then libsp="-lgthread $libsp" libsa="$libsa -lpthread" fi if test "$lib_gmodule" = "yes"; then libsp="-rdynamic -lgmodule $libsp" libsa="$libsa -ldl" fi echo -L/usr/lib $libsp $libsa fi --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile Content-ID: 1012846941.13020.2.camel@flavio.maqplas Content-Transfer-Encoding: 7bit # Generated automatically from Makefile.in by configure. # Makefile.in generated automatically by automake 1.4a from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. SHELL = /bin/sh srcdir = . top_srcdir = .. prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin libexecdir = ${exec_prefix}/libexec datadir = ${prefix}/share sysconfdir = ${prefix}/etc sharedstatedir = ${prefix}/com localstatedir = ${prefix}/var libdir = ${exec_prefix}/lib infodir = ${prefix}/info mandir = ${prefix}/man includedir = ${prefix}/include oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/ihm_princ pkglibdir = $(libdir)/ihm_princ pkgincludedir = $(includedir)/ihm_princ top_builddir = .. ACLOCAL = aclocal -I macros AUTOCONF = autoconf AUTOMAKE = automake AUTOHEADER = autoheader INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL_PROGRAM} INSTALL_STRIP_FLAG = transform = s,x,x, NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_alias = i686-pc-linux host_triplet = i686-pc-linux-gnu BUILD_INCLUDED_LIBINTL = no CATALOGS = CATOBJEXT = .gmo CC = gcc DATADIRNAME = share GENCAT = gencat GLIBC21 = yes GMOFILES = GMSGFMT = /usr/bin/msgfmt GNOMEGNORBA_LIBS = -rdynamic -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOMEUI_LIBS = -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOME_APPLETS_LIBS = GNOME_CAPPLET_LIBS = GNOME_CONFIG = /usr/bin/gnome-config GNOME_DOCKLETS_LIBS = GNOME_INCLUDEDIR = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNOME_LIBDIR = -rdynamic -L/usr/lib -L/usr/X11R6/lib GNOME_LIBS = -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNORBA_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNORBA_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GTKXMHTML_LIBS = -rdynamic -lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 GTK_CONFIG = /usr/bin/gtk-config GTK_LIBS = -lSM -lICE -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 INSTOBJEXT = .mo INTLBISON = bison INTLLIBS = INTLOBJS = INTL_LIBTOOL_SUFFIX_PREFIX = LIBICONV = MAKEINFO = makeinfo MKINSTALLDIRS = ./mkinstalldirs MSGFMT = /usr/bin/msgfmt ORBIT_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib/include -I/usr/include ORBIT_CONFIG = /usr/bin/orbit-config ORBIT_IDL = /usr/bin/orbit-idl ORBIT_LIBS = -L/usr/lib -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lglib -lnsl -lm PACKAGE = ihm_princ POFILES = POSUB = po PTHREAD_LIB = -lpthread RANLIB = ranlib USE_INCLUDED_LIBINTL = no USE_NLS = yes VERSION = 0.1 XPM_LIBS = -lXpm ZVT_LIBS = -rdynamic -lzvt -lutil -lSM -lICE -lgdk_imlib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm cflags_set = yes cxxflags_set = @cxxflags_set@ INCLUDES = -I$(top_srcdir)/intl $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = main.c support.c support.h interface.c interface.h callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = PROGRAMS = $(bin_PROGRAMS) DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. CPPFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 LDFLAGS = -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 LIBS = ihm_princ_OBJECTS = main.o support.o interface.o callbacks.o auxiliar.o \ parametro.o ihm_princ_DEPENDENCIES = ihm_princ_LDFLAGS = CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -Wall -Wunused COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best DEP_FILES = .deps/auxiliar.P .deps/callbacks.P .deps/interface.P \ .deps/main.P .deps/parametro.P .deps/support.P SOURCES = $(ihm_princ_SOURCES) OBJECTS = $(ihm_princ_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) distclean-binPROGRAMS: maintainer-clean-binPROGRAMS: install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) list='$(bin_PROGRAMS)'; for p in $$list; do \ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: ihm_princ: $(ihm_princ_OBJECTS) $(ihm_princ_DEPENDENCIES) @rm -f ihm_princ $(LINK) $(ihm_princ_LDFLAGS) $(ihm_princ_OBJECTS) $(ihm_princ_LDADD) $(LIBS) tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = src distdir: $(DISTFILES) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(top_distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; \ cd $(top_srcdir) \ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) -include $(DEP_FILES) mostlyclean-depend: clean-depend: distclean-depend: -rm -rf .deps maintainer-clean-depend: %.o: %.c @echo '$(COMPILE) -c $<'; \ $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.lo: %.c @echo '$(LTCOMPILE) -c $<'; \ $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ < .deps/$(*F).pp > .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-binPROGRAMS install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-binPROGRAMS uninstall: uninstall-am all-am: Makefile $(PROGRAMS) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ mostlyclean-tags mostlyclean-depend mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \ distclean-depend distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-tags \ maintainer-clean-depend maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile tags mostlyclean-tags distclean-tags \ clean-tags maintainer-clean-tags distdir mostlyclean-depend \ distclean-depend clean-depend maintainer-clean-depend info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile.am Content-ID: 1012846945.13020.3.camel@flavio.maqplas Content-Transfer-Encoding: 7bit ## Process this file with automake to produce Makefile.in INCLUDES = \ -I$(top_srcdir)/intl \ $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = \ main.c \ support.c support.h \ interface.c interface.h \ callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-sh Content-Disposition: attachment; filename=gtk-config Content-ID: 1012847026.13020.4.camel@flavio.maqplas Content-Transfer-Encoding: 7bit #!/bin/sh glib_libs="-L/usr/lib -rdynamic -lgmodule -lglib -ldl" glib_cflags="-I/usr/include/glib-2.0 -I/usr/lib/glib/include" glib_thread_libs="-L/usr/lib -rdynamic -lgmodule -lgthread -lglib -lpthread -ldl" glib_thread_cflags="-I/usr/include/glib-2.0 -I/usr/lib/glib/include -D_REENTRANT" prefix=/usr exec_prefix=/usr exec_prefix_set=no usage() { cat <&2 fi lib_gtk=yes while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg if test $exec_prefix_set = no ; then exec_prefix=$optarg fi ;; --prefix) echo_prefix=yes ;; --exec-prefix=*) exec_prefix=$optarg exec_prefix_set=yes ;; --exec-prefix) echo_exec_prefix=yes ;; --version) echo 1.3.7 ;; --cflags) echo_cflags=yes ;; --libs) echo_libs=yes ;; gtk) lib_gtk=yes ;; gthread) lib_gthread=yes ;; *) usage 1 1>&2 ;; esac shift done if test "$echo_prefix" = "yes"; then echo $prefix fi if test "$echo_exec_prefix" = "yes"; then echo $exec_prefix fi if test "$lib_gthread" = "yes"; then glib_cflags="$glib_thread_cflags" glib_libs="$glib_thread_libs" fi if test "$echo_cflags" = "yes"; then # echo -I/usr/include/gtk-1.2 $glib_cflags -I/usr/X11R6/include echo `pkg-config gtk+-2.0 --cflags` fi if test "$echo_libs" = "yes"; then my_glib_libs= libdirs=-L/usr/lib for i in $glib_libs ; do if test $i != -L/usr/lib ; then if test -z "$my_glib_libs" ; then my_glib_libs="$i" else my_glib_libs="$my_glib_libs $i" fi fi done # echo $libdirs -L/usr/X11R6/lib -lgtk -lgdk $my_glib_libs -lXext -lX11 -lm echo `pkg-config gtk+-2.0 --libs` fi --=-CYk0BJZM1LkgXCEhrsBr Content-ID: 1012914763.1129.0.camel@flavio.maqplas Content-Description: Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile_new Content-Transfer-Encoding: 7bit # Generated automatically from Makefile.in by configure. # Makefile.in generated automatically by automake 1.4a from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. SHELL = /bin/sh srcdir = . top_srcdir = .. prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin libexecdir = ${exec_prefix}/libexec datadir = ${prefix}/share sysconfdir = ${prefix}/etc sharedstatedir = ${prefix}/com localstatedir = ${prefix}/var libdir = ${exec_prefix}/lib infodir = ${prefix}/info mandir = ${prefix}/man includedir = ${prefix}/include oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/ihm_princ pkglibdir = $(libdir)/ihm_princ pkgincludedir = $(includedir)/ihm_princ top_builddir = .. ACLOCAL = aclocal -I macros AUTOCONF = autoconf AUTOMAKE = automake AUTOHEADER = autoheader INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL_PROGRAM} INSTALL_STRIP_FLAG = transform = s,x,x, NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_alias = i686-pc-linux host_triplet = i686-pc-linux-gnu BUILD_INCLUDED_LIBINTL = no CATALOGS = CATOBJEXT = .gmo CC = gcc DATADIRNAME = share GENCAT = gencat GLIBC21 = yes GMOFILES = GMSGFMT = /usr/bin/msgfmt GNOMEGNORBA_LIBS = -rdynamic -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOMEUI_LIBS = -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOME_APPLETS_LIBS = GNOME_CAPPLET_LIBS = GNOME_CONFIG = /usr/bin/gnome-config GNOME_DOCKLETS_LIBS = GNOME_INCLUDEDIR = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNOME_LIBDIR = -rdynamic -L/usr/lib -L/usr/X11R6/lib GNOME_LIBS = -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNORBA_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNORBA_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GTKXMHTML_LIBS = -rdynamic -lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 GTK_CONFIG = /usr/bin/gtk-config GTK_LIBS = -lSM -lICE -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 INSTOBJEXT = .mo INTLBISON = bison INTLLIBS = INTLOBJS = INTL_LIBTOOL_SUFFIX_PREFIX = LIBICONV = MAKEINFO = makeinfo MKINSTALLDIRS = ./mkinstalldirs MSGFMT = /usr/bin/msgfmt ORBIT_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib/include -I/usr/include ORBIT_CONFIG = /usr/bin/orbit-config ORBIT_IDL = /usr/bin/orbit-idl ORBIT_LIBS = -L/usr/lib -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lglib -lnsl -lm PACKAGE = ihm_princ POFILES = POSUB = po PTHREAD_LIB = -lpthread RANLIB = ranlib USE_INCLUDED_LIBINTL = no USE_NLS = yes VERSION = 0.1 XPM_LIBS = -lXpm ZVT_LIBS = -rdynamic -lzvt -lutil -lSM -lICE -lgdk_imlib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm cflags_set = yes cxxflags_set = @cxxflags_set@ INCLUDES = -I$(top_srcdir)/intl $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = main.c support.c support.h interface.c interface.h callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = PROGRAMS = $(bin_PROGRAMS) DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. CPPFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 LDFLAGS = LIBS = ihm_princ_OBJECTS = main.o support.o interface.o callbacks.o auxiliar.o \ parametro.o ihm_princ_DEPENDENCIES = ihm_princ_LDFLAGS = CFLAGS = -g -O2 -Wall -Wunused COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best DEP_FILES = .deps/auxiliar.P .deps/callbacks.P .deps/interface.P \ .deps/main.P .deps/parametro.P .deps/support.P SOURCES = $(ihm_princ_SOURCES) OBJECTS = $(ihm_princ_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) distclean-binPROGRAMS: maintainer-clean-binPROGRAMS: install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) list='$(bin_PROGRAMS)'; for p in $$list; do \ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: ihm_princ: $(ihm_princ_OBJECTS) $(ihm_princ_DEPENDENCIES) @rm -f ihm_princ $(LINK) $(ihm_princ_LDFLAGS) $(ihm_princ_OBJECTS) $(ihm_princ_LDADD) $(LIBS) tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = src distdir: $(DISTFILES) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(top_distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; \ cd $(top_srcdir) \ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) -include $(DEP_FILES) mostlyclean-depend: clean-depend: distclean-depend: -rm -rf .deps maintainer-clean-depend: %.o: %.c @echo '$(COMPILE) -c $<'; \ $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.lo: %.c @echo '$(LTCOMPILE) -c $<'; \ $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ < .deps/$(*F).pp > .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-binPROGRAMS install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-binPROGRAMS uninstall: uninstall-am all-am: Makefile $(PROGRAMS) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ mostlyclean-tags mostlyclean-depend mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \ distclean-depend distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-tags \ maintainer-clean-depend maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile tags mostlyclean-tags distclean-tags \ clean-tags maintainer-clean-tags distdir mostlyclean-depend \ distclean-depend clean-depend maintainer-clean-depend info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: --=-CYk0BJZM1LkgXCEhrsBr-- From inimss@yahoo.com Tue Feb 5 09:03:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by mail.gnome.org (Postfix) with SMTP id 61A9918162 for ; Tue, 5 Feb 2002 09:03:38 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 5 Feb 2002 14:03:31 -0000 Message-ID: <3C5FE62B.719F9B40@yahoo.com> Date: Tue, 05 Feb 2002 19:33:24 +0530 From: Dino CK X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: [INIMSS] How to add a pixmap to a toggle button? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Anybody please help me in adding a pixmap to a toggle button. I added it from the glade interface but it is not showing up not when compiled and run, or while editing in glade. Thankyou Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From lnx1138@us.ibm.com Tue Feb 5 09:50:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.129]) by mail.gnome.org (Postfix) with ESMTP id AFDA6182EE for ; Tue, 5 Feb 2002 09:50:04 -0500 (EST) Received: from westrelay01.boulder.ibm.com (westrelay01.boulder.ibm.com [9.99.140.22]) by e31.co.us.ibm.com (8.9.3/8.9.3) with ESMTP id JAA69826 for ; Tue, 5 Feb 2002 09:46:55 -0500 Received: from chavez.austin.ibm.com (chavez.austin.ibm.com [9.53.216.228]) by westrelay01.boulder.ibm.com (8.11.1m3/NCO v5.01) with ESMTP id g15Eo3T64486 for ; Tue, 5 Feb 2002 07:50:03 -0700 Subject: Re: [INIMSS] How to avoid focusing on CList column titles. From: Luciano Chavez To: gtk-list@gnome.org In-Reply-To: <200202051221.g15CLpF01961@localhost.localdomain> References: <200202051221.g15CLpF01961@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 05 Feb 2002 08:49:49 -0600 Message-Id: <1012920590.2358.23.camel@chavez> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, 2002-02-05 at 06:21, Dino wrote: > Hi, > > How can I avoid the focusing of the column titles in a CList when i go thru the widgets in a window using the TAB key. > > Thank You > Dino CK > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list Dino, Try gtk_clist_column_titles_passive (). -- regards, Luciano Chavez lnx1138@us.ibm.com http://sf.net/projects/evms From hp@redhat.com Tue Feb 5 11:12:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 08CD918283 for ; Tue, 5 Feb 2002 11:12:02 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g15GBxY17829; Tue, 5 Feb 2002 11:11:59 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Volkan Arslan Cc: gtk-list@gnome.org Subject: Re: Release date of GTK+ 2.0 ? References: <3C5FA856.F49CECF1@gmx.net> From: Havoc Pennington Date: 05 Feb 2002 11:11:58 -0500 In-Reply-To: <3C5FA856.F49CECF1@gmx.net> Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Volkan Arslan writes: > > does someone know, when GTK+ 2.0 will be released ? I have looked at > www.gtk.org, but couldn't find anything regarding the release date of > GTK+ 2.0. > Look at developer.gnome.org/dotplan, it will be out before GNOME 2 is. Havoc From Volkan_Arslan@gmx.net Tue Feb 5 11:16:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id 5FE861841A for ; Tue, 5 Feb 2002 11:16:13 -0500 (EST) Received: (qmail 11472 invoked by uid 0); 5 Feb 2002 16:16:12 -0000 Received: from ru-pc11.inf.ethz.ch (HELO gmx.net) (129.132.12.191) by mail.gmx.net (mp011-rz3) with SMTP; 5 Feb 2002 16:16:12 -0000 Message-ID: <3C60053D.1BA7880B@gmx.net> Date: Tue, 05 Feb 2002 17:15:57 +0100 From: Volkan Arslan X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: Release date of GTK+ 2.0 ? References: <3C5FA856.F49CECF1@gmx.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Havoc, thanks for the information. Regards, Volkan Havoc Pennington wrote: > Volkan Arslan writes: > > > > does someone know, when GTK+ 2.0 will be released ? I have looked at > > www.gtk.org, but couldn't find anything regarding the release date of > > GTK+ 2.0. > > > > Look at developer.gnome.org/dotplan, it will be out before GNOME 2 is. > > Havoc From leidola@newcon.de Tue Feb 5 16:59:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (mail-1.newcon.de [195.145.56.9]) by mail.gnome.org (Postfix) with ESMTP id 8DA1B186CB for ; Tue, 5 Feb 2002 16:59:38 -0500 (EST) Received: from [213.70.108.83] ([213.70.108.83]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id WAA31184; Tue, 5 Feb 2002 22:59:30 +0100 Subject: Re: Run time error in gtk1.3 application From: Olaf Leidinger To: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares , GTK Mailing List In-Reply-To: <1012927235.1141.4.camel@flavio.maqplas> References: <1012915087.1142.1.camel@flavio.maqplas> <1012919654.791.18.camel@attic> <1012927235.1141.4.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution/0.12 (Preview Release) Date: 05 Feb 2002 23:01:55 +0100 Message-Id: <1012946521.2645.14.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Well, I think you need something like gnome 2.0.=20 Your gnome version (and mine too) uses gtk+-1.2 and when you link your app with the gnome libs it will also use gtk+-1.2 Have a look at=20 gnome-config --libs gnomeui or =09 gnome-config --libs gnome glib+-1.2 and gtk+-1.2 are always linked to your executable. But have a look at this http://developer.gnome.org/dotplan/porting/ it might help you with your work. Ciao, Olaf Am 05 Feb 2002 14:40:34 -0200 schrieb Fl=E1vio Alberto Lopes Soares: > Is true that to compile gtk+2.0 I need Gnome 2.0 ? >=20 > If true I'm crashing my head in wall ! >=20 > I need to install all gnome2.0 to correctly compile my program ????? >=20 > Thanks for all help >=20 > Flavio Alberto=20 >=20 >=20 From doc@deadvirgins.org.uk Tue Feb 5 18:55:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand3.global.net.uk (sand3.global.net.uk [195.147.246.249]) by mail.gnome.org (Postfix) with ESMTP id 81AB918D44 for ; Tue, 5 Feb 2002 18:55:33 -0500 (EST) Received: from p6ds08a06.client.global.net.uk ([195.147.216.110] helo=deadvirgins.org.uk) by sand3.global.net.uk with esmtp (Exim 3.22 #1) id 16YFQx-00073x-00 for gtk-list@gnome.org; Tue, 05 Feb 2002 23:55:32 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g15NtTs00427 for gtk-list@gnome.org; Tue, 5 Feb 2002 23:55:29 GMT Message-Id: <200202052355.g15NtTs00427@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: gtk-list@gnome.org Subject: auto repeat Date: Tue, 5 Feb 2002 23:55:28 +0000 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Can anyone give me some pointers on implementing a form of auto-repeat...? I've looked through the FAQ and the Tutorial, but it's only mentioned as a "things to add later" when talking about designing custom widgets... I don't want to add repeat to buttons or similar type widgets, but instead to a GDK drawing area. I have 'hotspots' in my drawing area that the user can click in to increment a value, and I'd like to have an autorepeat so the user doesn't wear his mouse button out.... Anyone give me any pointers...? -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From pbd@op.net Tue Feb 5 19:01:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id CCB0318D44 for ; Tue, 5 Feb 2002 19:01:08 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-43.phlpa.fast.net [209.92.96.43]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id TAA21564; Tue, 5 Feb 2002 19:01:04 -0500 (EST) Message-Id: <200202060001.TAA21564@renoir.op.net> To: doc@deadvirgins.org.uk Cc: gtk-list@gnome.org Subject: Re: auto repeat In-reply-to: Your message of "Tue, 05 Feb 2002 23:55:28 GMT." <200202052355.g15NtTs00427@deadvirgins.org.uk> Date: Tue, 05 Feb 2002 18:59:41 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > >Hi > >Can anyone give me some pointers on implementing a form of auto-repeat...? >I've looked through the FAQ and the Tutorial, but it's only mentioned as a >"things to add later" when talking about designing custom widgets... > >I don't want to add repeat to buttons or similar type widgets, but instead to >a GDK drawing area. I have 'hotspots' in my drawing area that the user can >click in to increment a value, and I'd like to have an autorepeat so the user >doesn't wear his mouse button out.... > >Anyone give me any pointers...? look at the spinbutton code, which users timers to achieve this. i have a generic C++ class called AutoSpinner which splits the spinbutton code out into a distinct object that can be used for other things besides spinbuttons. let me know if you're interested. --p From inodal@teleline.es Tue Feb 5 20:05:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp5.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 12788182D6 for ; Tue, 5 Feb 2002 20:05:25 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp5.mail.isp (Netscape Messaging Server 4.15 tsmtp5 Jul 26 2001 13:10:38) with ESMTP id GR370E00.89D for ; Wed, 6 Feb 2002 02:05:02 +0100 Message-ID: <3C608153.9050404@teleline.es> Date: Wed, 06 Feb 2002 01:05:23 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: GTK+ equivalent to Motif "XtAppProcessEvent()" Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want my aplication to stop the gtk_main() until the user press a button, which change the value of a variable called "state": while(state == EXIT_WAIT) { ....**stop gtk_main**.... } if (state == EXIT_OK) { [...] } else { [...] } ------ In Motif I used: while (state == EXIT_WAIT) XtAppProcessEvent(GB_context, XtIMAll); if (state == EXIT_OK) { [...] } else { [...] } ----- Which is the GTK+ equivalent? Thanks, Ignacio Nodal From seberino@dt092n42.san.rr.com Wed Feb 6 03:23:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 7B6DE183A4 for ; Wed, 6 Feb 2002 03:23:59 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNMx-00009n-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:23:55 -0800 Date: Wed, 6 Feb 2002 00:23:55 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How initialize pixmap to something besides NULL? Message-ID: <20020206002355.A588@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: For various reasons I want to initialize a pixmap (GdkPixmap*) to something besides NULL. Is there another quick and easy thing I can initialize pixmap object too? (There is a command to return a pointer to a new pixmap object but I did not understand the first arg.) Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 03:25:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 3142E1879A for ; Wed, 6 Feb 2002 03:25:50 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNOo-00009r-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:25:50 -0800 Date: Wed, 6 Feb 2002 00:25:50 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: What's purpose of returned boolean in expose/configure event functions? Message-ID: <20020206002550.B588@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Examples of expose and configure event functions regarding pixmaps seem to return either TRUE or FALSE. What is the meaning of this return value and the purpose? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 03:29:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id B2CCB18170 for ; Wed, 6 Feb 2002 03:29:43 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNSZ-0000AD-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:29:43 -0800 Date: Wed, 6 Feb 2002 00:29:43 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: Please explain 1st arg of configure & expose event functions... Message-ID: <20020206002943.C588@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Examples of configure and expose event functions have a mysterious GtkWidget for the first arg. I cannot seem to discern what it is. Please explain... Here is an example of an expose event function: gint middleMassTimeSeriesPlotPatch(GtkWidget* widget, GdkEventExpose* event) { gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], Pixmaps::middleMassTimeSeriesPlot, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return FALSE; }; Here is an example of a configure event function: gint middleMassTimeSeriesPlotDraw(GtkWidget* widget, GdkEventConfigure* event) { gdk_pixmap_unref(Pixmaps::middleMassTimeSeriesPlot); Pixmaps::middleMassTimeSeriesPlot = gdk_pixmap_new(widget->window, widget->allocation.width, widget->allocation.height, -1); gdk_draw_rectangle(Pixmaps::middleMassTimeSeriesPlot, widget->style->black_gc, TRUE, 0, 0, widget->allocation.width, widget->allocation.height); gdk_draw_line(Pixmaps::middleMassTimeSeriesPlot, widget->style->white_gc, 0, 0, widget->allocation.width, widget->allocation.height); gdk_draw_line(Pixmaps::middleMassTimeSeriesPlot, widget->style->white_gc, 0, widget->allocation.height, widget->allocation.width, 0); return TRUE; }; What is all this widget->allocation.height, widget->window stuff and where did it come from and why is it useful? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 03:32:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 4E82E187D4 for ; Wed, 6 Feb 2002 03:32:38 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNVO-0000Ad-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:32:38 -0800 Date: Wed, 6 Feb 2002 00:32:38 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: vertical or rotated gtk_label_new("TEXT") possible??? Message-ID: <20020206003238.A656@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible to have gtk_label_new("TEXT") be vertical or rotated??? Since one cannot put letters in a pixmap this is my only hope for vertical/sideways letters. Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From blue_pion@hotmail.com Wed Feb 6 03:42:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f62.pav1.hotmail.com [64.4.31.62]) by mail.gnome.org (Postfix) with ESMTP id 62AD518472 for ; Wed, 6 Feb 2002 03:42:53 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 6 Feb 2002 00:42:52 -0800 Received: from 137.132.3.9 by pv1fd.pav1.hotmail.msn.com with HTTP; Wed, 06 Feb 2002 08:42:52 GMT X-Originating-IP: [137.132.3.9] From: "Ricky Foo" To: gtk-list@gnome.org Subject: help! Date: Wed, 06 Feb 2002 08:42:52 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 06 Feb 2002 08:42:52.0495 (UTC) FILETIME=[43BA55F0:01C1AEEA] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I have this graph that is to show the traffic throughput. It updates every 2 secs. What should be the correct way to do this so that the axes can update dynamically, i.e it progress from right to left, showing the time. The diagram below shows the x-axis. now: ---+----+----+----+---- 20 22 24 26 later: ---+----+----+----+---- 22 24 26 28 Ricky _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From root@localhost.localdomain Wed Feb 6 04:09:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.225.173]) by mail.gnome.org (Postfix) with ESMTP id 5CE8C185B0 for ; Wed, 6 Feb 2002 04:09:15 -0500 (EST) Received: (from root@localhost) by localhost.localdomain (8.11.2/8.11.2) id g16997q03907; Wed, 6 Feb 2002 14:39:07 +0530 Date: Wed, 6 Feb 2002 14:39:07 +0530 Message-Id: <200202060909.g16997q03907@localhost.localdomain> To: gtk-list@gnome.org From: inimss@yahoo.com Subject: Problem with select_row signal of CList Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). Please help me to find out a way to make it trigger the signal. ThankYou Dino CK From root@localhost.localdomain Wed Feb 6 04:10:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.225.173]) by mail.gnome.org (Postfix) with ESMTP id 85BEC186D6 for ; Wed, 6 Feb 2002 04:10:26 -0500 (EST) Received: (from root@localhost) by localhost.localdomain (8.11.2/8.11.2) id g169A1g03915; Wed, 6 Feb 2002 14:40:01 +0530 Date: Wed, 6 Feb 2002 14:40:01 +0530 Message-Id: <200202060910.g169A1g03915@localhost.localdomain> To: gtk-list@gnome.org From: inimss@yahoo.com Subject: [INIMSS] Problem with select_row signal of CList Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). Please help me to find out a way to make it trigger the signal. ThankYou Dino CK From coframi.balr001@rd.francetelecom.com Wed Feb 6 04:53:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id 1B47418132 for ; Wed, 6 Feb 2002 04:53:42 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M416640>; Wed, 6 Feb 2002 10:52:54 +0100 Message-ID: From: zze-coframi balr001 To: "'inimss@yahoo.com'" , gtk-list@gnome.org Subject: RE: [INIMSS] Problem with select_row signal of CList Date: Wed, 6 Feb 2002 10:53:08 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-94cab528-1acd-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-94cab528-1acd-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AEF4.146151A0" ------_=_NextPart_001_01C1AEF4.146151A0 Content-Type: text/plain Hello, try GTK_SELECTION_BROWSE Isabelle -----Message d'origine----- De : inimss@yahoo.com [mailto:inimss@yahoo.com] Envoye : mercredi 6 fevrier 2002 10:10 A : gtk-list@gnome.org Objet : [INIMSS] Problem with select_row signal of CList Hi In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). Please help me to find out a way to make it trigger the signal. ThankYou Dino CK _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AEF4.146151A0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] Problem with select_row signal of CList

Hello,

try GTK_SELECTION_BROWSE

Isabelle

-----Message d'origine-----
De : inimss@yahoo.com [mailto:inimss@yahoo.com]
Envoye : mercredi 6 fevrier 2002 10:10
A : gtk-list@gnome.org
Objet : [INIMSS] Problem with select_row signal of = CList


Hi

In my gtk app I tried to handle the select_row signal = of GtkCList. When I changed the row selection with my mouse, it worked = fine, but when I do it with the keyboard's arrow keys, its not working, = ie the signal is not triggered for the keyboard. I had made the CList = Selection Mode to Single (glade term).

Please help me to find out a way to make it trigger = the signal.

ThankYou
Dino CK


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

------_=_NextPart_001_01C1AEF4.146151A0-- ------=_NextPartTM-000-94cab528-1acd-11d6-b1e5-00508b69ab48-- From switk@yahoo.com Wed Feb 6 06:20:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p100.localdomain (24-216-38-22.hsacorp.net [24.216.38.22]) by mail.gnome.org (Postfix) with ESMTP id 0DB6A18130 for ; Wed, 6 Feb 2002 06:20:57 -0500 (EST) Received: from [192.168.1.3] (ada.localdomain [192.168.1.3]) by p100.localdomain (8.9.3/8.9.3) with ESMTP id GAA17474 for ; Wed, 6 Feb 2002 06:28:31 -0500 Subject: Re: [INIMSS] Problem with select_row signal of CList From: Stephen Witkop To: gtk-list In-Reply-To: <200202060910.g169A1g03915@localhost.localdomain> References: <200202060910.g169A1g03915@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 06 Feb 2002 06:20:55 -0500 Message-Id: <1012994456.6610.3.camel@ada.localdomain> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-06 at 04:10, inimss@yahoo.com wrote: > Hi > > In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). > > Please help me to find out a way to make it trigger the signal. > The "select_row" signal is generated when you use the on a row, not just when it is highlighted moving through the list with the arrow keys. Stephen From John.Cupitt@ng-london.org.uk Wed Feb 6 07:13:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 6C10018A17 for ; Wed, 6 Feb 2002 07:13:16 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HN1G>; Wed, 6 Feb 2002 12:13:15 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HN1F; Wed, 6 Feb 2002 12:13:13 -0000 Message-ID: <3C611A9A.7090201@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: inodal@teleline.es Cc: gtk-list@gnome.org Subject: Re: GTK+ equivalent to Motif "XtAppProcessEvent()" Date: Wed, 6 Feb 2002 11:59:22 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal wrote: > I want my aplication to stop the gtk_main() until the user press a > button, which change the value of a variable called "state": Hi Ignacio, there are two gtk equivalents. First, you can call gtk_main() recursively. In your button callback, call gtk_main_quit(), and the enclosing gtk_main() will terminate. Second, you can call gtk_main_iteration() repeatedly, and stop when your button callback sets a flag. http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-MAIN-QUIT HTH, John ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From pbd@op.net Wed Feb 6 10:04:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 0E22F18344 for ; Wed, 6 Feb 2002 10:04:19 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA15617; Wed, 6 Feb 2002 10:04:10 -0500 (EST) Message-Id: <200202061504.KAA15617@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: vertical or rotated gtk_label_new("TEXT") possible??? In-reply-to: Your message of "Wed, 06 Feb 2002 00:32:38 PST." <20020206003238.A656@spawar.navy.mil> Date: Wed, 06 Feb 2002 10:02:55 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Is it possible to have gtk_label_new("TEXT") >be vertical or rotated??? no. X (which GDK relies on in the version of GTK+ that you are almost certainly using) provides no facilities for text rotation. if you want to do this, you have to put each letter into a pixmap using tricks that will be revealed in the file gnome-canvas-text-item.c in the gnome canvas code in GNOME CVS. its ugly, disgusting stuff. then you can pack the pixmaps into boxes or whatever. i don't know if Pango, which GTK+ 1.3/2.0 uses for text can do a better job on this. i have a feeling it can, but i am not sure. From pbd@op.net Wed Feb 6 10:07:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3018C18F78 for ; Wed, 6 Feb 2002 10:07:41 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA16080; Wed, 6 Feb 2002 10:07:38 -0500 (EST) Message-Id: <200202061507.KAA16080@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: Please explain 1st arg of configure & expose event functions... In-reply-to: Your message of "Wed, 06 Feb 2002 00:29:43 PST." <20020206002943.C588@spawar.navy.mil> Date: Wed, 06 Feb 2002 10:06:24 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Examples of configure and expose event functions >have a mysterious GtkWidget for the first arg. >I cannot seem to discern what it is. often, a signal is emitted because of an event occuring in/on the widget. the handler(s) for the signal receive a pointer to the widget as their first argument. this allows them to know which widget they are dealing with (since the same function might be used to handle similar signals for many different widgets). >What is all this widget->allocation.height, widget->window stuff and where >did it come from and why is it useful? if you are going to do "low level" drawing in a widget, you need to know how big the widget is, and you need access to the GdkWindow that is actually the object in which drawing occurs. these are members of all GtkWidgets (though the GdkWindow member is only valid after the widget has been realized - it corresponds (when using XWindow) to an actual X window). --p From pbd@op.net Wed Feb 6 10:10:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D007318CB1 for ; Wed, 6 Feb 2002 10:10:30 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA16411; Wed, 6 Feb 2002 10:10:27 -0500 (EST) Message-Id: <200202061510.KAA16411@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? In-reply-to: Your message of "Wed, 06 Feb 2002 00:25:50 PST." <20020206002550.B588@spawar.navy.mil> Date: Wed, 06 Feb 2002 10:09:12 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Examples of expose and configure event functions >regarding pixmaps seem to return either TRUE or FALSE. > >What is the meaning of this return value and the purpose? *all* signal handlers for signals that have a non-void return type must return TRUE or FALSE to indicate whether or not they have handled the signal. its up to the handler code to decide what "handled" might mean, given the following awareness of what their return value will mean: if they return TRUE, then generally other handlers that were connected later will not be called. if they return FALSE, the other handlers will be called. the way this all works is a bit muddied in GTK+ 1.2; it appears to be much cleaner in GTK+ 1.3/2.0. --p From davidgn@servidor.unam.mx Wed Feb 6 10:23:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id E4C9218CC4 for ; Wed, 6 Feb 2002 10:23:48 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.176]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g16FMXk06370 for ; Wed, 6 Feb 2002 09:22:34 -0600 (CST) Date: Wed, 6 Feb 2002 09:39:19 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: Button press Message-Id: <20020206093919.003da1d9.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times 20 times at once or so. (The button is supossed to increment the content of a label). How can i make it so that if i held the button pressed, the signal will repeat itself, but with a small, but noticeable, delay? or is this in the FAQ? Thank you in advance. -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From sven@gimp.org Wed Feb 6 10:40:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id D759818344 for ; Wed, 6 Feb 2002 10:40:38 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16YUBK-0002zG-00; Wed, 06 Feb 2002 16:40:22 +0100 To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: Button press References: <20020206093919.003da1d9.davidgn@servidor.unam.mx> From: Sven Neumann Date: 06 Feb 2002 16:40:22 +0100 In-Reply-To: <20020206093919.003da1d9.davidgn@servidor.unam.mx> Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, David Eduardo Gomez Noguera writes: > I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. > Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times 20 times at once or so. (The button is supossed to increment the content of a label). > How can i make it so that if i held the button pressed, the signal will repeat itself, but with a small, but noticeable, delay? or is this in the FAQ? > use a timeout: http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-TIMEOUT-ADD Salut, Sven From pbd@op.net Wed Feb 6 10:41:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id EA67019047 for ; Wed, 6 Feb 2002 10:41:09 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA20200; Wed, 6 Feb 2002 10:41:06 -0500 (EST) Message-Id: <200202061541.KAA20200@renoir.op.net> To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: Button press In-reply-to: Your message of "Wed, 06 Feb 2002 09:39:19 CST." <20020206093919.003da1d9.davidgn@servidor.unam.mx> Date: Wed, 06 Feb 2002 10:39:51 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I wanted to make a button behave lika a keyboard key, in that if i leave the k >ey pressed, it will repeat. >Thus i connected a button widget to a pressed signal, but when i press it its >like sometimes it was kust once, and other times 20 times at once or so. (The >button is supossed to increment the content of a label). >How can i make it so that if i held the button pressed, the signal will repea >t itself, but with a small, but noticeable, delay? or is this in the FAQ? search the archives for yesterday. i answered a similar question then. From sven@gimp.org Wed Feb 6 10:51:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 5E0EF18F22 for ; Wed, 6 Feb 2002 10:51:32 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16YU93-0002z6-00; Wed, 06 Feb 2002 16:38:01 +0100 To: Paul Davis Cc: Chris Seberino , gtk-list@gnome.org Subject: Re: vertical or rotated gtk_label_new("TEXT") possible??? References: <200202061504.KAA15617@renoir.op.net> From: Sven Neumann Date: 06 Feb 2002 16:38:01 +0100 In-Reply-To: <200202061504.KAA15617@renoir.op.net> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Paul Davis writes: > >Is it possible to have gtk_label_new("TEXT") > >be vertical or rotated??? > > no. X (which GDK relies on in the version of GTK+ that you are almost > certainly using) provides no facilities for text rotation. this is not the full truth since X11R6 does support rotated glyphs, see http://www.faqs.org/faqs/x-faq/part7/section-45.html > i don't know if Pango, which GTK+ 1.3/2.0 uses for text can do a > better job on this. i have a feeling it can, but i am not sure. while the layers below Pango probably have this feature (at least FreeType2 allows to specify a transformation matrix), Pango itself has no API for rotations or other transformations. Salut, Sven From pbd@op.net Wed Feb 6 10:56:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 29C8418D92 for ; Wed, 6 Feb 2002 10:56:29 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA21863; Wed, 6 Feb 2002 10:56:24 -0500 (EST) Message-Id: <200202061556.KAA21863@renoir.op.net> To: Sven Neumann Cc: Chris Seberino , gtk-list@gnome.org Subject: Re: vertical or rotated gtk_label_new("TEXT") possible??? In-reply-to: Your message of "06 Feb 2002 16:38:01 +0100." Date: Wed, 06 Feb 2002 10:55:10 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> >Is it possible to have gtk_label_new("TEXT") >> >be vertical or rotated??? >> >> no. X (which GDK relies on in the version of GTK+ that you are almost >> certainly using) provides no facilities for text rotation. > >this is not the full truth since X11R6 does support rotated glyphs, see > > http://www.faqs.org/faqs/x-faq/part7/section-45.html rotated glyphs do not make for rotated text :) to get vertical text you still have to place each glyph individually. xvertext can take care of this, i suppose. From davidgn@servidor.unam.mx Wed Feb 6 11:14:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id E879418FA4 for ; Wed, 6 Feb 2002 11:14:10 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.176]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g16GCnk26012 for ; Wed, 6 Feb 2002 10:12:51 -0600 (CST) Date: Wed, 6 Feb 2002 10:29:59 -0600 From: David Eduardo Gomez Noguera To: gtk-list@gnome.org Subject: Re: Button press Message-Id: <20020206102959.1b232283.davidgn@servidor.unam.mx> In-Reply-To: References: <20020206093919.003da1d9.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 06 Feb 2002 16:40:22 +0100 Sven Neumann wrote: > Hi, > > David Eduardo Gomez Noguera writes: > > > I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. > > Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times 20 times at once or so. (The button is supossed to increment the content of a label). > > How can i make it so that if i held the button pressed, the signal will repeat itself, but with a small, but noticeable, delay? or is this in the FAQ? > > > > use a timeout: > http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-TIMEOUT-ADD > > Thank you. I was just thinking what would be the best way of action. Have the function registered on a button pressed event, and removed on a button realeased event? or have a gtlobal static variable set to TRUE, and the function registered on a button press, and have the button release set the var to FALSE? (that variable would be the return fariable. I guess the firstone is better (more secure and less error prone), but would like to hear some advices. Thank you again. > Salut, Sven > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From pbd@op.net Wed Feb 6 11:20:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D0EBA190D0 for ; Wed, 6 Feb 2002 11:20:17 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA24829; Wed, 6 Feb 2002 11:20:14 -0500 (EST) Message-Id: <200202061620.LAA24829@renoir.op.net> To: davidgn@servidor.unam.mx Cc: gtk-list@gnome.org Subject: Re: Button press In-reply-to: Your message of "Wed, 06 Feb 2002 10:29:59 CST." <20020206102959.1b232283.davidgn@servidor.unam.mx> Date: Wed, 06 Feb 2002 11:19:01 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Thank you. >I was just thinking what would be the best way of action. >Have the function registered on a button pressed event, and removed on a butto >n realeased event? >or have a gtlobal static variable set to TRUE, and the function registered on >a button press, and have the button release set the var to FALSE? (that variab >le would be the return fariable. >I guess the firstone is better (more secure and less error prone), but would l >ike to hear some advices. globals are always a bad idea. look at the code in gtkspinbutton.c --p From hp@redhat.com Wed Feb 6 12:11:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 09774182C5 for ; Wed, 6 Feb 2002 12:11:04 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g16HAr624653; Wed, 6 Feb 2002 12:10:53 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "satyajit kanungo" Cc: Subject: Re: gtk+1.3 library References: From: Havoc Pennington Date: 06 Feb 2002 12:10:53 -0500 In-Reply-To: Message-ID: Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "satyajit kanungo" writes: > Well, I see gtk+ using lot of deprecated calls. I also saw many patches submitted > in bugzilla (#52790) but not yet gone into the source. > > I have replaced all the GtkType & GtkTypeInfo to GType & GTypeInfo. > The attached diff contains the changes. I 'm planning to do all signal changes > (replacing gtk_signal_* calls) also in the library. > > Expecting your comments. Thanks! Please be sure your patches are in bugzilla, so they won't be forgotten. Havoc From inodal@teleline.es Wed Feb 6 13:03:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp4.mail.isp (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id A964318761 for ; Wed, 6 Feb 2002 13:03:25 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp4.mail.isp (Netscape Messaging Server 4.15 tsmtp4 Jul 26 2001 13:10:38) with ESMTP id GR4I4Y00.5RB for ; Wed, 6 Feb 2002 19:02:58 +0100 Message-ID: <3C616FE8.4060309@teleline.es> Date: Wed, 06 Feb 2002 18:03:20 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: don't wanna see this CRITICAL Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way to avoid this message from being prompt? ** CRITICAL **: file gtkglarea.c: line 184 (gtk_gl_area_make_current): assertion `GTK_WIDGET_REALIZED(gl_area)' failed. I just want to call glViewport() in my InitGL() function. I know my "gl_area" isn't still realized, but I don't care... Does anybody know if I can call glViewport() without caring of the if (gtk_gl_area_make_current (glarea)) result?? I'm only using one GtkGLArea in my program. Thanks Ignacio Nodal From seberino@dt092n42.san.rr.com Wed Feb 6 13:05:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id DAA4A18F9A for ; Wed, 6 Feb 2002 13:04:59 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YWRE-00004u-00; Wed, 06 Feb 2002 10:04:56 -0800 Date: Wed, 6 Feb 2002 10:04:56 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? Message-ID: <20020206100456.A266@spawar.navy.mil> References: <20020206002550.B588@spawar.navy.mil> <200202061510.KAA16411@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202061510.KAA16411@renoir.op.net>; from pbd@op.net on Wed, Feb 06, 2002 at 10:09:12AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Feb 06, 2002 at 10:09:12AM -0500, Paul Davis wrote: > >Examples of expose and configure event functions > >regarding pixmaps seem to return either TRUE or FALSE. > > > >What is the meaning of this return value and the purpose? > > *all* signal handlers for signals that have a non-void return type > must return TRUE or FALSE to indicate whether or not they have > handled the signal. its up to the handler code to decide what > "handled" might mean, given the following awareness of what their > return value will mean: > > if they return TRUE, then generally other handlers that were connected > later will not be called. if they return FALSE, the other handlers > will be called. > > the way this all works is a bit muddied in GTK+ 1.2; it appears to be > much cleaner in GTK+ 1.3/2.0. > > --p Thanks for reply. So it sounds like some signal handlers are only the first of many functions to handle an event. (Most of which we don't see or deal with?) If our function does ALL work then we return TRUE but if it is only one of many then we return FALSE. How are we to know if there are other functions GTK+ will want to call for an event? Thanks again, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 13:13:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id AF08B18246 for ; Wed, 6 Feb 2002 13:13:31 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA07323; Wed, 6 Feb 2002 13:13:28 -0500 (EST) Message-Id: <200202061813.NAA07323@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? In-reply-to: Your message of "Wed, 06 Feb 2002 10:04:56 PST." <20020206100456.A266@spawar.navy.mil> Date: Wed, 06 Feb 2002 13:12:15 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Thanks for reply. So it sounds like some signal handlers >are only the first of many functions to handle an event. >(Most of which we don't see or deal with?) >If our function does ALL work then we return TRUE >but if it is only one of many then we return FALSE. >How are we to know if there are other functions GTK+ >will want to call for an event? you don't. thats why you have to decide if you think the signal has been handled or not. that will depend hugely on the circumstances of your program. sometimes i know i have to return TRUE, sometimes i know i have to return FALSE and sometimes it really doesn't matter. for GTK+ 1.2, there happens to be a default handler which will be called whether or not yours returns TRUE or FALSE. but my understanding is that in 1.3/2.0, returning TRUE will stop even the default handler from being called. there are also so-called "after" handlers (connected with gtk_signal_connect_after()) which are called after the default handler. its not clear to me if these will still be called in 1.3/2.0 if a "before" handler returns TRUE. owen/havoc and others will know. --p From pbd@op.net Wed Feb 6 13:14:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id EFFDA18E29 for ; Wed, 6 Feb 2002 13:14:34 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA07411; Wed, 6 Feb 2002 13:14:27 -0500 (EST) Message-Id: <200202061814.NAA07411@renoir.op.net> To: Ignacio Nodal Cc: GTK-List Subject: Re: don't wanna see this CRITICAL In-reply-to: Your message of "Wed, 06 Feb 2002 18:03:20 GMT." <3C616FE8.4060309@teleline.es> Date: Wed, 06 Feb 2002 13:13:15 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Is there any way to avoid this message from being prompt? > >** CRITICAL **: file gtkglarea.c: line 184 (gtk_gl_area_make_current): >assertion `GTK_WIDGET_REALIZED(gl_area)' failed. > > >I just want to call glViewport() in my InitGL() function. I know my >"gl_area" isn't still realized, but I don't care... you don't, but gtkglarea.c does. just call gtk_widget_realize() on your glarea before calling InitGL(). --p From seberino@dt092n42.san.rr.com Wed Feb 6 13:22:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F12B91821B for ; Wed, 6 Feb 2002 13:22:08 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YWhL-00005w-00; Wed, 06 Feb 2002 10:21:35 -0800 Date: Wed, 6 Feb 2002 10:21:35 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: Please explain 1st arg of configure & expose event functions... Message-ID: <20020206102135.B266@spawar.navy.mil> References: <20020206002943.C588@spawar.navy.mil> <200202061507.KAA16080@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202061507.KAA16080@renoir.op.net>; from pbd@op.net on Wed, Feb 06, 2002 at 10:06:24AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Feb 06, 2002 at 10:06:24AM -0500, Paul Davis wrote: > >Examples of configure and expose event functions > >have a mysterious GtkWidget for the first arg. > >I cannot seem to discern what it is. > > often, a signal is emitted because of an event occuring in/on the > widget. the handler(s) for the signal receive a pointer to the widget > as their first argument. this allows them to know which widget they > are dealing with (since the same function might be used to handle > similar signals for many different widgets). > > >What is all this widget->allocation.height, widget->window stuff and where > >did it come from and why is it useful? > > if you are going to do "low level" drawing in a widget, you need to > know how big the widget is, and you need access to the GdkWindow that > is actually the object in which drawing occurs. these are members of > all GtkWidgets (though the GdkWindow member is only valid after the > widget has been realized - it corresponds (when using XWindow) to an > actual X window). > > --p P. Thanks again! This widget that is the first argument seems to be the window that _contains_ the pixmap drawing from what you are saying. I'm confused because some elements of this window object are used to give information about the _pixmap_?!?!? Let me explain if you don't mind... I know that following command ends up drawing a rectangle in the pixmap which is NOT the same size as the window it is in. Yet, notice that all dimensions given are the dimensions of the window?!?!? (This is inside a configure event signal handler so widget is the first arg we are talking about.) gdk_draw_rectangle(Pixmaps::middleMassTimeSeriesPlot, widget->style->black_gc, TRUE, 0, 0, widget->allocation.width, widget->allocation.height); And... The following command redraws a pixmap after an expose event. Notice the second argument seems to be saying "Use the style of the widget (window)". Shouldn't we be using the "style" of the pixmap?? (By the way, unrelated: why do we need event->area.x * event->area.y args twice?) gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], Pixmaps::powerSpectralDensityPlot, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 13:47:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 156AB180E8 for ; Wed, 6 Feb 2002 13:47:05 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA11202; Wed, 6 Feb 2002 13:47:00 -0500 (EST) Message-Id: <200202061847.NAA11202@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: Please explain 1st arg of configure & expose event functions... In-reply-to: Your message of "Wed, 06 Feb 2002 10:21:35 PST." <20020206102135.B266@spawar.navy.mil> Date: Wed, 06 Feb 2002 13:45:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >This widget that is the first argument seems to be the window >that _contains_ the pixmap drawing from what you are saying. no. its the widget for which the event took place and for which the signal is being emitted. this mistake has caused you much later confusion. >I'm confused because some elements of this window object >are used to give information about the _pixmap_?!?!? it seems you don't have much of a grounding in XWindow basics, which is leading to your confusion (you could think of them as GDK basics, but GDK's model comes mostly from XWindow). anything that gets drawn on the screen must be drawn on an object called a "window". that includes text, lines, pixmaps, rectangles, whatever. a pixmap itself is really just a set of data containing pixel values. by itself, that won't cause anything to appear on the screen. for it to be visible, it has to be drawn. for it to be drawn, there has to be a window to draw it into. thus, the widget (i.e. a C struct) that is used to display pixmaps contains both info about the pixmap itself, and info about a window (a GdkWindow, specifically) into which it is drawn. now, this window has *nothing* to do with the kind of window you are thinking about. its just a rectangular area of the screen. specifically, it is *not* a GtkWindow (notice the "t" instead of the "d"), it is not a widget, and it is not managed by your window manager. its just a part of the screen where things may be drawn. most widgets have a window associated with them, though a number of them do not, and draw onto their container/parent's window (or their grand-parent's window, or whatever). to repeat: you cannot draw without a GdkWindow. the GdkWindow does not contain the pixmap the way a GtkWindow would, it is where the pixmap is drawn. a pixmap widget contains info about the pixmap and a pointer to the GdkWindow where the data in the pixmap will be drawn. >Shouldn't we be using the "style" of the pixmap?? (By the way, unrelated: >why do we need event->area.x * event->area.y args twice?) > > gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widge >t)], > Pixmaps::powerSpectralDensityPlot, event->area.x, event->area.y, > event->area.x, event->area.y, event->area.width, event->area.height); look at the docs for gdk_draw_pixmap, and it will be clear. --p From seberino@dt092n42.san.rr.com Wed Feb 6 14:08:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 7B21D18761 for ; Wed, 6 Feb 2002 14:08:38 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YXQr-000084-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 11:08:37 -0800 Date: Wed, 6 Feb 2002 11:08:37 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How get NEW value for "value_changed" event? (from GtkAdjustment object?) Message-ID: <20020206110837.A495@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "value_changed" events are when someone changes value with a slider bar. (I think.) This calls a signal handler that gets the GtkAdjustment object as a parameter. How/where can I pull out the value that slider bar value was changed to. I need to do something with the NEW value! Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 14:14:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 379A318761 for ; Wed, 6 Feb 2002 14:14:04 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA14219; Wed, 6 Feb 2002 14:14:00 -0500 (EST) Message-Id: <200202061914.OAA14219@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How get NEW value for "value_changed" event? (from GtkAdjustment object?) In-reply-to: Your message of "Wed, 06 Feb 2002 11:08:37 PST." <20020206110837.A495@spawar.navy.mil> Date: Wed, 06 Feb 2002 14:12:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >"value_changed" events are when someone changes >value with a slider bar. (I think.) > >This calls a signal handler that gets the GtkAdjustment >object as a parameter. How/where can I pull out the value >that slider bar value was changed to. I need to do >something with the NEW value! sorry chris. this one is definitely an RTFM. the tutorial is a good place to start. --p From seberino@dt092n42.san.rr.com Wed Feb 6 14:19:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 508F0180D9 for ; Wed, 6 Feb 2002 14:19:06 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YXaz-00009D-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 11:19:05 -0800 Date: Wed, 6 Feb 2002 11:19:05 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-ID: <20020206111905.A566@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I need to sometimes initialize an object to NULL and get this message. How avoid??? warning: ANSI C++ forbids implicit conversion from `void *' in initialization Here is the pixmap class that causes this (outside of main() ) class Pixmaps { private: public: static GdkPixmap* middleMassTimeSeriesPlot; static GdkPixmap* phaseSpacePlot; static GdkPixmap* totalTimeSeriesPlot; static GdkPixmap* powerSpectralDensityPlot; }; GdkPixmap* Pixmaps::middleMassTimeSeriesPlot = NULL; GdkPixmap* Pixmaps::phaseSpacePlot = NULL; GdkPixmap* Pixmaps::totalTimeSeriesPlot = NULL; GdkPixmap* Pixmaps::powerSpectralDensityPlot = NULL; CS -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 14:24:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id EDAB3182C5 for ; Wed, 6 Feb 2002 14:24:02 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA15372; Wed, 6 Feb 2002 14:24:00 -0500 (EST) Message-Id: <200202061924.OAA15372@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? In-reply-to: Your message of "Wed, 06 Feb 2002 11:19:05 PST." <20020206111905.A566@spawar.navy.mil> Date: Wed, 06 Feb 2002 14:22:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I need to sometimes initialize an object to NULL and get this >message. How avoid??? this is getting too close to generic programming questions for this list. if you don't understand how to fix this yourself, i worry about future progress on your software. SomeObject *someObject = (SomeObject *) 0; you should never use "NULL" in a C++ program. look it up with google to understand why. --p From inodal@teleline.es Wed Feb 6 14:24:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp10.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 96EAE180D9 for ; Wed, 6 Feb 2002 14:24:51 -0500 (EST) Received: from paranoia ([213.97.141.171]) by tsmtp10.mail.isp (Netscape Messaging Server 4.15 tsmtp10 Jul 26 2001 13:10:38) with SMTP id GR4LWS00.4WB; Wed, 6 Feb 2002 20:24:28 +0100 Message-ID: <000f01c1af43$f3fb3200$0a01a8c0@paranoia> From: "Ignacio Nodal" To: "Paul Davis" Cc: "GTK-List" References: <200202061814.NAA07411@renoir.op.net> Subject: Re: don't wanna see this CRITICAL Date: Wed, 6 Feb 2002 19:24:47 -0000 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ----- Original Message ----- From: "Paul Davis" To: "Ignacio Nodal" Cc: "GTK-List" Sent: Wednesday, February 06, 2002 6:13 PM Subject: Re: don't wanna see this CRITICAL > >Is there any way to avoid this message from being prompt? > > > >** CRITICAL **: file gtkglarea.c: line 184 (gtk_gl_area_make_current): > >assertion `GTK_WIDGET_REALIZED(gl_area)' failed. > > > > > >I just want to call glViewport() in my InitGL() function. I know my > >"gl_area" isn't still realized, but I don't care... > > you don't, but gtkglarea.c does. just call gtk_widget_realize() on > your glarea before calling InitGL(). > > --p I know it does, hehehe, but if I call gtk_widget_realize() the glarea will be shown, and I don't want it to be shown so soon.. even if I use gtk_widget_unrealize() inmediatelly after calling glViewport() I can see the glarea.Is there anyway to realize it without been shown? :) Thanks From hp@redhat.com Wed Feb 6 14:41:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 7A4C418307 for ; Wed, 6 Feb 2002 14:41:04 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g16Jf3124717; Wed, 6 Feb 2002 14:41:03 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Chris Seberino , gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? References: <200202061813.NAA07323@renoir.op.net> From: Havoc Pennington Date: 06 Feb 2002 14:41:03 -0500 In-Reply-To: <200202061813.NAA07323@renoir.op.net> Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > there are also so-called "after" handlers (connected with > gtk_signal_connect_after()) which are called after the default > handler. its not clear to me if these will still be called in 1.3/2.0 > if a "before" handler returns TRUE. owen/havoc and others will know. > No, they won't be called. TRUE stops the entire emission in 2.0. Havoc From Dexter.Filmore@gmx.de Wed Feb 6 16:15:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id AC057181A1 for ; Wed, 6 Feb 2002 16:15:28 -0500 (EST) Received: (qmail 17047 invoked by uid 0); 6 Feb 2002 21:15:27 -0000 Received: from pd952d1c4.dip.t-dialin.net (HELO shodan) (217.82.209.196) by mail.gmx.net (mp011-rz3) with SMTP; 6 Feb 2002 21:15:27 -0000 Date: Wed, 6 Feb 2002 22:13:20 +0100 From: Dexter Filmore To: gtklist Subject: wrong location? (n00b question) Message-Id: <20020206221320.07f2dfae.Dexter.Filmore@gmx.de> Organization: SCHWA Corporation X-Mailer: Sylpheed version 0.7.0 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: So I installed gtk on my Slack 8 recently for I thought "whatever was installed, maybe get the latest version". Then I discovered that 1.2.10 is already enclosured in Slack 8 and friend told me it's not too good having 2 packages of it simultaneously installed. So I kicked the one I installed myself out, deleted the package from Slack and reinstalled it. I'm still kinda linux noob, so one may forgive me that. Funny thing is: on a tty "echo $PATH" displays full path with /opt/gnome in it, on X as user as well, but in a terminal in X as root via su command the /opt/gnome path does not apper. How come? Next thing: is this the right location anyway? Tried to compile gtoaster recently, ./configure said "hey u dont have gtk" and other apps, too - they all look for gtk and devel stuff in /usr/local/somewhere as it seems. If someone could please shed some light on this? I'm close to insanity spending days on the simplest things. Dexter Filmore From seberino@dt092n42.san.rr.com Wed Feb 6 18:37:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 1EDE518141 for ; Wed, 6 Feb 2002 18:37:21 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16Ybcw-0000OU-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 15:37:22 -0800 Date: Wed, 6 Feb 2002 15:37:22 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How change color, draw border, change other stylistics of SLIDERS??? Message-ID: <20020206153722.A1515@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a list of sliders that sort of all blend together. * A nice border around each one would be nice to distinguish different slider components. * Different colors would serve same purpose. * Sliders DO NOT have arrows on each side like scroll bars do!!! How get arrow buttons back????? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 18:37:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F260C18141 for ; Wed, 6 Feb 2002 18:37:54 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YbdU-0000OY-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 15:37:56 -0800 Date: Wed, 6 Feb 2002 15:37:56 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How change size/font of gtk_label_new("TEXT")??? Message-ID: <20020206153756.B1515@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How change font or size of text for gtk_label_new("TEXT")??? cs -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 21:32:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id F169F18541 for ; Wed, 6 Feb 2002 21:32:07 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-230.phlpa.fast.net [209.92.227.230]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id VAA28700; Wed, 6 Feb 2002 21:32:04 -0500 (EST) Message-Id: <200202070232.VAA28700@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How change color, draw border, change other stylistics of SLIDERS??? In-reply-to: Your message of "Wed, 06 Feb 2002 15:37:22 PST." <20020206153722.A1515@spawar.navy.mil> Date: Wed, 06 Feb 2002 21:30:57 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: killing two birds with one stone: 1) >How change font or size of text for gtk_label_new("TEXT")??? 2) >* Different colors would serve same purpose. GtkWidget *label = gtk_label_new ("foo"); gtk_widget_set_name (label, "SuperlativeLabel"); GtkWidget *slider = gtk_hslider_new (....); gtk_widget_set_name (slider, "SuperlativeSlider"); then see Havoc's FAQ on colors: http://pobox.com/~hp/gtk-colors.html >I have a list of sliders that sort of all blend together. > >* A nice border around each one would be nice to > distinguish different slider components. put them in a frame in a box having called gtk_container_set_spacing() on the box. >* Sliders DO NOT have arrows on each side like > scroll bars do!!! How get arrow buttons back????? use scrollbars, i guess .... --p From pbd@op.net Wed Feb 6 21:34:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 16DB318FF2 for ; Wed, 6 Feb 2002 21:34:21 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-230.phlpa.fast.net [209.92.227.230]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id VAA28900; Wed, 6 Feb 2002 21:34:18 -0500 (EST) Message-Id: <200202070234.VAA28900@renoir.op.net> To: "Ignacio Nodal" Cc: "GTK-List" Subject: Re: don't wanna see this CRITICAL In-reply-to: Your message of "Wed, 06 Feb 2002 19:24:47 GMT." <000f01c1af43$f3fb3200$0a01a8c0@paranoia> Date: Wed, 06 Feb 2002 21:33:11 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> >I just want to call glViewport() in my InitGL() function. I know my >> >"gl_area" isn't still realized, but I don't care... >> >> you don't, but gtkglarea.c does. just call gtk_widget_realize() on >> your glarea before calling InitGL(). >> >> --p > >I know it does, hehehe, but if I call gtk_widget_realize() the glarea will >be shown, and I don't want it to be shown so soon.. even if I use >gtk_widget_unrealize() inmediatelly after calling glViewport() I can see the >glarea.Is there anyway to realize it without been shown? :) i don't know one. however, you could invert the problem and call InitGL() from a realize signal handler for the glarea. --p From Steph.Fox@btinternet.com Wed Feb 6 21:37:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium.btinternet.com (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id 071B718541 for ; Wed, 6 Feb 2002 21:37:27 -0500 (EST) Received: from host62-7-30-93.dial.btopenworld.com ([62.7.30.93] helo=t2r1o8) by protactinium.btinternet.com with smtp (Exim 3.22 #8) id 16YeR4-0003Hy-00; Thu, 07 Feb 2002 02:37:18 +0000 Message-ID: <017b01c1af80$2aee0080$b54c073e@t2r1o8> From: "Steph" To: "Chris Seberino" , "Paul Davis" Cc: References: <200202070232.VAA28700@renoir.op.net> Subject: Re: How change color, draw border, change other stylistics of SLIDERS??? Date: Thu, 7 Feb 2002 02:35:52 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: can't you use gtk_paint_arrow()? ----- Original Message -----=20 From: "Paul Davis" To: "Chris Seberino" Cc: Sent: Thursday, February 07, 2002 2:30 AM Subject: Re: How change color, draw border, change other stylistics of = SLIDERS???=20 > killing two birds with one stone: >=20 > 1) >How change font or size of text for gtk_label_new("TEXT")??? > 2) >* Different colors would serve same purpose. >=20 > GtkWidget *label =3D gtk_label_new ("foo"); > gtk_widget_set_name (label, "SuperlativeLabel"); >=20 > GtkWidget *slider =3D gtk_hslider_new (....); > gtk_widget_set_name (slider, "SuperlativeSlider"); >=20 > then see Havoc's FAQ on colors: >=20 > http://pobox.com/~hp/gtk-colors.html >=20 > >I have a list of sliders that sort of all blend together. > > > >* A nice border around each one would be nice to > > distinguish different slider components. >=20 > put them in a frame in a box having called > gtk_container_set_spacing() on the box. >=20 > >* Sliders DO NOT have arrows on each side like > > scroll bars do!!! How get arrow buttons back????? >=20 > use scrollbars, i guess .... >=20 > --p > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From rhfreeman@micron.com Thu Feb 7 04:53:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id 34EEB185F2 for ; Thu, 7 Feb 2002 04:53:38 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g179rbu14851 for ; Thu, 7 Feb 2002 02:53:37 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g179raV14846 for ; Thu, 7 Feb 2002 02:53:37 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 02:53:35 -0700 Message-ID: From: rhfreeman To: GTK Mailing List Subject: RE: Paned questions Date: Thu, 7 Feb 2002 02:53:35 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes thanks Olaf (and Thomas) for your input. The solution I used in the end was to have vpaneds in vpaneds to give all the levels I need. So in Olaf's example, hpaned2's pack1 widget was infact hpaned1! I can have as many hboxes as I need now and have some sort of paned control over them. Just one question now. My hboxes have a drawing_area in them which I need to resize. However, I can't tell the difference between the main window being re-sized and the paned widget re-sizing the hbox. I need to handle these differently! Does the paned widget give out a different signal or something similar I can use to tell the two events apart? Thanks!!! Rich > -----Original Message----- > From: Olaf Leidinger [mailto:leidola@newcon.de] > Sent: 04 February 2002 15:26 > To: rhfreeman; GTK Mailing List > Subject: Re: Paned questions > > > Am 04 Feb 2002 03:54:58 -0700 schrieb rhfreeman: > > Hi folks, > > > > I'm wanting to use the paned widgets to re-size my current > widgets but I'm a > > bit unsure about how it works. > > > > My program is quite simple. It has a window with a vbox in > it. It keeps > > adding hboxes to the vbox like this: > > > > (no hboxes) > > > > +------------+ > > | | > > | | > > | | > > | | > > | | > > +------------+ > > > > +------------+ > > | | > > | | > > | (hbox) | > > | | > > | | > > +------------+ > > > > +------------+ > > | hbox 1 | > > | | > > |------------| > > | hbox 2 | > > | | > > +------------+ > > > > +------------+ > > | hbox 1 | > > |------------| > > | hbox 2 | > > |------------| > > | hbox 3 | > > +------------+ > > > > I want a paned widget on the separator between hboxes. So I > want a paned > > widget controlling hbox1/hbox2 and another one controlling > hbox2/hbox3. > > > > So my questions are: > > > > 1. Can a widget have multiple paned widgets attached to it? > > 2. Can a paned widget control any widget type? As most > example code I've > > seen seems to be re-sizing a frame. > > > > Thanks!!! > > > > Rich > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > Hello! > > As I understood it a paned widget has two containers where you can add > widgets, a left side and a right one (or an upper and a lower). > > +--------------+ > | | > | container 1 | > | | > +=== gutter ===+ > | | > | container 2 | > | | > +--------------+ > > You can surely make a hbox to be child of a container. > And I think you don't have to set all the two childs of a paned widget > so you might create the following combination: > > +----vbox----------+ > | +- hpaned 1----+ | > | | | | > | | child 1 | | > | | | | > | +=== gutter ===+ | > | | | | > | | child 2 | | > | | | | > | +--------------+ | > | +- hpaned 2 ---+ | > | | | | > | | empty/not | | > | | visible | | > | | | | > | +=== gutter ===+ | > | | | | > | | child 2 | | > | | | | > | +--------------+ | > +------------------+ > > or something similar. > > Ciao > > Olaf > From rhfreeman@micron.com Thu Feb 7 05:47:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id 837C218319 for ; Thu, 7 Feb 2002 05:47:13 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g17AlCu08143 for ; Thu, 7 Feb 2002 03:47:12 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g17AlCV08139 for ; Thu, 7 Feb 2002 03:47:12 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 03:47:11 -0700 Message-ID: From: rhfreeman To: GTK Mailing List Subject: RE: Paned questions Date: Thu, 7 Feb 2002 03:47:09 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: As much as I hate to follow myself up! I've got the resizing working properly now thanks to using the resize event. A lot easier than I thought it would be. Now the other problem I've got also exists in the paned.c example program that comes with GTK. When you maximise the window, only the bottom widget gets expanded and the top widget remains the same size. I'd like them to be expanded proportionally together! Is there anyway of doing this? Thanks again! Rich > -----Original Message----- > From: rhfreeman [mailto:rhfreeman@micron.com] > Sent: 07 February 2002 09:54 > To: GTK Mailing List > Subject: RE: Paned questions > > > Yes thanks Olaf (and Thomas) for your input. The solution I > used in the end > was to have vpaneds in vpaneds to give all the levels I need. > So in Olaf's > example, hpaned2's pack1 widget was infact hpaned1! I can have as many > hboxes as I need now and have some sort of paned control over them. > > Just one question now. My hboxes have a drawing_area in them > which I need to > resize. However, I can't tell the difference between the main > window being > re-sized and the paned widget re-sizing the hbox. I need to > handle these > differently! Does the paned widget give out a different > signal or something > similar I can use to tell the two events apart? > > Thanks!!! > > Rich > > > -----Original Message----- > > From: Olaf Leidinger [mailto:leidola@newcon.de] > > Sent: 04 February 2002 15:26 > > To: rhfreeman; GTK Mailing List > > Subject: Re: Paned questions > > > > > > Am 04 Feb 2002 03:54:58 -0700 schrieb rhfreeman: > > > Hi folks, > > > > > > I'm wanting to use the paned widgets to re-size my current > > widgets but I'm a > > > bit unsure about how it works. > > > > > > My program is quite simple. It has a window with a vbox in > > it. It keeps > > > adding hboxes to the vbox like this: > > > > > > (no hboxes) > > > > > > +------------+ > > > | | > > > | | > > > | | > > > | | > > > | | > > > +------------+ > > > > > > +------------+ > > > | | > > > | | > > > | (hbox) | > > > | | > > > | | > > > +------------+ > > > > > > +------------+ > > > | hbox 1 | > > > | | > > > |------------| > > > | hbox 2 | > > > | | > > > +------------+ > > > > > > +------------+ > > > | hbox 1 | > > > |------------| > > > | hbox 2 | > > > |------------| > > > | hbox 3 | > > > +------------+ > > > > > > I want a paned widget on the separator between hboxes. So I > > want a paned > > > widget controlling hbox1/hbox2 and another one controlling > > hbox2/hbox3. > > > > > > So my questions are: > > > > > > 1. Can a widget have multiple paned widgets attached to it? > > > 2. Can a paned widget control any widget type? As most > > example code I've > > > seen seems to be re-sizing a frame. > > > > > > Thanks!!! > > > > > > Rich > > > _______________________________________________ > > > gtk-list mailing list > > > gtk-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > > > > Hello! > > > > As I understood it a paned widget has two containers where > you can add > > widgets, a left side and a right one (or an upper and a lower). > > > > +--------------+ > > | | > > | container 1 | > > | | > > +=== gutter ===+ > > | | > > | container 2 | > > | | > > +--------------+ > > > > You can surely make a hbox to be child of a container. > > And I think you don't have to set all the two childs of a > paned widget > > so you might create the following combination: > > > > +----vbox----------+ > > | +- hpaned 1----+ | > > | | | | > > | | child 1 | | > > | | | | > > | +=== gutter ===+ | > > | | | | > > | | child 2 | | > > | | | | > > | +--------------+ | > > | +- hpaned 2 ---+ | > > | | | | > > | | empty/not | | > > | | visible | | > > | | | | > > | +=== gutter ===+ | > > | | | | > > | | child 2 | | > > | | | | > > | +--------------+ | > > +------------------+ > > > > or something similar. > > > > Ciao > > > > Olaf > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From jyothi@ncoretech.com Thu Feb 7 07:25:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id EFD0C180EC for ; Thu, 7 Feb 2002 07:25:39 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CPWY14193 for ; Thu, 7 Feb 2002 17:55:32 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g17CPWM17065 for gtk-list@gnome.org.VIRCHECK; Thu, 7 Feb 2002 17:55:32 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CPTK16974 for ; Thu, 7 Feb 2002 17:55:31 +0530 Message-ID: <3C627D7D.14BCF07F@ncoretech.com> Date: Thu, 07 Feb 2002 18:43:33 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Differentiating between Entry and Text Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 7 17:55:31 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a function for which I am getting Widget reference from some other function. >From this reference, I have to check whether this widget is GtkEntry or GtkText. How can I do it?? Thanks in Advance, Jyothi. From jyothi@ncoretech.com Thu Feb 7 07:28:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id 111FD184BE for ; Thu, 7 Feb 2002 07:28:04 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CRxY14219 for ; Thu, 7 Feb 2002 17:57:59 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g17CRxE17782 for gtk-list@gnome.org.VIRCHECK; Thu, 7 Feb 2002 17:57:59 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CRwK17693 for ; Thu, 7 Feb 2002 17:57:58 +0530 Message-ID: <3C627E13.7BB09226@ncoretech.com> Date: Thu, 07 Feb 2002 18:46:03 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Scribble in gtk tutorial Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 7 17:57:58 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In the scribble-xinput, when I press on Input-dialog, it say no input devices with a close button. How to solve this problem ??? What are these input devices ? Is it the mouse or stylus ??. If so how do I specify it ??.. Thanks in Advance, Jyothi. From jyothi@ncoretech.com Thu Feb 7 07:31:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id 5F52518758 for ; Thu, 7 Feb 2002 07:30:59 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CUsY14246 for ; Thu, 7 Feb 2002 18:00:54 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g17CUsM18212 for gtk-list@gnome.org.VIRCHECK; Thu, 7 Feb 2002 18:00:54 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CUsK18123 for ; Thu, 7 Feb 2002 18:00:54 +0530 Message-ID: <3C627EC3.7D550AF0@ncoretech.com> Date: Thu, 07 Feb 2002 18:48:59 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Regarding Scribble Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 7 18:00:54 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In gtk tutorial , scribble program is written to draw anything on the Drawing area. How do I capture the data written in the scribbling pad as soon as a button-release-event occurs ??..... Thanks in advance, Jyothi. From Padraig.Obriain@Sun.COM Thu Feb 7 07:36:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34]) by mail.gnome.org (Postfix) with ESMTP id E6FED18655 for ; Thu, 7 Feb 2002 07:36:11 -0500 (EST) Received: from dub-mail1.Ireland.Sun.COM ([129.156.220.70]) by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id FAA22891; Thu, 7 Feb 2002 05:35:44 -0700 (MST) Received: from maxfly (maxfly [129.156.238.23]) by dub-mail1.Ireland.Sun.COM (8.10.2+Sun/8.10.2/ENSMAIL,v2.1p1) with SMTP id g17CZZu08973; Thu, 7 Feb 2002 12:35:36 GMT Message-Id: <200202071235.g17CZZu08973@dub-mail1.Ireland.Sun.COM> Date: Thu, 7 Feb 2002 12:35:35 +0000 (GMT) From: "Padraig O'Briain" Reply-To: "Padraig O'Briain" Subject: Re: Differentiating between Entry and Text To: gtk-list@gnome.org, jyothi@ncoretech.com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: zJaRscvW169XYD6ZS0zrDQ== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4 SunOS 5.8 sun4u sparc Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: if (GTK_IS_ENTRY (widget)) { ... } else if (GTK_IS_TEXT (widget)) { ... } Padraig > Hi, > > I have a function for which I am getting Widget reference from some > other function. > >From this reference, I have to check whether this widget is GtkEntry or > GtkText. How can I do it?? > > Thanks in Advance, > Jyothi. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From inimss@yahoo.com Thu Feb 7 09:36:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp016.mail.yahoo.com (smtp016.mail.yahoo.com [216.136.174.113]) by mail.gnome.org (Postfix) with SMTP id 1BA981888C for ; Thu, 7 Feb 2002 09:36:53 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 7 Feb 2002 14:36:50 -0000 Message-ID: <3C61B4BF.2CF01D34@yahoo.com> Date: Thu, 07 Feb 2002 04:27:03 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list Subject: [INIMSS] Which is the best place to initialize widgets in a window. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Which is the best event handler to be used for initializing the widgets in a window, (to load data into it). Thanks Dino Cherian K _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From inimss@yahoo.com Thu Feb 7 10:23:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by mail.gnome.org (Postfix) with SMTP id EBB2D18500 for ; Thu, 7 Feb 2002 10:23:16 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 7 Feb 2002 15:23:15 -0000 Message-ID: <3C61BFA3.C19E3133@yahoo.com> Date: Thu, 07 Feb 2002 05:13:31 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list Subject: [INIMSS] Where can I find help for editing gtkrc? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Anybody please help me in editing a gtkrc file? What is the basic syntax of the file? Where can I find answer for these questions? Thanks Dino _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From coframi.balr001@rd.francetelecom.com Thu Feb 7 10:35:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id CE3EA188C4 for ; Thu, 7 Feb 2002 10:35:54 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M417RQ5>; Thu, 7 Feb 2002 16:29:00 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , gtk-list Subject: RE: [INIMSS] Where can I find help for editing gtkrc? Date: Thu, 7 Feb 2002 16:28:57 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-94cad57a-1acd-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-94cad57a-1acd-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AFEC.28E4A3E0" ------_=_NextPart_001_01C1AFEC.28E4A3E0 Content-Type: text/plain Hello, look at http://developer.gnome.org/doc/API/2.0/gtk/gtk-resource-files.html Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : jeudi 7 fevrier 2002 00:44 A : gtk-list Objet : [INIMSS] Where can I find help for editing gtkrc? Hi Anybody please help me in editing a gtkrc file? What is the basic syntax of the file? Where can I find answer for these questions? Thanks Dino _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AFEC.28E4A3E0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] Where can I find help for editing gtkrc?

Hello,

look at http://developer.gnome.org/doc/API/2.0/gtk/gtk-resourc= e-files.html

Isabelle

-----Message d'origine-----
De : Dino Cherian K [mailto:inimss@yahoo.com]
Envoye : jeudi 7 fevrier 2002 00:44
A : gtk-list
Objet : [INIMSS] Where can I find help for editing = gtkrc?


Hi

Anybody please help me in editing a gtkrc = file?
What is the basic syntax of the file?
Where can I find answer for these questions?

Thanks
Dino

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

------_=_NextPart_001_01C1AFEC.28E4A3E0-- ------=_NextPartTM-000-94cad57a-1acd-11d6-b1e5-00508b69ab48-- From coframi.balr001@rd.francetelecom.com Thu Feb 7 11:18:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id A0B3A185E9 for ; Thu, 7 Feb 2002 11:18:09 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M417R6S>; Thu, 7 Feb 2002 16:42:37 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , gtk-list Subject: RE: [INIMSS] Where can I find help for editing gtkrc? Date: Thu, 7 Feb 2002 16:42:34 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-94cad60f-1acd-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-94cad60f-1acd-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AFEE.0F9ED7F0" ------_=_NextPart_001_01C1AFEE.0F9ED7F0 Content-Type: text/plain Hi again, Look also at http://www106.pair.com/rhp/gtk-colors.html Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : jeudi 7 fevrier 2002 00:44 A : gtk-list Objet : [INIMSS] Where can I find help for editing gtkrc? Hi Anybody please help me in editing a gtkrc file? What is the basic syntax of the file? Where can I find answer for these questions? Thanks Dino _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AFEE.0F9ED7F0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] Where can I find help for editing gtkrc?

Hi again,

Look also at  http://www106.pair.com/rhp/gtk-colors.html

Isabelle

-----Message d'origine-----
De : Dino Cherian K [mailto:inimss@yahoo.com]
Envoye : jeudi 7 fevrier 2002 00:44
A : gtk-list
Objet : [INIMSS] Where can I find help for editing = gtkrc?


Hi

Anybody please help me in editing a gtkrc = file?
What is the basic syntax of the file?
Where can I find answer for these questions?

Thanks
Dino

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

------_=_NextPart_001_01C1AFEE.0F9ED7F0-- ------=_NextPartTM-000-94cad60f-1acd-11d6-b1e5-00508b69ab48-- From stonybrk@ix.netcom.com Thu Feb 7 11:27:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mclean.mail.mindspring.net (mclean.mail.mindspring.net [207.69.200.57]) by mail.gnome.org (Postfix) with ESMTP id E52D1185E9 for ; Thu, 7 Feb 2002 11:27:52 -0500 (EST) Received: from user-2iniv4a.dialup.mindspring.com ([165.121.124.138] helo=norman) by mclean.mail.mindspring.net with smtp (Exim 3.33 #1) id 16YrOU-0005a6-00; Thu, 07 Feb 2002 11:27:30 -0500 Message-ID: <005701c1aff4$5802e3f0$0200a8c0@norman> From: "Norman Black" To: "Chris Seberino" Cc: "gtk-list" References: <20020206153756.B1515@spawar.navy.mil> Subject: Re: How change size/font of gtk_label_new("TEXT")??? Date: Thu, 7 Feb 2002 08:27:31 -0800 Organization: Stony Brook Software 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a Modula-2 code snip, but I think you get the idea. rc_style := gtk_rc_style_new(); rc_style^.font_name := YourFontNameGoesHere; gtk_widget_modify_style(YourWidget, rc_style); gtk_rc_style_unref(rc_style); The font name is just like a Gdk font name used for gdk_font_load Best Regards, Norman Black Stony Brook Software ----- Original Message ----- From: "Chris Seberino" To: Sent: Wednesday, February 06, 2002 3:37 PM Subject: How change size/font of gtk_label_new("TEXT")??? > How change font or size of text for gtk_label_new("TEXT")??? > > cs > -- > ======================================================= > | Dr. Christian Seberino || (619) 553-7940 (office) | > | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | > | 53560 HULL ST || | > | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | > ======================================================= > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From rtk@cmed.com Thu Feb 7 11:32:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.cmed.com (mail.cmed.com [12.147.70.66]) by mail.gnome.org (Postfix) with SMTP id BF75B18B29 for ; Thu, 7 Feb 2002 11:32:41 -0500 (EST) Received: from no.name.available by mail.cmed.com via smtpd (for moniker.gnome.org [209.116.70.73]) with SMTP; 7 Feb 2002 16:32:41 UT Received: by exchange.cmed.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 09:32:40 -0700 Message-ID: From: Ronald Kneusel To: "'gtk-list@gnome.org'" Subject: GtkEntry not accepting keyboard input (GTK+ 1.2)? Date: Thu, 7 Feb 2002 09:32:31 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a GtkEntry which is attached to a fixed widget and that is attached to a frame in another fixed widget. The entry box appears and I can set the text, highlight the text with the mouse, but cannot type in the box. Anything typed appears at the shell prompt. Why? Am I missing a step? I've set the widget to "editable" with no appearant effect. Ron Kneusel rtk@cmed.com From pbd@op.net Thu Feb 7 11:39:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 1C5C618822 for ; Thu, 7 Feb 2002 11:39:49 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-105.phlpa.fast.net [209.92.99.105]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA09652; Thu, 7 Feb 2002 11:39:41 -0500 (EST) Message-Id: <200202071639.LAA09652@renoir.op.net> To: Dino Cherian K Cc: gtk-list Subject: Re: [INIMSS] Which is the best place to initialize widgets in a window. In-reply-to: Your message of "Thu, 07 Feb 2002 04:27:03 +0530." <3C61B4BF.2CF01D34@yahoo.com> Date: Thu, 07 Feb 2002 11:38:41 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Which is the best event handler to be used for initializing the widgets >in a window, (to load data into it). the expose event is where the widget gets drawn, so that would be the obvious place. just do your stuff, and return FALSE. the regular drawing code will then happen as expected, using your data. i sometimes use map_event for widgets that need to be rebuilt every time they are "mapped" (XWindow terminology for the step of taking the X server data structure for a window and making its contents appear on a display). however, in general, i think you should be using the expose event. --p From eg_hyy@stu.ust.hk Thu Feb 7 12:16:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx3.ust.hk (mx3.ust.hk [143.89.13.11]) by mail.gnome.org (Postfix) with ESMTP id 266BE1819C for ; Thu, 7 Feb 2002 12:16:00 -0500 (EST) Received: from webmaild.ust.hk (webmaild.ust.hk [143.89.14.206]) by mx3.ust.hk (8.11.5/8.11.5) with ESMTP id g17HFvB09001 for ; Fri, 8 Feb 2002 01:15:57 +0800 Received: from localhost (localhost [[UNIX: localhost]]) by webmaild.ust.hk (8.9.3/8.9.3) id BAA08796; Fri, 8 Feb 2002 01:15:56 +0800 Message-Id: <200202071715.BAA08796@webmaild.ust.hk> User-Agent: IMHO/0.97.1 (HKUST Webmail 1.0b) MIME-Version: 1.0 X-Originating-IP: [61.15.163.60] To: gtk-list@gnome.org Content-Transfer-Encoding: 8bit Date: Fri, 08 Feb 2002 01:15:56 +0800 Content-Type: text/plain; charset=iso-8859-1 From: Subject: callbacks function of apply in glade Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear all, I am a newbie and I have some question about the callbacks function of "apply" signal in glade. I have a propertybox which have 3 pages with one "apply" button automatically created by glade. I set something in the apply callbacks function, and I find that each time I press the apply button, the program go into the apply callbacks function serveral times!! I afraid that this will slow down my program. Because my apply callbacks function is quite complicated and long...and i afraid that if each time user click "apply" for once, but the program go into the apply callbacks function serveral times, this will really slow down my program. I would be very pleased that u have some suggestion for me. From hp@redhat.com Thu Feb 7 12:40:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id DC21A18306 for ; Thu, 7 Feb 2002 12:40:05 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g17HdtU24886; Thu, 7 Feb 2002 12:39:55 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Kneusel Cc: "'gtk-list@gnome.org'" Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? References: From: Havoc Pennington Date: 07 Feb 2002 12:39:55 -0500 In-Reply-To: Message-ID: Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Kneusel writes: > I have a GtkEntry which is attached to a fixed widget and that is > attached to a frame in another fixed widget. > > The entry box appears and I can set the text, highlight the text > with the mouse, but cannot type in the box. Anything typed appears > at the shell prompt. > > Why? Am I missing a step? I've set the widget to "editable" with > no appearant effect. > Sounds like your window manager still has focus on the terminal console window, instead of your GTK app. Why that is, I don't know. Havoc From rtk@cmed.com Thu Feb 7 12:44:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.cmed.com (mail.cmed.com [12.147.70.66]) by mail.gnome.org (Postfix) with SMTP id 4298318CB2 for ; Thu, 7 Feb 2002 12:44:13 -0500 (EST) Received: from no.name.available by mail.cmed.com via smtpd (for moniker.gnome.org [209.116.70.73]) with SMTP; 7 Feb 2002 17:44:13 UT Received: by exchange.cmed.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 10:44:07 -0700 Message-ID: From: Ronald Kneusel To: Cc: "'gtk-list@gnome.org'" Subject: RE: GtkEntry not accepting keyboard input (GTK+ 1.2)? Date: Thu, 7 Feb 2002 10:44:06 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > -----Original Message----- > From: Havoc Pennington [SMTP:hp@redhat.com] > Sent: Thursday, February 07, 2002 10:40 AM > To: Ronald Kneusel > Cc: 'gtk-list@gnome.org' > Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? > > > Ronald Kneusel writes: > > I have a GtkEntry which is attached to a fixed widget and that is > > attached to a frame in another fixed widget. > > > > The entry box appears and I can set the text, highlight the text > > with the mouse, but cannot type in the box. Anything typed appears > > at the shell prompt. > > > > Why? Am I missing a step? I've set the widget to "editable" with > > no appearant effect. > > > >Sounds like your window manager still has focus on the terminal >console window, instead of your GTK app. Why that is, I don't know. You were correct! I created a full screen window as a POPUP window and it wasn't getting keyboard focus. I made it a TOPLEVEL window without decorations and all it well. Thanks! Ron From flavio@maqplas.com.br Thu Feb 7 13:21:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id 535F218519 for ; Thu, 7 Feb 2002 13:21:41 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g17ILPD1021073; Thu, 7 Feb 2002 16:21:26 -0200 (BRST) Subject: RE: GtkEntry not accepting keyboard input (GTK+ 1.2)? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Ronald Kneusel Cc: "'gtk-list@gnome.org'" In-Reply-To: References: Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 07 Feb 2002 16:17:31 -0200 Message-Id: <1013105854.1178.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I had this same problem! I wanna create a full window popup (modal for my applications) but it didn't have focus... The solution, I don't know if is elegant, but works, I create a window TOPLEVEL with 0x0 dimension and I atached this big popup Window, when I run the program, the focus came in to this little window and my window has focus. Good Lucky Good Work Success Flavio Alberto Em 07 Feb 2002 10:44:06 -0700, Ronald Kneusel escreveu: > > > > -----Original Message----- > > From: Havoc Pennington [SMTP:hp@redhat.com] > > Sent: Thursday, February 07, 2002 10:40 AM > > To: Ronald Kneusel > > Cc: 'gtk-list@gnome.org' > > Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? > > > > > > Ronald Kneusel writes: > > > I have a GtkEntry which is attached to a fixed widget and that is > > > attached to a frame in another fixed widget. > > > > > > The entry box appears and I can set the text, highlight the text > > > with the mouse, but cannot type in the box. Anything typed appears > > > at the shell prompt. > > > > > > Why? Am I missing a step? I've set the widget to "editable" with > > > no appearant effect. > > > > > > >Sounds like your window manager still has focus on the terminal > >console window, instead of your GTK app. Why that is, I don't know. > > You were correct! I created a full screen window as a POPUP window > and it wasn't getting keyboard focus. I made it a TOPLEVEL window > without decorations and all it well. > > Thanks! > > Ron > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From doc@deadvirgins.org.uk Thu Feb 7 14:01:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand3.global.net.uk (sand3.global.net.uk [195.147.246.249]) by mail.gnome.org (Postfix) with ESMTP id 66DF5181AA for ; Thu, 7 Feb 2002 14:01:25 -0500 (EST) Received: from pacs13a06.client.global.net.uk ([195.147.221.173] helo=deadvirgins.org.uk) by sand3.global.net.uk with esmtp (Exim 3.22 #1) id 16YtnO-0000bb-00 for gtk-list@gnome.org; Thu, 07 Feb 2002 19:01:23 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g17J0Sx00202 for gtk-list@gnome.org; Thu, 7 Feb 2002 19:00:28 GMT Message-Id: <200202071900.g17J0Sx00202@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: gtk-list@gnome.org Subject: Creating widgets with auto-repeat Date: Thu, 7 Feb 2002 19:00:28 +0000 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks to the people who pointed me in the right direction regarding my question about auto-repeating buttons. The spinbutton source code did indeed gave me some ideas and I've hacked together the following "code" which I thought others might find useful as a starting point, particularly in light of the fact that someone asked a similar question straight after me. The auto-repeat starts after the button is held for 500ms, then goes through two levels of speedup if the button is still pressed. Perhaps someone with a bit more experience of this sort of thing could point out a neat way to avoid all the globals here, so this code could be reused in a more generic way... Perosnally, I *like* globals... :-) /******** CODE BEGINS *********************************/ #include #include #define REPEAT_STAGE0_DELAY 500 #define REPEAT_STAGE1_DELAY 50 #define REPEAT_STAGE2_DELAY 3 guint32 timer_id = 0; gint timer_state = 0; gint timer_count = 0; gint value = 0; /* Timer callback function! */ static gint timer_func ( void ) { /* Autorepeat state machine */ switch (timer_state) { case 0: /* Enable slow auto-repeat */ gtk_timeout_remove(timer_id); timer_id = gtk_timeout_add( REPEAT_STAGE1_DELAY, (GtkFunction)timer_func, NULL); timer_state = 1; timer_count = 0; break; case 1: /* Check if it's time for fast repeat yet */ if (timer_count++ > 50) timer_state = 2; break; case 2: /* Start fast auto-repeat */ gtk_timeout_remove(timer_id); timer_id = gtk_timeout_add( REPEAT_STAGE2_DELAY, (GtkFunction)timer_func, NULL); timer_state = 3; break; default: break; } /* Increment value */ printf("value: %d\n", value++); return TRUE; } void button_press_proc( GtkWidget *widget, gpointer data ) { /* Increment value */ printf("VALUE: %d\n", value++); /* Remove an existing timer */ if (timer_id) gtk_timeout_remove(timer_id); /* Setup a timer */ timer_id = gtk_timeout_add( REPEAT_STAGE0_DELAY, (GtkFunction)timer_func, NULL); timer_state = 0; } void button_release_proc( GtkWidget *widget, gpointer data ) { /* Remove timer */ gtk_timeout_remove(timer_id); timer_id = 0; timer_state = 0; } int main( int argc, char *argv[] ) { GtkWidget *window; GtkWidget *button; gtk_init(&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_set_border_width (GTK_CONTAINER (window), 10); button = gtk_button_new_with_label (" INCREMENT "); gtk_signal_connect (GTK_OBJECT (button), "button_press_event", GTK_SIGNAL_FUNC (button_press_proc), NULL); gtk_signal_connect (GTK_OBJECT (button), "button_release_event", GTK_SIGNAL_FUNC (button_release_proc), NULL); gtk_container_add (GTK_CONTAINER (window), button); gtk_widget_show (button); gtk_widget_show (window); gtk_main (); return(0); } /***************** END OF CODE *********************************/ -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From pbd@op.net Thu Feb 7 14:22:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 8AE96183E5 for ; Thu, 7 Feb 2002 14:22:19 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-24.phlpa.fast.net [209.92.99.24]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA27978; Thu, 7 Feb 2002 14:22:14 -0500 (EST) Message-Id: <200202071922.OAA27978@renoir.op.net> To: doc@deadvirgins.org.uk Cc: gtk-list@gnome.org Subject: Re: Creating widgets with auto-repeat In-reply-to: Your message of "Thu, 07 Feb 2002 19:00:28 GMT." <200202071900.g17J0Sx00202@deadvirgins.org.uk> Date: Thu, 07 Feb 2002 14:21:16 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Perhaps someone with a bit more experience of this sort of thing could point >out a neat way to avoid all the globals here, so this code could be reused >in a more generic way... > >Perosnally, I *like* globals... :-) you are right about needing a bit more experience :) >guint32 timer_id = 0; >gint timer_state = 0; >gint timer_count = 0; >gint value = 0; typedef struct timer_func_info { guint32 timer_id; gint timer_state; gint timer_count; gint value; } timer_func_info_t; >/* Timer callback function! */ >static gint timer_func (gpointer data ) >{ timer_func_info_t *info = (timer_func_info_t *) data; ... now use info-> instead of the globals. > return TRUE; > >} > >void button_press_proc( GtkWidget *widget, gpointer data ) >{ timer_func_info_t *info = (timer_func_info_t *) data; > /* Increment value */ > printf("VALUE: %d\n", value++); > > /* Setup a timer */ info->value++; info->count = 0; info->state = 0; > info->timer_id = gtk_timeout_add(REPEAT_STAGE0_DELAY, (GtkFunction)timer_func, info); >} > >void button_release_proc( GtkWidget *widget, gpointer data ) >{ > > /* Remove timer */ timer_func_info_t *info = (timer_func_info_t *) data; gtk_timeout_remove(info->timer_id); >} > >int main( int argc, char *argv[] ) >{ > GtkWidget *window; > GtkWidget *button; timer_func_info_t info; > > gtk_init(&argc, &argv); info->value = 0; > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > gtk_container_set_border_width (GTK_CONTAINER (window), 10); > button = gtk_button_new_with_label (" INCREMENT "); gtk_signal_connect (GTK_OBJECT (button), "button_press_event", GTK_SIGNAL_FUNC (button_press_proc), &info); gtk_signal_connect (GTK_OBJECT (button), "button_release_event", GTK_SIGNAL_FUNC (button_release_proc), &info); > gtk_container_add (GTK_CONTAINER (window), button); > gtk_widget_show (button); > gtk_widget_show (window); > gtk_main (); > > return(0); >} all clear? --p From hp@redhat.com Thu Feb 7 15:00:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id A5E5118110 for ; Thu, 7 Feb 2002 15:00:52 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g17K0fS14001; Thu, 7 Feb 2002 15:00:41 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Kneusel Cc: "'gtk-list@gnome.org'" Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? References: From: Havoc Pennington Date: 07 Feb 2002 15:00:41 -0500 In-Reply-To: Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Kneusel writes: > You were correct! I created a full screen window as a POPUP window > and it wasn't getting keyboard focus. I made it a TOPLEVEL window > without decorations and all it well. Right, POPUP windows should never be used if you need to type into the window. POPUP means the window manager does not know about the window, so can't focus it. Havoc From ramses@computer.org Thu Feb 7 22:14:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id 6D49D180E1 for ; Thu, 7 Feb 2002 22:14:11 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020208031430.UJLR480.sv16@adsl50> for ; Thu, 7 Feb 2002 22:14:30 -0500 Subject: A better way to get a widget from a GnomeDialog pointer??? From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 07 Feb 2002 22:21:52 -0500 Message-Id: <1013138513.2696.18.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, check this callback: void on_add_magazine_button_clicked(GtkButton *button, gpointer user_data) { GtkWidget *dialog = create_add_magazine_dialog(); GtkWidget *entry; struct _GtkBoxChild *child; int result; GList *dialog_children = GTK_BOX(GNOME_DIALOG(dialog)->vbox)->children; result = gnome_dialog_run(GNOME_DIALOG(dialog)); if ( result == 0 ) { child = ((struct _GtkBoxChild *)(g_list_nth_data(dialog_children, 3))); entry = child->widget; g_print("%s\n", gtk_entry_get_text(GTK_ENTRY(entry))); child = ((struct _GtkBoxChild *)(g_list_nth_data(dialog_children, 5))); entry = child->widget; g_print("%s\n", gtk_entry_get_text(GTK_ENTRY(entry))); } gtk_widget_destroy(GTK_WIDGET(dialog)); } In short, this callback runs a gnome dialog and gets the data inside the two GtkEntry included on that dialog. Inside this function I only have access to the dialog widget. As you can see, I have harcoded the positions of the GtkEntry widgets inside the GList. If I modify the dialog, adding another widget, then this function will break because the entries won't be at the index 3 and 5. What can I do to have a more elegant, not harcoded way, to reference the GtkEntry widgets?? ALSO: Is it a good idea to mess around directly with struct _GtkBoxChild??? Thanks for your help. From inimss@yahoo.com Fri Feb 8 01:22:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by mail.gnome.org (Postfix) with SMTP id A537F18161 for ; Fri, 8 Feb 2002 01:22:16 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.117) by smtp.mail.vip.sc5.yahoo.com with SMTP; 8 Feb 2002 06:22:14 -0000 Message-ID: <3C621201.4C140F05@yahoo.com> Date: Thu, 07 Feb 2002 11:04:57 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Paul Davis , gtk-list Subject: Re: [INIMSS] Which is the best place to initialize widgets in a window. References: <200202071639.LAA09652@renoir.op.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Will the events, map_event & expose be triggered multiple times in the life of a window? My understanding is that the map event will be triggered only once, during the creation of the window for the first time, but the other one, expose, will be triggered each time the window or widget comes to the foreground (ie, its visible on the screen). Thanks Dino Paul Davis wrote: > > >Which is the best event handler to be used for initializing the widgets > >in a window, (to load data into it). > > the expose event is where the widget gets drawn, so that would be the > obvious place. just do your stuff, and return FALSE. the regular > drawing code will then happen as expected, using your data. > > i sometimes use map_event for widgets that need to be rebuilt every > time they are "mapped" (XWindow terminology for the step of taking the > X server data structure for a window and making its contents appear on > a display). however, in general, i think you should be using the > expose event. > > --p > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From zanac_fake@libero.it Fri Feb 8 02:43:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by mail.gnome.org (Postfix) with ESMTP id 1C088181ED for ; Fri, 8 Feb 2002 02:43:59 -0500 (EST) Received: from libero.it (193.70.192.44) by smtp2.libero.it (6.0.040) id 3C584044005AF09D for gtk-list@gnome.org; Fri, 8 Feb 2002 08:43:57 +0100 Date: Fri, 8 Feb 2002 08:43:56 +0100 Message-Id: Subject: =?iso-8859-1?Q?GTK_2.0_GtkTreeViewColumn_buggy=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?iso-8859-1?Q?zanac=5Ffake?=" To: gtk-list@gnome.org X-XaM3-API-Version: 2.5 X-type:0 X-SenderIP: 193.227.212.161 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SSdtIHRyeWluZyB0byBhZGQgc29tZSB3aWRnZXQgdG8gYSBHdGtUcmVlVmlldyAgdXNpbmcg IHRoZSAgZnVuY3Rpb24NCmd0a190cmVlX3ZpZXdfY29sdW1uX3NldF93aWRnZXQuIElmIGkg YWRkIGEgR3RrTGFiZWwgYWxsIHdvcmsgIGZpbmUsDQpidXQgaWYgYSBhZGQsIGZvciBleGFt cGxlLCBhIEd0a0J1dHRvbiB1c2luZyBndGtfYnV0dG9uX25ld19tbmVtb25pYw0KdGhlIGJ1 dHRvbiBkb2Vzbid0IGNhbGxiYWNrIHRvIHRoZSBjbGlja2VkIHNpZ25hbC4uLiAgYnV0IHIg ZXBseSAgdG8NCnRoZSBtbmVtb25pYyA8YWx0LXM+Lg0KDQpFdmVuIGlmIGEgYWRkIGEgR3Rr RW50cnkgdGhlIHByb2JsZW0gcGVyc2lzdC4uLg0KDQpIb3cgY2FuIGkgc29sdmUgaXQ/ From deepa.chacko@wipro.com Fri Feb 8 04:20:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id BFCA8180D8; Fri, 8 Feb 2002 04:20:49 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g189JjX20626; Fri, 8 Feb 2002 14:49:45 +0530 (IST) Received: from wipro.com ([10.114.9.180]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GR7J9300.4TQ; Fri, 8 Feb 2002 14:49:51 +0530 Message-ID: <3C639AF8.B378AA0@wipro.com> Date: Fri, 08 Feb 2002 15:01:36 +0530 From: Deepa X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org, desktop-devel-list Subject: Equivalents for gdk_input_remove,gdk_input_add etc Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi I am encountering these deprecated calls in libzvt: gdk_input_remove () gdk_input_add () gdk_rgb_init () Could anyone please tell me what is the replacement for these. Thanks in advance Deepa ------=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8 Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ******************************************************************** ------=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8-- From Ulrich.Kerber@faidor.de Fri Feb 8 06:38:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailrelay.faidor.de (mailrelay.faidor.de [195.126.215.15]) by mail.gnome.org (Postfix) with ESMTP id A9815181E3 for ; Fri, 8 Feb 2002 06:38:11 -0500 (EST) Received: from faiopf2005.faidor.de (xmail.faidor.de [195.126.215.2]) by mailrelay.faidor.de (8.9.3/8.9.3) with ESMTP id LAA20355 for ; Fri, 8 Feb 2002 11:29:39 +0100 Received: by faiopf2005.faidor.de with Internet Mail Service (5.5.2653.19) id <1Q3L7PTY>; Fri, 8 Feb 2002 12:38:10 +0100 Received: from dshpc004.opf.debis.de ([53.140.8.78]) by faiopf2005.faidor.de with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1Q3L7PTW; Fri, 8 Feb 2002 12:38:08 +0100 From: "Kerber, Ulrich" To: gtk-list@gnome.org Subject: Memory problems while using a clist Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 08 Feb 2002 12:39:55 +0100 Message-Id: <1013168395.2884.11.camel@dshpc004> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I wrote an app with a clist showing the contents of a log file; the clist is updated every 60 seconds. Although i do a gtk_clist_clear, the memory used is increasing with every run, even if no element is added. After a day of work the amount reaches up to 40 MB! Does anybody know a solution to this problem? Thanks, Uli From nicholas.allen@ireland.sun.com Fri Feb 8 09:24:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36]) by mail.gnome.org (Postfix) with ESMTP id A9419190CB for ; Fri, 8 Feb 2002 09:24:25 -0500 (EST) Received: from ireserver.Ireland.Sun.COM ([129.156.220.7]) by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id HAA06534 for ; Fri, 8 Feb 2002 07:24:24 -0700 (MST) Received: from ireland.sun.com (ledzep [129.156.220.79]) by ireserver.Ireland.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.2) with ESMTP id OAA19986 for ; Fri, 8 Feb 2002 14:24:23 GMT Message-ID: <3C63DF90.1090104@ireland.sun.com> Date: Fri, 08 Feb 2002 14:24:16 +0000 From: nicholas allen Organization: Sun Microsystems User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011226 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Iconify/deioconfy gtk windows Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I can't find any API to iconify and deiconify a GtkWindow. Does anyone know how to do this? How do I listen in for an iconify/deioconify signal as well as there doesn't seem to be a signal to connect to for this event? I can't find anything useful in the Gdk library either. I thought there would be a gtk_window_iconify function or something similar. Thanks in advance for any help anyone can offer. -- Nick Allen Software Engineer Sun Microsystems Ireland Ltd Hamilton House East Point Business Park Dublin 3 email: nicholas.allen@ireland.sun.com From pbd@op.net Fri Feb 8 10:00:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id A848518165 for ; Fri, 8 Feb 2002 10:00:46 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-323.phlpa.fast.net [209.92.228.69]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA28790; Fri, 8 Feb 2002 10:00:43 -0500 (EST) Message-Id: <200202081500.KAA28790@renoir.op.net> To: Dino Cherian K Cc: gtk-list Subject: Re: [INIMSS] Which is the best place to initialize widgets in a window. In-reply-to: Your message of "Thu, 07 Feb 2002 11:04:57 +0530." <3C621201.4C140F05@yahoo.com> Date: Fri, 08 Feb 2002 09:59:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi > >Will the events, map_event & expose be triggered multiple times in the >life of a window? > >My understanding is that the map event will be triggered only once, the map event will occur every time the window is mapped, for example, when it is de-iconfied. >during the creation of the window for the first time, but the other one, >expose, will be triggered each time the window or widget comes to the >foreground (ie, its visible on the screen). the expose event will occur anytime there is an "increase" in the visibility of any part of the widget. this will include de-iconfication, raising above other windows, an occluding window being moved out of the way, etc. to repeat a point thats been several times in the last few days, since many people new to X and GTK+ don't fully grok this: with the XWindow system, the X server does *not* maintain the contents of your window on your behalf. any time visibility increases in some part of your window, *you* must be able to redraw that part from scratch. this is apparently a little different from the situation with win32, but i wouldn't know anything about that. some X servers support "save under", which will handle the redrawing for you under some circumstances, but not all, and my impression is that most people don't use this feature these days. --p From pbd@op.net Fri Feb 8 10:04:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3204A18285 for ; Fri, 8 Feb 2002 10:04:06 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-323.phlpa.fast.net [209.92.228.69]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA29100; Fri, 8 Feb 2002 10:04:03 -0500 (EST) Message-Id: <200202081504.KAA29100@renoir.op.net> To: nicholas allen Cc: gtk-list@gnome.org Subject: Re: Iconify/deioconfy gtk windows In-reply-to: Your message of "Fri, 08 Feb 2002 14:24:16 GMT." <3C63DF90.1090104@ireland.sun.com> Date: Fri, 08 Feb 2002 10:03:18 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I can't find any API to iconify and deiconify a GtkWindow. Does anyone >know how to do this? How do I listen in for an iconify/deioconify signal >as well as there doesn't seem to be a signal to connect to for this >event? I can't find anything useful in the Gdk library either. i would imagine that map_event and unmap event will correspond more or less to these changes. >I thought there would be a gtk_window_iconify function or something similar. i doubt it. under X, (de)iconification is *generally* considered to be a function of the window manager, not the application. --p From sven@gimp.org Fri Feb 8 10:28:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 2DBDD18165 for ; Fri, 8 Feb 2002 10:28:09 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZCjY-00069m-00; Fri, 08 Feb 2002 16:14:40 +0100 To: Paul Davis Cc: nicholas allen , gtk-list@gnome.org Subject: Re: Iconify/deioconfy gtk windows References: <200202081504.KAA29100@renoir.op.net> From: Sven Neumann Date: 08 Feb 2002 16:14:40 +0100 In-Reply-To: <200202081504.KAA29100@renoir.op.net> Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Paul Davis writes: > >I thought there would be a gtk_window_iconify function or something similar. > > i doubt it. under X, (de)iconification is *generally* considered to be > a function of the window manager, not the application. GTK+-2.0 has this function. Basically it calls XIconifyWindow (if using the X11 backend). Salut, Sven From hp@redhat.com Fri Feb 8 11:19:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id F07851810E; Fri, 8 Feb 2002 11:19:27 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18GJIT29439; Fri, 8 Feb 2002 11:19:18 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Deepa Cc: gtk-list@gnome.org, desktop-devel-list Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc References: <3C639AF8.B378AA0@wipro.com> From: Havoc Pennington Date: 08 Feb 2002 11:19:18 -0500 In-Reply-To: <3C639AF8.B378AA0@wipro.com> Message-ID: Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Deepa writes: > gdk_input_remove () g_source_remove() > gdk_input_add () g_io_channel_add_watch () > gdk_rgb_init () No longer required, simply delete all instances of this. Havoc From pbd@op.net Fri Feb 8 11:25:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9481318331; Fri, 8 Feb 2002 11:25:13 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-341.phlpa.fast.net [209.92.231.87]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA08014; Fri, 8 Feb 2002 11:24:52 -0500 (EST) Message-Id: <200202081624.LAA08014@renoir.op.net> To: Havoc Pennington Cc: Deepa , gtk-list@gnome.org, desktop-devel-list Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc In-reply-to: Your message of "08 Feb 2002 11:19:18 EST." Date: Fri, 08 Feb 2002 11:24:07 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> gdk_input_remove () > >g_source_remove() > >> gdk_input_add () > >g_io_channel_add_watch () last time i looked at the replacement functions, their interface was intimidating in the extreme. it required me to understand a *LOT* more about glib than i wanted to. by contrast, gdk_input_*() were pitched at exactly the right level. i spent 10 minutes or so trying to understand g_io_channel_add_watch() and gave up. --p From hp@redhat.com Fri Feb 8 11:45:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 748AA192B6 for ; Fri, 8 Feb 2002 11:45:35 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18GjXf32623; Fri, 8 Feb 2002 11:45:33 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Kerber, Ulrich" Cc: gtk-list@gnome.org Subject: Re: Memory problems while using a clist References: <1013168395.2884.11.camel@dshpc004> From: Havoc Pennington Date: 08 Feb 2002 11:45:33 -0500 In-Reply-To: <1013168395.2884.11.camel@dshpc004> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Kerber, Ulrich" writes: > I wrote an app with a clist showing the contents of a log file; the > clist is updated every 60 seconds. Although i do a gtk_clist_clear, > the memory used is increasing with every run, even if no element is > added. After a day of work the amount reaches up to 40 MB! > Does anybody know a solution to this problem? > You just need to debug it. Use a tool such as "memprof" to see where the memory is leaked. Havoc From hp@redhat.com Fri Feb 8 11:46:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id BB639192CB for ; Fri, 8 Feb 2002 11:46:35 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18GkV132627; Fri, 8 Feb 2002 11:46:31 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: nicholas allen Cc: gtk-list@gnome.org Subject: Re: Iconify/deioconfy gtk windows References: <3C63DF90.1090104@ireland.sun.com> From: Havoc Pennington Date: 08 Feb 2002 11:46:31 -0500 In-Reply-To: <3C63DF90.1090104@ireland.sun.com> Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: nicholas allen writes: > I thought there would be a gtk_window_iconify function or something > similar. GTK 2 has this function. In 1.2, you probably want to look at the GTK 2 source and copy what it does. Check out the ICCCM to understand why it does it. Havoc From hp@redhat.com Fri Feb 8 12:30:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 51D0C180F8; Fri, 8 Feb 2002 12:30:38 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18HUat32647; Fri, 8 Feb 2002 12:30:36 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Deepa , gtk-list@gnome.org, desktop-devel-list Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc References: <200202081624.LAA08014@renoir.op.net> From: Havoc Pennington Date: 08 Feb 2002 12:30:36 -0500 In-Reply-To: <200202081624.LAA08014@renoir.op.net> Message-ID: Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > last time i looked at the replacement functions, their interface was > intimidating in the extreme. it required me to understand a *LOT* more > about glib than i wanted to. by contrast, gdk_input_*() were pitched > at exactly the right level. i spent 10 minutes or so trying to > understand g_io_channel_add_watch() and gave up. > I agree there should be a g_input_add() type of thing. One for bugzilla. It's really not hard though (you just create an IO channel using g_io_channel_unix_new(), g_io_channel_add_watch(), then g_io_channel_unref()). The only difference is having to wrap the file descriptor in the IOChannel deal. Havoc From zanac_fake@libero.it Fri Feb 8 13:18:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by mail.gnome.org (Postfix) with ESMTP id 46E20181E8 for ; Fri, 8 Feb 2002 13:18:59 -0500 (EST) Received: from libero.it (193.70.192.58) by smtp2.libero.it (6.0.040) id 3C5840440061FB84 for gtk-list@gnome.org; Fri, 8 Feb 2002 19:18:57 +0100 Date: Fri, 8 Feb 2002 19:18:49 +0100 Message-Id: Subject: =?iso-8859-1?Q?sample_source_of_buggy_gtk_2.0_function?= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?iso-8859-1?Q?zanac=5Ffake?=" To: gtk-list@gnome.org X-XaM3-API-Version: 2.5 X-type:0 X-SenderIP: 151.25.54.250 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQoNCmFzIGkgbWVudGlvbmVkIGluIGFub3RoZXIgcG9zdCBpIHRoaW5rIHRoYXQgR3Rr VHJlZVZpZXdDb2x1bW4gaXMgYnVnZ3ksDQpidXQgbm8gb25lIGhlbHBlZCBtZS4uLiBzbyBp IGhhdmUganVzdCB3cml0ZSB0aGlzIHNtYWxsIHNhbXBsZSB0aGF0IHlvdQ0KY2FuIHVzZSB0 byB0cnkgdGhpcyBwcm9ibGVtLiBJbiB0aGlzIHNhbXBsZSBpZiB5b3UgcHJlc3MgPGFsdCt1 PiB0aGUNCmJ1dHRvbjIgd29yaywgYnV0IGlmIHlvdSB1c2UgdGhlIG1vdXNlLi4uLi4uLi4u Lg0KDQpieWVaIQ0KDQpfX19fX19fX19fX19fX19fX19jdXQgaGVyZSEhIV9fX19fX19fX19f X19fX19fX19fX19fX19fDQoNCg0KI2luY2x1ZGUgPGd0ay9ndGsuaD4NCg0KdHlwZWRlZiBz dHJ1Y3QNCnsNCiAgZ2ludCAgICAgbnVtYmVyOw0KICBnY2hhciAgICpwcm9kdWN0Ow0KfQ0K SXRlbTsNCg0KZW51bQ0Kew0KICBDT0xVTU5fTlVNQkVSLA0KICBDT0xVTU5fUFJPRFVDVCwN CiAgTlVNX0NPTFVNTlMNCn07DQoNCnN0YXRpYyBHQXJyYXkgKmFydGljbGVzID0gTlVMTDsN Cg0KDQoNCmludCBmbGFnID0gMDsNCmludCBmbGFnMiA9IDE7DQoNCkd0a1dpZGdldCAqYnV0 dG9uMTsNCkd0a1dpZGdldCAqYnV0dG9uMjsNCkd0a1dpZGdldCAqdmlldzsNCg0KLyogT3Vy IG5ldyBpbXByb3ZlZCBjYWxsYmFjay4gIFRoZSBkYXRhIHBhc3NlZCB0byB0aGlzIGZ1bmN0 aW9uDQogKiBpcyBwcmludGVkIHRvIHN0ZG91dC4gKi8NCnZvaWQgY2FsbGJhY2soIEd0a1dp ZGdldCAqd2lkZ2V0LA0KICAgICAgICAgICAgICAgZ3BvaW50ZXIgICBkYXRhICkNCnsNCglp ZiAoc3RyY21wKGRhdGEsICJidXR0b24gMSIpKQ0KCXsNCgkJZmxhZyA9IDEtZmxhZzsNCg0K CQlpZiAoZmxhZykNCgkJCWd0a193aWRnZXRfaGlkZShidXR0b24xKTsNCgkJZWxzZSBndGtf d2lkZ2V0X3Nob3coYnV0dG9uMSk7DQoJCWdfcHJpbnQgKCJIZWxsbyBhZ2FpbiAtICVzIHdh cyBwcmVzc2VkXG4iLCAoY2hhciAqKSBkYXRhKTsNCgl9IGVsc2Ugew0KCQlmbGFnMiA9IDEt ZmxhZzI7DQoJCWd0a193aWRnZXRfc2V0X3NlbnNpdGl2ZShidXR0b24yLCBmbGFnMik7DQoJ fQ0KfQ0KDQpnaW50IGRlbGV0ZV9ldmVudCggR3RrV2lkZ2V0ICp3aWRnZXQsDQogICAgICAg ICAgICAgICAgICAgR2RrRXZlbnQgICpldmVudCwNCiAgICAgICAgICAgICAgICAgICBncG9p bnRlciAgIGRhdGEgKQ0Kew0KICAgIGd0a19tYWluX3F1aXQoKTsNCiAgICByZXR1cm4oRkFM U0UpOw0KfQ0KDQoNCnN0YXRpYyB2b2lkDQphZGRfaXRlbXMgKHZvaWQpDQp7DQogIEl0ZW0g Zm9vOw0KDQogIGdfcmV0dXJuX2lmX2ZhaWwgKGFydGljbGVzICE9IE5VTEwpOw0KDQogIGZv by5udW1iZXIgPSAzOw0KICBmb28ucHJvZHVjdCA9IGdfc3RyZHVwICgiYm90dGxlcyBvZiBj b2tlIik7DQogIGdfYXJyYXlfYXBwZW5kX3ZhbHMgKGFydGljbGVzLCAmZm9vLCAxKTsNCg0K ICBmb28ubnVtYmVyID0gNTsNCiAgZm9vLnByb2R1Y3QgPSBnX3N0cmR1cCAoInBhY2thZ2Vz IG9mIG5vb2RsZXMiKTsNCiAgZ19hcnJheV9hcHBlbmRfdmFscyAoYXJ0aWNsZXMsICZmb28s IDEpOw0KDQogIGZvby5udW1iZXIgPSAyOw0KICBmb28ucHJvZHVjdCA9IGdfc3RyZHVwICgi cGFja2FnZXMgb2YgY2hvY29sYXRlIGNoaXAgY29va2llcyIpOw0KICBnX2FycmF5X2FwcGVu ZF92YWxzIChhcnRpY2xlcywgJmZvbywgMSk7DQoNCiAgZm9vLm51bWJlciA9IDE7DQogIGZv by5wcm9kdWN0ID0gZ19zdHJkdXAgKCJjYW4gdmFuaWxsYSBpY2UgY3JlYW0iKTsNCiAgZ19h cnJheV9hcHBlbmRfdmFscyAoYXJ0aWNsZXMsICZmb28sIDEpOw0KDQogIGZvby5udW1iZXIg PSA2Ow0KICBmb28ucHJvZHVjdCA9IGdfc3RyZHVwICgiZWdncyIpOw0KICBnX2FycmF5X2Fw cGVuZF92YWxzIChhcnRpY2xlcywgJmZvbywgMSk7DQp9DQoNCnN0YXRpYyBHdGtUcmVlTW9k ZWwgKg0KY3JlYXRlX21vZGVsICh2b2lkKQ0Kew0KICBnaW50IGkgPSAwOw0KICBHdGtMaXN0 U3RvcmUgKm1vZGVsOw0KICBHdGtUcmVlSXRlciBpdGVyOw0KDQogIC8qIGNyZWF0ZSBhcnJh eSAqLw0KICBhcnRpY2xlcyA9IGdfYXJyYXlfc2l6ZWRfbmV3IChGQUxTRSwgRkFMU0UsIHNp emVvZiAoSXRlbSksIDEpOw0KDQogIGFkZF9pdGVtcyAoKTsNCg0KICAvKiBjcmVhdGUgbGlz dCBzdG9yZSAqLw0KICBtb2RlbCA9IGd0a19saXN0X3N0b3JlX25ldyAoTlVNX0NPTFVNTlMs IEdfVFlQRV9JTlQsIEdfVFlQRV9TVFJJTkcsDQoJCQkgICAgICBHX1RZUEVfQk9PTEVBTik7 DQoNCiAgLyogYWRkIGl0ZW1zICovDQogIGZvciAoaSA9IDA7IGkgPCBhcnRpY2xlcy0+bGVu OyBpKyspDQogICAgew0KICAgICAgZ3RrX2xpc3Rfc3RvcmVfYXBwZW5kIChtb2RlbCwgJml0 ZXIpOw0KDQogICAgICBndGtfbGlzdF9zdG9yZV9zZXQgKG1vZGVsLCAmaXRlciwNCgkJCSAg Q09MVU1OX05VTUJFUiwNCgkJCSAgZ19hcnJheV9pbmRleCAoYXJ0aWNsZXMsIEl0ZW0sIGkp Lm51bWJlciwNCgkJCSAgQ09MVU1OX1BST0RVQ1QsDQoJCQkgIGdfYXJyYXlfaW5kZXggKGFy dGljbGVzLCBJdGVtLCBpKS5wcm9kdWN0LA0KCQkJICAtMSk7DQogICAgfQ0KDQogIHJldHVy biBHVEtfVFJFRV9NT0RFTCAobW9kZWwpOw0KfQ0KDQoNCnN0YXRpYyB2b2lkDQphZGRfY29s dW1ucyAoR3RrVHJlZVZpZXcgKnRyZWV2aWV3KQ0Kew0KICBHdGtDZWxsUmVuZGVyZXIgKnJl bmRlcmVyOw0KICBHdGtUcmVlTW9kZWwgKm1vZGVsID0gZ3RrX3RyZWVfdmlld19nZXRfbW9k ZWwgKHRyZWV2aWV3KTsNCiAgR3RrVHJlZVZpZXdDb2x1bW4gKmNvbHVtbjsNCg0KICAvKiBu dW1iZXIgY29sdW1uICovDQogIHJlbmRlcmVyID0gZ3RrX2NlbGxfcmVuZGVyZXJfdGV4dF9u ZXcgKCk7DQogIGdfb2JqZWN0X3NldF9kYXRhIChHX09CSkVDVCAocmVuZGVyZXIpLCAiY29s dW1uIiwgKGdpbnQgKilDT0xVTU5fTlVNQkVSKTsNCg0KICBjb2x1bW4gPSBndGtfdHJlZV92 aWV3X2NvbHVtbl9uZXdfd2l0aF9hdHRyaWJ1dGVzICgiRGlyZWN0b3J5IiwNCiAgICAgICAg ICBndGtfY2VsbF9yZW5kZXJlcl90ZXh0X25ldyAoKSwNCiAgICAgICAgICAidGV4dCIsIDAs DQogICAgICAgICAgTlVMTCk7DQoNCiAgZ3RrX3RyZWVfdmlld19jb2x1bW5fc2V0X3dpZGdl dCAoY29sdW1uLCBidXR0b24yKTsNCi8vICBndGtfdHJlZV92aWV3X2NvbHVtbl9zZXRfY2xp Y2thYmxlIChjb2x1bW4sIGJ1dHRvbjIpOw0KICBndGtfdHJlZV92aWV3X2NvbHVtbl9zZXRf c2l6aW5nIChjb2x1bW4sIEdUS19UUkVFX1ZJRVdfQ09MVU1OX0dST1dfT05MWSk7DQogIGd0 a190cmVlX3ZpZXdfYXBwZW5kX2NvbHVtbiAoR1RLX1RSRUVfVklFVyAodmlldyksIGNvbHVt bik7DQoNCiAgLyogcHJvZHVjdCBjb2x1bW4gKi8NCiAgcmVuZGVyZXIgPSBndGtfY2VsbF9y ZW5kZXJlcl90ZXh0X25ldyAoKTsNCiAgZ19vYmplY3Rfc2V0X2RhdGEgKEdfT0JKRUNUIChy ZW5kZXJlciksICJjb2x1bW4iLCAoZ2ludCAqKUNPTFVNTl9QUk9EVUNUKTsNCg0KICBndGtf dHJlZV92aWV3X2luc2VydF9jb2x1bW5fd2l0aF9hdHRyaWJ1dGVzIChHVEtfVFJFRV9WSUVX ICh0cmVldmlldyksDQoJCQkJCSAgICAgICAtMSwgIlByb2R1Y3QiLCByZW5kZXJlciwNCgkJ CQkJICAgICAgICJ0ZXh0IiwgQ09MVU1OX1BST0RVQ1QsDQoJCQkJCSAgICAgICBOVUxMKTsN Cn0NCg0Kdm9pZCBjcmVhKCkNCnsNCiAgICBHdGtUcmVlTW9kZWwgKm1vZGVsOw0KDQogICAg LyogY3JlYXRlIG1vZGVsICovDQogICAgbW9kZWwgPSBjcmVhdGVfbW9kZWwgKCk7DQoNCiAg ICB2aWV3ID0gZ3RrX3RyZWVfdmlld19uZXdfd2l0aF9tb2RlbCAobW9kZWwpOw0KDQogICAg Z19vYmplY3RfdW5yZWYgKEdfT0JKRUNUIChtb2RlbCkpOw0KICAgIGd0a190cmVlX3ZpZXdf c2V0X3J1bGVzX2hpbnQgKEdUS19UUkVFX1ZJRVcgKHZpZXcpLCBUUlVFKTsNCiAgICBndGtf dHJlZV9zZWxlY3Rpb25fc2V0X21vZGUgKGd0a190cmVlX3ZpZXdfZ2V0X3NlbGVjdGlvbg0K KEdUS19UUkVFX1ZJRVcgKHZpZXcpKSwgR1RLX1NFTEVDVElPTl9TSU5HTEUpOw0KDQogICAg YWRkX2NvbHVtbnMgKEdUS19UUkVFX1ZJRVcgKHZpZXcpKTsNCiAgICANCiAgICBndGtfd2lk Z2V0X3Nob3codmlldyk7DQogICAgDQp9DQoNCg0KDQppbnQgbWFpbiggaW50ICAgYXJnYywN CiAgICAgICAgICBjaGFyICphcmd2W10gKQ0Kew0KICAgIEd0a1dpZGdldCAqd2luZG93Ow0K ICAgIEd0a1dpZGdldCAqYm94MTsNCg0KICAgIGd0a19pbml0ICgmYXJnYywgJmFyZ3YpOw0K DQogICAgd2luZG93ID0gZ3RrX3dpbmRvd19uZXcgKEdUS19XSU5ET1dfVE9QTEVWRUwpOw0K DQogICAgZ3RrX3dpbmRvd19zZXRfdGl0bGUgKEdUS19XSU5ET1cgKHdpbmRvdyksICJIZWxs byBCdXR0b25zISIpOw0KDQogICAgZ3RrX3NpZ25hbF9jb25uZWN0IChHVEtfT0JKRUNUICh3 aW5kb3cpLCAiZGVsZXRlX2V2ZW50IiwNCgkJCUdUS19TSUdOQUxfRlVOQyAoZGVsZXRlX2V2 ZW50KSwgTlVMTCk7DQoNCiAgICBndGtfY29udGFpbmVyX3NldF9ib3JkZXJfd2lkdGggKEdU S19DT05UQUlORVIgKHdpbmRvdyksIDEwKTsNCg0KICAgIGJveDEgPSBndGtfdmJveF9uZXco RkFMU0UsIDApOw0KDQogICAgZ3RrX2NvbnRhaW5lcl9hZGQgKEdUS19DT05UQUlORVIgKHdp bmRvdyksIGJveDEpOw0KDQogICAgYnV0dG9uMSA9IGd0a19idXR0b25fbmV3X3dpdGhfbW5l bW9uaWMgKCJfQnV0dG9uIDEiKTsNCg0KICAgIGd0a19zaWduYWxfY29ubmVjdCAoR1RLX09C SkVDVCAoYnV0dG9uMSksICJjbGlja2VkIiwNCgkJCUdUS19TSUdOQUxfRlVOQyAoY2FsbGJh Y2spLCAoZ3BvaW50ZXIpICJidXR0b24gMSIpOw0KDQogICAgZ3RrX2JveF9wYWNrX3N0YXJ0 KEdUS19CT1goYm94MSksIGJ1dHRvbjEsIFRSVUUsIFRSVUUsIDApOw0KDQogICAgZ3RrX3dp ZGdldF9zaG93KGJ1dHRvbjEpOw0KDQogICAgYnV0dG9uMiA9IGd0a19idXR0b25fbmV3X3dp dGhfbW5lbW9uaWMoImJfdXR0b24yIik7DQoNCiAgICBndGtfc2lnbmFsX2Nvbm5lY3QgKEdU S19PQkpFQ1QgKGJ1dHRvbjIpLCAiY2xpY2tlZCIsDQoJCQlHVEtfU0lHTkFMX0ZVTkMgKGNh bGxiYWNrKSwgKGdwb2ludGVyKSAiYnV0dG9uIDIiKTsNCg0KICAgIGd0a193aWRnZXRfc2hv dyhidXR0b24yKTsNCg0KICAgIGNyZWEoKTsNCiAgICBndGtfd2lkZ2V0X3Nob3codmlldyk7 DQogICAgZ3RrX2JveF9wYWNrX3N0YXJ0KEdUS19CT1goYm94MSksIHZpZXcsIFRSVUUsIFRS VUUsIDApOw0KDQogICAgZ3RrX3dpZGdldF9zaG93KGJveDEpOw0KDQogICAgZ3RrX3dpZGdl dF9zaG93ICh3aW5kb3cpOw0KDQogICAgZ3RrX21haW4gKCk7DQoNCiAgICByZXR1cm4oMCk7 DQp9DQoNCg== From eric.thierry@finconsult.fr Fri Feb 8 13:31:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from argyre.fr.uu.net (mail.iway.fr [194.98.0.9]) by mail.gnome.org (Postfix) with ESMTP id 29AA818413 for ; Fri, 8 Feb 2002 13:31:26 -0500 (EST) Received: from finconsult.fr ([212.208.176.166]) by argyre.fr.uu.net (8.9.3/8.8.7) with ESMTP id TAA28095 for ; Fri, 8 Feb 2002 19:38:16 +0100 (MET) Message-ID: <3C641977.5299747B@finconsult.fr> Date: Fri, 08 Feb 2002 19:31:19 +0100 From: Eric THIERRY X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Colored scrolled_window Content-Type: multipart/mixed; boundary="------------F54ED5736F99664E1C8C76A9" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. --------------F54ED5736F99664E1C8C76A9 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I create a scrolled window and a tree that I add in with a viewport. I'd like the background of the viewport to be colored, but it desperately remains white. Could someone help me about it ? Thanks a lot. -- Salutations, Eric THIERRY --------------F54ED5736F99664E1C8C76A9 Content-Type: text/x-vcard; charset=us-ascii; name="eric.thierry.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Eric THIERRY Content-Disposition: attachment; filename="eric.thierry.vcf" begin:vcard n:THIERRY;Eric tel;fax:01-53-45-32-99 tel;work:01-53-45-32-80 x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:eric.thierry@finconsult.fr fn:Eric THIERRY end:vcard --------------F54ED5736F99664E1C8C76A9-- From mmotta@guest.net Fri Feb 8 14:11:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from riccione.guest.net (server.guest.net [80.17.82.2]) by mail.gnome.org (Postfix) with ESMTP id 75B75190C7 for ; Fri, 8 Feb 2002 14:11:19 -0500 (EST) Received: from guest.net (dialup-08.guest.net [80.17.82.200] (may be forged)) by riccione.guest.net (8.8.8/8.8.8) with ESMTP id UAA13743 for ; Fri, 8 Feb 2002 20:18:03 +0100 (CET) (envelope-from mmotta@guest.net) Message-ID: <3C64317A.8030502@guest.net> Date: Fri, 08 Feb 2002 21:13:46 +0100 From: mario motta User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 X-Accept-Language: en-us, it MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: sample source of buggy gtk 2.0 function References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: zanac_fake wrote: > Hi, > > as i mentioned in another post i think that GtkTreeViewColumn is buggy, > but no one helped me... so i have just write this small sample that you > can use to try this problem. In this sample if you press the > button2 work, but if you use the mouse.......... > > byeZ! > $ cat > http://bugzilla.gnome.org/ /mario -- Mario Motta AI Research Group - Rimini http://vdkbuilder.sourceforge.net From emonsler@beamreachnetworks.com Fri Feb 8 17:48:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from newman.BEAMREACHNETWORKS.COM (unknown [209.11.118.10]) by mail.gnome.org (Postfix) with ESMTP id C3ED518189 for ; Fri, 8 Feb 2002 17:48:53 -0500 (EST) Received: from beamreachnetworks.com (e_monsler.beamreachnetworks.com [172.31.40.59]) by newman.BEAMREACHNETWORKS.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 4TNW0W0J; Fri, 8 Feb 2002 14:46:03 -0800 Message-ID: <3C6455BA.11ABCBC0@beamreachnetworks.com> Date: Fri, 08 Feb 2002 14:48:26 -0800 From: "Eric M. Monsler" X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: "Kerber, Ulrich" , gtk-list@gnome.org Subject: Re: Memory problems while using a clist References: <1013168395.2884.11.camel@dshpc004> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > "Kerber, Ulrich" writes: > > I wrote an app with a clist showing the contents of a log file; the > > clist is updated every 60 seconds. Although i do a gtk_clist_clear, > > the memory used is increasing with every run, even if no element is > > added. After a day of work the amount reaches up to 40 MB! > > Does anybody know a solution to this problem? > > > > You just need to debug it. Use a tool such as "memprof" to see where > the memory is leaked. > > Havoc A tool I found very useful was GSK, (GNU Server Kit), which can replace the g_malloc type GLib calls with debug versions, and keeps a record of all outstanding allocations. I used essentially just the gskdebug facility, and it worked great. gsk.sourceforge.net, IIRC Eric From doc@deadvirgins.org.uk Sat Feb 9 10:01:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand7.global.net.uk (sand7.global.net.uk [195.147.246.253]) by mail.gnome.org (Postfix) with ESMTP id 7F72D182C9 for ; Sat, 9 Feb 2002 10:01:20 -0500 (EST) Received: from [195.147.236.28] (helo=deadvirgins.org.uk) by sand7.global.net.uk with esmtp (Exim 3.22 #1) id 16ZZ0K-0003U3-00 for gtk-list@gnome.org; Sat, 09 Feb 2002 15:01:29 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g19F1G600458 for gtk-list@gnome.org; Sat, 9 Feb 2002 15:01:16 GMT Message-Id: <200202091501.g19F1G600458@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: gtk-list@gnome.org Subject: Re: Creating widgets with auto-repeat Date: Sat, 9 Feb 2002 15:01:16 +0000 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks to Pauk for the pointers on how to make my autorepeat code a bit more elegant, but having looked at the suggestions I'm a bit puzzled... info->value++; info->count = 0; info->state = 0; info->timer_id = gtk_timeout_add(REPEAT_STAGE0_DELAY, (GtkFunction)timer_func, info); The "gtk_timeout_add" line doesn't work, becasue you're *passing* the value of info->timer *before* it gets assigned. Hence the timeout function doesn't know the ID of the timer.... This was why I resorted to globals! :-) -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From sven@gimp.org Sat Feb 9 10:23:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E0DDCB.dip.t-dialin.net [217.224.221.203]) by mail.gnome.org (Postfix) with ESMTP id 65C13180E7 for ; Sat, 9 Feb 2002 10:23:00 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZZKh-0004fX-00; Sat, 09 Feb 2002 16:22:31 +0100 To: doc@deadvirgins.org.uk Cc: gtk-list@gnome.org Subject: Re: Creating widgets with auto-repeat References: <200202091501.g19F1G600458@deadvirgins.org.uk> From: Sven Neumann Date: 09 Feb 2002 16:22:31 +0100 In-Reply-To: <200202091501.g19F1G600458@deadvirgins.org.uk> Message-ID: Lines: 26 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "David J. Singer" writes: > Thanks to Pauk for the pointers on how to make my autorepeat > code a bit more elegant, but having looked at the suggestions > I'm a bit puzzled... > > info->value++; > info->count = 0; > info->state = 0; > info->timer_id = gtk_timeout_add(REPEAT_STAGE0_DELAY, > (GtkFunction)timer_func, info); > > The "gtk_timeout_add" line doesn't work, becasue you're *passing* > the value of info->timer *before* it gets assigned. Hence the timeout > function doesn't know the ID of the timer.... I don't see the problem. You are passing a pointer to the info structure and of course you can change it's contents later and the timer_func will get the current value when it accesses info->timer_id. Apart from that, I don't think you need the timer_id since you can remove the timeout by returning FALSE from timer_func. Salut, Sven From davidgn@servidor.unam.mx Sat Feb 9 11:56:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id ECFCF18154 for ; Sat, 9 Feb 2002 11:56:25 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.113.17]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g19GtCk15022 for ; Sat, 9 Feb 2002 10:55:12 -0600 (CST) Date: Sat, 9 Feb 2002 11:12:46 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: sleeping Message-Id: <20020209111246.58756e22.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello again. I am writing a program to control two steppers. To control its speed, i would need to sleep the function that moves them. Is it safe to use sleep/nanosleep? or are there safer functions or a better way to do it than a callback from an Entry widget (where i get the command from)? (I was just thinking a long coulback could hang the app, am i right?) -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From hunchback@netcabo.pt Sat Feb 9 12:16:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 579E618154 for ; Sat, 9 Feb 2002 12:16:44 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 9 Feb 2002 17:11:04 +0000 Content-Class: urn:content-classes:message From: To: , Subject: RE: sleeping Date: Sat, 9 Feb 2002 17:11:04 -0000 Message-ID: <0b6b01c1b18c$c1c6bed0$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcGxjMHEHg2jUh12EdaCdgBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi,=20 >I am writing a program to control two steppers. To control its speed, i = would need to >sleep the function that moves them. i have a similar problem, i'm doing a movement of a pixmap, but i want = to slow it down, so that the image runs move smothly... i made the signal connect for the mouse events and on the handler i made = it sleep with the GTimer (glib), but the problem is that even putting it = to sleep, it remembers the events, so if i go left, then right, then = left, it always does this movements, but not synchronized with the = mouse... is there some way to do this, or do i have to disconnect the = signal while i put it to sleep? Afonso From sven@gimp.org Sat Feb 9 13:12:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E0D9CC.dip.t-dialin.net [217.224.217.204]) by mail.gnome.org (Postfix) with ESMTP id B55AF1811B for ; Sat, 9 Feb 2002 13:12:54 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZbzL-0004hi-00; Sat, 09 Feb 2002 19:12:39 +0100 To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: sleeping References: <20020209111246.58756e22.davidgn@servidor.unam.mx> From: Sven Neumann Date: 09 Feb 2002 19:12:38 +0100 In-Reply-To: <20020209111246.58756e22.davidgn@servidor.unam.mx> Message-ID: Lines: 13 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, David Eduardo Gomez Noguera writes: > I am writing a program to control two steppers. To control its speed, i would need to sleep the function that moves them. > Is it safe to use sleep/nanosleep? or are there safer functions or a better way to do it than a callback from an Entry widget (where i get the command from)? (I was just thinking a long coulback could hang the app, am i right?) I'd suggest you use the GTK+ main loop instead and install a timeout. Have a look at gtk_timeout_add(). Salut, Sven From davidgn@servidor.unam.mx Sat Feb 9 13:30:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id 960C61879C for ; Sat, 9 Feb 2002 13:30:26 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.110]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g19ITDk26269 for ; Sat, 9 Feb 2002 12:29:13 -0600 (CST) Date: Sat, 9 Feb 2002 12:46:46 -0600 From: David Eduardo Gomez Noguera To: gtk-list@gnome.org Subject: Re: sleeping Message-Id: <20020209124646.0bbf4278.davidgn@servidor.unam.mx> In-Reply-To: References: <20020209111246.58756e22.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 09 Feb 2002 19:12:38 +0100 Sven Neumann wrote: > Hi, > > David Eduardo Gomez Noguera writes: > > > I am writing a program to control two steppers. To control its speed, i would need to sleep the function that moves them. > > Is it safe to use sleep/nanosleep? or are there safer functions or a better way to do it than a callback from an Entry widget (where i get the command from)? (I was just thinking a long coulback could hang the app, am i right?) > > I'd suggest you use the GTK+ main loop instead and install a timeout. > Have a look at gtk_timeout_add(). what do you mean with the GTK+ main loop? havent done much with gtk, so my knowledge about gtk_main is limited to think that i run it only once. I have seen gtk_timeout_add. my function needs the two steppers to start and stop moving at the same time, so i use a line algorithm, and would need static variables there. Also, i get the command to move the steppers from a GtkEntry widget, then i would need some way to not enable execution of new commands until the lastone ends (was thinking of gtk_object_set_data on the Entry, and a check each time to see if the timer exists.) Can i "temporary" block signals from other widgets? I also have a few buttons that affect the steppers, and would have to block them while executing a command. Any help or pointer would be very appreciated... (i have a bad bad english) Thank you. > > > Salut, Sven > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From sven@gimp.org Sat Feb 9 14:17:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E0D9CC.dip.t-dialin.net [217.224.217.204]) by mail.gnome.org (Postfix) with ESMTP id 11E9218360 for ; Sat, 9 Feb 2002 14:17:14 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZczF-0005Vj-00; Sat, 09 Feb 2002 20:16:37 +0100 To: davidgn@servidor.unam.mx Cc: gtk-list@gnome.org Subject: Re: sleeping References: <20020209111246.58756e22.davidgn@servidor.unam.mx> <20020209124646.0bbf4278.davidgn@servidor.unam.mx> From: Sven Neumann Date: 09 Feb 2002 20:16:37 +0100 In-Reply-To: <20020209124646.0bbf4278.davidgn@servidor.unam.mx> Message-ID: Lines: 30 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, David Eduardo Gomez Noguera writes: > > I'd suggest you use the GTK+ main loop instead and install a timeout. > > Have a look at gtk_timeout_add(). > > what do you mean with the GTK+ main loop? havent done much with gtk, so my knowledge about gtk_main is limited to think that i run it only once. you start it once and then it's running. You should not sleep since that would block the main loop. Instead you should hook your functionality into the main loop. > I have seen gtk_timeout_add. > my function needs the two steppers to start and stop moving at the same time, so i use a line algorithm, and would need static variables there. > Also, i get the command to move the steppers from a GtkEntry widget, then i would need some way to not enable execution of new commands until the lastone ends (was thinking of gtk_object_set_data on the Entry, and a check each time to see if the timer exists.) > Can i "temporary" block signals from other widgets? gtk_signal_handler_block() gtk_signal_handler_block_by_func() gtk_signal_handler_block_by_data() gtk_signal_handler_unblock() gtk_signal_handler_unblock_by_func() gtk_signal_handler_unblock_by_data() Salut, Sven From toni.moreno.gimenez@wanadoo.es Sun Feb 10 01:49:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.wanadoo.es (unknown [62.37.236.151]) by mail.gnome.org (Postfix) with ESMTP id 1380C180FE for ; Sun, 10 Feb 2002 01:49:49 -0500 (EST) Received: from Telemaco (62-36-160-2.dialup.uni2.es [62.36.160.2]) by smtp.wanadoo.es (8.11.6/8.10.2) with SMTP id g1A6o4Y12164 for ; Sun, 10 Feb 2002 07:50:05 +0100 (MET) Content-Type: text/plain; charset="iso-8859-1" From: Toni Moreno =?iso-8859-1?q?Gim=E9nez?= To: gtk-list@gnome.org Subject: Thread Safe GLib ? object/message Date: Sun, 10 Feb 2002 07:55:13 +0100 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02021007551301.02239@Telemaco> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: A single question: are GObject (Glib2) and (Glib 1-2) message system thread safe ? -- ================= Toni Moreno Giménez ================= Pje de las rosas nº 22 Vilassar de Mar (Barcelona) España CP: 08340 From neofolk@yahoo.de Sat Feb 2 00:23:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by mail.gnome.org (Postfix) with SMTP id 934A7180EC for ; Sat, 2 Feb 2002 00:23:40 -0500 (EST) Received: from pc19f2f41.dip.t-dialin.net (HELO p3desktop) (193.159.47.65) by smtp.mail.vip.sc5.yahoo.com with SMTP; 2 Feb 2002 05:23:38 -0000 Message-ID: <001201c1aba9$756ac9c0$6600a8c0@p3desktop> Reply-To: "Oliver Kroll :ALT EUROPA: - Magazin" From: "Oliver Kroll :ALT EUROPA: - Magazin" To: Subject: CList: how to change column-count at runtime Date: Sat, 2 Feb 2002 06:21:22 +0100 Organization: :ALT EUROPA: - Magazin MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000F_01C1ABB1.D5D12860" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C1ABB1.D5D12860 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi all, i created a form (clist included) with glade. i filled a ctree with databases and tables from the mysql-server, now i = like to read the data stored in a mysql-table into the clist. this is no problem so far. but how can i change the column-count from the gtk-clist at runtime, so = that it will fit to the column-count of the mysql-resultset? thanks a lot for your help. sincerly oliver k. ------=_NextPart_000_000F_01C1ABB1.D5D12860 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi all,
 
i created a form (clist included) with=20 glade.
 
i filled a ctree with databases and = tables from the=20 mysql-server, now i like to read the data stored in a mysql-table into = the=20 clist.
this is no problem so far.
 
but how can i change the column-count = from the=20 gtk-clist at runtime, so that it will fit to the column-count of the=20 mysql-resultset?
 
thanks a lot for your = help.
 
sincerly
 
oliver k.
------=_NextPart_000_000F_01C1ABB1.D5D12860-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From nitin.yewale@wipro.com Mon Feb 4 01:22:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 68B04180E7; Mon, 4 Feb 2002 01:22:39 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g146LYX05552; Mon, 4 Feb 2002 11:51:38 +0530 (IST) Received: from M33COM793 ([10.114.9.178]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GQZWBZ00.5CN; Mon, 4 Feb 2002 11:51:35 +0530 Reply-To: From: "Nitin Madhukar Yewale" To: "Desktop-Devel-List" , Subject: Help required on "GMenu" implementation using Model/View architecture. Date: Mon, 4 Feb 2002 11:57:34 +0530 Message-ID: <002b01c1ad45$0823b0f0$b209720a@M33COM793> 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am going through the source code of "GMenu" application. As per the GTK 2.0, GtkTree and GtkList widgets are deprecated and we have to use GtkTreeView,GtkTreeModel widgets to adopt Model/View architecture. In the above application we will have to use gtktreestore as a model which will store information in terms of GtkTreeIter and at the same time we need to update GtkTreeView to show on the GUI so that both of them will be in sync. As per my understanding to extract information of selected column of GtkTreeView we have to use following steps :- 1> Get selected item using GtkTreeSelection from GtkTreeView. 2> Get selected GtkTreeIter of GtkTreeStore from above GtkTreeSelection. Please suggest better way for extracting data from GtkTreeView. Thanks in Advance, Nitin NOTE: I have not subscribed gtk-list mailing list so please send your suggestions to nitin.yewale@wipro.com . From falconer@falconer.best.vwh.net Wed Feb 6 20:48:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id A2B15181CC for ; Wed, 6 Feb 2002 20:48:30 -0500 (EST) Received: (qmail 27095 invoked by uid 25889); 7 Feb 2002 01:48:29 -0000 Date: 7 Feb 2002 01:48:29 -0000 Message-ID: <20020207014829.27094.qmail@falconer.best.vwh.net> From: falconer@falconer.best.vwh.net To: gtk-list@gnome.org Subject: catching unix signals from Gtk Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all; here's a problem I can't find a solution to in any of the docs nor by searching the email database. How can a Gtk-based application respond to unix signals? In particular, I have an app that may receive a SIGUSR1 from another program which tells my app to re-read some files and update its display. I could write an ordinary unix signal handler and register it with signal(2), but it's not safe to call GTK functions from within such a handler. I could write an ordinary unix signal handler and have it set a flag, and then use a timer callback to poll that flag once a second or so. But I don't want to keep a timer running for an event that happens only rarely. I could open a pipe and have the unix signal handler write a single byte to it when there's an interrupt, and then have GTK attach an input handler to the output side of the pipe. These all seem to be kludges to me; is there a better way to do it? -ed falk From jerryxu@kinposh.com.cn Fri Feb 8 00:06:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 1B87C180E1 for ; Fri, 8 Feb 2002 00:06:50 -0500 (EST) Subject: a problem Date: Fri, 8 Feb 2002 13:06:33 +0800 MIME-Version: 1.0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F82228EAF@kes01.kinposh.com.cn> X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: a problem Thread-Index: AcGwXl+cNgiQdONyQMGCqmuYNjbjJA== X-Priority: 1 Priority: Urgent Importance: high From: =?gb2312?B?0Oy4/SBKZXJyeSBYdQ==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: a problem

 

      Now I have a problem: I want to make the = focus  element  more  obvious .For example, I want to = make the focus-rectangle's edges(line)  wider  and wider. Do I = need to revise the file  "gtkstyle.h"? Can you give me = some advice?

     E.G.: There are four buttons in = the dailog. When the key "tab" is pressed, one of them has the = "focus". And
I want = to make the focus button more distinctness. That is, I want to make the = focus rectangel's frame thicker
than the = default, what can I do? 

From twanger@bluetwanger.de Fri Feb 8 04:52:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from leela.one-2-one.net (leela.one-2-one.net [217.115.142.65]) by mail.gnome.org (Postfix) with ESMTP id 80A12180EA; Fri, 8 Feb 2002 04:52:07 -0500 (EST) Received: from [192.168.0.14] (p3E9EC020.dip.t-dialin.net [62.158.192.32]) by leela.one-2-one.net (8.11.0/8.11.0) with ESMTP id g189sOR23427; Fri, 8 Feb 2002 10:54:24 +0100 Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc From: Markus Bertheau To: Deepa Cc: gtk-list@gnome.org, desktop-devel-list In-Reply-To: <3C639AF8.B378AA0@wipro.com> References: <3C639AF8.B378AA0@wipro.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-R4vu62aHORSrIevoFL+2" X-Mailer: Evolution/1.0.2 Date: 08 Feb 2002 10:51:33 +0100 Message-Id: <1013161894.29366.2.camel@entwicklung01.cenes.de> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-R4vu62aHORSrIevoFL+2 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2002-02-08 at 10:31, Deepa wrote: > Hi >=20 > I am encountering these deprecated calls in libzvt: > gdk_input_remove () > gdk_input_add () > gdk_rgb_init () >=20 > Could anyone please tell me what is the replacement for these. =20 http://cvs.gnome.org/lxr/source/gtk+/gdk/gdkevents.c#852 Markus Bertheau --=-R4vu62aHORSrIevoFL+2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8Y5+lKNEjAb345r4RAo3bAJ44OwYVZunHOsHi5kfmJl5vI+9FmgCaAl7R 61pMNNP2u841np5N2YIwZrg= =SxC5 -----END PGP SIGNATURE----- --=-R4vu62aHORSrIevoFL+2-- From jamesv@galleon.co.uk Tue Feb 5 08:02:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from finch-post-12.mail.demon.net (finch-post-12.mail.demon.net [194.217.242.41]) by mail.gnome.org (Postfix) with ESMTP id 2F47918180 for ; Tue, 5 Feb 2002 08:02:06 -0500 (EST) Received: from gallsubs.demon.co.uk ([158.152.242.244] helo=galmss01.960.local) by finch-post-12.mail.demon.net with esmtp (Exim 2.12 #1) id 16Y5Bo-000Ktn-0C for gtk-list@gnome.org; Tue, 5 Feb 2002 12:59:13 +0000 Received: from james_pc.960.local (Jim@james_pc.960.local [192.168.12.103]) by galmss01.960.local (8.8.5/SCA-6.6) with ESMTP id MAA23544 for ; Tue, 5 Feb 2002 12:57:15 GMT Subject: At the end of my tether with gtk_adjustment_value_changed() From: James Vanns To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 05 Feb 2002 12:52:19 +0000 Message-Id: <1012913539.2024.33.camel@james_pc.960.local> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am getting a little frustrated now: I have a signal handler setup to do stuff when an adjustment receives a value_changed signal. This works except when I want to explicitly want to emit a value_changed signal. I have set the adjustment value two ways: gtk_adjustment_set_value (adjustment, (float) key); /* key was an int originally && >= 0) */ and also adjustment->value = (float) key; and then tried to different ways to send out the signal so my callback would be run: gtk_signal_emit_by_name (GTK_OBJECT (adjustment), "value_changed")); and gtk_adjustment_value_changed (adjustment); none of them seem to emit a value_changed signal cos my callback is not called. What am I doing wrong ?? Am I completely misunderstanding the use of these functions!!??? Cheers for any help James Vanns -- James Vanns BSc (Hons) MCP Software Engineer (UNIX / C) Galleon Ltd. From unicorn@minet.uni-jena.de Sat Feb 9 11:31:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fsuj20.rz.uni-jena.de (fsuj20.rz.uni-jena.de [141.35.1.18]) by mail.gnome.org (Postfix) with ESMTP id 0E2C9181DB for ; Sat, 9 Feb 2002 11:31:54 -0500 (EST) Received: from virusscan.rz.uni-jena.de (virusscan.rz.uni-jena.de [141.35.1.23]) by fsuj20.rz.uni-jena.de (8.12.0.Beta7/8.11.1) with ESMTP id g19GVQ2I027442 for ; Sat, 9 Feb 2002 17:31:42 +0100 (MET) Received: from virusscan.rz.uni-jena.de (localhost [127.0.0.1]) by virusscan.rz.uni-jena.de (8.11.6/8.11.6) with ESMTP id g19GVQl05234 for ; Sat, 9 Feb 2002 17:31:26 +0100 Received: from pax10e3.mipool.uni-jena.de (daemon@pax10e2.mipool.uni-jena.de [141.35.13.142]) by pax08e3.mipool.uni-jena.de (8.11.6/8.11.6) with ESMTP id g19GVNk25838 for ; Sat, 9 Feb 2002 17:31:23 +0100 (CET) From: Randy Rueckner Received: (from unicorn@localhost) by pax10e3.mipool.uni-jena.de (8.11.6/8.11.6) id g19GVHK288465 for gtk-list@gnome.org; Sat, 9 Feb 2002 17:31:17 +0100 (MET) Message-Id: <200202091631.g19GVHK288465@pax10e3.mipool.uni-jena.de> Subject: GtkCTreeNode row_data To: gtk-list@gnome.org Date: Sat, 9 Feb 2002 17:31:17 +0100 (MET) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello there! i have a little question. how can i get the row_data from a node (its a leaf) in a GtkCTree if i only know the label from this node? thanks in advance randy r. From doc@deadvirgins.org.uk Sun Feb 10 12:08:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand7.global.net.uk (sand7.global.net.uk [195.147.246.253]) by mail.gnome.org (Postfix) with ESMTP id DE92C18283 for ; Sun, 10 Feb 2002 12:08:50 -0500 (EST) Received: from [195.147.237.170] (helo=deadvirgins.org.uk) by sand7.global.net.uk with esmtp (Exim 3.22 #1) id 16ZxTH-0006cc-00; Sun, 10 Feb 2002 17:09:00 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g1AH8kn00417; Sun, 10 Feb 2002 17:08:46 GMT Message-Id: <200202101708.g1AH8kn00417@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: Sven Neumann Subject: Re: Creating widgets with auto-repeat Date: Sun, 10 Feb 2002 17:08:46 +0000 X-Mailer: KMail [version 1.3.2] Cc: gtk-list@gnome.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > I don't see the problem. You are passing a pointer to the info > structure and of course you can change it's contents later and the > timer_func will get the current value when it accesses info->timer_id. > Apart from that, I don't think you need the timer_id since you can > remove the timeout by returning FALSE from timer_func. I think I must have been having a "slow" day. You're absolutely right, of course... :-) Oops. -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From hp@redhat.com Sun Feb 10 12:16:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 23BA8180F4 for ; Sun, 10 Feb 2002 12:16:39 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1AHGZ710921; Sun, 10 Feb 2002 12:16:35 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: falconer@falconer.best.vwh.net Cc: gtk-list@gnome.org Subject: Re: catching unix signals from Gtk References: <20020207014829.27094.qmail@falconer.best.vwh.net> From: Havoc Pennington Date: 10 Feb 2002 12:16:35 -0500 In-Reply-To: <20020207014829.27094.qmail@falconer.best.vwh.net> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: falconer@falconer.best.vwh.net writes: > I could open a pipe and have the unix signal handler write a > single byte to it when there's an interrupt, and then have > GTK attach an input handler to the output side of the pipe. This is in general the best way to do it we've come up with. > These all seem to be kludges to me; is there a better way to > do it? Another way to do it is to write a custom main loop source that checks a flag in its prepare/check methods to see whether a dispatch is needed. But this relies on the fact that your signal wakes up the main loop poll() or select() with an EINTR, and there was some issue with that which I don't remember now. If you search the gtk-devel-list archives you can probably find at least a little bit of discussion on the topic. Havoc From hp@redhat.com Sun Feb 10 12:18:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 5D1DE18283 for ; Sun, 10 Feb 2002 12:18:34 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1AHIWY10925; Sun, 10 Feb 2002 12:18:32 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: James Vanns Cc: gtk-list@gnome.org Subject: Re: At the end of my tether with gtk_adjustment_value_changed() References: <1012913539.2024.33.camel@james_pc.960.local> From: Havoc Pennington Date: 10 Feb 2002 12:18:32 -0500 In-Reply-To: <1012913539.2024.33.camel@james_pc.960.local> Message-ID: Lines: 9 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: James Vanns writes: > What am I doing wrong ?? Am I completely misunderstanding the use of > these functions!!??? No, they should work as you described. I'm guessing you're looking at the wrong piece of code for the bug. Havoc From davidgn@servidor.unam.mx Sun Feb 10 13:23:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id 3BB7118183 for ; Sun, 10 Feb 2002 13:23:51 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.137]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g1AIMbk10258 for ; Sun, 10 Feb 2002 12:22:37 -0600 (CST) Date: Sun, 10 Feb 2002 12:40:17 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: threads Message-Id: <20020210124017.52703751.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. I was thining on a program, and gtk_timeout is not the way to go. So i read a bit on the faq and the "api", and i couldn understand well threads on gtk/gdk/glib. I remember some articles on linux magazine about threads, and i though they were created after a function (passing the funcion as an argument), i dont get what gdk_thread_enter/leave work, and if i can start a thread from a user signal callback. (the examples i have seen so far, start threads from the main, aoutside the gtk_main loop, and put gdk_thread_enter/leave around the gtk_main(). Is there any faq or documentation centered on it? on the mails i read, it seemed as if everybody already understand it. Thank you. -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From davidgn@servidor.unam.mx Sun Feb 10 21:02:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id C657C18340 for ; Sun, 10 Feb 2002 21:02:39 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.56]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g1B21Pk03780 for ; Sun, 10 Feb 2002 20:01:25 -0600 (CST) Date: Sun, 10 Feb 2002 20:19:09 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: threads again. Message-Id: <20020210201909.7c263505.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. Its me asking about the use of threads with gtk again. Why is gdk_treads_enter/leave function? to restrict access to some structures? I was writing this, and i get segfaults. All examples i have seen so far, start threads on main(), but i started a thread on a callback. Is that not possible to do? if so, why? The best i could find is a pointer to check the gftp source, which i am about to do... Well, any explanation would be apreciated. Thank you again. -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From scurveedog@yahoo.com Sun Feb 10 22:07:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13701.mail.yahoo.com (web13701.mail.yahoo.com [216.136.175.134]) by mail.gnome.org (Postfix) with SMTP id 3DEEC182D5 for ; Sun, 10 Feb 2002 22:07:51 -0500 (EST) Message-ID: <20020211030750.54810.qmail@web13701.mail.yahoo.com> Received: from [209.253.230.249] by web13701.mail.yahoo.com via HTTP; Sun, 10 Feb 2002 19:07:50 PST Date: Sun, 10 Feb 2002 19:07:50 -0800 (PST) From: Jim Adams Subject: GList in a list box To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I am a beginner who has become very confused. I have a data file and can transfer it to a GList which I can then print out. Can anyone help me display the complete GList in a gtk+ list box? My test program to load a GList and then print it out: #include #include /***** FUNC TO DISPLAY GList *****/ void PrintList( GList *list ) { list = g_list_first( list ); while( list != NULL ) { g_print( "%s", (gchar *)list -> data ); list = g_list_next( list ); } } gint main( ) { GList *list = NULL; FILE *infile; gchar buffer[5][81]; gint i = 0; /***** OPEN DATA FILE *****/ if( ( infile = fopen( "/home/jim/gnome/data.dat", "r" )) == NULL ) { g_print( "\nfopen() failed!\n" ); exit( 0 ); } /***** LOAD BUFFER WITH DATA *****/ while( ( fgets( buffer[i], 81, infile ) ) != NULL ) { i++; } /***** ADD BUFFER DATA TO GList *****/ for( i = 0; i < 5; i++ ) { list = g_list_append( list, buffer[i] ); } PrintList( list ); g_list_free( list ); fclose( infile ); return 0; } thank you, jim, scurveedog@yahoo.com __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com From jgotts@ann-arbor.fmfts.com Mon Feb 11 09:57:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ann-arbor.fmfts.com (fmfts.com [64.9.213.97]) by mail.gnome.org (Postfix) with ESMTP id D568E18E08 for ; Mon, 11 Feb 2002 09:57:36 -0500 (EST) Received: from ann-arbor.fmfts.com (jgotts@localhost) by ann-arbor.fmfts.com (8.11.6/8.11.6) with ESMTP id g1BEuWM27570 for ; Mon, 11 Feb 2002 09:56:32 -0500 Message-Id: <200202111456.g1BEuWM27570@ann-arbor.fmfts.com> To: gtk-list@gnome.org From: jgotts@linuxsavvy.com Reply-To: jgotts@linuxsavvy.com Subject: Repeating mouse button widget Date: Mon, 11 Feb 2002 09:56:32 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there some kind of widget that I can use to report new events or at least trigger some handler repeatedly after some time interval while a mouse button is being held down? John -- John GOTTS http://linuxsavvy.com/staff/jgotts From pbd@op.net Mon Feb 11 10:13:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 043C11812D for ; Mon, 11 Feb 2002 10:13:39 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-203.phlpa.fast.net [209.92.99.203]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA06439; Mon, 11 Feb 2002 10:13:35 -0500 (EST) Message-Id: <200202111513.KAA06439@renoir.op.net> To: jgotts@linuxsavvy.com Cc: gtk-list@gnome.org Subject: Re: Repeating mouse button widget In-reply-to: Your message of "Mon, 11 Feb 2002 09:56:32 EST." <200202111456.g1BEuWM27570@ann-arbor.fmfts.com> Date: Mon, 11 Feb 2002 10:13:33 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Is there some kind of widget that I can use to report new events or at least >trigger some handler repeatedly after some time interval while a mouse button >is being held down? read the list archive for the last 5-6 days. for some reason, 2 other people asked much the same question, and one of them posted code after i gave them some pointers. --p From lynn.lin@boeing.com Mon Feb 11 13:41:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from blv-smtpout-01.boeing.com (blv-smtpout-01.boeing.com [192.161.36.5]) by mail.gnome.org (Postfix) with ESMTP id 795A11915D for ; Mon, 11 Feb 2002 13:41:09 -0500 (EST) Received: from blv-av-02.boeing.com ([192.54.3.92]) by blv-smtpout-01.boeing.com (8.9.2/8.8.5-M2) with ESMTP id KAA15882 for ; Mon, 11 Feb 2002 10:41:08 -0800 (PST) Received: from slb-hub-01.boeing.com (localhost [127.0.0.1]) by blv-av-02.boeing.com (8.9.3/8.9.2/MBS-AV-01) with ESMTP id KAA08288 for ; Mon, 11 Feb 2002 10:41:07 -0800 (PST) Received: from xch-swbh-02.sw.nos.boeing.com (xch-swbh-02.sw.nos.boeing.com [129.172.87.58]) by slb-hub-01.boeing.com (8.11.3/8.11.3/MBS-LDAP-01) with ESMTP id g1BIf6T17552 for ; Mon, 11 Feb 2002 10:41:06 -0800 (PST) Received: by xch-swbh-02.sw.nos.boeing.com with Internet Mail Service (5.5.2650.21) id <1LVJCA6F>; Mon, 11 Feb 2002 10:41:03 -0800 Message-ID: From: "Lin, Lynn" To: gtk-list@gnome.org Subject: Does GTK+ controls the "feel and look theme" ? Date: Mon, 11 Feb 2002 10:40:56 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, Do you know by chance if GTK+ has the "feel and look" choice that can be made at runtime (for example: windows look, Motif look, Swing/Metal look or Macintosh look) Thank you :) Lynn From lynn.lin@boeing.com Mon Feb 11 19:32:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from blv-smtpout-01.boeing.com (blv-smtpout-01.boeing.com [192.161.36.5]) by mail.gnome.org (Postfix) with ESMTP id 06725186EA for ; Mon, 11 Feb 2002 19:32:28 -0500 (EST) Received: from slb-av-01.boeing.com ([129.172.13.4]) by blv-smtpout-01.boeing.com (8.9.2/8.8.5-M2) with ESMTP id QAA24464 for ; Mon, 11 Feb 2002 16:32:26 -0800 (PST) Received: from slb-hub-01.boeing.com (localhost [127.0.0.1]) by slb-av-01.boeing.com (8.9.3/8.9.2/MBS-AV-01) with ESMTP id QAA00729 for ; Mon, 11 Feb 2002 16:32:26 -0800 (PST) Received: from xch-swbh-02.sw.nos.boeing.com (xch-swbh-02.sw.nos.boeing.com [129.172.87.58]) by slb-hub-01.boeing.com (8.11.3/8.11.3/MBS-LDAP-01) with ESMTP id g1C0WPT08182 for ; Mon, 11 Feb 2002 16:32:25 -0800 (PST) Received: by xch-swbh-02.sw.nos.boeing.com with Internet Mail Service (5.5.2650.21) id <1LVJCV9Y>; Mon, 11 Feb 2002 16:32:24 -0800 Message-ID: From: "Lin, Lynn" To: "'gtk-list@gnome.org'" Subject: glib.h ?? Where is it ? Date: Mon, 11 Feb 2002 16:32:22 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, I am compiling GTK+ source code on Win32 and got this compilation error: "Cannot opened include file glib.h". I ran "Find" to search glib.h but not found. What *zip file that contains glib.h I should download in order to use glib.h ? Thanks a lot for your help, Lynn From pbd@op.net Mon Feb 11 19:43:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id AFCA1186EA for ; Mon, 11 Feb 2002 19:43:52 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-341.phlpa.fast.net [209.92.231.87]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id TAA11248; Mon, 11 Feb 2002 19:43:13 -0500 (EST) Message-Id: <200202120043.TAA11248@renoir.op.net> To: "Lin, Lynn" Cc: gtk-list@gnome.org Subject: Re: Does GTK+ controls the "feel and look theme" ? In-reply-to: Your message of "Mon, 11 Feb 2002 10:40:56 PST." Date: Mon, 11 Feb 2002 19:37:54 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi there, > >Do you know by chance if GTK+ has the "feel and look" choice that can be >made at runtime (for example: windows look, Motif look, Swing/Metal look or >Macintosh look) yes. visit www.themes.org/gtk --p From mallum@10.am Mon Feb 11 19:57:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost (pc-62-30-165-220-hw.blueyonder.co.uk [62.30.165.220]) by mail.gnome.org (Postfix) with ESMTP id 5460D18FB3 for ; Mon, 11 Feb 2002 19:57:40 -0500 (EST) Received: from mallum by localhost with local (Exim 3.34 #1 (Debian)) id 16aRGL-0000JZ-00 for ; Tue, 12 Feb 2002 00:57:37 +0000 Date: Tue, 12 Feb 2002 00:57:36 +0000 From: mallum To: gtk-list@gnome.org Subject: synthetic button press event in GTK1.2 Message-ID: <20020212005736.GC486@10.am> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I need to send a 'synthetic' button release event. Im under the impression I can only do this with a call to Xlibs XSendEvent. However Im not having much luck :( My main problem seems to be translating GDK Xlib representations back to actual Xlib ones; My XSendEvent looks something like; XSendEvent((Display*)GDK_DISPLAY(), GDK_WINDOW_XWINDOW(((GdkEventAny*)event)->window) ,False, ButtonReleaseMask, (XEvent *)&syn_event); Does that look right ? Event better does anyone have an example of accomplishing this actual feat with GTK ? -- mallum From sven@gimp.org Mon Feb 11 20:37:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (A0cfa.pppool.de [213.6.12.250]) by mail.gnome.org (Postfix) with ESMTP id 3C096195BB for ; Mon, 11 Feb 2002 20:37:05 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16aRsN-00006A-00; Tue, 12 Feb 2002 02:36:55 +0100 To: mallum Cc: gtk-list@gnome.org Subject: Re: synthetic button press event in GTK1.2 References: <20020212005736.GC486@10.am> From: Sven Neumann Date: 12 Feb 2002 02:36:54 +0100 In-Reply-To: <20020212005736.GC486@10.am> Message-ID: Lines: 11 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, mallum writes: > I need to send a 'synthetic' button release event. Im under the > impression I can only do this with a call to Xlibs XSendEvent. do you really need to do that? What are you trying to acomplish? Salut, Sven From rtriay@avantel.net Mon Feb 11 21:02:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h004.c003.snv.cp.net [209.228.32.218]) by mail.gnome.org (Postfix) with SMTP id 2FE8F18118 for ; Mon, 11 Feb 2002 21:02:21 -0500 (EST) Received: (cpmta 9470 invoked from network); 11 Feb 2002 18:02:14 -0800 Received: from 148.240.116.144 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.218) with SMTP; 11 Feb 2002 18:02:14 -0800 X-Sent: 12 Feb 2002 02:02:14 GMT Received: from galatazarai [10.0.0.2] by Proxy+; Mon, 11 Feb 2002 19:57:37 -0600 for multiple recipients Message-ID: <004701c1b369$9a589880$0200000a@galatazarai> From: =?iso-8859-1?Q?Ram=F3n_Triay_Espinosa?= To: "Jim Adams" , References: <20020211030750.54810.qmail@web13701.mail.yahoo.com> Subject: Re: GList in a list box Date: Mon, 11 Feb 2002 20:04:27 -0600 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 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ----- Original Message ----- From: "Jim Adams" To: Sent: Sunday, February 10, 2002 9:07 PM Subject: GList in a list box > Hello, > > I am a beginner who has become very confused. > > I have a data file and can transfer it to a GList which I can then print > out. Can anyone help me display the complete GList in a gtk+ list box? > > My test program to load a GList and then print it out: > > #include > #include > > /***** FUNC TO DISPLAY GList *****/ > void PrintList( GList *list ) > { > list = g_list_first( list ); > > while( list != NULL ) > { > g_print( "%s", (gchar *)list -> data ); > list = g_list_next( list ); > } > } > > gint main( ) > { > GList *list = NULL; > > FILE *infile; > gchar buffer[5][81]; > gint i = 0; > > /***** OPEN DATA FILE *****/ > if( ( infile = fopen( "/home/jim/gnome/data.dat", "r" )) == NULL ) > { > g_print( "\nfopen() failed!\n" ); > exit( 0 ); > } > > /***** LOAD BUFFER WITH DATA *****/ > while( ( fgets( buffer[i], 81, infile ) ) != NULL ) > { > i++; > } > > /***** ADD BUFFER DATA TO GList *****/ > for( i = 0; i < 5; i++ ) > { > list = g_list_append( list, buffer[i] ); > } > > PrintList( list ); > g_list_free( list ); > fclose( infile ); > > return 0; > } > > thank you, > jim, scurveedog@yahoo.com > Hi Jim: What you have to do to get your values in a Listbox is very similar to what you did to get them in the GList, just declare and make an instance of a GtkWindow and GtkList widgets, then put your values in the GList using the gtk_list_insert_items function. The resulting code should look like this. #include /* gtk.h includes glib.h*/ > #include > > /***** FUNC TO DISPLAY GList *****/ > void PrintList( GList *list ) > { > list = g_list_first( list ); > > while( list != NULL ) > { > g_print( "%s", (gchar *)list -> data ); > list = g_list_next( list ); > } > } > /****This is how the function should look like****/ void GListInWindow (GList *list) { GtkWindow *MyWin; GtkList *MyList; MyWin=gtk_window_new(GTK_WINDOW_TOPLEVEL); MyList=gtk_list_new(); gtk_list_insert_items(MyList, list, 0); gtk_window_add(GTK_CONTAINER(MyWin), GTK_WIDGET(MyList)); gtk_widget_show(MyList); gtk_widget_show(MyWin); } /* In order to use gtk.h is necesary to get the command line parameters */ gint main( &argc, &argv[]) > { > GList *list = NULL; > > FILE *infile; > gchar buffer[5][81]; > gint i = 0; > > /***** OPEN DATA FILE *****/ > if( ( infile = fopen( "/home/jim/gnome/data.dat", "r" )) == NULL ) > { > g_print( "\nfopen() failed!\n" ); > exit( 0 ); > } > > /***** LOAD BUFFER WITH DATA *****/ > while( ( fgets( buffer[i], 81, infile ) ) != NULL ) > { > i++; > } > > /***** ADD BUFFER DATA TO GList *****/ > for( i = 0; i < 5; i++ ) > { > list = g_list_append( list, buffer[i] ); > } > > PrintList( list ); /*You MUST include this line before doing ANYTHNG with GTK*/ gtk_init (argc,argv); /*Start infinite loop*/ GListInWindow ( list ); gtk_main(); g_list_free( list ); > fclose( infile ); > > return 0; > } > Of course, to you'll need to kill this program in order to end it. That's because we haven't implementes any event callback to manage the "delete" signal from our main window so let's use kill-9 PID :o) I hope this helps!!!!! rtriay :) _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From leidola@newcon.de Tue Feb 12 05:00:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 8EE9F18237 for ; Tue, 12 Feb 2002 05:00:13 -0500 (EST) Received: from [213.70.108.94] ([213.70.108.94]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id LAA05144; Tue, 12 Feb 2002 11:00:12 +0100 Subject: Re: glib.h ?? Where is it ? From: Olaf Leidinger To: "Lin, Lynn" , GTK Mailing List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 12 Feb 2002 11:02:54 +0100 Message-Id: <1013508175.782.6.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 11 Feb 2002 16:32:22 -0800 schrieb Lin, Lynn: > Hi there, > > I am compiling GTK+ source code on Win32 and got this compilation error: > "Cannot opened include file glib.h". I ran "Find" to search glib.h but not > found. What *zip file that contains glib.h I should download in order to > use glib.h ? > > Thanks a lot for your help, > > Lynn > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hello!!! Glib.h is in glib-1.x.y.tar.gz or .zip. But why do you wanna compile gtk yourself. You can download precompiled binaries from http://www.gimp.org/~tml/gimp/win32//new-downloads.html There you find the latest win32 developer binaries. I think 1.3.12 is the version. Good luck, Olaf From maa@sparc.spb.su Tue Feb 12 06:10:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from guard.sparc.spb.su (guard.sparc.spb.su [195.19.226.98]) by mail.gnome.org (Postfix) with ESMTP id 2FC611905F for ; Tue, 12 Feb 2002 06:10:58 -0500 (EST) Received: from mail.sparc.spb.su (mail.sparc.spb.su [192.168.205.210]) by guard.sparc.spb.su (8.11.4/8.10.1) with ESMTP id g1CBAuN01207 for ; Tue, 12 Feb 2002 14:10:56 +0300 (MSK) Received: from london.sparc.spb.su (london.sparc.spb.su [192.168.205.229]) by mail.sparc.spb.su (8.11.4/8.11.1) with ESMTP id g1CB5lA87262 for ; Tue, 12 Feb 2002 14:05:47 +0300 (MSK) (envelope-from maa@sparc.spb.su) Date: Tue, 12 Feb 2002 14:14:00 +0300 From: "Aleksey A. Malyshev" X-Mailer: The Bat! (v1.53d) Reply-To: "Aleksey A. Malyshev" X-Priority: 3 (Normal) Message-ID: <1921074525.20020212141400@sparc.spb.su> To: gtk-list@gnome.org Subject: Problem with gtk_im_context_get_surrounding () MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a problem with gtk_im_context_get_surrounding (). Test case: #include int main (int argc, char** argv) { GtkIMContext *context; gint *index; gchar **text; gboolean res; gtk_init (&argc, &argv); context = gtk_im_multicontext_new (); res = gtk_im_context_get_surrounding (GTK_IM_CONTEXT(context),text ,index); if (res) printf ("\nResult True\n"); } Output: Segmentation fault What's wrong in this case? What I am doing wrong? Thanks, Aleksey. From mallum@10.am Tue Feb 12 06:32:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost (lan.ipc.co.uk [193.119.160.10]) by mail.gnome.org (Postfix) with ESMTP id E9E661888B for ; Tue, 12 Feb 2002 06:32:45 -0500 (EST) Received: from mallum by localhost with local (Exim 3.34 #1 (Debian)) id 16abA9-00009Q-00; Tue, 12 Feb 2002 11:31:53 +0000 Date: Tue, 12 Feb 2002 11:31:52 +0000 From: mallum To: Sven Neumann Cc: gtk-list@gnome.org Subject: Re: synthetic button press event in GTK1.2 Message-ID: <20020212113152.GB529@10.am> References: <20020212005736.GC486@10.am> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Via an emmision hook, Im writing a gtk module that catches 'held down' button 1 events and on release tranforms them into a button 3 press event. This works fine, but the app is now missing a button release event which is causing problems. Im trying to create this via XSendEvent . This is for touchscreen devices running gtk. Can suggest a better way of accomplishing this ? -- mallum on Tue, Feb 12, 2002 at 02:36:54AM +0100, Sven Neumann wrote: > Hi, > > mallum writes: > > > I need to send a 'synthetic' button release event. Im under the > > impression I can only do this with a call to Xlibs XSendEvent. > > do you really need to do that? What are you trying to acomplish? > > > Salut, Sven > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From hp@redhat.com Tue Feb 12 10:14:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 77E9E1845C for ; Tue, 12 Feb 2002 10:14:39 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1CFEad12548; Tue, 12 Feb 2002 10:14:36 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Aleksey A. Malyshev" Cc: gtk-list@gnome.org Subject: Re: Problem with gtk_im_context_get_surrounding () References: <1921074525.20020212141400@sparc.spb.su> From: Havoc Pennington Date: 12 Feb 2002 10:14:35 -0500 In-Reply-To: <1921074525.20020212141400@sparc.spb.su> Message-ID: Lines: 37 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Aleksey A. Malyshev" writes: > > I have a problem with gtk_im_context_get_surrounding (). > > Test case: > #include > > int > main (int argc, char** argv) > { > GtkIMContext *context; > gint *index; > gchar **text; > gboolean res; > > gtk_init (&argc, &argv); > > context = gtk_im_multicontext_new (); > > res = gtk_im_context_get_surrounding (GTK_IM_CONTEXT(context),text ,index); > if (res) > printf ("\nResult True\n"); > > } > > Output: > Segmentation fault > > > What's wrong in this case? > What I am doing wrong? "text" and "index" are uninitialized. If you turn on warnings (-Wall flag with gcc) then your compiler will tell you these things. Havoc From jeff@sigmaitsolutions.com Tue Feb 12 16:30:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from webmail.greatbasin.net (webmail.greatbasin.net [207.228.37.201]) by mail.gnome.org (Postfix) with ESMTP id DF22A182D0 for ; Tue, 12 Feb 2002 16:30:22 -0500 (EST) Received: from greatbasin.net (localhost.localdomain [127.0.0.1]) by webmail.greatbasin.net (8.11.6/8.11.6) with SMTP id g1CLULI01863 for ; Tue, 12 Feb 2002 13:30:22 -0800 From: "Jeff Payne" Reply-To: jeff@sigmaitsolutions.com To: gtk-list@gnome.org Date: Tue, 12 Feb 2002 13:30:22 -0800 Subject: problem builduing gtk+2.0 (1.3.13) X-Mailer: CWMail Web to Mail Gateway 2.7t, http://netwinsite.com/top_mail.htm Message-id: <3c69896e.745.0@greatbasin.net> X-User-Info: 216.210.203.32 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Forgive my ignorance as I am new to GTK. I'm attempting to build the latest development release of gtk along with the supporting packages. After building the glib, atk, and pango packages, the gtk+2.0 configure script doesn't find the pango package when pkg-config is called. I've checked the /usr/lib/pkgconfig directory and verified that pango.pc is there and pointing to the correct lib and include dirs, but when I manually check for installed packages with pkg-config only the glib and atk packages come up. Has anyone else had this problem? Any help would be greatly appreciated. Jeff Payne Sigma Solutions, Inc. (775)544-3618 From inodal@teleline.es Tue Feb 12 16:33:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp7.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id C336318CE4 for ; Tue, 12 Feb 2002 16:33:07 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp7.mail.isp (Netscape Messaging Server 4.15 tsmtp7 Jul 26 2001 13:10:38) with ESMTP id GRFVUB01.Q6O for ; Tue, 12 Feb 2002 22:32:35 +0100 Message-ID: <3C698A1F.7080500@teleline.es> Date: Tue, 12 Feb 2002 21:33:19 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: problems with the redraw of widgets and callbacks with long operation time Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In my program I have a window where I select a VRML file to load, press OK and in the button callback, I hide this window and call my function to read the VRML file (I use CyberVRML97 for this). The problem is that my GTK+ application seems to be freezed during the load. The main window doesn't care about my "expose_event" callback until the load ends. I don't like this behaviour, how could I avoid this? Thanks in advance, Ignacio Nodal From rsteinke@w-link.net Tue Feb 12 16:48:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id A115919292 for ; Tue, 12 Feb 2002 16:48:51 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16aknC-0003LK-00; Tue, 12 Feb 2002 13:48:50 -0800 Date: Tue, 12 Feb 2002 13:48:50 -0800 From: rsteinke@w-link.net To: inodal@teleline.es, gtk-list@gnome.org Subject: Re: problems with the redraw of widgets and callbacks with long operation time Message-ID: <3C698DC2.nail9WM1QYQMD@w-link.net> References: <3C698A1F.7080500@teleline.es> In-Reply-To: <3C698A1F.7080500@teleline.es> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Ignacio Nodal > > Hi, > > In my program I have a window where I select a VRML file to load, press > OK and in the button callback, I hide this window and call my function > to read the VRML file (I use CyberVRML97 for this). > > The problem is that my GTK+ application seems to be freezed during the > load. The main window doesn't care about my "expose_event" callback > until the load ends. > > I don't like this behaviour, how could I avoid this? You're probably not giving the mainloop any time to run during the load. Look at the documentation on the gtk mainloop (or, better, the glib mainloop) for instructions on how to do this. Ron Steinke From inodal@teleline.es Tue Feb 12 17:29:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp7.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id C8EA2181D7 for ; Tue, 12 Feb 2002 17:29:16 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp7.mail.isp (Netscape Messaging Server 4.15 tsmtp7 Jul 26 2001 13:10:38) with ESMTP id GRFYFW00.FAD; Tue, 12 Feb 2002 23:28:44 +0100 Message-ID: <3C69973A.2030908@teleline.es> Date: Tue, 12 Feb 2002 22:29:14 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: rsteinke@w-link.net Cc: gtk-list@gnome.org Subject: Re: problems with the redraw of widgets and callbacks with long operation time References: <3C698A1F.7080500@teleline.es> <3C698DC2.nail9WM1QYQMD@w-link.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: rsteinke@w-link.net wrote: > From: Ignacio Nodal > >>Hi, >> >>In my program I have a window where I select a VRML file to load, press >>OK and in the button callback, I hide this window and call my function >>to read the VRML file (I use CyberVRML97 for this). >> >>The problem is that my GTK+ application seems to be freezed during the >>load. The main window doesn't care about my "expose_event" callback >>until the load ends. >> >>I don't like this behaviour, how could I avoid this? >> > > You're probably not giving the mainloop any time to run during the load. > Look at the documentation on the gtk mainloop (or, better, the glib mainloop) > for instructions on how to do this. > > Ron Steinke > > I've tried with: while (gtk_events_pending()) gtk_main_iteration(); before calling my VRML load function, but gtk_events_pending returns 0. I've also asked for gdk_events_pending, since i'm working with GtkGLArea, being a "subclass" of GtkDrawingArea , but this one returns 0 also. I'm a bit lost... Thanks in advance, Ignacio From pfeiffer@viper.cs.nmsu.edu Tue Feb 12 17:37:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viper.cs.nmsu.edu (viper.cs.nmsu.edu [128.123.64.113]) by mail.gnome.org (Postfix) with ESMTP id A9A9F1891C for ; Tue, 12 Feb 2002 17:37:50 -0500 (EST) Received: (from pfeiffer@localhost) by viper.cs.nmsu.edu (8.11.6/8.11.6) id g1CMbmj09967; Tue, 12 Feb 2002 15:37:48 -0700 From: Joe Pfeiffer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15465.39228.317499.779151@cs.nmsu.edu> Date: Tue, 12 Feb 2002 15:37:48 -0700 To: Ignacio Nodal Cc: rsteinke@w-link.net, gtk-list@gnome.org Subject: Re: problems with the redraw of widgets and callbacks with long operation time In-Reply-To: <3C69973A.2030908@teleline.es> References: <3C698A1F.7080500@teleline.es> <3C698DC2.nail9WM1QYQMD@w-link.net> <3C69973A.2030908@teleline.es> X-Mailer: VM 7.00 under Emacs 21.1.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > > I've tried with: > > while (gtk_events_pending()) > gtk_main_iteration(); > > before calling my VRML load function, but gtk_events_pending returns 0. > > I've also asked for gdk_events_pending, since i'm working with > GtkGLArea, being a "subclass" of GtkDrawingArea , but this one returns 0 > also. Not before, during. You need to find a point in your load function that is executed fairly frequently (like once per outer loop iteration or something) and look for events there. What's going on is exactly what you're suspecting: once you get into that loop, it's not looking for expose (or any other) events any more, until the function returns. So that's what you need to fix. -- Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605 Department of Computer Science FAX -- (505) 646-1002 New Mexico State University http://www.cs.nmsu.edu/~pfeiffer Southwestern NM Regional Science and Engr Fair: http://www.nmsu.edu/~scifair From rwan@cs.mu.oz.au Tue Feb 12 18:27:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from vike.cs.mu.OZ.AU (vike.cs.mu.OZ.AU [128.250.36.73]) by mail.gnome.org (Postfix) with ESMTP id 6919C1834A for ; Tue, 12 Feb 2002 18:27:06 -0500 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 5A06075C0; Wed, 13 Feb 2002 10:27:04 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 57F70ACA9; Wed, 13 Feb 2002 10:27:04 +1100 (EST) Date: Wed, 13 Feb 2002 10:27:04 +1100 (EST) From: Raymond Wan Reply-To: Raymond Wan To: Jeff Payne Cc: gtk-list@gnome.org Subject: Re: problem builduing gtk+2.0 (1.3.13) In-Reply-To: <3c69896e.745.0@greatbasin.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Jeff, On Tue, 12 Feb 2002, Jeff Payne wrote: > Forgive my ignorance as I am new to GTK. I'm attempting to build the latest > development release of gtk along with the supporting packages. After building > the glib, atk, and pango packages, the gtk+2.0 configure script doesn't find > the pango package when pkg-config is called. I've checked the /usr/lib/pkgconfig > directory and verified that pango.pc is there and pointing to the correct lib > and include dirs, but when I manually check for installed packages with pkg-config > only the glib and atk packages come up. One warning; I installed GTK+ as a non-root user, so there may be some variations. Before you built anything, did you set these environment variables: export GTK_DIR=/home/rwan export PATH="$PATH":$GTK_DIR/bin export LD_LIBRARY_PATH=$GTK_DIR/lib export PKG_CONFIG_PATH=$GTK_DIR/lib/pkgconfig Of course, GTK_DIR can be anything; and that's what I had to do because I was a non-root [that's my home directory]. When you configured pango, did you add a --prefix like this: ./configure --prefix=$GTK_DIR I don't know if you have to do this, but if you didn't, you can give it a try... Ray From inodal@teleline.es Tue Feb 12 19:37:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp1.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id AA03318426 for ; Tue, 12 Feb 2002 19:37:55 -0500 (EST) Received: from paranoia ([213.97.141.171]) by tsmtp1.mail.isp (Netscape Messaging Server 4.15 tsmtp1 Jul 26 2001 13:10:38) with SMTP id GRG4EA01.6MR; Wed, 13 Feb 2002 01:37:22 +0100 Message-ID: <000b01c1b426$aceb8e40$0a01a8c0@paranoia> From: "Ignacio Nodal" To: "Joe Pfeiffer" Cc: References: <3C698A1F.7080500@teleline.es><3C698DC2.nail9WM1QYQMD@w-link.net><3C69973A.2030908@teleline.es> <15465.39228.317499.779151@cs.nmsu.edu> Subject: Re: problems with the redraw of widgets and callbacks with long operation time Date: Wed, 13 Feb 2002 00:37:51 -0000 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Oh, I see... well, then I'll have to be patient and wait for my VRML to end loading. The main computation time takes place in functions from the CyberVRML97 library. It's not my source, and I don't think I want to modify/hack it hehehe :-) Thanks for all, Ignacio Nodal ----- Original Message ----- From: "Joe Pfeiffer" To: "Ignacio Nodal" Cc: ; Sent: Tuesday, February 12, 2002 10:37 PM Subject: Re: problems with the redraw of widgets and callbacks with long operation time > > > > before calling my VRML load function, but gtk_events_pending returns 0. > Not before, during. You need to find a point in your load function > that is executed fairly frequently (like once per outer loop iteration > or something) and look for events there. What's going on is exactly > what you're suspecting: once you get into that loop, it's not looking > for expose (or any other) events any more, until the function > returns. So that's what you need to fix. > > Ignacio Nodal writes: > > > > I've tried with: > > > > while (gtk_events_pending()) > > gtk_main_iteration(); From yogeeshappa.mathighatta@wipro.com Wed Feb 13 01:43:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 5002B180E1 for ; Wed, 13 Feb 2002 01:43:47 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g1D6gCX06172 for ; Wed, 13 Feb 2002 12:12:14 +0530 (IST) Received: from m2foe301975 ([10.114.9.182]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GRGLAO00.926; Wed, 13 Feb 2002 12:12:24 +0530 Message-ID: <030d01c1b459$59695990$b609720a@m2foe301975> Reply-To: "Yogeesh MB" From: "Yogeesh MB" To: "Yogeesh M B" Cc: References: <3C4D5E3B.5010904@ng-london.org.uk> Subject: GtkObject in gnome-utils/Gnome-Calculator Date: Wed, 13 Feb 2002 12:10:38 +0530 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit Hi, In gnome-utils/Gnome-calculator has both GTK_OBJECT_CLASS destroy call :gnome_calc_destroy(GtkObject * gobject), and G_OBJECT_CLASS finalize :gnome_calc_finalize(GObject * gobject). GTK_OBJECT_CLASS is deprecated and there is no destroy call in G_OBJECT_CLASS. I would like to know why the destroy call is still retained. Isn't finalize a substitute for destroy? Regards, Yogeesh MB. Kevin wrote: Hi Yogeesh. I hate to do this, but you should probably ask on the gtk-list mailing list since this is a very general porting question. I'm not familiar with the changes needed to port from GtkObject to GObject so the gtk list will give a better answer. Regards, Kevin ----- Original Message ----- From: Yogeesh MB To: kfv101@psu.edu Sent: Saturday, February 09, 2002 1:47 AM Subject: GtkObject in Gnome-Calculator Hi Kevin, I was testing the ported gnome-utils/gnome-calculator, I found there is GtkObject function call gnome_calc_destroy(GtkObject * gobject) used. In GTK_OBJECT_CALSS there is a destroy call. but in (deprecated) G_OBJECT_CLASS as such there is no destroy call (except finalize) I have build the gnome-calulator by commenting destroy call, Its working fine. Let me know the reason why still GTK_OBJECT_CLASS(destroy) exists. I mailed Bastien Nocera in this regard, below is the mail from him. Awaiting for ur reply, Regards, Yogeesh MB. ****************************************** Hi, Kevin Vandersloot is responsible for the gnome-utils port these days. Mail him. Cheers On Fri, 2002-02-08 at 14:54, Yogeesh MB wrote: > Hi George, > > I was testing the ported gnome-utils/gnome-calculator, > I found there is GtkObject function call gnome_calc_destroy(GtkObject * gobject) used. > In GTK_OBJECT_CALSS there is a destroy call. but in (deprecated) > G_OBJECT_CLASS as such there is no destroy call (except finalize) > I have build the gnome-calulator by commenting destroy call, Its working fine. > > Let me know the reason why still GTK_OBJECT_CLASS(destroy) exists. > > awaiting for ur reply, > Regards, > > Yogeesh MB. > Sr. Software Engineer, > Wipro Technologies, > #53/1, Ganapa Complex, > Madivala(M3), Hosur Road, > Bangalore-68. > Ph:5502001-8, X 5127 > Res:6728996. > > > /Bastien Nocera http://hadess.net Bangalore-68. Ph:5502001-8, X 5127 Res:6728996. ------=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8 Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ******************************************************************** ------=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8-- From db@zigo.dhs.org Wed Feb 13 02:46:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cosmo.zigo.dhs.org (as2-4-3.an.g.bonet.se [194.236.34.191]) by mail.gnome.org (Postfix) with ESMTP id 2102518108 for ; Wed, 13 Feb 2002 02:46:18 -0500 (EST) Received: from localhost (db@localhost) by cosmo.zigo.dhs.org (8.11.6/8.11.6) with ESMTP id g1D7k3t09662 for ; Wed, 13 Feb 2002 08:46:03 +0100 X-Authentication-Warning: cosmo.zigo.dhs.org: db owned process doing -bs Date: Wed, 13 Feb 2002 08:46:02 +0100 (CET) From: Dennis Bjorklund To: Subject: scrolling gtktextview Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I add lines at the end of the textview and would like it to scroll down to the bottom so I can see the new lines. But I can't get it to work. I tried: gtk_text_buffer_get_end_iter (buf, &iter); gtk_text_view_scroll_to_iter (view, &iter, 0.0, FALSE, 0.0, 0.0); but the does not scroll all the way, it can leave 5-6 lines that are not visible after scroll. Next attempt is to have a mark in the very end of the buffer and doing gtk_text_view_scroll_mark_onscreen (view, mark); but this have similar problems as the first try. The last thing I tried was to get the GtkAdjustment out of the GtkScrolledWindow. When I set this, then it works. But if flickers so badly that it's not usable. I don't understand why I can't get the gtk_text_view_scroll_xxxxxx to work. -- /Dennis From morten@rh-data.com Wed Feb 13 05:15:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.pc-cons.no (mail.pc-cons.no [193.69.57.47]) by mail.gnome.org (Postfix) with ESMTP id C31E2183AC for ; Wed, 13 Feb 2002 05:15:57 -0500 (EST) Received: from www.rh-data.com (rh-data-gw.online.no [194.143.84.10]) by mail.pc-cons.no (8.9.3/8.9.3) with ESMTP id LAA14096 for ; Wed, 13 Feb 2002 11:23:55 +0100 Received: from whitestar.kontor.rh-data.com (whitestar.kontor.rh-data.com [192.168.1.58]) by www.rh-data.com (8.8.7/8.8.7) with ESMTP id LAA05964 for ; Wed, 13 Feb 2002 11:11:41 +0100 Subject: How do I change the default language in GTK / GNOME? From: Morten Andersen To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary="=-eut4Defdr0g8zcD3SnW5" X-Mailer: Evolution/1.0.2 Date: 13 Feb 2002 11:15:44 +0100 Message-Id: <1013595344.8972.18.camel@whitestar.kontor.rh-data.com> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-eut4Defdr0g8zcD3SnW5 Content-Type: text/plain Content-Transfer-Encoding: 7bit Somehow my default language changed from english to polish or something on almost all of my gnome apps and all GTK apps. Does anyone know how to change it back to english?? ------------------------------------------------------------------------------- With best regards from Morten Andersen System Consultant RH-Data AS email: morten@rh-data.com tlf: 32770906 fax: 32770901 mobil: 41600026 web: http://www.rh-data.com Also take a look at these web sites: http://www.redhat.com http://www.ximian.com ------------------------------------------------------------------------------- --=-eut4Defdr0g8zcD3SnW5 Content-Type: text/html; charset=utf-8
Somehow my default language changed from english to polish or something on almost all of my gnome apps and all GTK apps.
Does anyone know how to change it back to english??
-------------------------------------------------------------------------------
With best regards from
Morten Andersen
System Consultant RH-Data AS
email: morten@rh-data.com
tlf: 32770906
fax: 32770901
mobil: 41600026
web: http://www.rh-data.com


Also take a look at these web sites:
http://www.redhat.com
http://www.ximian.com
-------------------------------------------------------------------------------
--=-eut4Defdr0g8zcD3SnW5-- From hp@redhat.com Wed Feb 13 11:36:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 141A81810E for ; Wed, 13 Feb 2002 11:36:00 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1DGZpI00939; Wed, 13 Feb 2002 11:35:51 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Yogeesh MB" Cc: Subject: Re: GtkObject in gnome-utils/Gnome-Calculator References: <3C4D5E3B.5010904@ng-london.org.uk> <030d01c1b459$59695990$b609720a@m2foe301975> From: Havoc Pennington Date: 13 Feb 2002 11:35:51 -0500 In-Reply-To: <030d01c1b459$59695990$b609720a@m2foe301975> Message-ID: Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Yogeesh MB" writes: > > In gnome-utils/Gnome-calculator has both GTK_OBJECT_CLASS destroy call > :gnome_calc_destroy(GtkObject * gobject), and G_OBJECT_CLASS finalize > :gnome_calc_finalize(GObject * gobject). > GTK_OBJECT_CLASS is deprecated and there is no destroy call in > G_OBJECT_CLASS. I would like to know why the destroy call is still > retained. Isn't finalize a substitute for destroy? > GtkObject and gtk_object_destroy aren't marked deprecated in my copy of GTK. These are still needed in many cases. finalize means free memory; destroy means return the widget to an uninitialized state, e.g. removing any container-child relationships. Havoc From hp@redhat.com Wed Feb 13 11:37:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id A29D618B97 for ; Wed, 13 Feb 2002 11:37:45 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1DGbhU00943; Wed, 13 Feb 2002 11:37:43 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Morten Andersen Cc: gtk-list@gnome.org Subject: Re: How do I change the default language in GTK / GNOME? References: <1013595344.8972.18.camel@whitestar.kontor.rh-data.com> From: Havoc Pennington Date: 13 Feb 2002 11:37:43 -0500 In-Reply-To: <1013595344.8972.18.camel@whitestar.kontor.rh-data.com> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Morten Andersen writes: > Somehow my default language changed from english to polish or something > on almost all of my gnome apps and all GTK apps. > Does anyone know how to change it back to english?? > This is a function of the desktop or operating system, not GTK. Maybe the login screen has an option to choose a language? Havoc From hp@redhat.com Wed Feb 13 11:38:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id C37BA190C6 for ; Wed, 13 Feb 2002 11:38:48 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1DGcjB00948; Wed, 13 Feb 2002 11:38:45 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Dennis Bjorklund Cc: Subject: Re: scrolling gtktextview References: From: Havoc Pennington Date: 13 Feb 2002 11:38:45 -0500 In-Reply-To: Message-ID: Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dennis Bjorklund writes: > I add lines at the end of the textview and would like it to scroll down to > the bottom so I can see the new lines. But I can't get it to work. I > tried: > > gtk_text_buffer_get_end_iter (buf, &iter); > > gtk_text_view_scroll_to_iter (view, &iter, 0.0, > FALSE, 0.0, 0.0); > > but the does not scroll all the way, it can leave 5-6 lines that are not > visible after scroll. Next attempt is to have a mark in the very end of > the buffer and doing > > gtk_text_view_scroll_mark_onscreen (view, mark); > > but this have similar problems as the first try. It's supposed to work, can you write out a small test program that fails, and file the bug on bugzilla.gnome.org? I will investigate. Havoc From vmail@excite.com Wed Feb 13 14:36:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.10]) by mail.gnome.org (Postfix) with ESMTP id 4188319010 for ; Wed, 13 Feb 2002 14:36:26 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id 74885F661; Wed, 13 Feb 2002 14:36:18 -0500 (EST) To: gtk-list@gnome.org Subject: Removing elements from a gtkTree Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: wdulyea@qualcomm.com Message-Id: <20020213193618.74885F661@xprdmailfe.excite.com> Date: Wed, 13 Feb 2002 14:36:18 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How do remove elements from a gtkTree obj?

tree
|--item
|--subtree
|--subitem

I wish to actually remove/add subitems on the fly, How do I accomplish this?

Thanks in advance,

-W


From seberino@dt092n42.san.rr.com Wed Feb 13 16:28:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 9F7B818232 for ; Wed, 13 Feb 2002 16:28:12 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16b6xG-0001F3-00; Wed, 13 Feb 2002 13:28:42 -0800 Date: Wed, 13 Feb 2002 13:28:42 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: How put text in pixmap? How put vertical (rotate 90 degrees) text? Message-ID: <20020213132842.A4746@spawar.navy.mil> References: <20020131135557.A12603@spawar.navy.mil> <200201312200.RAA18251@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200201312200.RAA18251@renoir.op.net>; from pbd@op.net on Thu, Jan 31, 2002 at 04:57:48PM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul This comment broke my heart for the last 2 weeks. :) But, then I stumbled upon something.... What about gdk_draw_text and gdk_draw_string? Chris On Thu, Jan 31, 2002 at 04:57:48PM -0500, Paul Davis wrote: > >How put text in pixmap, horizontal and vertical text??? > > you have no choice but to draw the text 1 character at a time. XWindow > has no primitives for drawing anything except horizontally arranged > text. > > --p -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 13 16:36:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 31ED31862F for ; Wed, 13 Feb 2002 16:36:07 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16b74w-0001FK-00; Wed, 13 Feb 2002 13:36:38 -0800 Date: Wed, 13 Feb 2002 13:36:38 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-ID: <20020213133638.B4746@spawar.navy.mil> References: <20020206111905.A566@spawar.navy.mil> <200202061924.OAA15372@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202061924.OAA15372@renoir.op.net>; from pbd@op.net on Wed, Feb 06, 2002 at 02:22:48PM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul I may sometimes give impression I'm smart but looks can be deceiving. :) (Ph.D. in physics not computing) I have ZERO X experience! I looked for NULL explanation about why "= NULL" bad but could not anything. Can you give me a 1-2 sentence explanation? Is it a security risk somehow or something? By the way, someone should tell the GTK+ tutorial author that "= NULL" is bad since it has this in scribble.c and apparently he hasn't learned it either. :) I'm glad I have input by all these great experts on this mailing list. Thanks for everything! Chris On Wed, Feb 06, 2002 at 02:22:48PM -0500, Paul Davis wrote: > >I need to sometimes initialize an object to NULL and get this > >message. How avoid??? > > this is getting too close to generic programming questions for this > list. if you don't understand how to fix this yourself, i worry about > future progress on your software. > > SomeObject *someObject = (SomeObject *) 0; > > you should never use "NULL" in a C++ program. look it up with google > to understand why. > > --p -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From rsteinke@w-link.net Wed Feb 13 16:42:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id C702118764 for ; Wed, 13 Feb 2002 16:42:09 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16b7A8-0002uE-00; Wed, 13 Feb 2002 13:42:00 -0800 Date: Wed, 13 Feb 2002 13:42:00 -0800 From: rsteinke@w-link.net To: seberino@spawar.navy.mil, pbd@op.net Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Cc: gtk-list@gnome.org Message-ID: <3C6ADDA8.nail8M311ICGL@w-link.net> References: <20020206111905.A566@spawar.navy.mil> <200202061924.OAA15372@renoir.op.net> <20020213133638.B4746@spawar.navy.mil> In-Reply-To: <20020213133638.B4746@spawar.navy.mil> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Chris Seberino > > Paul > > I may sometimes give impression I'm smart but looks can > be deceiving. :) (Ph.D. in physics not computing) > I have ZERO X experience! > > I looked for NULL explanation about why "= NULL" bad > but could not anything. Can you give me a 1-2 sentence > explanation? Is it a security risk somehow or something? It's got something to do with the stronger typecasting in C++, relative to C. > By the way, someone should tell the GTK+ tutorial author > that "= NULL" is bad since it has this in scribble.c and > apparently he hasn't learned it either. :) That's because it's C and not C++. NULL is completely appropriate in C. > I'm glad I have input by all these great experts on this mailing list. > > Thanks for everything! > > Chris > > On Wed, Feb 06, 2002 at 02:22:48PM -0500, Paul Davis wrote: > > >I need to sometimes initialize an object to NULL and get this > > >message. How avoid??? > > > > this is getting too close to generic programming questions for this > > list. if you don't understand how to fix this yourself, i worry about > > future progress on your software. > > > > SomeObject *someObject = (SomeObject *) 0; > > > > you should never use "NULL" in a C++ program. look it up with google > > to understand why. > > > > --p From pbd@op.net Wed Feb 13 18:02:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 4680A180F2 for ; Wed, 13 Feb 2002 18:02:02 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-71.phlpa.fast.net [209.92.96.71]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id SAA16775; Wed, 13 Feb 2002 18:01:53 -0500 (EST) Message-Id: <200202132301.SAA16775@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? In-reply-to: Your message of "Wed, 13 Feb 2002 13:36:38 PST." <20020213133638.B4746@spawar.navy.mil> Date: Wed, 13 Feb 2002 17:57:11 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I looked for NULL explanation about why "= NULL" bad >but could not anything. Can you give me a 1-2 sentence >explanation? Is it a security risk somehow or something? no, not a security problem. consider how you'd define NULL. #define NULL ((void *)0) now try to use this: SomeObject *ptr = NULL; because C++ is much stricter about types, the compiler will/may complain that it cannot perform an implicit cast of void * to SomeObject *. So in fact, the only acceptable definitions of NULL are 0 or 0L or 0UL or 0U, with no type casting. Since the definitions in a C header file nearly always include the type cast, and since no type cast is acceptable, using NULL is a bad idea. [ quote from a message i found with google]: the C++ standard guarantees that if you use 0 in a pointer context, it will be converted to whatever that platform uses for the "null pointer", even if it happens not to have a bit pattern of all zeroes. (Section 4.10) Therefore, it's safe to use 0 to mean "the null pointer". so, just stick to 0. --p From pfeiffer@viper.cs.nmsu.edu Wed Feb 13 18:21:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viper.cs.nmsu.edu (viper.cs.nmsu.edu [128.123.64.113]) by mail.gnome.org (Postfix) with ESMTP id 97842184CB for ; Wed, 13 Feb 2002 18:21:20 -0500 (EST) Received: (from pfeiffer@localhost) by viper.cs.nmsu.edu (8.11.6/8.11.6) id g1DNLIj15466; Wed, 13 Feb 2002 16:21:18 -0700 From: Joe Pfeiffer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15466.62702.466412.964873@cs.nmsu.edu> Date: Wed, 13 Feb 2002 16:21:18 -0700 To: Chris Seberino , gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? In-Reply-To: <200202132301.SAA16775@renoir.op.net> References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> X-Mailer: VM 7.00 under Emacs 21.1.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It's because the C standard contains an error (I'm sure somebody out there is going to disagree with me as to whether it's an error or not!), and has defined NULL as an integer instead of as a pointer. While it can be cast to a null pointer, if you have an overloaded function that will accept either a null pointer or an int, it'll call the int version. A good description of the problem can be found at http://groups.google.com/groups?q=null+group:comp.lang.c%2B%2B&hl=en&selm=36ca3f75.517359233%40nntp.ix.netcom.com&rnum=5 You can almost always get away with using NULL, and using it does a better job of conveying what your code is trying to do (IMHO). But when you do run into this subtlty, it will take weeks to find the bug... Using 0 has some remote hope of reminding you... -- Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605 Department of Computer Science FAX -- (505) 646-1002 New Mexico State University http://www.cs.nmsu.edu/~pfeiffer Southwestern NM Regional Science and Engr Fair: http://www.nmsu.edu/~scifair From britten@caris.com Wed Feb 13 18:26:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from caris.universal.ca (universal.ca [198.164.13.1]) by mail.gnome.org (Postfix) with ESMTP id 60C31184CB for ; Wed, 13 Feb 2002 18:26:07 -0500 (EST) Received: from dilbert.uslnet.com (proxy.caris.com [198.164.13.3]) by caris.universal.ca (8.11.0/8.11.0) with SMTP id g1DNQ4R03840 for ; Wed, 13 Feb 2002 19:26:04 -0400 Date: Wed, 13 Feb 2002 19:25:55 -0400 From: Ian Britten To: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-Id: <20020213192555.79184ba5.britten@caris.com> In-Reply-To: <200202132301.SAA16775@renoir.op.net> References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> Organization: USL X-Mailer: Sylpheed version 0.6.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 13 Feb 2002 17:57:11 -0500 Paul Davis wrote: > no, not a security problem. consider how you'd define NULL. > > #define NULL ((void *)0) Although this form is allowed, it is *only* valid for C (not C++), and is not how most compilers define NULL. > now try to use this: > > SomeObject *ptr = NULL; > > because C++ is much stricter about types, the compiler will/may > complain that it cannot perform an implicit cast of void * to > SomeObject *. Correct. It's because of this (questionable) NULL #define in the GTK code that C++ developers have problems using GTK... (I've tried to point this out before, but it doesn't seem like anyone wants to fix the problem... (sigh)) > So in fact, the only acceptable definitions of NULL are > 0 or 0L or 0UL or 0U, with no type casting. Correct. This is how every compiler I've seen defines it. [ Granted, I only have access to 6 distinct compilers, from 6 different vendors.... :-/ ] > Since the definitions in a > C header file nearly always include the type cast, and since no type ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This may have been the case years ago, but any compiler doing that now is pretty rare... > cast is acceptable, using NULL is a bad idea. [ quote from a message > found with google]: > > the C++ standard guarantees that if you use 0 in a pointer context, > it will be converted to whatever that platform uses for the "null > pointer", even if it happens not to have a bit pattern of all > zeroes. (Section 4.10) Therefore, it's safe to use 0 to mean "the > null pointer". > > so, just stick to 0. Using NULL is perfectably acceptable, as long as NULL is correctly defined. It is a notational form that adds clarity to the intent of the code (and is easy to search for!). There is absolutely nothing wrong with using NULL in code. Please review the comp.lang.c FAQ, section 5 http://www.eskimo.com/~scs/C-faq/s5.html Summary: GTK has an poor/incorrect definition of NULL that breaks C++ code. At a minimum, the definition should be fixed. However, the better fix would be to simply remove the definition, and use the one provided by the compiler. Ian From rbultje@ronald.bitfreak.net Wed Feb 13 18:38:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id D101B180F2 for ; Wed, 13 Feb 2002 18:38:41 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1DNTp4K008039 for ; Thu, 14 Feb 2002 00:29:51 +0100 (CET) Subject: highlighted button with image gives warning From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 14 Feb 2002 00:38:39 +0100 Message-Id: <1013643520.3834.36.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm trying to get some things done using gtk2. If I create a button (gtk_button_new()) and I put a GtkImage inside it with gtk_container_add() (Gtkmage was created using gtk_image_new_from_pixbuf()) and I go over the button with my mouse (to click it), I get a warning and the image disappears: lt-gst-record (pid:16438): Gtk-WARNING **: gtkstyle.c:1905:gtk_default_render_icon(): invalid icon size `-1' lt-gst-record (pid:16438): Gtk-CRITICAL **: file gtkstyle.c: line 1790 (gtk_style_render_icon): assertion `pixbuf != NULL' failed When leaving the button with my mouse, the image re-appears. It seems as if I need to specify a separate image for the 'highlight' state or tell it to use the same image for that state, so my question: how do I do that? Or is this a bug? In gtk1.2, this worked automagically. Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From markrubn@pacbell.net Wed Feb 13 20:24:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id AF0D51815C for ; Wed, 13 Feb 2002 20:24:27 -0500 (EST) Received: from pacbell.net ([63.201.208.99]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRI007QO18QUA@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Wed, 13 Feb 2002 17:24:27 -0800 (PST) Date: Wed, 13 Feb 2002 17:24:01 -0800 From: "Mark R. Rubin" Subject: Forcing update of widgets To: GTK mailing list Message-id: <3C6B11B1.1AC9DD52@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: o I am attempting to force GTK to update all widgets in a realtime display application using the following code fragment (which I first read about on this mailing list): while (g_main_iteration(FALSE)) ; o There are two problems. First, some widgets, in some cases, do not update. The example I have is a label which is updated from an overloaded motion_notify_event_impl() method in a class derived from Gtk::DrawingArea. (Yes, this is in GTK--, which may or may not be the problem.) o Second problem is that I have a TCP socket connected to the GTK main loop (again GTK--, using Gtk::Main.input.connect()) and doing the above g_main_iteration() loop exposes me to an unwanted re-entrancy. In the middle of processing a user or TCP input and updating the widgets, I can "signal" back to the same or another handler before finishing the current input. o Is there any other/better way to force an update of widgets? I've tried gdk_flush(), by itself and in addition to g_main_iteration(), without success. -- MARK markrubn@pacbell.net From pbd@op.net Wed Feb 13 20:44:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BC9A71856A for ; Wed, 13 Feb 2002 20:44:46 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-157.phlpa.fast.net [209.92.99.157]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA00718; Wed, 13 Feb 2002 20:44:43 -0500 (EST) Message-Id: <200202140144.UAA00718@renoir.op.net> To: "Mark R. Rubin" Cc: GTK mailing list Subject: Re: Forcing update of widgets In-reply-to: Your message of "Wed, 13 Feb 2002 17:24:01 PST." <3C6B11B1.1AC9DD52@pacbell.net> Date: Wed, 13 Feb 2002 20:40:02 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >o I am attempting to force GTK to update all widgets in a realtime > display application using the following code fragment (which I > first read about on this mailing list): > > while (g_main_iteration(FALSE)) > ; this is the wrong design for "realtime display applications". if you want the GUI to update while other activity is happening, you should be using either idle handlers or threads. idle handlers work if the "other activity" is short lived. threads are necessary for other situations. with threads come some extra complications, as well as better performance. >o Second problem is that I have a TCP socket connected to the GTK > main loop (again GTK--, using Gtk::Main.input.connect()) and doing > the above g_main_iteration() loop exposes me to an unwanted > re-entrancy. In the middle of processing a user or TCP input and > updating the widgets, I can "signal" back to the same or another > handler before finishing the current input. this will go away when you correct your design. >o Is there any other/better way to force an update of widgets? I've > tried gdk_flush(), by itself and in addition to g_main_iteration(), > without success. widget->queue_draw() will mark a widget as needing an expose_event to be synthesized for it. the expose_event will be delivered during the next iteration of the GTK main loop. --p From pbd@op.net Wed Feb 13 20:46:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id B01D918501 for ; Wed, 13 Feb 2002 20:46:07 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-157.phlpa.fast.net [209.92.99.157]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA00853; Wed, 13 Feb 2002 20:46:04 -0500 (EST) Message-Id: <200202140146.UAA00853@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How put text in pixmap? How put vertical (rotate 90 degrees) text? In-reply-to: Your message of "Wed, 13 Feb 2002 13:28:42 PST." <20020213132842.A4746@spawar.navy.mil> Date: Wed, 13 Feb 2002 20:41:24 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Paul > >This comment broke my heart for the last 2 weeks. :) > >But, then I stumbled upon something.... > >What about gdk_draw_text and gdk_draw_string? these draw horizontal text. its valentines day tomorrow (perhaps today, depending on where you are); the heartbreak continues :) --p From markrubn@pacbell.net Wed Feb 13 22:55:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by mail.gnome.org (Postfix) with ESMTP id A47461897B for ; Wed, 13 Feb 2002 22:55:38 -0500 (EST) Received: from pacbell.net ([63.201.208.99]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRI00GWN88P5T@mta6.snfc21.pbi.net> for gtk-list@gnome.org; Wed, 13 Feb 2002 19:55:38 -0800 (PST) Date: Wed, 13 Feb 2002 19:55:11 -0800 From: "Mark R. Rubin" Subject: Re: Forcing update of widgets To: Paul Davis Cc: GTK mailing list Message-id: <3C6B351F.5B64540@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202140144.UAA00718@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > while (g_main_iteration(FALSE)) > > ; > > this is the wrong design for "realtime display applications". if you > want the GUI to update while other activity is happening, you should > be using either idle handlers or threads. idle handlers work if the > "other activity" is short lived. threads are necessary for other > situations. with threads come some extra complications, as well as > better performance. o Thanks, Paul. But I *don't* want "the GUI to update while other activity is happening". I want to call something that will update the widgets all the way down to an XFlush() before returning control to the caller (me), all without accepting any input. o BTW, the application has many independent flows of control (at the process, not Posix thread, level). > widget->queue_draw() will mark a widget as needing an expose_event to > be synthesized for it. the expose_event will be delivered during the > next iteration of the GTK main loop. o widget->queue_draw() sounds good if in fact an expose_event, synthetic or otherwise, is needed in additon to a widget state change to force a real redraw. Re-entering the main loop (and risking asynchonous input) is the problem. o Is there an API-exposed call for just that portion of the GTK main loop that does drawing? I seem to recall that the old XtMainLoop() could be manually coded with a while loop calling a half-dozen lower-level functions. -- MARK markrubn@pacbell.net From knishida@sky.sannet.ne.jp Thu Feb 14 02:31:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from svan18.sannet.ne.jp (svan18.sannet.ne.jp [134.180.49.18]) by mail.gnome.org (Postfix) with ESMTP id 1BC1F1856C for ; Thu, 14 Feb 2002 02:31:33 -0500 (EST) Received: from xp.netlab.jp (eaa1-ppp2138.tokyo.sannet.ne.jp [211.133.188.75]) by svan18.sannet.ne.jp (Postfix) with ESMTP id 3E2322BE69 for ; Thu, 14 Feb 2002 16:31:31 +0900 (JST) Date: Thu, 14 Feb 2002 16:32:58 +0900 Message-ID: From: Keisuke Nishida To: gtk-list@gnome.org Subject: problem with grab_focus User-Agent: Wanderlust/2.6.0 (Twist And Shout) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.1 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: multipart/mixed; boundary="Multipart_Thu_Feb_14_16:32:58_2002-1" Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --Multipart_Thu_Feb_14_16:32:58_2002-1 Content-Type: text/plain; charset=US-ASCII Hi there, I have a problem with using gtk_widget_grab_focus in a focus_out_event hander, using gtk+-1.2.10. The attached program has three GtkEntry's, vertically aligned, and tries to grab focus on entry1 when I leave entry2. If I press key `GDK_Down' in the second entry (i.e., entry2), the default action of GTK+ moves cursor to entry3, while my handler moves cursor to entry1. Thus, two cursors appear simultaneously. How could I have only entry1 focused? Thanks in advance. Keisuke Nishida --Multipart_Thu_Feb_14_16:32:58_2002-1 Content-Type: text/plain; charset=US-ASCII #include guint handler; GtkWidget *entry1; GtkWidget *entry2; GtkWidget *entry3; static void on_focus_out (GtkEntry *entry) { gtk_signal_handler_block (GTK_OBJECT (entry), handler); gtk_widget_grab_focus (entry1); gtk_signal_handler_unblock (GTK_OBJECT (entry), handler); } static GtkWidget * create_window1 () { GtkWidget *window1; GtkWidget *vbox1; entry1 = gtk_entry_new (); entry2 = gtk_entry_new (); entry3 = gtk_entry_new (); handler = gtk_signal_connect (GTK_OBJECT (entry2), "focus_out_event", GTK_SIGNAL_FUNC (on_focus_out), NULL); vbox1 = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry1, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry2, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry3, FALSE, FALSE, 0); window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_add (GTK_CONTAINER (window1), vbox1); return window1; } int main (int argc, char **argv) { gtk_init (&argc, &argv); gtk_widget_show_all (create_window1 ()); gtk_main (); return 0; } --Multipart_Thu_Feb_14_16:32:58_2002-1-- From bursted@iam.uni-bonn.de Thu Feb 14 04:21:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ovid.iam.uni-bonn.de (ovid.iam.uni-bonn.de [131.220.32.59]) by mail.gnome.org (Postfix) with ESMTP id 9CC34181AB for ; Thu, 14 Feb 2002 04:21:48 -0500 (EST) Received: from iam.uni-bonn.de (sisyphos.iam.uni-bonn.de [131.220.223.38]) by ovid.iam.uni-bonn.de (980427.SGI.8.8.8/8.6.9) with ESMTP id KAA10514 for ; Thu, 14 Feb 2002 10:21:40 +0100 (CET) Message-ID: <3C6B819D.D732F54D@iam.uni-bonn.de> Date: Thu, 14 Feb 2002 10:21:33 +0100 From: Carsten Burstedde X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.3 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Null Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, what would be wrong with #define null (0) and using that (Java-style)? Then people got their readibility, the c++ standard is saved, and peace. Carsten (I do c and java, so don't kill me if this is junk.) From eg_hyy@stu.ust.hk Thu Feb 14 05:00:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx3.ust.hk (mx3.ust.hk [143.89.13.11]) by mail.gnome.org (Postfix) with ESMTP id 534681824F for ; Thu, 14 Feb 2002 05:00:34 -0500 (EST) Received: from webmaild.ust.hk (webmaild.ust.hk [143.89.14.206]) by mx3.ust.hk (8.11.5/8.11.5) with ESMTP id g1EA0V016090; Thu, 14 Feb 2002 18:00:31 +0800 Received: from localhost (localhost [[UNIX: localhost]]) by webmaild.ust.hk (8.9.3/8.9.3) id SAA23820; Thu, 14 Feb 2002 18:00:31 +0800 Message-Id: <200202141000.SAA23820@webmaild.ust.hk> Date: Thu, 14 Feb 2002 18:00:31 +0800 User-Agent: IMHO/0.97.1 (HKUST Webmail 1.0b) MIME-Version: 1.0 To: gtk-list@gnome.org Content-Transfer-Encoding: 8bit X-Originating-IP: [61.15.163.60] Content-Type: text/plain; charset=iso-8859-1 From: Subject: program organization Cc: eg_hyy@stu.ust.hk Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear all, I would like to ask which organization is better. Thx a lot~ Method 1: GtkWidget widget0; //entry A GtkWidget widget1; //entry B GtkWidget widget2; //entry C widget0=lookup_widget(...); widget1=lookup_widget(...); widget2=lookup_widget(...); gtk_entry_set_text(widget0,...); gtk_entry_set_text(widget1,...); gtk_entry_set_text(widget2,...); Method 2: GtkWidget widget; widget=lookup_widget(...); //entry A gtk_..._set(widget,...); widget=lookup_widget(...); //entry B gtk_..._set(widget,...); widget=lookup_widget(...); //entry C gtk_..._set(widget,...); From sven@gimp.org Thu Feb 14 08:49:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id CA03B182C2 for ; Thu, 14 Feb 2002 08:49:48 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16bMGO-0006UG-00; Thu, 14 Feb 2002 14:49:28 +0100 To: Ian Britten Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> <20020213192555.79184ba5.britten@caris.com> From: Sven Neumann Date: 14 Feb 2002 14:49:28 +0100 In-Reply-To: <20020213192555.79184ba5.britten@caris.com> Message-ID: Lines: 34 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, > Summary: > GTK has an poor/incorrect definition of NULL that breaks C++ code. At a > minimum, the definition should be fixed. However, the better fix would be > to simply remove the definition, and use the one provided by the compiler. here's how glib-2.0 defines NULL: /* We include stddef.h to get the system's definition of NULL */ #include #ifndef NULL # ifdef __cplusplus # define NULL (0L) # else /* !__cplusplus */ # define NULL ((void*) 0) # endif /* !__cplusplus */ #endif this looks much better, doesn't it? BTW, glib-1.2 does not redefine NULL neither: #ifndef NULL #define NULL ((void*) 0) #endif so if you run into problems because of this definition, you should probably define NULL before you include glib.h (or even include an appropriate header that defines NULL more correctly). Salut, Sven From mallum@10.am Thu Feb 14 08:50:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost (lan.ipc.co.uk [193.119.160.10]) by mail.gnome.org (Postfix) with ESMTP id C4A06186E6 for ; Thu, 14 Feb 2002 08:50:46 -0500 (EST) Received: from mallum by localhost with local (Exim 3.34 #1 (Debian)) id 16bMGj-0000H1-00; Thu, 14 Feb 2002 13:49:49 +0000 Date: Thu, 14 Feb 2002 13:49:48 +0000 From: mallum To: Sven Neumann Cc: gtk-list@gnome.org Subject: Re: synthetic button press event in GTK1.2 Message-ID: <20020214134948.GE478@10.am> References: <20020212005736.GC486@10.am> <20020212113152.GB529@10.am> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020212113152.GB529@10.am> User-Agent: Mutt/1.3.27i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I figured it out now, XTest to the resuce :) -- mallum on Tue, Feb 12, 2002 at 11:31:52AM +0000, mallum wrote: > Via an emmision hook, Im writing a gtk module that catches 'held down' > button 1 events and on release tranforms them into a button 3 press event. > > This works fine, but the app is now missing a button release event > which is causing problems. Im trying to create this via XSendEvent . > > This is for touchscreen devices running gtk. > > Can suggest a better way of accomplishing this ? > > -- mallum > > > on Tue, Feb 12, 2002 at 02:36:54AM +0100, Sven Neumann wrote: > > Hi, > > > > mallum writes: > > > > > I need to send a 'synthetic' button release event. Im under the > > > impression I can only do this with a call to Xlibs XSendEvent. > > > > do you really need to do that? What are you trying to acomplish? > > > > > > Salut, Sven > > _______________________________________________ > > 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 britten@caris.com Thu Feb 14 09:10:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from caris.universal.ca (universal.ca [198.164.13.1]) by mail.gnome.org (Postfix) with ESMTP id CB82918834 for ; Thu, 14 Feb 2002 09:10:07 -0500 (EST) Received: from dilbert.uslnet.com (proxy.caris.com [198.164.13.3]) by caris.universal.ca (8.11.0/8.11.0) with SMTP id g1EEA5R04001 for ; Thu, 14 Feb 2002 10:10:05 -0400 Date: Thu, 14 Feb 2002 10:10:02 -0400 From: Ian Britten To: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-Id: <20020214101002.66778e05.britten@caris.com> In-Reply-To: References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> <20020213192555.79184ba5.britten@caris.com> Organization: USL X-Mailer: Sylpheed version 0.6.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 14 Feb 2002 14:49:28 +0100 Sven Neumann wrote: > > Summary: > > GTK has an poor/incorrect definition of NULL that breaks C++ code. At a > > minimum, the definition should be fixed. However, the better fix would be > > to simply remove the definition, and use the one provided by the compiler. > > here's how glib-2.0 defines NULL: > > /* We include stddef.h to get the system's definition of NULL > */ > #include [ snip ] That looks better! That (critical) #include isn't in v1.2, meaning that (C++) must ensure they #include explicitely themselves before #including any GTK header files (Very tedious and error prone...) [ Sorry, I guess I should have clarified that I was referring to GTK 1.2. I haven't had time to look at 1.3/2.0 yet... ] If that little change could be back-ported to v1.2 (hint, hint!), I think (C++) users might be happier... ;-) (After all, v1.2 is still the defacto, stable, standard version. v2.0 may be coming Real Soon, but I suspect v1.2 will still be around for awhile...) Ian From cosminb@saguaro.ro Thu Feb 14 09:30:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from terminus.dnttm.ro (terminus.dnttm.ro [193.226.98.11]) by mail.gnome.org (Postfix) with ESMTP id 8A51118111 for ; Thu, 14 Feb 2002 09:30:08 -0500 (EST) Received: from main.saguaro.ro (main.saguaro.ro [193.226.88.117]) by terminus.dnttm.ro (8.9.3/8.9.3) with ESMTP id QAA15476 for ; Thu, 14 Feb 2002 16:30:06 +0200 Received: from saguaro.ro (samba.spr [192.168.1.100]) by main.saguaro.ro (8.11.2/8.11.2) with ESMTP id g1EEDEH17913 for ; Thu, 14 Feb 2002 16:13:14 +0200 Received: from saguaro.ro (IDENT:cosmin@cosminb.spr [192.168.1.154]) by saguaro.ro (8.11.2/8.11.2) with ESMTP id g1EEPxW32264 for ; Thu, 14 Feb 2002 16:25:59 +0200 X-RAV-AntiVirus: This e-mail has been scanned for viruses on host: saguaro.ro Message-ID: <3C6BCB26.39E5B75D@saguaro.ro> Date: Thu, 14 Feb 2002 16:35:18 +0200 From: cosminb X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: destroy-event ??? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I don't know what signal is emited in the following situation. Right-click in the upper-right corner on a X window. A menu appears. There is a destroy option. Selecting this option will emit a "destroy-event" to that window? If yes, I want to catch it(from my gtk app., if posible), but I don't know how. Thanks in advance Cosmin Bonea From John.Cupitt@ng-london.org.uk Thu Feb 14 09:54:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 0D3EC18111 for ; Thu, 14 Feb 2002 09:54:29 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXLYTX>; Thu, 14 Feb 2002 14:54:22 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXLYTW; Thu, 14 Feb 2002 14:54:18 -0000 Message-ID: <3C6BCC53.1020906@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: cosminb@saguaro.ro Cc: gtk-list@gnome.org Subject: Re: destroy-event ??? Date: Thu, 14 Feb 2002 14:40:19 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: cosminb wrote: > Right-click in the upper-right corner on a X window. A menu appears. > There is a destroy option. Selecting this option will emit a > "destroy-event" to that window? If yes, I want to catch it(from my gtk > app., if posible), but I don't know how. Hi, connect to "delete-event" and return TRUE to block the destroy. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From pbd@op.net Thu Feb 14 09:56:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 81C3E186DB for ; Thu, 14 Feb 2002 09:56:04 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-22.phlpa.fast.net [209.92.227.22]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA04261; Thu, 14 Feb 2002 09:55:56 -0500 (EST) Message-Id: <200202141455.JAA04261@renoir.op.net> To: cosminb Cc: gtk-list@gnome.org Subject: Re: destroy-event ??? In-reply-to: Your message of "Thu, 14 Feb 2002 16:35:18 +0200." <3C6BCB26.39E5B75D@saguaro.ro> Date: Thu, 14 Feb 2002 09:51:24 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi all, > >I don't know what signal is emited in the following situation. > >Right-click in the upper-right corner on a X window. A menu appears. >There is a destroy option. Selecting this option will emit a >"destroy-event" to that window? If yes, I want to catch it(from my gtk >app., if posible), but I don't know how. it will generate a "delete_event" first, which is what actually corresponds to the window manager's "destroy" operation. if that is not handled by a handler that returns TRUE, then the widget in question will more or less immediately be "destroyed" in the GTK+ sense, which involves returning it to an uninitialized state. this is accompanied by a "destroy_event" for the window. --p From Esteban.Quijano@artinsoft.com Thu Feb 14 10:02:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id B6A3518111 for ; Thu, 14 Feb 2002 10:02:35 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id <1L3Q0YHC>; Wed, 13 Feb 2002 17:30:02 -0600 Message-ID: From: Esteban Quijano To: gtk-list@gnome.org Subject: RE: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? Date: Wed, 13 Feb 2002 16:31:30 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It is not true that NULL cannot be used in C++. I don't have to google anything to understand basic things about stricter type casting. I have tons of C++ lines of code running perfectly on Windows and Linux without any trouble. NULL is just a macro you can define as you want in your project: /* Define NULL pointer value */ #ifndef NULL #ifdef __cplusplus #define NULL 0 #else #define NULL ((void *)0) #endif #endif Esteban Quijano QA dept. Artinsoft corp. > -----Original Message----- > From: Chris Seberino [mailto:seberino@spawar.navy.mil] > Sent: Wednesday, February 13, 2002 3:37 PM > To: Paul Davis > Cc: gtk-list@gnome.org > Subject: Re: ?? warning: ANSI C++ forbids implicit conversion > from `void > *' in initialization ??? > > > Paul > > I may sometimes give impression I'm smart but looks can > be deceiving. :) (Ph.D. in physics not computing) > I have ZERO X experience! > > I looked for NULL explanation about why "= NULL" bad > but could not anything. Can you give me a 1-2 sentence > explanation? Is it a security risk somehow or something? > > By the way, someone should tell the GTK+ tutorial author > that "= NULL" is bad since it has this in scribble.c and > apparently he hasn't learned it either. :) > > I'm glad I have input by all these great experts on this mailing list. > > Thanks for everything! > > Chris > > On Wed, Feb 06, 2002 at 02:22:48PM -0500, Paul Davis wrote: > > >I need to sometimes initialize an object to NULL and get this > > >message. How avoid??? > > > > this is getting too close to generic programming questions for this > > list. if you don't understand how to fix this yourself, i > worry about > > future progress on your software. > > > > SomeObject *someObject = (SomeObject *) 0; > > > > you should never use "NULL" in a C++ program. look it up with google > > to understand why. > > > > --p > > -- > ======================================================= > | Dr. Christian Seberino || (619) 553-7940 (office) | > | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | > | 53560 HULL ST || | > | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | > ======================================================= > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From Esteban.Quijano@artinsoft.com Thu Feb 14 10:02:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id BA500189EF for ; Thu, 14 Feb 2002 10:02:36 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id <1L3Q0YJL>; Wed, 13 Feb 2002 19:15:15 -0600 Message-ID: From: Esteban Quijano To: Paul Davis Cc: gtk-list@gnome.org Subject: RE: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? Date: Wed, 13 Feb 2002 18:17:43 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If you see the ANSI ISO/IEC C++ International Standard(14882) at page 699 it says: C.2.2.3 Macro NULL The macro NULL, defined in any of , , , , , , or , is an implementation-defined C++ null pointer constant in this International Standard(18.1). And if you see section 18.1: 4. The macro NULL is an implementation-deined C++ null pointer constant in this International Standard (4.10).180 -> This footnote says: Possible definitions include 0 and OL, but not (void*)0. - I admit I was wrong about "(void *)0". However, the stdio.h microsoft version uses it. It seems that it is left to each compiler (with its .h files) which #define to select. And 4.10 Pointer Convertion says: 1. A null pointer constant is an integral constant expression (5.19) rvalue of integer type that evaluates to zero. A null pointer constant can be converted to a pointer type; the result is the null pointer value of that type and is distinguishable from every other value of pointer to object or pointer to function type. Two null pointer values of the same type shall compare equal. The conversion of a null pointer constant to a pointer to cv-qualified type is a single conversion, and not the sequence of a pointer conversion followed by a qualification conversion (4.4). It is always better to use macros for portability reasons. A single #define line is easier to change than thousands of 0 or 0L in a complex project. You can even #undefine and #define again NULL if needed. Esteban Quijano Artinsoft corp. > -----Original Message----- > From: Paul Davis [mailto:pbd@Op.Net] > Sent: Wednesday, February 13, 2002 4:57 PM > To: Chris Seberino > Cc: gtk-list@gnome.org > Subject: Re: ?? warning: ANSI C++ forbids implicit conversion > from `void > *' in initialization ??? > > > >I looked for NULL explanation about why "= NULL" bad > >but could not anything. Can you give me a 1-2 sentence > >explanation? Is it a security risk somehow or something? > > no, not a security problem. consider how you'd define NULL. > > #define NULL ((void *)0) > > now try to use this: > > SomeObject *ptr = NULL; > > because C++ is much stricter about types, the compiler will/may > complain that it cannot perform an implicit cast of void * to > SomeObject *. So in fact, the only acceptable definitions of NULL are > 0 or 0L or 0UL or 0U, with no type casting. Since the definitions in a > C header file nearly always include the type cast, and since no type > cast is acceptable, using NULL is a bad idea. [ quote from a message i > found with google]: > > the C++ standard guarantees that if you use 0 in a pointer context, > it will be converted to whatever that platform uses for the "null > pointer", even if it happens not to have a bit pattern of all > zeroes. (Section 4.10) Therefore, it's safe to use 0 to mean "the > null pointer". > > so, just stick to 0. > > --p > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From pbd@op.net Thu Feb 14 10:16:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 7B27018111 for ; Thu, 14 Feb 2002 10:16:33 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-22.phlpa.fast.net [209.92.227.22]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA06755; Thu, 14 Feb 2002 10:16:30 -0500 (EST) Message-Id: <200202141516.KAA06755@renoir.op.net> To: Esteban Quijano Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? In-reply-to: Your message of "Wed, 13 Feb 2002 18:17:43 CST." Date: Thu, 14 Feb 2002 10:11:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >It is always better to use macros for portability reasons. A single #define this is nonsense. there has only ever been one meaning of a null pointer. the fact that certain projects have mis-defined it from the perspective of a C++ programmer doesn't change that. assuming that the macro is correctly defined, there is absolutely no difference in any way between writing ptr = NULL; and ptr = 0; if the compiler does not support the standard for null pointer conversion (i.e. an integer value of 0 will converted to a null pointer), there is no possible definition of NULL that will work, so the macro isn't buying you anything. if you happen to be a person who likes to look for "NULL" in code because you think it provides some kind of semantic guidance, feel free to use "NULL". i'm not one of those people. --p From mark@mark.mielke.cc Thu Feb 14 10:26:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mark.mielke.cc (mark.mielke.cc [216.209.85.42]) by mail.gnome.org (Postfix) with ESMTP id D0C2C180E9 for ; Thu, 14 Feb 2002 10:26:20 -0500 (EST) Received: (from mark@localhost) by mark.mielke.cc (8.11.6/linuxconf) id g1EFMOv04787; Thu, 14 Feb 2002 10:22:24 -0500 Date: Thu, 14 Feb 2002 10:22:24 -0500 From: Mark Mielke To: Paul Davis Cc: Esteban Quijano , gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? Message-ID: <20020214102224.A4715@mark.mielke.cc> Mail-Followup-To: Mark Mielke , Paul Davis , Esteban Quijano , gtk-list@gnome.org References: <200202141516.KAA06755@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200202141516.KAA06755@renoir.op.net>; from pbd@Op.Net on Thu, Feb 14, 2002 at 10:11:58AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Feb 14, 2002 at 10:11:58AM -0500, Paul Davis wrote: > >It is always better to use macros for portability reasons. A single #define > this is nonsense. there has only ever been one meaning of a null > pointer. the fact that certain projects have mis-defined it from the > perspective of a C++ programmer doesn't change that. "There has only ever been one meaning of a null pointer on known sensible systems." Just like, one should be able to assume that "p++" and "--p" should always work, although very strictly one cannot. The following code: char s[100]; char *p = &s[-2]; p[2]; May not actually work on some systems. Why? Because C only guarantees that s[-1] will work. I've never stumbled on one of these machines, but I suspect these limitations may apply to systems without a real OS underneath them, such as the Palm Pilot. The C/C++ standards define NULL such that the onus is left to the implementation to define NULL as something that "works". Therefore, unless you plan on stating that "our tools only work on 'sensible' systems", for your own definition of sensible, "NULL" actually is more portable than "0". (perhaps not by very much at all... but is it really worth fighting over?) mark -- mark@mielke.cc/markm@ncf.ca/markm@nortelnetworks.com __________________________ . . _ ._ . . .__ . . ._. .__ . . . .__ | Neighbourhood Coder |\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ | | | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, Ontario, Canada One ring to rule them all, one ring to find them, one ring to bring them all and in the darkness bind them... http://mark.mielke.cc/ From Valdis.Kletnieks@vt.edu Thu Feb 14 10:52:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 44287193A2 for ; Thu, 14 Feb 2002 10:52:14 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1EFqDVj026110; Thu, 14 Feb 2002 10:52:13 -0500 Message-Id: <200202141552.g1EFqDVj026110@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Mark Mielke Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? In-Reply-To: Your message of "Thu, 14 Feb 2002 10:22:24 EST." <20020214102224.A4715@mark.mielke.cc> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ <200202141516.KAA06755@renoir.op.net> <20020214102224.A4715@mark.mielke.cc> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1869010785P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 14 Feb 2002 10:52:13 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_1869010785P Content-Type: text/plain; charset=us-ascii On Thu, 14 Feb 2002 10:22:24 EST, Mark Mielke said: > Just like, one should be able to assume that "p++" and "--p" should > always work, although very strictly one cannot. The following code: > > char s[100]; > char *p = &s[-2]; > > p[2]; > > May not actually work on some systems. Why? Because C only guarantees that > s[-1] will work. > > I've never stumbled on one of these machines, but I suspect these > limitations may apply to systems without a real OS underneath them, > such as the Palm Pilot. Actually, it's not necessarily "without a real OS". There have existed weird architectures that have strange views on memory access (see the Intel 432, or IBM's S/38-AS/400 series, for example), where memory is referenced in an object-oriented manner enforced by the hardware. On these types of machines, dereferencing p[2] is safe *only* if p is referenced through a pointer that accesses a descriptor that says "yes, this is an array of at least 3 in size". And of course, trying to assign p a value of &s[-2] gets you a SIGSEGV or moral equivalent, because s is a pointer to a descriptor that limits the array to indices 0 through 99. And I believe everybody's favorite CISC system, the DEC VAX, had a BOUNDS instruction that checked if a pointer was within limits - and there's no reason why a compiler couldn't/shouldn't have included a BOUNDS opcode in the computation of &s[-2]. I believe the Intel x86 series has a similar opcode, but I am *NOT* positive of that.... -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_1869010785P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8a90tcC3lWbTT17ARAu7eAJ4sjXxdkdlmP4y9I6K2HLQqD2Kp4QCfRPHW t1iIoi45mqXqgRTtc6OrXxA= =hDxm -----END PGP SIGNATURE----- --==_Exmh_1869010785P-- From pfeiffer@viper.cs.nmsu.edu Thu Feb 14 12:48:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viper.cs.nmsu.edu (viper.cs.nmsu.edu [128.123.64.113]) by mail.gnome.org (Postfix) with ESMTP id 72697189D1 for ; Thu, 14 Feb 2002 12:48:44 -0500 (EST) Received: (from pfeiffer@localhost) by viper.cs.nmsu.edu (8.11.6/8.11.6) id g1EHmIS18590; Thu, 14 Feb 2002 10:48:18 -0700 From: Joe Pfeiffer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15467.63585.827662.889816@cs.nmsu.edu> Date: Thu, 14 Feb 2002 10:48:17 -0700 To: Carsten Burstedde Cc: gtk-list@gnome.org Subject: Null In-Reply-To: <3C6B819D.D732F54D@iam.uni-bonn.de> References: <3C6B819D.D732F54D@iam.uni-bonn.de> X-Mailer: VM 7.00 under Emacs 21.1.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Carsten Burstedde writes: > > what would be wrong with > #define null (0) > and using that (Java-style)? It's got the same problem as the definition of NULL in the standard (after all, it is the definition of NULL from the standard!). -- Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605 Department of Computer Science FAX -- (505) 646-1002 New Mexico State University http://www.cs.nmsu.edu/~pfeiffer Southwestern NM Regional Science and Engr Fair: http://www.nmsu.edu/~scifair From maldonado@ibiquity.com Thu Feb 14 14:58:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from radioflyer.ibocradio.com (unknown [208.33.57.98]) by mail.gnome.org (Postfix) with ESMTP id EB106180DD for ; Thu, 14 Feb 2002 14:58:16 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message Subject: pixmap "shadow" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1B591.F143D9AE" Date: Thu, 14 Feb 2002 14:58:16 -0500 Message-ID: <6AC325EB1D98F84B986D83F985121C1F16FDB7@radioflyer.ibocradio.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: pixmap "shadow" Thread-Index: AcG1kfE9SsRDGOiNTh6obLAh7goSmw== From: "Lourdes Maldonado" To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1B591.F143D9AE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 Using Glade I insert a pixmap widget into a container (the pixmap widget is not pointing to a file). Then at runtime I create a GdkPixmap with some xpm_data local to the code and use gtk_pixmap_set to set my Glade pixmap widget to the locally created pixmap. =20 static const char * myXpmData[] =3D (data not include in e-mail) =20 GdkPixmap *pixmap; GdkBitmap *mask; GtkStyle *style; =20 style =3D gtk_widget_get_style(myWindow); =20 pixmap =3D gdk_pixmap_create_from_xpm_d(myWindow, &mask, =20 &style->bg[GTK_STATE_NORMAL], (gchar **)myXmpData); =20 gtk_pixmap-set(GTK_PIXMAP(myPixmapWidgetFromGlade), pixmap, mask); =20 The first time the pixmap is displayed it has a shadow (it looks like another pixmap (same image) is behind it and offset to one side). If I cover the pixmap with a window and then remove the window it looks fine. =20 Thanks for any help, =20 Lourdes T. Maldonado ------_=_NextPart_001_01C1B591.F143D9AE Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

Using Glade I insert a pixmap widget into a container = (the pixmap widget is not pointing to a file).  Then at runtime I create a = GdkPixmap with some xpm_data local

to the code and use gtk_pixmap_set to set my Glade = pixmap widget to the locally created pixmap.

 

static const char * myXpmData[] =3D (data not include = in e-mail)

 

GdkPixmap *pixmap;

GdkBitmap *mask;

GtkStyle *style;

 

style =3D = gtk_widget_get_style(myWindow);

 

pixmap =3D gdk_pixmap_create_from_xpm_d(myWindow, = &mask,

         =             &= nbsp;           &n= bsp;              =             &= nbsp;   &style->bg[GTK_STATE_NORMAL],=

         =             &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;     (gchar **)myXmpData);

 

gtk_pixmap-set(GTK_PIXMAP(myPixmapWidgetFromGlade),

         =             &= nbsp;  pixmap,

         =             &= nbsp;  mask);

 

The first time the pixmap is displayed it has a = shadow (it looks like another pixmap (same image) is behind it and offset to one side).  If I cover the pixmap with a window and then remove the = window it looks fine.

 

Thanks for any help,

 

Lourdes T. = Maldonado

=00 ------_=_NextPart_001_01C1B591.F143D9AE-- From pbd@op.net Thu Feb 14 15:36:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id E1D62181A5 for ; Thu, 14 Feb 2002 15:36:49 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-402.phlpa.fast.net [209.92.100.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA15289; Thu, 14 Feb 2002 15:36:43 -0500 (EST) Message-Id: <200202142036.PAA15289@renoir.op.net> To: Mark Mielke Cc: Esteban Quijano , gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? In-reply-to: Your message of "Thu, 14 Feb 2002 10:22:24 EST." <20020214102224.A4715@mark.mielke.cc> Date: Thu, 14 Feb 2002 15:32:14 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >The C/C++ standards define NULL such that the onus is left to the >implementation to define NULL as something that "works". That may be true. However, the C++ standard, such as it is, is quite specific about what it means to assign an integral value of zero to a pointer lvalue, or when testing a pointer value against an integer value of zero. This is precisely why many C++ programmers, myself included, prefer to use 0 rather than NULL. NULL may or may not be the right thing, whereas 0 almost certainly is. >Therefore, unless you plan on stating that "our tools only work on >'sensible' systems", for your own definition of sensible, "NULL" actually >is more portable than "0". (perhaps not by very much at all... Its the other way around. The standards do not pin down a definition of NULL because there is no standard definition that can be guaranteed to work. Thus, using 0 is actually much more portable because its operation/semantics are defined by the standard. Actually, as Joseph pointed out here yesterday, even 0 has problems for cases where there is an overloaded function with both pointer and integer variants. > but is it >really worth fighting over?) No. Just worth getting right. --p From crazycrusoe@yahoo.com Thu Feb 14 17:02:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11505.mail.yahoo.com (web11505.mail.yahoo.com [216.136.172.37]) by mail.gnome.org (Postfix) with SMTP id 51C9018766 for ; Thu, 14 Feb 2002 17:02:24 -0500 (EST) Message-ID: <20020214220223.27386.qmail@web11505.mail.yahoo.com> Received: from [202.180.83.6] by web11505.mail.yahoo.com via HTTP; Thu, 14 Feb 2002 14:02:23 PST Date: Thu, 14 Feb 2002 14:02:23 -0800 (PST) From: Syed Irfan Subject: need help with some queries To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi i need some help understanding some things, i am through to chapter 6 in the gtk tutorial :-) /* my program 5, button.button */ #include //#define INFO /usr/share/doc/gtk+-devel-1.2.10/examples/buttons/info.xpm why cant i define the above and use INFO in the program ? instead of giving the whole path to the file ? gint my_delete_cb(GtkWidget *widget, GdkEvent *event, gpointer data) { g_print("\nyou pressed the %s \n", (char*) data); gtk_main_quit(); return (TRUE); } gint my_clicked_button_cb(GtkWidget *widget, gpointer data) { g_print("\n pressed the %s\n", (char *) data); return (FALSE); } //gint my_leave_button_cb(GtkWidget *widget, GdkEvent *event, gpointer data) //gives output " uhooo this ones good; Ã) " //i mean the strange character "Ã" instead of "pointer moved away from button" ? //bugger, but removing GdkEvent *event from the function declaration //does da trick, dunno why ? any explanation here ? gint my_leave_button_cb(GtkWidget *widget, gpointer data) { g_print("\nuhooo this ones good; %s\n",(char*) data); return (TRUE); } GtkWidget *my_xpm_label_box(GtkWidget *parent, gchar *xpm_filename, gchar *label_text) { GtkWidget *box_1; GtkWidget *label; GtkWidget *pixmapwid; GdkPixmap *pixmap; GdkBitmap *mask; GtkStyle *style; //create box for xpm and label box_1=gtk_hbox_new(FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(box_1), 2); //setting style of the button style = gtk_widget_get_style(parent); //the display of the pixmap pixmap = gdk_pixmap_create_from_xpm(parent->window, &mask, &style->bg[GTK_STATE_NORMAL], xpm_filename); pixmapwid = gtk_pixmap_new(pixmap, mask); //create label for the button label = gtk_label_new(label_text); //packing the pixmap into box gtk_box_pack_start(GTK_BOX(box_1), pixmapwid, FALSE, FALSE, 3); //packing the label into the box gtk_box_pack_start(GTK_BOX(box_1), label, FALSE, FALSE, 3); gtk_widget_show(pixmapwid); gtk_widget_show(label); return (box_1); } int main(int argc, char *argv[]) { //gtk widgets first GtkWidget *window; GtkWidget *button; GtkWidget *box_1; //dont forget to initialize gtk_init(&argc, &argv); //create the window window = gtk_window_new(GTK_WINDOW_TOPLEVEL); //connect the x with close gtk_signal_connect(GTK_OBJECT(window), "delete_event", GTK_SIGNAL_FUNC(my_delete_cb), (gpointer) "x button on the top right corner"); gtk_container_set_border_width(GTK_CONTAINER(window), 20); //what the heck is that realize thingy ? below //whats the diff between gtk_widget_show() and //gtk_widget_realize() ?? gtk_widget_realize(window); // gtk_widget_show(window); // now creating the button button = gtk_button_new(); //connecting the button to an event, basically the button callback gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(my_clicked_button_cb), (gpointer) "cool button"); gtk_signal_connect(GTK_OBJECT(button), "leave", GTK_SIGNAL_FUNC(my_leave_button_cb), (gpointer) "pointer moved away from button"); //the strange thing about, when the mouse pointer clicks the //button, this is the output i get uhooo this ones good; pointer moved away from button pressed the cool button but shouldnt i get only "pressed the cool button" why am i getting the uhooo this ones good as well ? box_1 = my_xpm_label_box(window, "/usr/lib/kde1-compat/share/icons/large/info.xpm", "cool button"); gtk_widget_show(box_1); gtk_container_add(GTK_CONTAINER(button), box_1); gtk_widget_show(button); gtk_container_add(GTK_CONTAINER(window), button); gtk_widget_show(window); gtk_main(); return(0); } thankyou verymuch guys ===== ===================================== CrazyCrusoe Hackerd00d http://members.linuxstart.com/openweb ===================================== __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com From lynn.lin@boeing.com Thu Feb 14 18:25:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from slb-smtpout-01.boeing.com (slb-smtpout-01.boeing.com [12.13.237.21]) by mail.gnome.org (Postfix) with ESMTP id 3855C186BF for ; Thu, 14 Feb 2002 18:25:22 -0500 (EST) Received: from stl-av-02.boeing.com ([192.76.190.7]) by slb-smtpout-01.boeing.com (8.9.2/8.8.5-M2) with ESMTP id PAA07564 for ; Thu, 14 Feb 2002 15:23:31 -0800 (PST) Received: from slb-hub-01.boeing.com (localhost [127.0.0.1]) by stl-av-02.boeing.com (8.9.3/8.9.2/MBS-AV-01) with ESMTP id RAA29281 for ; Thu, 14 Feb 2002 17:25:20 -0600 (CST) Received: from xch-swbh-02.sw.nos.boeing.com (xch-swbh-02.sw.nos.boeing.com [129.172.87.58]) by slb-hub-01.boeing.com (8.11.3/8.11.3/MBS-LDAP-01) with ESMTP id g1ENPIT04857 for ; Thu, 14 Feb 2002 15:25:18 -0800 (PST) Received: by xch-swbh-02.sw.nos.boeing.com with Internet Mail Service (5.5.2650.21) id <169NBMLJ>; Thu, 14 Feb 2002 15:25:18 -0800 Message-ID: From: "Lin, Lynn" To: "'gtk-list@gnome.org'" Subject: gui builder Date: Thu, 14 Feb 2002 15:25:12 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, Does GTK+ has a GUI builder ? If yes, what is the name of it ? Thank you :) Lynn From dreed@capital.edu Thu Feb 14 18:51:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by mail.gnome.org (Postfix) with ESMTP id 113211847B for ; Thu, 14 Feb 2002 18:51:12 -0500 (EST) Received: from localhost.localdomain (dhcp065-024-120-162.columbus.rr.com [65.24.120.162]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id g1ENkDb14143; Thu, 14 Feb 2002 18:46:13 -0500 (EST) Received: (from dreed@localhost) by localhost.localdomain (8.11.6/8.11.6) id g1ENoLn18340; Thu, 14 Feb 2002 18:50:21 -0500 Date: Thu, 14 Feb 2002 18:50:21 -0500 Message-Id: <200202142350.g1ENoLn18340@localhost.localdomain> X-Authentication-Warning: localhost.localdomain: dreed set sender to dreed@capital.edu using -f From: Dave Reed To: lynn.lin@boeing.com Cc: gtk-list@gnome.org In-reply-to: (lynn.lin@boeing.com) Subject: Re: gui builder References: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > From: "Lin, Lynn" > > Hi there, > > Does GTK+ has a GUI builder ? If yes, what is the name of it ? > > Thank you :) > > Lynn Yes, glade. If you're running Linux, you probably already have it. If not, see: http://glade.pn.org Dave From caspar@cbothmer.org Thu Feb 14 18:58:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cbothmer.org (pD95199DF.dip.t-dialin.net [217.81.153.223]) by mail.gnome.org (Postfix) with SMTP id 49786181D2 for ; Thu, 14 Feb 2002 18:58:53 -0500 (EST) Received: (qmail 25263 invoked from network); 14 Feb 2002 23:58:50 -0000 Received: from marvin.cbothmer.org (HELO cbothmer.org) () by trillian.cbothmer.org with SMTP; 14 Feb 2002 23:58:50 -0000 Message-ID: <3C6C4F8B.B4EA2826@cbothmer.org> Date: Fri, 15 Feb 2002 01:00:11 +0100 From: Caspar Bothmer X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: gui builder References: <200202142350.g1ENoLn18340@localhost.localdomain> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dave Reed wrote: > > Yes, glade. > If you're running Linux, you probably already have it. If not, see: > http://glade.pn.org New address: http://glade.gnome.org. You can find it from http://www.gtk.org, topic "Applications". Is a nice tool. Check the tutorial from Jan, 18th. bye caspar From vmail@excite.com Thu Feb 14 20:33:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.9]) by mail.gnome.org (Postfix) with ESMTP id 96A65181F8 for ; Thu, 14 Feb 2002 20:33:18 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id 8EF5B29A19; Thu, 14 Feb 2002 20:33:13 -0500 (EST) To: gtk-list@gnome.org Subject: memory leaks Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Message-Id: <20020215013313.8EF5B29A19@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 20:33:13 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am using a notebook with several pages, each page is packed with n_ widgets, each time I switch between pages I want the container of pages I am switch from and all its children to be destroyed or un referenced if you prefer. Simply destroying the widget parent does not accomplish this as I thought by propagation, oops. In the mean time I watch my application consume more and more memory:(

Any ideas on how to resolve this issue?

-William



From konno@hkd.esc.east.ntt.co.jp Thu Feb 14 21:37:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail3.noc.ntt.co.jp (mail3.noc.ntt.co.jp [210.163.32.58]) by mail.gnome.org (Postfix) with ESMTP id D1B131816C for ; Thu, 14 Feb 2002 21:37:00 -0500 (EST) Received: from vscan2.noc.east.ntt.co.jp (vscan2.noc.east.ntt.co.jp) by mail3.noc.ntt.co.jp (8.9.3/NOC-MAIL3) id LAA04084 for ; Fri, 15 Feb 2002 11:36:58 +0900 (JST) Received: from mail2.noc.east.ntt.co.jp by vscan2.noc.east.ntt.co.jp (3.7W/vscan2_v01) id LAA26081; Fri, 15 Feb 2002 11:36:58 +0900 (JST) Received: from hkd.esc.east.ntt.co.jp by mail2.noc.east.ntt.co.jp (8.9.3/3.7W/mail2_v01) id LAA07925; Fri, 15 Feb 2002 11:36:59 +0900 (JST) Received: by hkd.esc.east.ntt.co.jp (8.8.8/3.6W/99120320) with SMTP id LAA20224; Fri, 15 Feb 2002 11:36:57 +0900 (JST) From: "tadashi konno" To: "gtk-list" Subject: =?iso-2022-jp?B?R1RLGyRCJEc0SkMxJEolPSUxJUMlSCVXJW0lMCVpJWAkcjpuJGobKEI=?= =?iso-2022-jp?B?GyRCJD8kJBsoQg==?= Date: Fri, 15 Feb 2002 11:34:37 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: $B=i$a$F$NEj9F$G$9!#:#Ln$H?=$7$^$9!#(B GTK$B$d(BX$B$r;O$a$?$P$+$j$G!"$h$/J,$+$j$^$;$s!#(B $BA0$K$b!";w$?l9g$O!"$4$a$s$J$5$$!#(B GTK$B$G4JC1$J%=%1%C%H%W%m%0%i%`$r:n$C$F8+$?$N$G$9$,!"(B socket$B$N(Bconnect$B$H(Bgtk_input_add_full$B$N;H$$J}$,$o$+$j$^$;$s!#(B $BAw?.It$He Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 846191816C for ; Thu, 14 Feb 2002 22:14:35 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-31.fast.net [209.92.60.31]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id WAA25803; Thu, 14 Feb 2002 22:14:33 -0500 (EST) Message-Id: <200202150314.WAA25803@renoir.op.net> To: wdulyea1@excite.com Cc: gtk-list@gnome.org Subject: Re: memory leaks In-reply-to: Your message of "Thu, 14 Feb 2002 20:33:13 EST." <20020215013313.8EF5B29A19@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 22:10:09 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > >I am using a notebook with several pages, each page is packed with n_ widgets, > each time I switch between pages I want the container of pages I am switch f >rom and all its children to be destroyed or un referenced if you prefer. then you'll have to do this explicitly by removing it from the notebook, which should reduce its reference count to zero and thus destroy it. just switching pages won't accomplish this. --p From vmail@excite.com Thu Feb 14 23:06:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.5]) by mail.gnome.org (Postfix) with ESMTP id E1CA4188CE for ; Thu, 14 Feb 2002 23:06:40 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id CCE1C3E0E; Thu, 14 Feb 2002 23:06:36 -0500 (EST) To: Paul Davis , Subject: Re: memory leaks Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Message-Id: <20020215040636.CCE1C3E0E@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 23:06:36 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Aahh ...but this is my problem. I should have detailed a little more with the original mail.

The routine that handles switching pages is also getting the widget in the current page prior to switching, once I have the widget I implicitly call gtk_?_destroy(), this should do as stated and destroy the object. However I am still seeing my application grow in size as I continually switch from one notebook page to another.

Any Ideas?

-William


From pbd@op.net Thu Feb 14 23:10:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D9FF0181E9 for ; Thu, 14 Feb 2002 23:10:39 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-31.fast.net [209.92.60.31]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id XAA00771; Thu, 14 Feb 2002 23:10:29 -0500 (EST) Message-Id: <200202150410.XAA00771@renoir.op.net> To: wdulyea1@excite.com Cc: gtk-list@gnome.org Subject: Re: memory leaks In-reply-to: Your message of "Thu, 14 Feb 2002 23:06:36 EST." <20020215040636.CCE1C3E0E@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 23:06:05 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: just a quick note to point out that whether you know it or not, the email program you are using is sending out copies of your mail in both plain text and HTML formats. increasingly on the net, there are filters being put in place that silently dump HTML-formatted email. some mailing lists will not ever accept such posts. as long as you do this, you are (1) wasting network bandwidth by sending messages that are typically more than twice as long as they could be (2) making it harder for people using traditional email readers to read them (3) risking the chance that people will never see your mail because its filtered before reaching their email inbox. >Aahh ...but this is my problem. I should have detailed a little more with the > original mail.
>
>The routine that handles switching pages is also getting the widget in the cur >rent page prior to switching, once I have the widget I implicitly call gtk_?_d >estroy(), this should do as stated and destroy the object. However I am still > seeing my application grow in size as I continually switch from one notebook >page to another.
>
>Any Ideas?
you cannot just destroy an object that is held by a container and expect the destroy to work. GTK objects are reference counted, and unless you remove it from the container, it will continue to exist until the refcnt drops to zero. --p From kh_naba@yahoo.com Thu Feb 14 23:45:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by mail.gnome.org (Postfix) with SMTP id 1A684186FD for ; Thu, 14 Feb 2002 23:45:35 -0500 (EST) Received: from unknown (HELO ?192.168.1.3?) (61.11.30.46) by smtp.mail.vip.sc5.yahoo.com with SMTP; 15 Feb 2002 04:45:33 -0000 Subject: Anjuta 0.1.9 released! From: Naba Kumar To: anjuta-announce@lists.sourceforge.net Cc: linux-india-help@lists.sourceforge.net, linux-india-general@lists.sourceforge.net, gnome-devel-list@gnome.org, gtk-devel@gnome.org, gnome-list@gnme.org, gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 15 Feb 2002 10:15:50 +0530 Message-Id: <1013748360.1318.4.camel@Dragon> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Announcing the latest stable release of Anjuta, 0.1.9. The Anjuta website can be found at: http://anjuta.sourceforge.net What is Anjuta? Anjuta is a versatile Integrated Development Environment (IDE). It has been written for GTK+/GNOME, and features a number of advanced programming facilities. These include project management, application wizards, an interactive debugger and a powerful source code editor, with source browsing and syntax highlighting. What is new / changed in this release? * rewritten symbol and tag browsing support, * new message manager, * embedded terminal (using zvt), * Project Import Wizard, making it easier to migrate existing projects to Anjuta (experimental), * new look Application Wizard, * libglade project support, * Class Creator plugin, * UI enhancements, * many, many bug fixes. Requirements * libxml, * scrollkeeper, * standard GNU development tools, * gdb (for debugging sessions) * autoconf/automake. Optional tools * gnome-help-browser (or Nautilus), to display the included documentation, * grep, for research in files, * ctags, in order to have class browsing, * indent, for automatic source code indenting, * DevHelp, for context sensitive API browser support (http://devhelp.codefactory.se). Availability * http://prdownloads.sourceforge.net/anjuta/anjuta-0.1.9.tar.gz * http://prdownloads.sourceforge.net/anjuta/anjuta-0.1.9-1.src.rpm * http://prdownloads.sourceforge.net/anjuta/anjuta-0.1.9-1.i386.rpm (.deb and other formats coming soon) Feedback Although much of the development effort is going into the new version of Anjuta, we'd really like to continue to hear your comments on the 0.1.x series - remember that forums, mailing lists, bug reporting and feature request facilities may be found at the Anjuta project page: http://www.sourceforge.net/projects/anjuta -- Regards, -naba Forgive him, for he believes that the customs of his tribe are the laws of nature! -- G.B. Shaw _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From podd@prodigy.net Sun Feb 10 18:43:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pimout3-int.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102]) by mail.gnome.org (Postfix) with ESMTP id 26AD31823C for ; Sun, 10 Feb 2002 18:43:07 -0500 (EST) Received: from default (A020-0842.SKT3.splitrock.net [209.253.233.80]) by pimout3-int.prodigy.net (8.11.0/8.11.0) with SMTP id g1ANh59202946 for ; Sun, 10 Feb 2002 18:43:06 -0500 Message-ID: <000701c1b283$bbbd74a0$50e9fdd1@default> From: "SCOTT D ADAMS" To: Subject: GList Date: Sun, 10 Feb 2002 14:38:58 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01C1B240.AC6D9B80" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0004_01C1B240.AC6D9B80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all; How can you open a data file and add the contents to a GList and then = show the=20 complete list in a gtk+ listbox? I've been able to do everything except = display the=20 items in a listbox. thanks, jim scurveedog@yahoo.com ------=_NextPart_000_0004_01C1B240.AC6D9B80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all;
 
How can you open a data file and add the contents to = a GList=20 and then show the
complete list in a gtk+ listbox?  I've been = able to do=20 everything except display the
items in a listbox.
 
thanks,
jim scurveedog@yahoo.com
 
 
 
------=_NextPart_000_0004_01C1B240.AC6D9B80-- From knishida@sky.sannet.ne.jp Thu Feb 14 02:26:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from svan18.sannet.ne.jp (svan18.sannet.ne.jp [134.180.49.18]) by mail.gnome.org (Postfix) with ESMTP id DE6CE1856C for ; Thu, 14 Feb 2002 02:26:38 -0500 (EST) Received: from xp.netlab.jp (eaa1-ppp2138.tokyo.sannet.ne.jp [211.133.188.75]) by svan18.sannet.ne.jp (Postfix) with ESMTP id 0D9C52BE69 for ; Thu, 14 Feb 2002 16:26:37 +0900 (JST) Date: Thu, 14 Feb 2002 16:28:04 +0900 Message-ID: From: Keisuke Nishida To: gtk-list@gnome.org Subject: problem with grab_focus User-Agent: Wanderlust/2.6.0 (Twist And Shout) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.1 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: multipart/mixed; boundary="Multipart_Thu_Feb_14_16:28:04_2002-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --Multipart_Thu_Feb_14_16:28:04_2002-1 Content-Type: text/plain; charset=US-ASCII Hi there, I have a problem with using gtk_widget_grab_focus in a focus_out_event hander, using gtk+-1.2.10. The attached program has three GtkEntry's, vertically aligned, and tries to grab focus on entry1 when I leave entry2. If I press key `GDK_Down' in the second entry (i.e., entry2), the default action of GTK+ moves cursor to entry3, while my handler moves cursor to entry1. Thus, two cursors appear simultaneously. How could I have only entry1 focused? Thanks in advance. Keisuke Nishida --Multipart_Thu_Feb_14_16:28:04_2002-1 Content-Type: text/plain; charset=US-ASCII #include guint handler; GtkWidget *entry1; GtkWidget *entry2; GtkWidget *entry3; static void on_focus_out (GtkEntry *entry) { gtk_signal_handler_block (GTK_OBJECT (entry), handler); gtk_widget_grab_focus (entry1); gtk_signal_handler_unblock (GTK_OBJECT (entry), handler); } static GtkWidget * create_window1 () { GtkWidget *window1; GtkWidget *vbox1; entry1 = gtk_entry_new (); entry2 = gtk_entry_new (); entry3 = gtk_entry_new (); handler = gtk_signal_connect (GTK_OBJECT (entry2), "focus_out_event", GTK_SIGNAL_FUNC (on_focus_out), NULL); vbox1 = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry1, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry2, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry3, FALSE, FALSE, 0); window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_add (GTK_CONTAINER (window1), vbox1); return window1; } int main (int argc, char **argv) { gtk_init (&argc, &argv); gtk_widget_show_all (create_window1 ()); gtk_main (); return 0; } --Multipart_Thu_Feb_14_16:28:04_2002-1-- From wdulyea@qualcomm.com Thu Feb 14 18:23:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from numenor.qualcomm.com (numenor.qualcomm.com [129.46.51.58]) by mail.gnome.org (Postfix) with ESMTP id BC6FB18272 for ; Thu, 14 Feb 2002 18:23:48 -0500 (EST) Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149]) by numenor.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1ENNWkQ027548 for ; Thu, 14 Feb 2002 15:23:32 -0800 (PST) Received: from wdulyea.qualcomm.com (wdulyea.qualcomm.com [129.46.73.119]) by neophyte.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1ENNUu4012923 for ; Thu, 14 Feb 2002 15:23:31 -0800 (PST) Message-Id: <5.1.0.14.2.20020214151555.02464940@jittlov.qualcomm.com> X-Sender: wdulyea@jittlov.qualcomm.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 14 Feb 2002 15:23:26 -0800 To: gtk-list@gnome.org From: William Dulyea Subject: memory leaks Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am using a notebook with several pages, each page is backed with n_ widgets, each time I switch between pages I want the container of pages I am switch from and all its children to be destroyed or un referenced if you prefer. Simply destroying the widget parent does not accomplish this as I thought by propagation, oops. In the mean time I watch my application consume more and more memory:( -William From pbd@op.net Fri Feb 15 00:12:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3BA44183C4 for ; Fri, 15 Feb 2002 00:12:26 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-31.fast.net [209.92.60.31]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id AAA06390; Fri, 15 Feb 2002 00:12:21 -0500 (EST) Message-Id: <200202150512.AAA06390@renoir.op.net> To: Keisuke Nishida Cc: gtk-list@gnome.org Subject: Re: problem with grab_focus In-reply-to: Your message of "Thu, 14 Feb 2002 16:28:04 +0900." Date: Fri, 15 Feb 2002 00:07:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I have a problem with using gtk_widget_grab_focus in a >focus_out_event hander, using gtk+-1.2.10. > >The attached program has three GtkEntry's, vertically aligned, >and tries to grab focus on entry1 when I leave entry2. > >If I press key `GDK_Down' in the second entry (i.e., entry2), >the default action of GTK+ moves cursor to entry3, while my >handler moves cursor to entry1. Thus, two cursors appear >simultaneously. > >How could I have only entry1 focused? its a kludge, but you can catch keypress events in entry{1,2,3}, and gtk_signal_emit_stop_by_name() for GDK_{Down,Up,Left,Right} etc. this will block the default (and often silly) GTK focus mechanism from being driven by keystrokes in those widgets. --p From cosminb@saguaro.ro Fri Feb 15 06:03:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from terminus.dnttm.ro (terminus.dnttm.ro [193.226.98.11]) by mail.gnome.org (Postfix) with ESMTP id 1A177180FE for ; Fri, 15 Feb 2002 06:03:07 -0500 (EST) Received: from main.saguaro.ro (main.saguaro.ro [193.226.88.117]) by terminus.dnttm.ro (8.9.3/8.9.3) with ESMTP id NAA30224 for ; Fri, 15 Feb 2002 13:03:05 +0200 Received: from saguaro.ro (samba.spr [192.168.1.100]) by main.saguaro.ro (8.11.2/8.11.2) with ESMTP id g1FAk7H21174 for ; Fri, 15 Feb 2002 12:46:07 +0200 Received: from saguaro.ro (IDENT:cosmin@cosminb.spr [192.168.1.154]) by saguaro.ro (8.11.2/8.11.2) with ESMTP id g1FAwfW17154 for ; Fri, 15 Feb 2002 12:58:41 +0200 X-RAV-AntiVirus: This e-mail has been scanned for viruses on host: saguaro.ro Message-ID: <3C6CEC14.816DE09D@saguaro.ro> Date: Fri, 15 Feb 2002 13:08:04 +0200 From: cosminb X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: destroy-event ??? References: <200202141455.JAA04261@renoir.op.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis wrote: > > >Hi all, > > > >I don't know what signal is emited in the following situation. > > > >Right-click in the upper-right corner on a X window. A menu appears. > >There is a destroy option. Selecting this option will emit a > >"destroy-event" to that window? If yes, I want to catch it(from my gtk > >app., if posible), but I don't know how. > > it will generate a "delete_event" first, which is what actually > corresponds to the window manager's "destroy" operation. > > if that is not handled by a handler that returns TRUE, then the widget > in question will more or less immediately be "destroyed" in the GTK+ > sense, which involves returning it to an uninitialized state. this is > accompanied by a "destroy_event" for the window. > > --p Hi, It works for delete option but not for destroy. Here is my code. Am I doing something wrong? void main() { ... AddWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (AddWindow), "AddWindow", AddWindow); gtk_widget_set_usize (AddWindow, 427, 371); gtk_window_set_modal (GTK_WINDOW (AddWindow), TRUE); gtk_window_set_policy (GTK_WINDOW (AddWindow), FALSE, FALSE, FALSE); /* catch the delete event */ gtk_signal_connect(GTK_OBJECT (AddWindow), "delete_event", GTK_SIGNAL_FUNC (DestroyEventHandler), NULL); ... return; } int DestroyEventHandler(GtkWidget * widget, GdkEvent *event, gpointer data) { return TRUE; } Thanks again > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From yogeeshappa.mathighatta@wipro.com Fri Feb 15 06:09:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 5AFB5180FE for ; Fri, 15 Feb 2002 06:09:16 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g1FB7YX29564 for ; Fri, 15 Feb 2002 16:37:34 +0530 (IST) Received: from m2foe301975 ([10.114.9.182]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GRKMX000.GPP; Fri, 15 Feb 2002 16:37:48 +0530 Message-ID: <06f701c1b610$bfe8c6c0$b609720a@m2foe301975> Reply-To: "Yogeesh MB" From: "Yogeesh MB" To: , Cc: Subject: Required info on Bug#60132 Date: Fri, 15 Feb 2002 16:35:58 +0530 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8 Content-Type: multipart/alternative; boundary="----=_NextPart_000_06F4_01C1B63E.D91C1B50" ------=_NextPart_000_06F4_01C1B63E.D91C1B50 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I would like to know about Bug# 60132, from where it is originating. under which appication this bug lies.=20 This will help me in fixing this at the earliest. If any one knows about this bug in detail please let me know. thanks in advance, Yogeesh MB ------=_NextPart_000_06F4_01C1B63E.D91C1B50 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
I would like to know about Bug#=20 60132,  from where it is=20 originating.
under which appication this bug lies. =
This will help me in fixing = this at the=20 earliest.
If any one knows about this bug in = detail please=20 let me know.
 
thanks in advance,
 
Yogeesh MB
------=_NextPart_000_06F4_01C1B63E.D91C1B50-- ------=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8 Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ******************************************************************** ------=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8-- From inodal@teleline.es Fri Feb 15 07:26:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp4.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id C0EB718153 for ; Fri, 15 Feb 2002 07:26:39 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp4.mail.isp (Netscape Messaging Server 4.15 tsmtp4 Jul 26 2001 13:10:38) with ESMTP id GRKQHM01.D51 for ; Fri, 15 Feb 2002 13:24:58 +0100 Message-ID: <3C6CFE41.9080500@teleline.es> Date: Fri, 15 Feb 2002 12:25:37 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: Update of GtkRadioMenuItems wihtout emitting any signal Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a set of 3D Objects defined in my application, but I only show one of it. Let's call it the CURRENT_GLOBJECT. I can change the CURRENT_GLOBJECT by code or selecting it from a Menu of GtkRadioMenuItems, one GtkRadioMenuItem for each object. When I select a different CURRENT_GLOBJECT I want to update the selected active GtkRadioMenuItem, but without emitting the "activate" signal, so the menuitems callback isn't call. I use a function which returns me the widget I have to activate: GtkWidget *GetMenuItemWidget(GtkWidget* widget,gint num_object) (in my function, "widget" can be any of the GtkRadioMenuItems since they belong all to the same group) How can I activate the widget returned by GtkMenuItemWidget() without emitting the activate signal? may I use something like: gtk_menu_item_activate(GTK_MENU_ITEM(act_widget)); gtk_signal_emit_stop_by_name(GTKOBJECT(act_widget), "activate"); or which is the correct way? Thanks in advance, Ignacio Nodal From coframi.balr001@rd.francetelecom.com Fri Feb 15 07:41:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id D9D2B18153 for ; Fri, 15 Feb 2002 07:41:11 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M410QY0>; Fri, 15 Feb 2002 13:40:56 +0100 Message-ID: From: zze-coframi balr001 To: 'Havoc Pennington' Cc: "'otaylor@redhat.com'" , gtk-list@gnome.org Subject: Memprof Date: Fri, 15 Feb 2002 13:40:45 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-70b42653-215f-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-70b42653-215f-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1B61D.FCFE8510" ------_=_NextPart_001_01C1B61D.FCFE8510 Content-Type: text/plain Hello, Is there a memprof version using GTK 1.3.X ?? Isabelle -----Message d'origine----- De : Havoc Pennington [mailto:hp@redhat.com] Envoye : vendredi 8 fevrier 2002 17:46 A : Kerber, Ulrich Cc : gtk-list@gnome.org Objet : Re: Memory problems while using a clist "Kerber, Ulrich" writes: > I wrote an app with a clist showing the contents of a log file; the > clist is updated every 60 seconds. Although i do a gtk_clist_clear, > the memory used is increasing with every run, even if no element is > added. After a day of work the amount reaches up to 40 MB! > Does anybody know a solution to this problem? > You just need to debug it. Use a tool such as "memprof" to see where the memory is leaked. Havoc _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1B61D.FCFE8510 Content-Type: text/html Content-Transfer-Encoding: quoted-printable Memprof

Hello,

Is there a memprof version using  GTK 1.3.X = ??

Isabelle



-----Message d'origine-----
De : Havoc Pennington [mailto:hp@redhat.com]
Envoye : vendredi 8 fevrier 2002 17:46
A : Kerber, Ulrich
Cc : gtk-list@gnome.org
Objet : Re: Memory problems while using a = clist



"Kerber, Ulrich" = <Ulrich.Kerber@faidor.de> writes:
> I wrote an app with a clist showing the = contents of a log file; the
> clist is updated every 60 seconds. Although i = do a gtk_clist_clear,
> the memory used is increasing with every run, = even if no element is
> added. After a day of work the amount reaches = up to 40 MB!
> Does anybody know a solution to this = problem?
>

You just need to debug it. Use a tool such as = "memprof" to see where
the memory is leaked.

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

------_=_NextPart_001_01C1B61D.FCFE8510-- ------=_NextPartTM-000-70b42653-215f-11d6-b1e5-00508b69ab48-- From leidola@newcon.de Fri Feb 15 09:04:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 2BE1D184BB for ; Fri, 15 Feb 2002 09:04:53 -0500 (EST) Received: from [213.70.108.88] ([213.70.108.88]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id PAA17776; Fri, 15 Feb 2002 15:04:50 +0100 Subject: Re: gui builder From: Olaf Leidinger To: "Lin, Lynn" , GTK Mailing List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 15 Feb 2002 15:07:39 +0100 Message-Id: <1013782060.784.3.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 14 Feb 2002 15:25:12 -0800 schrieb Lin, Lynn: > Hi there, > > Does GTK+ has a GUI builder ? If yes, what is the name of it ? > > Thank you :) > > Lynn > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hi Lynn, Glade might be what you're looking for. You can get it from http://glade.gnome.org Ciao, Olaf From otaylor@redhat.com Fri Feb 15 09:14:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 3BDBC1837D for ; Fri, 15 Feb 2002 09:14:30 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 7A87A241BE2; Fri, 15 Feb 2002 09:14:16 -0500 (EST) To: zze-coframi balr001 Cc: "'Havoc Pennington'" , gtk-list@gnome.org Subject: Re: Memprof References: From: Owen Taylor In-Reply-To: zze-coframi balr001's message of "Fri, 15 Feb 2002 13:40:45 +0100" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 12 Message-Id: <20020215141416.7A87A241BE2@fresnel.labs.redhat.com> Date: Fri, 15 Feb 2002 09:14:16 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: zze-coframi balr001 writes: > Hello, > > Is there a memprof version using GTK 1.3.X ?? The version in GNOME CVS (http://cvs.gnome.org/tools/cvs.html) is ported to GTK+-1.3.x. There hasn't been a release yet. Regards, Owen From ramses@computer.org Fri Feb 15 11:31:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id ADC4F1834E; Fri, 15 Feb 2002 11:31:09 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020215163130.VJBD480.sv16@adsl50>; Fri, 15 Feb 2002 11:31:30 -0500 Subject: strange pop up menu behaviour from a clist From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-list@gnome.org, gtk-app-devel-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 15 Feb 2002 11:38:56 -0500 Message-Id: <1013791136.1176.12.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi. I set up the third mouse button as GTK_BUTTON_SELECTS on a clist. I connect "select_row" to a callback that displays a pop up menu when the third mouse button is pressed: void select_row_callback(GtkWidget *widget, gint row, gint column, GdkEventButton *bevent, gpointer menu) { if ( bevent->button == 3 ) { gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, bevent->time); } } if I click the third mouse button on that menu, it works immediately, but if I press the first mouse button, I have to do it twice to activate a menu option. I have to do this to make it work as expected, but it contradicts the purpose of the button parameter on gtk_menu_popup: void select_row_callback(GtkWidget *widget, gint row, gint column, GdkEventButton *bevent, gpointer menu) { if ( bevent->button == 3 ) { gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, bevent->time); } } Is this a bug, a feature, or am I misunderstanding something???? Thanks for your help. From pbd@op.net Fri Feb 15 12:35:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9E6BC18C8E; Fri, 15 Feb 2002 12:35:11 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-188.phlpa.fast.net [209.92.99.188]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA28338; Fri, 15 Feb 2002 12:35:09 -0500 (EST) Message-Id: <200202151735.MAA28338@renoir.op.net> To: Rams s Morales Cc: gtk-list@gnome.org, gtk-app-devel-list@gnome.org Subject: Re: strange pop up menu behaviour from a clist In-reply-to: Your message of "15 Feb 2002 11:38:56 EST." <1013791136.1176.12.camel@adsl50> Date: Fri, 15 Feb 2002 12:30:53 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, > 0, bevent->time); pass in the correct button ID of the button you want to drive the menu. 1 should do it. --p From markrubn@pacbell.net Fri Feb 15 12:58:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id 85A95181A0 for ; Fri, 15 Feb 2002 12:58:28 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRL004555XFM6@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Fri, 15 Feb 2002 09:58:27 -0800 (PST) Date: Fri, 15 Feb 2002 09:57:49 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Ignacio Nodal Cc: GTK-List Message-id: <3C6D4C1D.27A3FAF6@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <3C6CFE41.9080500@teleline.es> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > When I select a different CURRENT_GLOBJECT I want to update the selected > active GtkRadioMenuItem, but without emitting the "activate" signal, so > the menuitems callback isn't call. and: > How can I activate the widget returned by GtkMenuItemWidget() without > emitting the activate signal? > > may I use something like: > > gtk_menu_item_activate(GTK_MENU_ITEM(act_widget)); > gtk_signal_emit_stop_by_name(GTKOBJECT(act_widget), "activate"); o I have had the same question for over a year now. I've tried searching the list archives, but never found the right keyword to use. o The problem isn't limited to menus. It happens any time you use the same widget for both input (the user is supplying information to the program) and output (the program is displaying information to the user). o In the "input" case, I obviously want the signal to be emitted. For "output", I don't because the program already knows it's changing the widget's value. o At minimum, the unwanted signal causes unnecessary/redundant computation to take place. At worst, it can cause an infinite loop. Last year I wrote, but never posted, a simple example program to illustrate this. It's my own "hello world" test program for GUI toolkits: A fahrenheit-to-celcius temperature converter. It has two spinputtons, one for F and one for C. The user changes either one, and the other displays the correct matching temperature. For example, when the user inputs a C temperature, a signal is emitted, the program calculates F and displays it in the other spinbutton ... which then emits a signal causing a conversion back to F, and an update of the F spinputton. (In this case, because the conversion is invertible, the F value is the same as what the user inputted, so the F spinbutton doesn't emit a signal. No infinite loop, just redundant calculation.) o My workaround -- for real-world programs, not toy F-to-C converters -- is to set a flag when changing a widget. Then, in the signal handler: if (flag) { flag = FALSE ; return ; } else // really handle the signal o In C and Gtk this gets ugly very fast (global variables). I use C++ and Gtk--, so I wrap (for example) Gtk::Adjustment in my own class which handles the flag internally. It's still pretty ugly. o Someone (Havoc??) must know the right solution to this problem. -- MARK markrubn@pacbell.net From hp@redhat.com Fri Feb 15 14:24:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 8838818153 for ; Fri, 15 Feb 2002 14:24:27 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1FJOKp17164; Fri, 15 Feb 2002 14:24:20 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Mark R. Rubin" Cc: Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal References: <3C6CFE41.9080500@teleline.es> <3C6D4C1D.27A3FAF6@pacbell.net> From: Havoc Pennington Date: 15 Feb 2002 14:24:20 -0500 In-Reply-To: <3C6D4C1D.27A3FAF6@pacbell.net> Message-ID: Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Mark R. Rubin" writes: > o Someone (Havoc??) must know the right solution to this problem. > It depends on the situation. Some approaches are: - gtk_signal_handler_block (g_signal_handlers_block, and by_func variants) - don't do anything in the callback if the value hasn't changed: if (current_state == gtk_toggle_button_get_active (toggle)) return; - fill in the default state of controls before you connect the callbacks to them You can also use a global flag or a flag specific to a class/object, but I don't like that approach much personally. Most signals indicate that the state of an object has changed, not that it has changed due to some specific cause (e.g. user input). This is the right thing IMO for reasons of conceptual cleanliness; there would be lots of subtle tricky bugs otherwise. In any case it's too late to change this aspect of GTK. Havoc From vmail@excite.com Fri Feb 15 15:57:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.8]) by mail.gnome.org (Postfix) with ESMTP id 34AE7180E4 for ; Fri, 15 Feb 2002 15:57:40 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id 8412E109EB9; Fri, 15 Feb 2002 15:57:35 -0500 (EST) To: gtk-list@gnome.org Subject: memory leaks (continued) Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: wdulyea@qualcomm.com Message-Id: <20020215205735.8412E109EB9@xprdmailfe.excite.com> Date: Fri, 15 Feb 2002 15:57:35 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: An expansion to an earlier mail I sent... In this code snippet below I can observ that removing(destroying) container widgets does not have the desired effect. Please comment:>

Code snippet...........................................
cur_page = gtk_notebook_get_current_page( notebook );
fprintf( stderr, "on_notebook_switch_page,
switching from:%i to:%i\n", cur_page, page_n );

child = gtk_container_children(
GTK_CONTAINER(notebookpage[cur_page].widget));
while( child ) {
GtkWidget *widget;

widget = GTK_WIDGET(child->data);
gtk_container_remove(
GTK_CONTAINER(notebookpages[cur_page].widget),widget );

fprintf( stderr, "on_notebook_switch_page,
destroy widget:%p", widget);
gtk_widget_destroy( widget );

if( widget )
fprintf( stderr, " widget still referenced:%p\n", widget);
else
fprintf( stderr, "\n" );

child = child->next;
}
create_page_item( notebook, page_n );


example page item created..................................
case HDWR_CONF:
page_item = create_hardware_config();
gtk_container_add(GTK_CONTAINER(notebookpages[page_n].widget),
page_item);


To further enlighten, the widget returded by this routine as with all others does have reference count of at least 1 and sig connect is set for destroy_event on the top-level widget or this one returned.


From seberino@dt092n42.san.rr.com Fri Feb 15 16:10:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 9D758180E4 for ; Fri, 15 Feb 2002 16:10:05 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16bpdA-0003TA-00 for gtk-list@gnome.org; Fri, 15 Feb 2002 13:10:56 -0800 Date: Fri, 15 Feb 2002 13:10:55 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: What means "callback function" and "signal handler" - are they DIFFERENT? Message-ID: <20020215131055.A13335@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I know that signals are tied to functions. These are called "signal handlers" I believe. Is this also called a "callback function" or does that mean something else? Callback seems like a strange name since nothing is being called back to anywhere. chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From Valdis.Kletnieks@vt.edu Fri Feb 15 16:16:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 63CD6180E4 for ; Fri, 15 Feb 2002 16:16:17 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1FLGEVj024456; Fri, 15 Feb 2002 16:16:15 -0500 Message-Id: <200202152116.g1FLGEVj024456@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What means "callback function" and "signal handler" - are they DIFFERENT? In-Reply-To: Your message of "Fri, 15 Feb 2002 13:10:55 PST." <20020215131055.A13335@spawar.navy.mil> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-1993187116P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 15 Feb 2002 16:16:14 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-1993187116P Content-Type: text/plain; charset=us-ascii On Fri, 15 Feb 2002 13:10:55 PST, Chris Seberino said: > Callback seems like a strange name since > nothing is being called back to anywhere. It makes more sense if you think of it like this: 1) Registering your callback is like calling your boss on the phone and saying "Give me a call back if the package from Smith Inc shows up". 2) When the package shows up, you get a call back..... -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_-1993187116P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8bXqecC3lWbTT17ARAmkQAJwMfYsm4oLCo6gyWoxdCLbh6ohLvQCbB6/Z Goxw1r4BLUS1aQx3lVa7pyA= =W6HR -----END PGP SIGNATURE----- --==_Exmh_-1993187116P-- From seberino@dt092n42.san.rr.com Fri Feb 15 16:16:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 040DF180E4 for ; Fri, 15 Feb 2002 16:16:48 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16bpjd-0003UA-00 for gtk-list@gnome.org; Fri, 15 Feb 2002 13:17:37 -0800 Date: Fri, 15 Feb 2002 13:17:32 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing Message-ID: <20020215131731.B13335@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: pthread_t thread; pthread_create(&thread, NULL, (void*) &doSimulation, NULL); Help! I trying to assign a function to a thread in my amateur PThread calls above. Without (void*) before function name I get an error and WITH (void*) I get following warning: warning: ANSI C++ forbids implicit conversion from `void *' in argument passing This would all be harmless except I believe newer GTK+ or something in my Linux distro upgrade causes BOTH (with and without (void*)) to return an error!!! NEITHER WORKS!! Is there someway to fix this to avoid errors and warnings?? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Fri Feb 15 16:27:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9525A1876C for ; Fri, 15 Feb 2002 16:27:24 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-228.fast.net [209.92.60.228]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA23968; Fri, 15 Feb 2002 16:27:18 -0500 (EST) Message-Id: <200202152127.QAA23968@renoir.op.net> To: wdulyea1@excite.com Cc: gtk-list@gnome.org, wdulyea@qualcomm.com Subject: Re: memory leaks (continued) In-reply-to: Your message of "Fri, 15 Feb 2002 15:57:35 EST." <20020215205735.8412E109EB9@xprdmailfe.excite.com> Date: Fri, 15 Feb 2002 16:23:05 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: generic note------- just a quick note to point out that whether you know it or not, the email program you are using is sending out copies of your mail in both plain text and HTML formats. increasingly on the net, there are filters being put in place that silently dump HTML-formatted email. some mailing lists will not ever accept such posts. as long as you do this, you are (1) wasting network bandwidth by sending messages that are typically more than twice as long as they could be (2) making it harder for people using traditional email readers to read them (3) risking the chance that people will never see your mail because its filtered before reaching their email inbox. specific note-------- i cannot even bear to look at your email. if it was plain text, i would have tried to read the code and come up with an answer. --p From pbd@op.net Fri Feb 15 16:30:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BC86E1890D for ; Fri, 15 Feb 2002 16:30:15 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-228.fast.net [209.92.60.228]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA24306; Fri, 15 Feb 2002 16:30:11 -0500 (EST) Message-Id: <200202152130.QAA24306@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing In-reply-to: Your message of "Fri, 15 Feb 2002 13:17:32 PST." <20020215131731.B13335@spawar.navy.mil> Date: Fri, 15 Feb 2002 16:25:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > > pthread_t thread; > > pthread_create(&thread, NULL, (void*) &doSimulation, NULL); the correct declaration for a thread function is: void *the_function_name (void *); if your function is not declared like that, you will need to cast it: pthread_create (&thread, NULL, (void *()(void*)) the_function, NULL); but its generally a bad idea to be calling functions which have the wrong prototype. in ANSI C and C++, you do NOT need to dereference the name of a function object to use it as a pointer: pthread_create(&thread, NULL, doSimulation, NULL); --p From pbd@op.net Fri Feb 15 16:34:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 73F5818A10 for ; Fri, 15 Feb 2002 16:34:36 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-228.fast.net [209.92.60.228]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA24778; Fri, 15 Feb 2002 16:34:33 -0500 (EST) Message-Id: <200202152134.QAA24778@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What means "callback function" and "signal handler" - are they DIFFERENT? In-reply-to: Your message of "Fri, 15 Feb 2002 13:10:55 PST." <20020215131055.A13335@spawar.navy.mil> Date: Fri, 15 Feb 2002 16:30:20 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I know that signals are tied to functions. >These are called "signal handlers" I believe. > >Is this also called a "callback function" or >does that mean something else? > >Callback seems like a strange name since >nothing is being called back to anywhere. "callback" is a somewhat older term that comes from the idea of registering a function (by passing the address of the function) with some object/system; later, when certain conditions arise, the object/system will "call you back" by calling the function you registered, passing (variously) its own arguments and/or any that you supplied when registering it. GTK+ signal handlers are just one example of a callback system; because the GTK+ design adds some additional semantics to the simplest model of a callback system, and for other reasons, they decided to call it something else. BTW, if you're working in C++, I don't know why you're not using gtkmm instead of straight GTK+. its a thin wrapper that provides a much more C++-style idiom for programming in, plus it comes with one of the most awesome and useful callback systems ever written (libsigc++) that uses the power of C++'s template programming to make things possible that have always been (and continue to be) an annoyance in C. --p From sven@gimp.org Fri Feb 15 16:45:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E6B03D.dip.t-dialin.net [217.230.176.61]) by mail.gnome.org (Postfix) with ESMTP id 9B44518CCD for ; Fri, 15 Feb 2002 16:45:45 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16bqAX-00060E-00; Fri, 15 Feb 2002 22:45:25 +0100 To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing References: <20020215131731.B13335@spawar.navy.mil> From: Sven Neumann Date: 15 Feb 2002 22:45:24 +0100 In-Reply-To: <20020215131731.B13335@spawar.navy.mil> Message-ID: Lines: 32 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Chris Seberino writes: > pthread_t thread; > > pthread_create(&thread, NULL, (void*) &doSimulation, NULL); > > Help! I trying to assign a function to a thread in my amateur > PThread calls above. Without (void*) before function name I get > an error and WITH (void*) I get following warning: > > warning: ANSI C++ forbids implicit conversion from `void *' in argument passing > > This would all be harmless except I believe newer GTK+ > or something in my Linux distro upgrade causes BOTH > (with and without (void*)) to return an error!!! > > NEITHER WORKS!! > > Is there someway to fix this to avoid errors and warnings?? yes, make doSimulation a void * function that takes a void * parameter: static void * doSimulation (void *data); or the equivalent glib-style static gpointer doSimulation (gpointer data); Salut, Sven From markrubn@pacbell.net Fri Feb 15 18:31:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by mail.gnome.org (Postfix) with ESMTP id 980EF18C58 for ; Fri, 15 Feb 2002 18:31:17 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRL00MUDLC3C4@mta7.pltn13.pbi.net> for gtk-list@gnome.org; Fri, 15 Feb 2002 15:31:16 -0800 (PST) Date: Fri, 15 Feb 2002 15:30:35 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Havoc Pennington Cc: Ignacio Nodal , GTK-List Message-id: <3C6D9A1B.3DEACEF9@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <3C6CFE41.9080500@teleline.es> <3C6D4C1D.27A3FAF6@pacbell.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington writes: > It depends on the situation. Some approaches are: > > - gtk_signal_handler_block (g_signal_handlers_block, and by_func variants) > - don't do anything in the callback if the value hasn't changed: > if (current_state == gtk_toggle_button_get_active (toggle)) > return; > - fill in the default state of controls before you connect the > callbacks to them > > You can also use a global flag or a flag specific to a class/object, > but I don't like that approach much personally. o I don't like it much, either. (That's why I wrote "it's [still] pretty ugly".) o Thanks for weighing in on this. I didn't know about gtk_signal_handler_block(), etc., and will look into them. Unfortunately, a quick check seems to say they're not exposed in GTK-- (gtkmm), which is what I mostly use. o I need to test the performance of various solutions. Amongst: 1) Set a flag, change the widget, let the signal happen, test the flag. 2) Check current state in callback, do nothing if unchanged. (Requires maintaining a separate copy of the widget state -- isn't the XXX_get_YYY() or the adjustment value already changed by the time you're in the callback?) 3) gtk_signal_handler_block(), change the widget, gtk_signal_handler_unblock() 4) disconnect the signal, change the widget, re-connect the signal my guess is that #1 or #2 are still the most efficient. I do have cases where performance is important. Example: CAD program where user can set the current object's position by inputting x,y in spinbuttons, but can also drag the object around in its drawing area while the spinbuttons display x,y. > Most signals indicate that the state of an object has changed, not > that it has changed due to some specific cause (e.g. user input). > This is the right thing IMO for reasons of conceptual cleanliness; > there would be lots of subtle tricky bugs otherwise. In any case it's > too late to change this aspect of GTK. o I agree on conceptual cleanliness and that it's "too late" (would break huge number of programs). I do wonder what it would take to add a widget specific (and/or global-affect-all-widgets) command to optionally change the behavior to "emit signal only on user input". Default stays the way it is now; no programs break. Someday I'll look through the source and see. o I also have trouble believing that Ignacio Nodal and myself are the only ones who've ever been bitten by this. Screen real estate is always precious, and re-using a widget for input and output always helps (and is easier on the user than "click this togglebutton to change from "input values" to "display values" mode). -- MARK markrubn@pacbell.net From pbd@op.net Fri Feb 15 19:52:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 4BE0B1823C for ; Fri, 15 Feb 2002 19:52:53 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-219.fast.net [209.92.60.219]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id TAA13523; Fri, 15 Feb 2002 19:52:13 -0500 (EST) Message-Id: <200202160052.TAA13523@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Fri, 15 Feb 2002 15:30:35 PST." <3C6D9A1B.3DEACEF9@pacbell.net> Date: Fri, 15 Feb 2002 19:48:02 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >o I also have trouble believing that Ignacio Nodal and myself are the > only ones who've ever been bitten by this. Screen real estate is > always precious, and re-using a widget for input and output always > helps (and is easier on the user than "click this togglebutton to > change from "input values" to "display values" mode). you're not the only ones; i've discussed this issue several times on this list in the past. however, if you're really doing Model-View-Controller style programming, which is highly desirable and it sounds as if you are, then Havoc's suggestion of: handle_widget_state_change () { if (widget->representation_of_object_state() != object->state()) widget->set_state (object->state()); } is the *only* correct route to take here. in my C++ code, i tend to use a void * (aka gpointer) as an extra arg to all functions that change the state of my objects ("models"), an arg i call "src". when the objects emit signals as a result of the change, they include the "src" argument. as a result, widgets ("views" and/or "controllers") can do things like: handle_widget_state_change (void *src) { if (src == this) { /* ignore */ return; } .... } this lets a widget set the state of its underlying object (when acting as a controller), supplying "itself" as the src pointer, and thus ignore any notifications from the object when they are sent following the object's state change. however ... despite the fact that i found this to be a rather elegant solution, i think that there are hardly any places in my code where i make this check, and that number is going down all the time. the explicit comparison of widget state and object state now dominates my code, and it generally feels "right". your suggestion for "emit only on user input" will break proper MVC programming as soon as there are non-X-based methods of changing object or widget state. most of my programs accept MIDI input, for example, that can be used to change object states, and i expect my widgets to follow those changes. unless you provide a way to say "change this GtkAdjustment as if i were a user" and "change this GtkAdjustment as if i were not a user", which is deeply cumbersome, somewhere down the line, there has to be a call to "change this GtkAdjustment", and that *must* emit a signal that can be caught. anything less will, as Havoc intimated, and as i now emphasize, break a good MVC design in many subtle and not so subtle ways. --p From hunchback@netcabo.pt Fri Feb 15 20:30:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id CB05A18106 for ; Fri, 15 Feb 2002 20:30:16 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 01:27:02 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 01:26:52 +0000 Content-Class: urn:content-classes:message From: To: Subject: Signal when window is shown Date: Sat, 16 Feb 2002 01:26:51 -0000 Message-ID: <0c2b01c1b689$02f37910$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2iQLx3to8GCJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 01:27:02.0667 (UTC) FILETIME=[0958BDB0:01C1B689] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, does anyone know what signal is triggered when a window appears? Afonso From pbd@op.net Fri Feb 15 20:43:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 7C2BE1815F for ; Fri, 15 Feb 2002 20:43:07 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-219.fast.net [209.92.60.219]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA17501; Fri, 15 Feb 2002 20:43:04 -0500 (EST) Message-Id: <200202160143.UAA17501@renoir.op.net> To: hunchback@netcabo.pt Cc: gtk-list@gnome.org Subject: Re: Signal when window is shown In-reply-to: Your message of "Sat, 16 Feb 2002 01:26:51 GMT." <0c2b01c1b689$02f37910$0814a8c0@netcabo.net> Date: Fri, 15 Feb 2002 20:38:53 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >does anyone know what signal is triggered when a window appears? realize show map the first one is only emitted when the window is first shown; the second is emitted for any call to gtk_widget_show() on the window; the third is called any time the window has been unmapped (e.g. minimized or the WM switched workspaces) and its now displayed again. --p From iain@ximian.com Fri Feb 15 20:52:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from peabody.ximian.com (peabody.ximian.com [141.154.95.10]) by mail.gnome.org (Postfix) with ESMTP id C7B5D1823B for ; Fri, 15 Feb 2002 20:52:24 -0500 (EST) Received: (qmail 7143 invoked from network); 16 Feb 2002 01:52:24 -0000 Received: from peabody.ximian.com (HELO localhost.localdomain) (141.154.95.10) by peabody.ximian.com with SMTP; 16 Feb 2002 01:52:24 -0000 Subject: Re: memory leaks (continued) From: iain To: wdulyea1@excite.com Cc: gtk-list@gnome.org, wdulyea@qualcomm.com In-Reply-To: <20020215205735.8412E109EB9@xprdmailfe.excite.com> References: <20020215205735.8412E109EB9@xprdmailfe.excite.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Ximian, Inc X-Mailer: Evolution/1.1.0.99 (Preview Release) Date: 16 Feb 2002 02:53:25 +0000 Message-Id: <1013828006.2185.0.camel@discomachinegun.prettypeople.org> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Fri, 2002-02-15 at 20:57, wdulyea1@excite.com wrote: An expansion to an earlier mail I sent... In this code snippet below I can observ that removing(destroying) container widgets does not have the desired effect. Please comment:> What specific reason do you need to delete the widgets on a page when the page is changed? iain -- "All men of conscience or prudence ply to windward, to maintain their wars to be defensive." -- Roger Williams From hunchback@netcabo.pt Fri Feb 15 21:00:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id D6CDA1879F for ; Fri, 15 Feb 2002 21:00:30 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 01:57:12 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 01:57:01 +0000 Content-Class: urn:content-classes:message From: To: "Paul Davis" Cc: Subject: RE: Signal when window is shown Date: Sat, 16 Feb 2002 01:57:01 -0000 Message-ID: <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2jTmq3to+YCJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 01:57:12.0550 (UTC) FILETIME=[401EF860:01C1B68D] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >realize i tried it but it never happens! >show i tried it but nothing happened again... >map i tried the map_event and it worked, but not on the first time.. i have a drawing area and i want to draw somethings on it when the = window appears, but nothing is working! the only one that entered the = signal handler was the map_event, but the first time it entered the = signal handler it didn't paint, only on the second time. From pbd@op.net Fri Feb 15 21:03:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 4023C18D24 for ; Fri, 15 Feb 2002 21:03:58 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-219.fast.net [209.92.60.219]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id VAA19158; Fri, 15 Feb 2002 21:03:55 -0500 (EST) Message-Id: <200202160203.VAA19158@renoir.op.net> To: hunchback@netcabo.pt Cc: gtk-list@gnome.org Subject: Re: Signal when window is shown In-reply-to: Your message of "Sat, 16 Feb 2002 01:57:01 GMT." <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> Date: Fri, 15 Feb 2002 20:59:44 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>realize > >i tried it but it never happens! > >>show > >i tried it but nothing happened again... > >>map > >i tried the map_event and it worked, but not on the first time.. > >i have a drawing area and i want to draw somethings on it when the window appe >ars, but nothing is working! the only one that entered the signal handler was >the map_event, but the first time it entered the signal handler it didn't pain >t, only on the second time. you must be making a mistake at a different level. realize is always emitted for every widget with a GdkWindow (e.g. a GtkWindow) - nothing can be drawn unless the widget is realized, and being realized emits that signal. are you sure you connected to the correct signals at the correct time? --p From rsteinke@w-link.net Fri Feb 15 21:09:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id F064E18759 for ; Fri, 15 Feb 2002 21:09:19 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16buHu-0008PS-00; Fri, 15 Feb 2002 18:09:18 -0800 Date: Fri, 15 Feb 2002 18:09:18 -0800 From: rsteinke@w-link.net To: hunchback@netcabo.pt, pbd@Op.Net Subject: Re: Signal when window is shown Cc: gtk-list@gnome.org Message-ID: <3C6DBF4E.nailOUA11K7IM@w-link.net> References: <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> In-Reply-To: <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: > > >realize > > i tried it but it never happens! > > >show > > i tried it but nothing happened again... > > >map > > i tried the map_event and it worked, but not on the first time.. > > i have a drawing area and i want to draw somethings on it when the > window appears, but nothing is working! the only one that entered > the signal handler was the map_event, but the first time it > entered the signal handler it didn't paint, only on the second time. You need to do your drawing in the expose handler. All drawing comes after the window has been mapped to the screen. Ron Steinke From hunchback@netcabo.pt Fri Feb 15 21:19:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 0657118D2C for ; Fri, 15 Feb 2002 21:19:03 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 02:15:49 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 02:15:38 +0000 Content-Class: urn:content-classes:message From: To: Cc: Subject: RE: Signal when window is shown Date: Sat, 16 Feb 2002 02:15:38 -0000 Message-ID: <0f9201c1b68f$d35fbd10$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2j9Nd3to/niJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 02:15:49.0599 (UTC) FILETIME=[D9EF1EF0:01C1B68F] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >You need to do your drawing in the expose handler. All drawing comes = after >the window has been mapped to the screen. when i tried the expose_event the program occurs segmentation fault when = it tries to paint... From hunchback@netcabo.pt Fri Feb 15 21:24:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id CAF2418D4A for ; Fri, 15 Feb 2002 21:24:02 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 02:20:49 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 02:20:38 +0000 Content-Class: urn:content-classes:message From: To: Cc: Subject: RE: Signal when window is shown Date: Sat, 16 Feb 2002 02:20:38 -0000 Message-ID: <0fd601c1b690$86112160$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2kIYR3to/1yJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 02:20:49.0267 (UTC) FILETIME=[8C8CD430:01C1B690] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >You need to do your drawing in the expose handler. All drawing comes = after >the window has been mapped to the screen. >when i tried the expose_event the program occurs segmentation fault = when it tries >to paint... ups.. sorry, my mistake, it doesn't crash anymore, but it stell doesn't = paint... the window is all grey like if it was a new window with nothing = in... Afonso From rsteinke@w-link.net Fri Feb 15 21:27:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id A98BE18D87 for ; Fri, 15 Feb 2002 21:27:38 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16buZd-0008TS-00; Fri, 15 Feb 2002 18:27:37 -0800 Date: Fri, 15 Feb 2002 18:27:37 -0800 From: rsteinke@w-link.net To: hunchback@netcabo.pt Subject: Re: Signal when window is shown Cc: gtk-list@gnome.org Message-ID: <3C6DC399.nailP4K1548Z3@w-link.net> References: <0f9201c1b68f$d35fbd10$0814a8c0@netcabo.net> In-Reply-To: <0f9201c1b68f$d35fbd10$0814a8c0@netcabo.net> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: hunchback@netcabo.pt > > >You need to do your drawing in the expose handler. All drawing comes after > >the window has been mapped to the screen. > > when i tried the expose_event the program occurs segmentation fault > when it tries to paint... That's probably an error with your code. Try commenting out everything except for the "return" statement at the end of the function, and it shouldn't seg fault. (Of course, it won't draw either). Then go back and add your code a piece at a time until you find the error. Ron Steinke P.S. Please try to stick line breaks in your messages every 60-70 characters. From scherfa@web.de Sat Feb 16 04:44:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id F367F18137 for ; Sat, 16 Feb 2002 04:44:40 -0500 (EST) Received: from [143.93.58.13] (helo=rmpc11.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.25 #15) id 16c1OL-0001Ti-00 for gtk-list@gnome.org; Sat, 16 Feb 2002 10:44:26 +0100 Subject: GIOChannel + GtkTreeModel length From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 16 Feb 2002 10:43:33 +0100 Message-Id: <1013852614.1080.4.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, i want to transfer some printing datas via a giochannel to the lpr system command. Today i'm doing that via pipes and closed stdout ... How could i do that via the giochannel support ? Any hints ? 2. Is there a method for getting the number of lines from a GtkTreeModel like the clist->rows element in gtk1.2 ?? Thats because i want to get the number of lines before catching all row datas via gtk_tree_model_iter_next(GTK_TREE_MODEL(p_obj->main_list),&iter) So how could i get the number of rows before ?? Thanks Andreas -- Andreas Scherf ICQ: 52910964 scherfa@web.de From leidola@newcon.de Sat Feb 16 05:36:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 7354A1819E for ; Sat, 16 Feb 2002 05:36:35 -0500 (EST) Received: from [213.70.108.66] ([213.70.108.66]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id LAA09228 for ; Sat, 16 Feb 2002 11:36:36 +0100 Subject: Re: GIOChannel + GtkTreeModel length From: Olaf Leidinger To: GTK Mailing List Content-Type: multipart/mixed; boundary="=-s+xrUELm2124OVdCIE+9" X-Mailer: Evolution/0.12 (Preview Release) Date: 16 Feb 2002 11:39:26 +0100 Message-Id: <1013855967.880.50.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-s+xrUELm2124OVdCIE+9 Content-Type: text/plain Content-Transfer-Encoding: 7bit --=-s+xrUELm2124OVdCIE+9 Content-Disposition: inline Content-Description: Weitergeleitete Nachricht - Re: GIOChannel + GtkTreeModel length Content-Type: message/rfc822 Subject: Re: GIOChannel + GtkTreeModel length From: Olaf Leidinger To: Andreas Scherf In-Reply-To: <1013852614.1080.4.camel@xerxes> References: <1013852614.1080.4.camel@xerxes> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 16 Feb 2002 11:37:41 +0100 Message-Id: <1013855861.880.48.camel@attic> Mime-Version: 1.0 X-Evolution-Account: leidola@newcon.de X-Evolution-Source: X-Evolution: 00000063-0010 Am 16 Feb 2002 10:43:33 +0100 schrieb Andreas Scherf: > Hello, > i want to transfer some printing datas via a giochannel to the lpr > system command. Today i'm doing that via pipes and closed stdout ... > How could i do that via the giochannel support ? Any hints ? > 2. Is there a method for getting the number of lines from a GtkTreeModel > like the clist->rows element in gtk1.2 ?? Thats because i want to get > the number of lines before catching all row datas via > gtk_tree_model_iter_next(GTK_TREE_MODEL(p_obj->main_list),&iter) > So how could i get the number of rows before ?? > > Thanks > Andreas > -- > Andreas Scherf > ICQ: 52910964 > scherfa@web.de > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > 1. GIOChannel You can run lpr using something like this bRunning = g_spawn_async_with_pipes (NULL, /* workingdir*/ gargv, /* arguments*/ NULL, /* enviroment*/ G_SPAWN_SEARCH_PATH | /* options */ G_SPAWN_LEAVE_DESCRIPTORS_OPEN, NULL, /* creationfunc*/ NULL, /* daten */ &pid, /* pid */ &in_desc, /* stdin*/ &out_desc, /* stdo*/ &err_desc, /* stderr*/ NULL); /* error*/ Your gargv sould be something like gchar *gargv[2] = {"lpr", NULL}; or similar. You can also use the g_spawn_sync_with_pipes function. It depends on what you need. Now you can create the io_channels. if (in_desc) { io_in = g_io_channel_unix_new (in_desc); event_id1 = g_io_add_watch (io_in, G_IO_OUT, write_func, data); event_id2 = g_io_add_watch (io_in, G_IO_HUP, hup_func, data); } These watches are callbacks for the io_channels. You don't have to createe them. Again, it depends on what you need. But keep one thing in mind. When you use g_io_add_watch you have to remove this watch from the main event loop (or however it is called) again using the g_source_remove function. Otherwise there will be some problems when you close the channel again. That's why you have to store the event_ids somewhere. You might create a structure or an array where you save them and pass it to the hup_func as data. Oh yes, some variables you might need gboolean brunning = FALSE; GIOChannel *io_in = NULL; gint pid = 0, in_desc = 0, out_desc = 0, /*don't know whether you need them*/ err_desc = 0; /*don't know whether you need them*/ 2. Tree Don't know, sorry *g* Ciao Olaf --=-s+xrUELm2124OVdCIE+9-- From inodal@teleline.es Sat Feb 16 06:09:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp3.ldap.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 4F25718324 for ; Sat, 16 Feb 2002 06:09:25 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp3.ldap.isp (Netscape Messaging Server 4.15 tsmtp3 Jul 26 2001 13:10:38) with ESMTP id GRMHMT02.547 for ; Sat, 16 Feb 2002 12:08:53 +0100 Message-ID: <3C6E3DE7.8090404@teleline.es> Date: Sat, 16 Feb 2002 11:09:27 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: Dialog Window Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sometime ago someone told how to make a "dialog window" to get the control of the application.. I mean the dialog window being the only one to have the focus until it's closed/hided... I just can't find that mail anymore.. could anyone remind me how to do this? :) Thanks, Ignacio From npravin@servihoo.com Sat Feb 16 08:29:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servihoo.com (mail.servihoo.com [202.123.2.125]) by mail.gnome.org (Postfix) with ESMTP id 3AE0018173 for ; Sat, 16 Feb 2002 08:29:34 -0500 (EST) Received: from [202.123.10.104] (account ) by servihoo.com (CommuniGate Pro WebUser 3.3) with HTTP id 2806414 for ; Sat, 16 Feb 2002 17:26:56 +0400 From: "Pravin Nowbuth" Subject: compiling rpc and gtk To: X-Mailer: CommuniGate Pro Web Mailer v.3.3 Date: Sat, 16 Feb 2002 17:26:56 +0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi guys, Could anyone tell me how to compile a gtk C program making use of RPC. In fact, I'm using RPC in a client-server based application. I've an interface file named "file.x", and obtained the follwing files file_client.c file_server.c and so on. The client makes RPC calls to the server I'm thinking of providing a GUI to the client. therfore, i have added gtk codes to the client file. But the problem is how to compile the client file. Will it work? can I provide a GUI using gtk at all !! -------------------------------------------------- Get your free email address from Servihoo.com! http://www.servihoo.com The Portal of Mauritius From pbd@op.net Sat Feb 16 09:16:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BA6E1181C5 for ; Sat, 16 Feb 2002 09:16:22 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-149.phlpa.fast.net [209.92.99.149]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA03714; Sat, 16 Feb 2002 09:16:20 -0500 (EST) Message-Id: <200202161416.JAA03714@renoir.op.net> To: Ignacio Nodal Cc: GTK-List Subject: Re: Dialog Window In-reply-to: Your message of "Sat, 16 Feb 2002 11:09:27 GMT." <3C6E3DE7.8090404@teleline.es> Date: Sat, 16 Feb 2002 09:12:16 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Sometime ago someone told how to make a "dialog window" to get the >control of the application.. gtk_window_set_modal From inodal@teleline.es Sat Feb 16 11:11:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp2.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 7B6AC18A83 for ; Sat, 16 Feb 2002 11:11:43 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp2.mail.isp (Netscape Messaging Server 4.15 tsmtp2 Jul 26 2001 13:10:38) with ESMTP id GRMVMF00.LED for ; Sat, 16 Feb 2002 17:11:03 +0100 Message-ID: <3C6E84C5.1050706@teleline.es> Date: Sat, 16 Feb 2002 16:11:49 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 Cc: GTK-List Subject: Re: Dialog Window References: <200202161416.JAA03714@renoir.op.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis wrote: >>Sometime ago someone told how to make a "dialog window" to get the >>control of the application.. >> > > gtk_window_set_modal Mmmm, I didn't explain myself very good... My program has a main window with a GtkGLArea waiting impatiently for events to occur on it... Then I have a window (I call it file_name_window) to select the file I want to load into my GtkGLArea.. This window has just a GtkEntry, an "OK" and a "CANCEL" button, and a "BROWSE" button that being clicked opens a GtkFileSelection Window. When the file is selected (in the GtkFileSelection) it updates my file_name_window's entry. If I use gtk_window_set_modal() I cannot interact with the GtkFileSelection Window... What I want to avoid is my GtkGLArea catchin' events while I select a file. I thought it would have to do with gtk_window_set_transitent_for, but this function just keeps my "file_name_window" on top of the main window, which continues receiving events.. How should I proceed? Thanks again.. From inimss@yahoo.com Sat Feb 16 12:00:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ekm.asianetonline.net (unknown [202.88.231.2]) by mail.gnome.org (Postfix) with ESMTP id 0709118C6C for ; Sat, 16 Feb 2002 12:00:06 -0500 (EST) Received: from dino ([202.88.225.117]) by ekm.asianetonline.net (Netscape Messaging Server 4.15) with SMTP id GRMWB000.770; Sat, 16 Feb 2002 11:25:48 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: Paul Davis , Ignacio Nodal Subject: Re: Dialog Window Date: Sat, 16 Feb 2002 21:51:10 +0530 X-Mailer: KMail [version 1.2] Cc: GTK-List References: <200202161416.JAA03714@renoir.op.net> In-Reply-To: <200202161416.JAA03714@renoir.op.net> MIME-Version: 1.0 Message-Id: <02021621511000.16869@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi But it doesn't make the dialog window to stay on top of the parent window. I agree that it has the full input focus, but we can click on the parent window, even when the dialog window is visible. How can we fix that too? Will gtk_window_set_transient_for help? Thanks Dino CK On Saturday 16 February 2002 19:42, Paul Davis wrote: > >Sometime ago someone told how to make a "dialog window" to get the > >control of the application.. > > gtk_window_set_modal > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From inodal@teleline.es Sat Feb 16 12:09:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp8.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id AE95718C23 for ; Sat, 16 Feb 2002 12:09:23 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp8.mail.isp (Netscape Messaging Server 4.15 tsmtp8 Jul 26 2001 13:10:38) with ESMTP id GRMYAJ01.LPN; Sat, 16 Feb 2002 18:08:43 +0100 Message-ID: <3C6E9249.2070508@teleline.es> Date: Sat, 16 Feb 2002 17:09:29 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: Dino Cherian K Cc: GTK-List Subject: Re: Dialog Window References: <200202161416.JAA03714@renoir.op.net> <02021621511000.16869@dino> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes, I think gtk_window_set_transient_for is what you are looking for... In addition to gtk_window_set_modal your dialog window will stay on top and have the main control... The pity is, what I'm looking for is something a bit different... :( (already sent in a diferent mail) Ciao Dino Cherian K wrote: > Hi > > But it doesn't make the dialog window to stay on top of the parent window. I > agree that it has the full input focus, but we can click on the parent > window, even when the dialog window is visible. > > How can we fix that too? Will gtk_window_set_transient_for help? > > Thanks > Dino CK > > On Saturday 16 February 2002 19:42, Paul Davis wrote: > >> >Sometime ago someone told how to make a "dialog window" to get the >> >control of the application.. >> >> gtk_window_set_modal From azra_chauhdary@yahoo.com Sat Feb 16 13:59:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14801.mail.yahoo.com (web14801.mail.yahoo.com [216.136.224.217]) by mail.gnome.org (Postfix) with SMTP id BB08818221 for ; Sat, 16 Feb 2002 13:59:25 -0500 (EST) Message-ID: <20020216185924.69106.qmail@web14801.mail.yahoo.com> Received: from [202.179.146.4] by web14801.mail.yahoo.com via HTTP; Sat, 16 Feb 2002 10:59:24 PST Date: Sat, 16 Feb 2002 10:59:24 -0800 (PST) From: azra yasin Subject: how to open terminal To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: wat is the command to open ther command line terminal from gtk program __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From pbd@op.net Sat Feb 16 14:12:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BC4401829F for ; Sat, 16 Feb 2002 14:12:42 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-149.phlpa.fast.net [209.92.99.149]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA22481; Sat, 16 Feb 2002 14:12:39 -0500 (EST) Message-Id: <200202161912.OAA22481@renoir.op.net> To: azra yasin Cc: gtk-list@gnome.org Subject: Re: how to open terminal In-reply-to: Your message of "Sat, 16 Feb 2002 10:59:24 PST." <20020216185924.69106.qmail@web14801.mail.yahoo.com> Date: Sat, 16 Feb 2002 14:08:38 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >wat is the command to open ther command line terminal >from gtk program there is no such command. there is no single program that is a command line terminal. "xterm", "rxvt", "eterm" are just 3 of the possibilities. you should probably read up on the fork(2), exec(2) and/or system(3) calls. this has nothing to do with GTK, so i suggest you find a general unix programming mailing list or forum to ask your question. --p From markrubn@pacbell.net Sat Feb 16 14:31:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by mail.gnome.org (Postfix) with ESMTP id B85C018D9F for ; Sat, 16 Feb 2002 14:31:59 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRN00JW14X5WN@mta6.snfc21.pbi.net> for gtk-list@gnome.org; Sat, 16 Feb 2002 11:31:54 -0800 (PST) Date: Sat, 16 Feb 2002 11:31:08 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Paul Davis Cc: Havoc Pennington , Ignacio Nodal , GTK-List Message-id: <3C6EB37C.91043A41@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202160052.TAA13523@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > you're not the only ones; i've discussed this issue several times on > this list in the past. o Thanks for your analyses (below). As I said originally, I've searched the archives for this, but never found the right keywords. Could you provide some "Subject:" lines? Searching for your name doesn't help -- you post too much to the lists. (This is a compliment, not a complaint.) > however, if you're really doing > Model-View-Controller style programming, which is highly desirable and > it sounds as if you are, then Havoc's suggestion of: > > handle_widget_state_change () { > if (widget->representation_of_object_state() != object->state()) > widget->set_state (object->state()); > } > > is the *only* correct route to take here. o I (possibly mis-) read Havoc's: > if (current_state == gtk_toggle_button_get_active (toggle)) > return; a little differently. If his "current_state" is your "object->state()" (which makes more sense than my interpretation of "widget->previous_state()"), and if "handle_widget_state_change()" is a GTK signal-handler/callback, I would think it should be: handle_widget_state_change () { if (widget->representation_of_object_state() != object->state()) object->set_state (widget->state()); } in order to break the feedback loop that causes me problems: 1) object ("Model") state changes 2) object changes widget X ("View") state 3) widget X is also a "Controller", thus emits a signal which is caught by a signal handler which changes object's state 4) loop back to 1) > in my C++ code, i tend to use a void * (aka gpointer) as an extra arg > to all functions that change the state of my objects ("models"), an > arg i call "src". when the objects emit signals as a result of the > change, they include the "src" argument. as a result, widgets ("views" > and/or "controllers") can do things like: > > handle_widget_state_change (void *src) { > if (src == this) { > /* ignore */ > return; > } > .... > } > > this lets a widget set the state of its underlying object (when acting > as a controller), supplying "itself" as the src pointer, and thus > ignore any notifications from the object when they are sent following > the object's state change. o Is the "this" in the above code fragment the object (Model) or the widget (View/Controller)? If object/Model, I don't understand because mine don't emit signals (widgets/Controllers emit signals; objects/Models do things like gtk_toggle_button_set_active()). If "this" is the widget/Controller, when "src==this" is exactly when the action should take place. -- MARK markrubn@pacbell.net From pbd@op.net Sat Feb 16 14:58:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D437818109 for ; Sat, 16 Feb 2002 14:58:42 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-38.phlpa.fast.net [209.92.99.38]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA25474; Sat, 16 Feb 2002 14:56:41 -0500 (EST) Message-Id: <200202161956.OAA25474@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Sat, 16 Feb 2002 11:31:08 PST." <3C6EB37C.91043A41@pacbell.net> Date: Sat, 16 Feb 2002 14:52:41 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: one other comment. its worth being very careful to make sure that the Model does not emit "my state changed" signals just because "set_state()" was called upon it. i.e. actually check to make sure that the new state really is different from the old before emitting the changed signal. this may seem obvious to you - it wasn't to me. --p From pbd@op.net Sat Feb 16 15:03:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id AB2CD1858C for ; Sat, 16 Feb 2002 15:03:12 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-38.phlpa.fast.net [209.92.99.38]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA25307; Sat, 16 Feb 2002 14:52:32 -0500 (EST) Message-Id: <200202161952.OAA25307@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Sat, 16 Feb 2002 11:31:08 PST." <3C6EB37C.91043A41@pacbell.net> Date: Sat, 16 Feb 2002 14:48:32 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > searched the archives for this, but never found the right > keywords. Could you provide some "Subject:" lines? Searching for try "MVC" in the body, since i usually use that acronym when discussing this. > a little differently. If his "current_state" is your > "object->state()" (which makes more sense than my interpretation of > "widget->previous_state()"), and if "handle_widget_state_change()" > is a GTK signal-handler/callback, I would think it should be: > > handle_widget_state_change () { > if (widget->representation_of_object_state() != object->state()) > object->set_state (widget->state()); > } yes, thats right. i wasn't being careful enough as i tuped that in. sorry about that. >> handle_widget_state_change (void *src) { >> if (src == this) { >> /* ignore */ >> return; >> } >> .... >> } >> >> this lets a widget set the state of its underlying object (when acting >> as a controller), supplying "itself" as the src pointer, and thus >> ignore any notifications from the object when they are sent following >> the object's state change. > >o Is the "this" in the above code fragment the object (Model) or the > widget (View/Controller)? If object/Model, I don't understand > because mine don't emit signals (widgets/Controllers emit signals; > objects/Models do things like gtk_toggle_button_set_active()). If > "this" is the widget/Controller, when "src==this" is exactly when > the action should take place. sorry. i work in C++ and i use libsigc++ which offers me a superb system for writing MVC programs. the "this" i used above refers to the thing "on whose behalf" a member function is beind called. its an "implicit" argument in all C++ member functions.my objects all attempt to remain anonymous and ignorant of who has registered an interest in their state changes, which libsigc++ makes *phenomenally* easy to do. so, suppose we have a true MVC system that includes: Controller::do_something_to_model (Model *model) { model->set_state (foo, this); } this causes "object" to emits its "StateChanged" signal. Now, suppose that we have a view hooked up to the signal, with a handler: View::handle_model_state_change (void *src) { if (src == this) { /* we initiated the state change in the model, so presumably our visual appearance is up- to-date. relax. */ return; } ... something else changed the model's state ... ... make our appearance reflect the model's state ... } now, as you have noted, its common to use a single widget as both a "controller" and a "view". in that case, you'd have ControllerView::do_something_to_model (Model *model) { model->set_state (foo, this); ... change visual appearance if appropriate ... } this would presumably be called because of some GUI event (e.g. a button click). We will still have: ControllerView::handle_model_state_change (void *src) { } but this time, we will find out that the "src" of the change is ourselves. Presumably, our appearance is already correct (we responded to that in do_something_to_model(), so we can just return. Does this make this style any clearer? As I say, I've found that I've managed to avoid this by comparing model state to view state, but its still useful occasionally. There are other ways of tackling what ControllerView::do_something_to_model() does - its worth reading up on MVC programming and/or "Design Patterns" to get a handle on some of them. --p From pbd@op.net Sat Feb 16 15:16:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from op.net (maxtnt05-38.phlpa.fast.net [209.92.99.38]) by mail.gnome.org (Postfix) with ESMTP id 0E6B418250 for ; Sat, 16 Feb 2002 15:16:42 -0500 (EST) Received: (from pbd@localhost) by op.net (8.10.1/8.10.1) id g1GKCfV07425; Sat, 16 Feb 2002 15:12:41 -0500 Date: Sat, 16 Feb 2002 15:12:41 -0500 Message-Id: <200202162012.g1GKCfV07425@op.net> From: Paul Davis To: gtk-list@gnome.org Subject: can someone remove this chinese spammer? Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: i'm not clear on where else to send this - its admin related, but gtk-list-request doesn't seem right. most times i write to gtk-list, i get the message shown below. could someone arrange to remove what is subscribed at sina.com that is generating this? --p Received: from mail.op.net by localhost with POP3 (fetchmail-5.1.0) for pbd@localhost (single-drop); Sat, 16 Feb 2002 15:08:19 -0500 (EST) Received: from sina.com ([202.106.187.189]) by renoir.op.net (o1/$Revision: 1.18 $) with SMTP id PAA25933 for ; Sat, 16 Feb 2002 15:04:30 -0500 (EST ) Received: (qmail 16372 invoked by uid 99); 16 Feb 2002 20:11:17 -0000 Date: 16 Feb 2002 20:11:17 -0000 Message-ID: <20020216201117.16371.qmail@sina.com> From: gtk-list@gnome.org To: pbd@op.net Subject: gtk-list@gnome.orgµÄ×Ô¶¯»ØÐÅ ÒÑÊÕµ½£¬ÇëÄúÄÍÐĵȺò»ØÒô¡£ heface =================================================================== Ãâ·Ñµç×ÓÓÊÏä http://home.sina.com.cn From markrubn@pacbell.net Sat Feb 16 17:52:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id 48C32181A1 for ; Sat, 16 Feb 2002 17:52:48 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRN00AVGE7YXS@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Sat, 16 Feb 2002 14:52:47 -0800 (PST) Date: Sat, 16 Feb 2002 14:52:00 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Paul Davis Cc: Havoc Pennington , Ignacio Nodal , GTK-List Message-id: <3C6EE290.E0C54F64@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202161952.OAA25307@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > try "MVC" in the body, since i usually use that acronym when > discussing this. o 84 hits. I'll read them. Thanks. > > handle_widget_state_change () { > > if (widget->representation_of_object_state() != object->state()) > > object->set_state (widget->state()); > > } > > yes, thats right. i wasn't being careful enough as i tuped that > in. sorry about that. o No problem. Glad I'm not (totally) crazy. o This is obviously one of the workable solutions. The two relatively minor things I don't like about it are: 1) object->state() is an additional requirement on the Model object's public interface. Conceptually, what business does a View widget have knowing about the Model? It should just be told what to display. 2) Potential mismatch between Model object's internal state and View widget's represention of same. Example: Model keeps double values, GtkAdjustment uses gfloats. Or: Model keeps HTML/RTF/internationalized text, GtkText uses GtkText(??), some HTML widget uses HTML, so Model has to export multiple types of state (or maybe multiple overloads of operator!=()). > >> handle_widget_state_change (void *src) { > >> if (src == this) { > >> /* ignore */ > >> return; > >> } > >> .... > >> } > >> > ... > >o Is the "this" in the above code fragment the object (Model) or the > > widget (View/Controller)? If object/Model, I don't understand > > because mine don't emit signals (widgets/Controllers emit signals; > > objects/Models do things like gtk_toggle_button_set_active()). If > > "this" is the widget/Controller, when "src==this" is exactly when > > the action should take place. > > sorry. i work in C++ and i use libsigc++ which offers me a superb > system for writing MVC programs. the "this" i used above refers to the > thing "on whose behalf" a member function is beind called. its an > "implicit" argument in all C++ member functions. o I also use gtk++(gtkmm) and libsigc++. I think some of the nomenclature confusion here is because we're all translating back and forth between C/GTK and C++/GTK--. o In C++ terms, my question was really "is the above handle_widget_state_change() a method of the object/Model class, or of the widget/View/Controller class"? o In any case, I'm going to switch to the nomenclature you're using below. > my objects all attempt > to remain anonymous and ignorant of who has registered an interest in > their state changes, which libsigc++ makes *phenomenally* easy to > do. so, suppose we have a true MVC system that includes: > > Controller::do_something_to_model (Model *model) > { > model->set_state (foo, this); > } > > this causes "object" to emits its "StateChanged" signal. o Is "object" the Controller, or the Model? o Bigger question: Do you use libsigc++ signals for *all* your MVC communication (both Controller-to-Model and Model-to-View)? o I don't. I use it for Controller-to-Model: Model::Model() : _state1(false) { _togglebutton1 .toggled .connect(bind(slot(*this, &Model::button1_toggled), &_togglebutton1)) ; } Model::button1_toggled( const Gtk::ToggleButton *togglebutton) { _state1 = togglebutton->get_active() ; } o But for Model-to-View I just directly call the gtkmm methods: Model::some_method() { _state1 = some_computation() ; _togglebutton1.set_active(_state1) ; } o I don't write my own methods for Views and Controllers -- they're just gtkmm widgets, used as-is. I don't derive from them and extend/override (except for Gtk::DrawingArea). o So my Model objects never emit signals (they just receive them) and my View/Controller objects never receive signals (just emit). If yours go "both ways" it would explain my confusion over your (otherwise clear) descriptions. o I'm going to table further questions pending an understanding of this, and a review of the list archives and the Gang Of Four book. -- MARK markrubn@pacbell.net From pbd@op.net Sat Feb 16 18:02:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 28A3C1829B for ; Sat, 16 Feb 2002 18:02:13 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-163.phlpa.fast.net [209.92.96.163]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id SAA07624; Sat, 16 Feb 2002 18:00:12 -0500 (EST) Message-Id: <200202162300.SAA07624@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Sat, 16 Feb 2002 14:52:00 PST." <3C6EE290.E0C54F64@pacbell.net> Date: Sat, 16 Feb 2002 17:56:14 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > 1) object->state() is an additional requirement on the Model > object's public interface. Conceptually, what business does a > View widget have knowing about the Model? It should just be > told what to display. well, it has to have access to whatever parts of the state are required to display the state. > 2) Potential mismatch between Model object's internal state and > View widget's represention of same. Example: Model keeps > double values, GtkAdjustment uses gfloats. Or: Model keeps > HTML/RTF/internationalized text, GtkText uses GtkText(??), some > HTML widget uses HTML, so Model has to export multiple types of > state (or maybe multiple overloads of operator!=()). this can certainly become a problem. >> Controller::do_something_to_model (Model *model) >> { >> model->set_state (foo, this); >> } >> >> this causes "object" to emits its "StateChanged" signal. > >o Is "object" the Controller, or the Model? its the Model. >o Bigger question: Do you use libsigc++ signals for *all* your MVC > communication (both Controller-to-Model and Model-to-View)? yes, for everything. >o But for Model-to-View I just directly call the gtkmm methods: > > Model::some_method() > { > _state1 = some_computation() ; > _togglebutton1.set_active(_state1) ; > } that breaks the anonymity principle. a Model should have *zero* knowledge of the View or Controllers. if you don't do this, you cannot have multiple Views, for example, and you can't reimplement the View without reimplementing the Model. having the Model drive the View directly is not really MVC, and in my experience, not very good OOP either. >o I don't write my own methods for Views and Controllers -- they're > just gtkmm widgets, used as-is. I don't derive from them and > extend/override (except for Gtk::DrawingArea). I generally find that I have to connect to to button press/release and keypress signals and so forth, but i rarely override them. the main hack i have to do is to call gtk_signal_emit_stop_by_name() because a button press on a widget drives a change of visual appearance in the widget that cannot happen until the Model state change actually takes place (and it may never take place for reasons that the Controller doesn't know about). --p From markrubn@pacbell.net Sat Feb 16 19:53:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id 5D1B8188F7 for ; Sat, 16 Feb 2002 19:53:49 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRN00AJDJTOXR@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Sat, 16 Feb 2002 16:53:48 -0800 (PST) Date: Sat, 16 Feb 2002 16:53:01 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Paul Davis Cc: Havoc Pennington , Ignacio Nodal , GTK-List Message-id: <3C6EFEED.46F2F542@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202162300.SAA07624@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > 1) object->state() is an additional requirement on the Model > > object's public interface. Conceptually, what business does a > > View widget have knowing about the Model? It should just be > > told what to display. > > well, it has to have access to whatever parts of the state are > required to display the state. o Or, in my case, not. I have a Model which knows about and tells a View what to display. (I think) you have a View which knows about a Model and queries it for a value. Either way there's a binding. o From http://www.ootips.org/mvc-pattern.html (which I found via an archived thread of yours from over a year ago): > The model, viewport and controller are intimately related and in > constant contact. Therefore, they must reference each other. o The discussion goes on about the strongly- and weakly-typed knowledge the classes have of each other. See below. > >o But for Model-to-View I just directly call the gtkmm methods: > > > > Model::some_method() > > { > > _state1 = some_computation() ; > > _togglebutton1.set_active(_state1) ; > > } > > that breaks the anonymity principle. a Model should have *zero* > knowledge of the View or Controllers. if you don't do this, you cannot > have multiple Views, Model::some_method() { _state1 = some_computation() ; _togglebutton1.set_active(_state1) ; _reverse_togglebutton2.set_active(!_state1) ; } > for example, and you can't reimplement the View > without reimplementing the Model. having the Model drive the View > directly is not really MVC, and in my experience, not very good OOP either. o Nomenclature, nomenclature. I thought a Gtk::ToggleButton was a View (also a Controller). My "Model::some_method()" above is really called "Gui::some_method()", so maybe what I've been calling Model is really a (composite) View. o If not -- if Views are solely gtkmm widgets, not some class which contains them as member objects -- and: > >o Bigger question: Do you use libsigc++ signals for *all* your MVC > > communication (both Controller-to-Model and Model-to-View)? > > yes, for everything. o And: > I generally find that I have to connect to to button press/release > and keypress signals and so forth, but i rarely override them. o Then how do you change a togglebutton other than using Gtk::ToggleButton::set_active()? o From "ootips": > By contrast, the viewport knows > exactly what kind of model it observes. o How could a (stock, compiled-into-a-library, non-derived-from) Gtk::ToggleButton know anything about your Model? -- MARK markrubn@pacbell.net From Alain.Valleton@bigfoot.com Sun Feb 17 06:16:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto1.wanadoo.fr (smtp-out-1.wanadoo.fr [193.252.19.188]) by mail.gnome.org (Postfix) with ESMTP id BD56B180DE for ; Sun, 17 Feb 2002 06:16:01 -0500 (EST) Received: from mel-rta2.wanadoo.fr (193.252.19.152) by mel-rto1.wanadoo.fr; 17 Feb 2002 12:16:00 +0100 Received: from bigfoot.com (80.11.136.16) by mel-rta2.wanadoo.fr; 17 Feb 2002 12:15:40 +0100 Message-ID: <3C6F9117.3080006@bigfoot.com> Date: Sun, 17 Feb 2002 12:16:39 +0100 From: Alain VALLETON User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: fr-fr, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Static libraries using glib-config Content-Type: multipart/mixed; boundary="------------020908050805050305000603" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. --------------020908050805050305000603 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello, I have a simple suggestion for the (much talented ;o) developers of glib. (gtk+ developers may also be interested) By default, both static and dynamic libraries are built during glib installation: this is fine for me. At work, we want to link statically an application against glib. So I tried to use the elegant way to do that, that is to use "glib-config". But with "glib-config", there is no way to get the static libraries instead of the dynamic libraries (option "--libs"). So I suggest the little patch attached to this post, that add an option "--staticlibs" to "glib-config" in order to get something like "/usr/local/lib/libglib.a" instead of "-L/usr/local/lib -lglib". This problem had already been noticed back in 1998, but seemingly never addressed: http://mail.gnome.org/archives/gtk-list/1998-November/msg00701.html Have a nice day. --------------020908050805050305000603 Content-Type: text/plain; name="patch_glib-1.2.10_static" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch_glib-1.2.10_static" --- glib-1.2.10.old/glib-config.in Sat Oct 28 06:35:30 2000 +++ glib-1.2.10/glib-config.in Thu Feb 14 10:27:41 2002 @@ -12,7 +12,7 @@ [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] - [--libs] + [--[static]libs] [--cflags] Libraries: glib @@ -61,6 +61,9 @@ --libs) echo_libs=yes ;; + --staticlibs) + echo_staticlibs=yes + ;; glib) lib_glib=yes ;; @@ -105,4 +108,20 @@ libsa="$libsa @G_MODULE_LIBS@" fi echo -L@libdir@ $libsp $libsa +fi +if test "$echo_staticlibs" = "yes"; then + libsp="" + libsa="" + if test "$lib_glib" = "yes"; then + libsp="@libdir@/libglib.a" + fi + if test "$lib_gthread" = "yes"; then + libsp="@libdir@/libgthread.a $libsp" + libsa="$libsa -lpthread" + fi + if test "$lib_gmodule" = "yes"; then + libsp="@libdir@/libgmodule.a $libsp" + libsa="$libsa @G_MODULE_LIBS@" + fi + echo $libsp $libsa fi --------------020908050805050305000603-- From inodal@teleline.es Sun Feb 17 08:35:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp10.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 773D6180DC for ; Sun, 17 Feb 2002 08:35:01 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp10.mail.isp (Netscape Messaging Server 4.15 tsmtp10 Jul 26 2001 13:10:38) with ESMTP id GROJ1701.G6L for ; Sun, 17 Feb 2002 14:34:19 +0100 Message-ID: <3C6FB18A.40305@teleline.es> Date: Sun, 17 Feb 2002 13:35:06 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: GTK+ problems using functions I used in Motif before Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm experimenting some problems with events on my GtkGlArea. The problem occurs when I pressed my mouse button and released it very fast, moving the mouse around ONLY THE FIRST TIME. This made me think about initilization problems, but it doesn't seem to be the point. Let's see: -First of all, I have a UpdateRotation() function which uses the initial mouse position (button pressed) and the current mouse position (get by motion or released) to update my objetct in the scene. -I have one callback for the "button_press_event" where I get the initial mouse position and my initial rotation matrix. -Another one for the "motion_notify_event" where I call UpdateRotation() and update my rotation matrix in function of the initial rotation matrix get from the previous callback. -And the last one for "button_released_event" where I only call UpdateRotation. The problem is: when I press and relase the button to fast moving the mouse from it's initial position, I don't understand why, but the function which returns me my rotation matrix, sends me a matrix full of zeros (the first time, it should return the identity matrix). This doesn't happen if I don't move the mouse around. It doesn't happen neither if I repeat the same operation after rotating the object correctly for the first time... If I "g_print" the rotation matrix when I paint the scene at the beginning of my application, it seems to be ok (identity matrix). But if I "g_print" it again in my "button_press_event" callback, it seems to be full of zeros (when using the mouse as mentined above). I have solve the problem calling the function which get the initial rotation matrix in my InitGL() function, which I used at the beginning of my program... but I don't really understand why didn't it work before.. In fact.. I'm using the same functions I used in Motif before, and they worked pretty fine with Motif. What it's happening? Does it have something to do with GTK+ or am I just getting more and more crazy? Thanks in advance, Ignacio Nodal From hunchback@netcabo.pt Sun Feb 17 17:53:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 2923A181A7 for ; Sun, 17 Feb 2002 17:53:57 -0500 (EST) Received: from a213-22-1-192.netcabo.pt ([213.22.1.192]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sun, 17 Feb 2002 22:50:39 +0000 Subject: Signals... From: Nuno Afonso To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 17 Feb 2002 22:53:59 +0000 Message-Id: <1013986440.2814.9.camel@a213-22-1-192> Mime-Version: 1.0 X-OriginalArrivalTime: 17 Feb 2002 22:50:39.0830 (UTC) FILETIME=[8590EF60:01C1B805] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, i have a button that is connected to a function called restartApp(GtkWidget *widget, Tabuleiro *tabuleiro) . (Tabuleiro is a static cast of a drawing area). When the button is clicked the restartApp is called and executes the following line tabuleiro->paint(); the function paint() has the following content: void Tabuleiro::paint(){ gdk_draw_rectangle(this->window, this->style->white_gc, true, 0, 0, 100, 100); ... } when i click the button i get segmentation fault when it tries to do the gdk_draw_rectangle. It gets in Tabuleiro::paint(), but it doesn't do the gdk_draw_rectangle. Does anyone know what is the problem with this signal? i use Tabuleiro::paint on other ocasions and it works... Afonso From inimss@yahoo.com Mon Feb 18 01:35:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ekm.asianetonline.net (unknown [202.88.231.2]) by mail.gnome.org (Postfix) with ESMTP id 3B0E11812E for ; Mon, 18 Feb 2002 01:35:22 -0500 (EST) Received: from dino ([202.88.224.172]) by ekm.asianetonline.net (Netscape Messaging Server 4.15) with SMTP id GRPUIA00.IAD; Mon, 18 Feb 2002 01:39:46 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: Ignacio Nodal Subject: Re: Dialog Window Date: Mon, 18 Feb 2002 00:51:38 +0530 X-Mailer: KMail [version 1.2] Cc: GTK-List References: <200202161416.JAA03714@renoir.op.net> <02021621511000.16869@dino> <3C6E9249.2070508@teleline.es> In-Reply-To: <3C6E9249.2070508@teleline.es> MIME-Version: 1.0 Message-Id: <02021800513800.03021@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I didnt tried this out but I have a doubt regarding modal windows. In an application with more than one window having modality are present at a moment, for example window1 is the main window, window2 is created as a modal child window of window1, window3 is created as a modal child window of window2. In such a situation will it be necessary to reset the modality of window2, in order to work with window3. I know that this is not the right thread to discuss it further, but please help me. Thanks Dino CK On Saturday 16 February 2002 22:39, Ignacio Nodal wrote: > Yes, I think gtk_window_set_transient_for is what you are looking for... > > In addition to gtk_window_set_modal your dialog window will stay on top > and have the main control... > > The pity is, what I'm looking for is something a bit different... :( > (already sent in a diferent mail) > > Ciao > > Dino Cherian K wrote: > > Hi > > > > But it doesn't make the dialog window to stay on top of the parent > > window. I agree that it has the full input focus, but we can click on > > the parent window, even when the dialog window is visible. > > > > How can we fix that too? Will gtk_window_set_transient_for help? > > > > Thanks > > Dino CK > > > > On Saturday 16 February 2002 19:42, Paul Davis wrote: > >> >Sometime ago someone told how to make a "dialog window" to get the > >> >control of the application.. > >> > >> gtk_window_set_modal From bent@vsnl.net Mon Feb 18 03:25:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail01.vsnl.net (mail01.vsnl.net [203.197.12.4]) by mail.gnome.org (Postfix) with ESMTP id AAF88180F0 for ; Mon, 18 Feb 2002 03:25:51 -0500 (EST) Received: from vsnl.net ([203.197.82.202]) by mail01.vsnl.net (Netscape Messaging Server 4.15) with ESMTP id GRPZF002.E2V for ; Mon, 18 Feb 2002 13:55:48 +0530 Message-ID: <3C70C226.D09468B6@vsnl.net> Date: Mon, 18 Feb 2002 14:28:14 +0530 From: Javed X-Mailer: Mozilla 4.79 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: problem while configuring Content-Type: multipart/alternative; boundary="------------AAAAB76659545C0074B6613E" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --------------AAAAB76659545C0074B6613E Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hi, I'm unable to configure the gtk+1.2.0 as it gives an error saying: checking host system type...configure:error:cannot guess host type;you must specify one How can I solve this problem? thanks, Javed --------------AAAAB76659545C0074B6613E Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit hi,
I'm unable to configure the gtk+1.2.0 as it gives an error saying:
checking host system type...configure:error:cannot guess host type;you must specify one

How can I solve this problem?

thanks,

Javed --------------AAAAB76659545C0074B6613E-- From sven@gimp.org Mon Feb 18 05:56:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E6BB15.dip.t-dialin.net [217.230.187.21]) by mail.gnome.org (Postfix) with ESMTP id 16879180EA for ; Mon, 18 Feb 2002 05:56:45 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16clSy-0005Jo-00; Mon, 18 Feb 2002 11:56:16 +0100 To: Javed Cc: gtk-list@gnome.org Subject: Re: problem while configuring References: <3C70C226.D09468B6@vsnl.net> From: Sven Neumann Date: 18 Feb 2002 11:56:15 +0100 In-Reply-To: <3C70C226.D09468B6@vsnl.net> Message-ID: Lines: 17 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Javed writes: > I'm unable to configure the gtk+1.2.0 as it gives an error saying: > checking host system type...configure:error:cannot guess host type;you > must specify one > > How can I solve this problem? first of all: update to glib-1.2.10 and gtk+-1.2.10. If you still have problems to compile those, get back here. But please give us a little bit more information about your system (OS, CPU, compiler) next time. Salut, Sven From jean-christophe.berthon@cgey.com Mon Feb 18 06:19:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from door.cgey.com (rpapar2.cgey.com [194.3.224.26]) by mail.gnome.org (Postfix) with ESMTP id D49E318204 for ; Mon, 18 Feb 2002 06:19:04 -0500 (EST) Received: from prenoms.capgemini.fr (sdcnt1.cgey.com [194.2.91.200]) by door.cgey.com (8.12.1/8.12.1) with ESMTP id g1IBIxvo029965; Mon, 18 Feb 2002 12:18:59 +0100 (MET) Received: from prenoms.capgemini.fr (localhost [127.0.0.1]) by prenoms.capgemini.fr (8.9.3/8.9.3) with ESMTP id MAA04906; Mon, 18 Feb 2002 12:18:58 +0100 (MET) Received: from spatio1 ([10.67.211.175]) by prenoms.capgemini.fr (8.9.3/8.9.3) with SMTP id MAA04786; Mon, 18 Feb 2002 12:18:56 +0100 (MET) Message-ID: <00b001c1b86d$cb9d1520$afd3430a@sudouest.capgemini.fr> From: "Jean-Christophe Berthon" To: "Javed" , "Gtk List" References: <3C70C226.D09468B6@vsnl.net> Subject: Re: problem while configuring Date: Mon, 18 Feb 2002 12:17:01 +0100 Organization: Cap Gemini -- Ernst & Young MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00AD_01C1B876.2B6B7980" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_00AD_01C1B876.2B6B7980 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, Maybe I can help you, but I'm really new to the worl of automake and = autoconf. But I had this problem with the automake I build when porting = the package under another system : I build my package under Linux and = was testing it under Solaris. As I didn't know what was the file config.guess and ltconfig (that's the = files which are used to guess the host type, so your problem), I just = run in this problem. So to fixed it, I would advise you to copy the 'ltmain.sh', 'ltconfig', = 'config.guess' and 'config.sub' files, that you can found in = /usr/share/libtool (or maybe /usr/local/share/libtool depending on where = you installed libtool), in the installation directory of gtk and to run = again ./configure. For me it solved the problem... Sorry for my english, if I'm not clear enough write me back, I'll try to = make myself more understandable Best regards, --- Jean-Christophe Berthon Cap Gemini -- Ernst & Young France Skill IS -- Image Quality Email: Jean-Christophe.Berthon@cgey.com Tel: (+33) 561 31 6671 ----- Original Message -----=20 From: Javed=20 To: gtk-list@gnome.org=20 Sent: Monday, February 18, 2002 9:58 AM Subject: problem while configuring hi,=20 I'm unable to configure the gtk+1.2.0 as it gives an error saying:=20 checking host system type...configure:error:cannot guess host type;you = must specify one=20 How can I solve this problem?=20 thanks,=20 Javed=20 ------=_NextPart_000_00AD_01C1B876.2B6B7980 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello,
 
Maybe I can help you, but I'm really new to the worl = of=20 automake and autoconf. But I had this problem with the automake I build = when=20 porting the package under another system : I build my package under = Linux and=20 was testing it under Solaris.
As I didn't know what was the file config.guess and = ltconfig=20 (that's the files which are used to guess the host type, so your = problem), I=20 just run in this problem.
So to fixed it, I would advise you to copy the = 'ltmain.sh',=20 'ltconfig', 'config.guess' and 'config.sub' files, that you can = found in=20 /usr/share/libtool (or maybe /usr/local/share/libtool depending on where = you=20 installed libtool), in the installation directory of gtk and to run = again=20 ./configure.
For me it solved the problem...
 
Sorry for my english, if I'm not clear enough write = me back,=20 I'll try to make myself more understandable
 
Best regards,
---
Jean-Christophe Berthon
 
Cap Gemini -- Ernst & Young
France
Skill IS -- Image=20 Quality
Email: Jean-Christophe.Berthon@= cgey.com
Tel:=20 (+33) 561 31 6671
 
 
----- Original Message -----
From:=20 Javed =
Sent: Monday, February 18, 2002 = 9:58=20 AM
Subject: problem while = configuring

hi,
I'm unable to configure the gtk+1.2.0 as it = gives an=20 error saying:
checking host=20 system type...configure:error:cannot guess host type;you must specify=20 one
=20

How can I solve this=20 problem?=20

thanks,=20

Javed=20

------=_NextPart_000_00AD_01C1B876.2B6B7980-- From hp@redhat.com Mon Feb 18 08:13:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (unknown [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 879C018339 for ; Mon, 18 Feb 2002 08:13:52 -0500 (EST) Received: (from Unknown UID 2379@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1IDDdf09622; Mon, 18 Feb 2002 08:13:39 -0500 X-Authentication-Warning: icon.devel.redhat.com: Unknown UID 2379 set sender to hp@redhat.com using -f To: "Mark R. Rubin" Cc: Paul Davis , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal References: <200202160052.TAA13523@renoir.op.net> <3C6EB37C.91043A41@pacbell.net> From: Havoc Pennington Date: 18 Feb 2002 08:13:37 -0500 In-Reply-To: <3C6EB37C.91043A41@pacbell.net> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Mark R. Rubin" writes: > o I (possibly mis-) read Havoc's: > > > if (current_state == gtk_toggle_button_get_active (toggle)) > > return; > FWIW I think I did mean what Paul said, i.e. current_state is the state of the object the toggle button affects. Havoc From otaylor@redhat.com Mon Feb 18 10:23:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (unknown [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id DEBC518F56; Mon, 18 Feb 2002 10:23:41 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 62D13241BE2; Mon, 18 Feb 2002 10:23:41 -0500 (EST) To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-list@gnome.org Subject: New release of GTK+ libraries (1.3.14) Reply-To: gtk-devel-list@gnome.org, gtk-list@gnome.org From: Owen Taylor User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 155 Message-Id: <20020218152341.62D13241BE2@fresnel.labs.redhat.com> Date: Mon, 18 Feb 2002 10:23:41 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: New releases of the development versions of GTK+ and associated libraries (GLib, Pango, Atk) are available at: ftp://ftp.gtk.org/pub/gtk/v1.3/ The JPEG/PNG/TIFF libraries and pkg-config 0.8 are needed to compile this release. These are available at: ftp://ftp.gtk.org/pub/gtk/v1.3/dependencies/ (pkg-config latest canonical upstream location is at http://www.freedesktop.org/software/pkgconfig/ - note that it has moved from sourceforge. But gtk.org mirrors the 0.8 version you need to build GTK 1.3.10) You will also need "libiconv" on systems with C libraries that lack the iconv() function: http://www.gnu.org/software/libiconv/ And the libintl library from the GNU "gettext" package if your C library doesn't have gettext() functionality: http://www.gnu.org/software/gettext/ Overview of Changes in GLib 1.3.14: =================================== * Register value transformations for gint64, guint64 [Andy Wingo] * Build with large-file support [Sven Neumann, Owen Taylor] * Fix handling of hostnames in URI's [Darin Adler] * Main loop bug fixes [Havoc Pennington, Owen] * Doc fixes and improvements [Manish Singh, Tim Janik] * Support ' as attribute delimiters in GMarkup [Matthias Clasen] * Win32 fixes [Hans Breuer, Tor Lillqvist] * Threading bug and build fixes [Sebastian Wilhelmi, Miroslaw Dobrzanski-Neumann] * Miscellaneous bug fixes Other contributors: Matthias Clasen, Mitch Natterer, James Henstridge Overview of Changes in Pango 0.25 ================================= * Win32 fixes [Tor Lillqvist, Hans Breuer] * Cleanup of [Darin Adler] * Bug and build fixes [Anders Carlsson, Sven Neumann, Havoc Pennington, Morten Welinder] Overview of Changes in GTK+ 1.3.14 ================================== * Keyboard focus improvements [Owen Taylor] * Code cleanup [Matthias Clasen, Manish Singh, Darin Adler] * Fix accidentally exported variables [Mark McLoughlin] * GtkTreeView fixes [Jonathan Blandford, Kristian Rietveld, John Harper, Darin] * Default to yellow tooltips [Owen] * RC file fixes for reloading, priorities [Owen, Matthias] * GtkMenu behavior improvements and bug fixes [Owen, Arnaud Charlet] * GtkTextView fixes [Havoc Pennington, Daniel Elstner, Dennis Bjorklund] * Improve keynav for paned widgets, tooltips, spin buttons, notebooks, scrolled windows [Soeren Sandmann, Padraig, Owen] * Add Emacs/Default key themes [Owen] * Win32 fixes [Hans Breuer, Tor Lillqvist] * Ethiopic input methods [Daniel Yacob] * Opaque paned window resizing [Soeren] * Tweak table expansion behavior [Tim Janik] * Fix GtkCalendar focus drawing [Bill Haneman] * Allow themeable cursor thickness [Bill] * Start of fixing of tutorial for GTK+-2.0 [Matthias] * Add a ::adjust-bounds signal to GtkRange to allow spreadsheat style scrollbars. [Jody Goldberg] (*) * Add the ability to turn on multiple selection for GtkFileSel [Manish] (*) * Bug fixes Other contributors: Jacob Berkman, Padraig O'Briain, Anders Carlsson, Johan Dahlin, Richard Hult, Stefan Kost, Alex Larsson, Thomas Leonard, Paolo Maggi, Alexey Malyshev, Federico Mena Quintero, Skip Montaro, Sven Neumann, Havoc Pennington, Laszlo Peter, Christian Rose, Joe Shaw, Kevin Vandersloot, Morten Welinder, Peter Williams Library Descriptions ==================== GLib 1.3.14 (http://www.gtk.org) GLib is the low-level core library that forms the basis of 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. Pango 0.25 (http://www.pango.org) Pango is a library for layout and rendering of text, with an emphasis on internationalization. It forms the core of text and font handling for GTK+-2.0. Atk 0.12 (http://developer.gnome.org/projects/gap) The ATK library provides a set of interfaces for accessibility. By supporting the ATK interfaces, an application or toolkit can be used such as tools such as screen readers, magnifiers, and alternative input devices. [ The Atk-0.12 release was made independently and is mentioned here for completeness ] GTK+ 1.3.14 (http://www.gtk.org) GTK+ is a widget toolkit for X and other windowing systems. It is used in such projects as the GIMP and GNOME. Notes ===== This release is meant for people working on ports of applications to the upcoming GTK+-2.0 release of GTK+. While these libraries have been in extensive use for several months, there are considerable numbers of known bugs that still need to be fixed, and presumably more that have not yet been found. This release is incompatible with GTK+ and GLib 1.2.x. Software that has not been explicitly ported will not compile with this version. Do not send bug reports about such compilation problems to either us or maintainers of software that uses GLib and GTK+ 1.2.x; The currently supported version of GLib and GTK+ is version 1.2.10. If you install these libraries, do NOT replace your current GLib and GTK+ packages with them; these libraries are designed so they can be installed in parallel with a GTK+ install without affecting it. The API is frozen at this point. No additional API changes are anticipated before GTK+-2.0 is released. A couple of small API additions were found to be necessary between GTK+-1.3.13 and GTK+-1.3.14; these are marked with (*) in the above list. These additions will not cause compatibility problems with existing programs. Binary interfaces for these libraries are not yet frozen; applications built against these libraries will need to be rebuilt when the final GTK+-2.0.0 is released. Comments should be sent to: GLib, GTK+: gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list Pango: gtk-i18n-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-i18n-list ATK: gnome-accessibility-list@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list Bug reports should be filed in the GNOME bug tracker at: http://bugzilla.gnome.org From db@zigo.dhs.org Mon Feb 18 12:17:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cosmo.zigo.dhs.org (as2-4-3.an.g.bonet.se [194.236.34.191]) by mail.gnome.org (Postfix) with ESMTP id A00F5181D5 for ; Mon, 18 Feb 2002 12:17:25 -0500 (EST) Received: from localhost (db@localhost) by cosmo.zigo.dhs.org (8.11.6/8.11.6) with ESMTP id g1IHHJ206581 for ; Mon, 18 Feb 2002 18:17:19 +0100 X-Authentication-Warning: cosmo.zigo.dhs.org: db owned process doing -bs Date: Mon, 18 Feb 2002 18:17:19 +0100 (CET) From: Dennis Bjorklund To: Subject: grab focus Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a notebookpage with a entrybox in it. When I change to that page I want the entry to get focus so I can write directly. Where is an appropriate place to do this? I've tried "map" on the entry and "select-page" on the notebook. But it does not seem to be the right places. -- /Dennis From jeremy@chaos.org.uk Mon Feb 18 14:25:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ganglion.demon.co.uk (ganglion.demon.co.uk [212.228.142.92]) by mail.gnome.org (Postfix) with ESMTP id D3582180F8 for ; Mon, 18 Feb 2002 14:25:44 -0500 (EST) Received: from chaos.org.uk (jeremy@localhost) by ganglion.demon.co.uk (8.11.6/8.11.6) with ESMTP id g1IJHRE17743; Mon, 18 Feb 2002 19:17:27 GMT Message-Id: <200202181917.g1IJHRE17743@ganglion.demon.co.uk> X-Authentication-Warning: ganglion.demon.co.uk: jeremy owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Javed Cc: gtk-list@gnome.org, jeremy@ganglion.demon.co.uk Subject: Re: problem while configuring In-Reply-To: Message from Javed of "Mon, 18 Feb 2002 14:28:14 +0530." <3C70C226.D09468B6@vsnl.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 18 Feb 2002 19:17:27 +0000 From: Jeremy Henty Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Javed writes: > I'm unable to configure the gtk+1.2.0 as it gives an error saying: > checking host system type...configure:error:cannot guess host type;you > must specify one Possibly a red herring, but IIRC I got something like this when my system had no "cc" command. Once I linked cc -> gcc everything went OK. (This presumes you're on some kind of Unix, of course.) I'm a little hazy on the details, but I am sure I did *not* get a useful "cc does not work on your system" sort of message: it was something much more obscure that required some investigation to get at the real problem. Regards, Jeremy Henty From setton@act-europe.fr Fri Feb 15 06:23:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (grenoble.act-europe.fr [212.157.227.138]) by mail.gnome.org (Postfix) with ESMTP id C24AA18BC8 for ; Fri, 15 Feb 2002 06:23:36 -0500 (EST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id g1FBM0x02444; Fri, 15 Feb 2002 12:22:00 +0100 Subject: Re: Required info on Bug#60132 From: Nicolas Setton To: Yogeesh MB Cc: gtk-bugs@gtk.org, gtk-list@gnome.org In-Reply-To: <06f701c1b610$bfe8c6c0$b609720a@m2foe301975> References: <06f701c1b610$bfe8c6c0$b609720a@m2foe301975> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.0.99+cvs.2001.12.13.08.57 (Preview Release) Date: 15 Feb 2002 12:22:00 +0100 Message-Id: <1013772120.2158.0.camel@localhost.localdomain> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I originally spotted this bug when developping a widget using GtkAda. But it can be reproduced with any C program. What other details would you like to know ? Nico, for the GtkAda team. On Fri, 2002-02-15 at 12:05, Yogeesh MB wrote: > Hi, > I would like to know about Bug# 60132, from where it is originating. > under which appication this bug lies. > This will help me in fixing this at the earliest. > If any one knows about this bug in detail please let me know. > > thanks in advance, > > Yogeesh MB > ---- > > **************************Disclaimer************************************ > > > > Information contained in this E-MAIL being proprietary to Wipro Limited > is 'privileged' and 'confidential' and intended for use only by the > individual or entity to which it is addressed. You are notified that any > use, copying or dissemination of the information contained in the E-MAIL > in any manner whatsoever is strictly prohibited. > > > > ******************************************************************** From michael@cs.millersville.edu Fri Feb 15 16:31:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.millersville.edu (unknown [166.66.64.14]) by mail.gnome.org (Postfix) with ESMTP id F35A91890D for ; Fri, 15 Feb 2002 16:31:02 -0500 (EST) Received: from cs.millersville.edu (localhost.0.0.127.in-addr.arpa [127.0.0.1] (may be forged)) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1FLV2IQ021527; Fri, 15 Feb 2002 16:31:02 -0500 Received: from localhost (michael@localhost) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1FLV2A2021523; Fri, 15 Feb 2002 16:31:02 -0500 Date: Fri, 15 Feb 2002 16:31:02 -0500 (EST) From: Michael Mitton To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing In-Reply-To: <20020215131731.B13335@spawar.navy.mil> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: The & in front of your function name is the problem. Try { pthread_t thread; pthread_create(&thread, NULL, (void *) doSimulation, NULL); } if you declare doSimulation as a void * (ie void *doSimulation(...)) you can even drop the type cast. -Michael On Fri, 15 Feb 2002, Chris Seberino wrote: > > pthread_t thread; > > pthread_create(&thread, NULL, (void*) &doSimulation, NULL); > > Help! I trying to assign a function to a thread in my amateur > PThread calls above. Without (void*) before function name I get > an error and WITH (void*) I get following warning: > > warning: ANSI C++ forbids implicit conversion from `void *' in argument passing > > This would all be harmless except I believe newer GTK+ > or something in my Linux distro upgrade causes BOTH > (with and without (void*)) to return an error!!! > > NEITHER WORKS!! > > Is there someway to fix this to avoid errors and warnings?? > > Chris > > -- > ======================================================= > | Dr. Christian Seberino || (619) 553-7940 (office) | > | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | > | 53560 HULL ST || | > | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | > ======================================================= > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From wdulyea@qualcomm.com Fri Feb 15 17:56:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from numenor.qualcomm.com (numenor.qualcomm.com [129.46.51.58]) by mail.gnome.org (Postfix) with ESMTP id 5E0B11816B for ; Fri, 15 Feb 2002 17:56:32 -0500 (EST) Received: from crowley.qualcomm.com (crowley.qualcomm.com [129.46.61.151]) by numenor.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1FMuNkQ013304; Fri, 15 Feb 2002 14:56:23 -0800 (PST) Received: from wdulyea.qualcomm.com (wdulyea.qualcomm.com [129.46.73.119]) by crowley.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1FMuL2F017424; Fri, 15 Feb 2002 14:56:22 -0800 (PST) Message-Id: <5.1.0.14.2.20020215144559.0249f618@jittlov.qualcomm.com> X-Sender: wdulyea@jittlov.qualcomm.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 15 Feb 2002 14:56:17 -0800 To: gtk-list@gnome.org From: William Dulyea Subject: memory leak (continuation) Cc: wdulyea1@excite.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: An expansion to an earlier mail I sent... In this code snippet below I can observ that removing(destroying) container widgets does not have the desired effect. Please comment:> Code snippet........................................... cur_page = gtk_notebook_get_current_page( notebook ); fprintf( stderr, "on_notebook_switch_page,switching from:%i to:%i\n", cur_page, page_n ); child = gtk_container_children(GTK_CONTAINER(notebookpage[cur_page].widget)); while( child ) { GtkWidget *widget; widget = GTK_WIDGET(child->data); gtk_container_remove( GTK_CONTAINER(notebookpages[cur_page].widget),widget ); fprintf( stderr, "on_notebook_switch_page,destroy widget:%p", widget); gtk_widget_destroy( widget ); if( widget ) fprintf( stderr, " widget still referenced:%p\n", widget); else fprintf( stderr, "\n" ); child = child->next; } create_page_item( notebook, page_n ); example page item created.................................. case HDWR_CONF: page_item = create_hardware_config(); gtk_container_add(GTK_CONTAINER(notebookpages[page_n].widget),page_item); To further enlighten, the widget returned by (create_hardware_config) routine, as with all others, does have reference count of at least 1 and (signal_connect) is set for destroy_event on the top-level widget or this widget. William P. Dulyea _______________ Phone: 651-5206 Office: L-423 From wdulyea@qualcomm.com Fri Feb 15 21:19:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ithilien.qualcomm.com (ithilien.qualcomm.com [129.46.51.59]) by mail.gnome.org (Postfix) with ESMTP id 17E1218D2C for ; Fri, 15 Feb 2002 21:19:19 -0500 (EST) Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149]) by ithilien.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1G2JCrP020482; Fri, 15 Feb 2002 18:19:12 -0800 (PST) Received: from wdulyea.qualcomm.com (wdulyea.qualcomm.com [129.46.73.119]) by neophyte.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1G2JAu4025173; Fri, 15 Feb 2002 18:19:10 -0800 (PST) Message-Id: <5.1.0.14.2.20020215180207.024a3288@jittlov.qualcomm.com> X-Sender: wdulyea@jittlov.qualcomm.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 15 Feb 2002 18:19:05 -0800 To: iain From: William Dulyea Subject: Re: memory leaks (continued) Cc: gtk-list@gnome.org In-Reply-To: <1013828006.2185.0.camel@discomachinegun.prettypeople.org> References: <20020215205735.8412E109EB9@xprdmailfe.excite.com> <20020215205735.8412E109EB9@xprdmailfe.excite.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello iain, For the simple reason that the data contained therein is dynamic. Going from one page to another and changing any settings effects what and how information is displayed on any other page. I'm sure I could setup and event handler for this, but it would be very complicated and would possibly interfere with settings as I change them, and because I'm lazy. So in order to deal with this situation my design had to destroy and recreate moving from one page to another. Actually ...for this particular problem I found out what I was doing wrong! Or because I am not intimate enough with the design of GTK+ and since documentation is not that good, I did not realize that I should not manually set the reference count for each widget every time it is created unless I have a good reason to do so. This apparently keeps the object from cleaning itself out if this count is not down to zero, possibly a design inheritance from OOP smart pointers. Once I removed my calls to gtk_widget_ref(), destroying them actually makes them go away:) Now I'm happy -William At 02:53 AM 2/16/2002 +0000, you wrote: >On Fri, 2002-02-15 at 20:57, wdulyea1@excite.com wrote: An expansion to >an earlier mail I sent... In this code snippet below I can observ that >removing(destroying) container widgets does not have the desired effect. >Please comment:> > >What specific reason do you need to delete the widgets on a page when >the page is changed? > >iain >-- >"All men of conscience or prudence ply to windward, to maintain their >wars to be defensive." -- Roger Williams From s_lekha@mailcity.com Sat Feb 16 03:43:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailcity.com (fes-qout.whowhere.com [209.185.123.96]) by mail.gnome.org (Postfix) with SMTP id 21CC618138 for ; Sat, 16 Feb 2002 03:43:47 -0500 (EST) Received: from Unknown/Local ([?.?.?.?]) by mailcity.com; Sat Feb 16 00:43:34 2002 To: gtk-list@gnome.org Date: Sat, 16 Feb 2002 00:43:34 -0800 From: "srilekha c shekar" Message-ID: Mime-Version: 1.0 X-Sent-Mail: off Reply-To: s_lekha@lycos.com X-Mailer: MailCity Service X-Priority: 3 Subject: Problem with Pop up messages X-Sender-Ip: 202.144.29.115 Organization: Lycos Mail (http://mail.lycos.com:80) Content-Type: text/plain; charset=us-ascii Content-Language: en Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Everybody, I've got this problem wherein i've created a gtk window and i'm trying to pop up a message dialog after a particular interval of time using a thread.The message pops up ONLY after i press a key or move a mouse over the window.why does this happen? I'm facing the same problem in the application i'm working on.I would be pleased if anybody could help me to find a solution to this problem. Regards, srilekha Check out Cupid School where you will learn from Matchmaker's best and brightest. Good Luck! http://ecard.matchmaker.com/cupid0202/cupid0202.html From Nuno.Afonso@bigfoot.com Sun Feb 17 17:42:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 753E7181A7 for ; Sun, 17 Feb 2002 17:42:21 -0500 (EST) Received: from a213-22-1-192.netcabo.pt ([213.22.1.192]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sun, 17 Feb 2002 22:38:57 +0000 Subject: Signals... From: Nuno Afonso To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 17 Feb 2002 22:42:18 +0000 Message-Id: <1013985738.2813.7.camel@a213-22-1-192> Mime-Version: 1.0 X-OriginalArrivalTime: 17 Feb 2002 22:38:58.0077 (UTC) FILETIME=[E349ECD0:01C1B803] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, i have a button that is connected to a function called restartApp(GtkWidget *widget, Tabuleiro *tabuleiro) . (Tabuleiro is a static cast of a drawing area). When the button is clicked the restartApp is called and executes the following line tabuleiro->paint(); the function paint() has the following content: void Tabuleiro::paint(){ gdk_draw_rectangle(this->window, this->style->white_gc, true, 0, 0, 100, 100); ... } when i click the button i get segmentation fault when it tries to do the gdk_draw_rectangle. It gets in Tabuleiro::paint(), but it doesn't do the gdk_draw_rectangle. Does anyone know what is the problem with this signal? i use Tabuleiro::paint on other ocasions and it works... Afonso From sven@gimp.org Mon Feb 18 15:44:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id E00FA1830D for ; Mon, 18 Feb 2002 15:44:52 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16cueW-0001ad-00; Mon, 18 Feb 2002 21:44:48 +0100 To: William Dulyea Cc: gtk-list@gnome.org, wdulyea1@excite.com Subject: Re: memory leak (continuation) References: <5.1.0.14.2.20020215144559.0249f618@jittlov.qualcomm.com> From: Sven Neumann Date: 18 Feb 2002 21:44:48 +0100 In-Reply-To: <5.1.0.14.2.20020215144559.0249f618@jittlov.qualcomm.com> Message-ID: Lines: 60 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, William Dulyea writes: > An expansion to an earlier mail I sent... In this code snippet below I > can observ that removing(destroying) container widgets does not have > the desired effect. Please comment:> > > Code snippet........................................... > cur_page = gtk_notebook_get_current_page( notebook ); > fprintf( stderr, "on_notebook_switch_page,switching from:%i to:%i\n", > cur_page, page_n ); > > child = gtk_container_children(GTK_CONTAINER(notebookpage[cur_page].widget)); > while( child ) { > GtkWidget *widget; > > widget = GTK_WIDGET(child->data); > gtk_container_remove( > GTK_CONTAINER(notebookpages[cur_page].widget),widget ); whoahh, this is cruel, you are removing the widget from the container while iterating over the list of container children. > > fprintf( stderr, "on_notebook_switch_page,destroy widget:%p", widget); > gtk_widget_destroy( widget ); > if( widget ) > fprintf( stderr, " widget still referenced:%p\n", widget); > else > fprintf( stderr, "\n" ); what are you tring to proof here? You called gtk_widget_destroy() on the widget. What makes you think the widget pointer gets nullified? gtk_widget_destroy() does not even know the location of the memory you use to hold a pointer on the widget. How should it nullify it? Your pointer will keep its value, it only points to invalid memory now. You could of course set up a signal handler to nullify the pointer on widget destruction: gtk_signal_connect_data (GTK_WIDGET (widget), "destroy", GTK_SIGNAL_FUNC (g_nullify_pointer), &widget); Hmm, g_nullify_pointer is glib-2.0, but I think you can imagine what it does. To make things worse, you now dereference the child you have removed above. With a little luck this works since GList structures are allocated from a pool and won't be freed. Perhaps that's the memleak you observe (I didn't check your previous mails)? > child = child->next; > } > create_page_item( notebook, page_n ); Salut, Sven From sven@gimp.org Mon Feb 18 15:52:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id BAABF185E6 for ; Mon, 18 Feb 2002 15:52:54 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16cum6-0001bA-00; Mon, 18 Feb 2002 21:52:38 +0100 To: Nuno Afonso Cc: gtk-list@gnome.org Subject: Re: Signals... References: <1013985738.2813.7.camel@a213-22-1-192> From: Sven Neumann Date: 18 Feb 2002 21:52:38 +0100 In-Reply-To: <1013985738.2813.7.camel@a213-22-1-192> Message-ID: Lines: 38 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Nuno Afonso writes: > i have a button that is connected to a function called > restartApp(GtkWidget *widget, Tabuleiro *tabuleiro) . > > (Tabuleiro is a static cast of a drawing area). > > When the button is clicked the restartApp is called > and executes the following line > > tabuleiro->paint(); > > the function paint() has the following content: > void Tabuleiro::paint(){ > gdk_draw_rectangle(this->window, this->style->white_gc, true, 0, 0, > 100, 100); > > ... > } > > when i click the button i get segmentation fault when it tries to do the > gdk_draw_rectangle. It gets in Tabuleiro::paint(), but it doesn't do the > gdk_draw_rectangle. Have you checked that your widget is realized when paint gets called? this->window is NULL until the widget is realized. Try to add if (!GTK_WIDGET_DRAWABLE (widget)) return; at the beginning of paint() to assure that the drawing code is only executed if the widget is drawable. Salut, Sven From bent@vsnl.net Mon Feb 18 23:32:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail02.vsnl.net (mail02.vsnl.net [203.197.12.5]) by mail.gnome.org (Postfix) with ESMTP id 56E24180EA for ; Mon, 18 Feb 2002 23:32:49 -0500 (EST) Received: from vsnl.net ([203.197.82.162]) by mail02.vsnl.net (Netscape Messaging Server 4.15) with ESMTP id GRRJAL02.VYZ for ; Tue, 19 Feb 2002 10:02:46 +0530 Message-ID: <3C71DD15.F9A01CAE@vsnl.net> Date: Tue, 19 Feb 2002 10:35:25 +0530 From: Javed X-Mailer: Mozilla 4.79 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: new problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi, i tried to configure using your instuctions & the host problem is solved...but now I've got a new error, something like configure: error: C compiler cannot create executables. After which I tried compiling a C program, and it did not execute. I'm working with a RedHat Linux 7.0 OS and have Cyrix 233 Mhz CPU. Please help! Regards, Javed From dchiod@inwind.it Tue Feb 19 01:46:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailweb5.inwind.it (mailweb5.inwind.it [212.141.54.115]) by mail.gnome.org (Postfix) with ESMTP id 7AC7118136 for ; Tue, 19 Feb 2002 01:46:02 -0500 (EST) Received: from inwind.it (127.0.0.1) by mailweb5.inwind.it (5.5.053) id 3C5BAB13000163EF for gtk-list@gnome.org; Tue, 19 Feb 2002 07:45:53 +0100 Date: Tue, 19 Feb 2002 08:45:53 +0200 Message-Id: Subject: variable newbie problem MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable From: "dchiod@inwind.it" To: gtk-list@gnome.org X-XaM3-API-Version: 1.1.9.1.36 X-SenderIP: 217.56.227.2 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, someone can help me? I have a global variable used to store a filename got from a gtk_file_selection; now, when the gtk_file_selection object is destroyed, the memory allocated to the variable is corrupted, changing its value. This only in Linux, it behaves correctly in win32 (mingw 32 gcc). Thanks for any idea. Davide. From maa@sparc.spb.su Tue Feb 19 06:32:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from guardian.sparc.spb.su (guardian.sparc.spb.su [195.19.226.186]) by mail.gnome.org (Postfix) with ESMTP id AAE3A181D6 for ; Tue, 19 Feb 2002 06:32:46 -0500 (EST) Received: from guard.sparc.spb.su (guard.sparc.spb.su [195.19.226.98]) by guardian.sparc.spb.su (8.11.3/8.11.3) with ESMTP id g1JBjPl02103 for ; Tue, 19 Feb 2002 14:45:25 +0300 (MSK) Received: from mail.sparc.spb.su (mail.sparc.spb.su [192.168.205.210]) by guard.sparc.spb.su (8.11.4/8.10.1) with ESMTP id g1JBWeu06053 for ; Tue, 19 Feb 2002 14:32:40 +0300 (MSK) Received: from london.sparc.spb.su (london.sparc.spb.su [192.168.205.229]) by mail.sparc.spb.su (8.11.4/8.11.1) with ESMTP id g1JBWOI37354 for ; Tue, 19 Feb 2002 14:32:25 +0300 (MSK) (envelope-from maa@sparc.spb.su) Date: Tue, 19 Feb 2002 14:37:16 +0300 From: "Aleksey A. Malyshev" X-Mailer: The Bat! (v1.53d) Reply-To: "Aleksey A. Malyshev" X-Priority: 3 (Normal) Message-ID: <16993091808.20020219143716@sparc.spb.su> To: gtk-list@gnome.org Subject: gtk_im_context_get_preedit_string () MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a question. Docs for gtk_im_context_get_preedit_string () says: "Retrieve the current preedit string for the input context, and a list of attributes to apply to the string." but if you look sources you can see: gtk_im_context_real_get_preedit_string (GtkIMContext *context, gchar **str, PangoAttrList **attrs, gint *cursor_pos) //---------------- { if (str) *str = g_strdup (""); if (attrs) *attrs = pango_attr_list_new (); if (cursor_pos) *cursor_pos = 0; } //---------------- And str always equal "". What for this function needed? -- SY, Alek mailto:maa@sparc.spb.su From John.Cupitt@ng-london.org.uk Tue Feb 19 06:39:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 9611618F23 for ; Tue, 19 Feb 2002 06:39:19 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXL9G3>; Tue, 19 Feb 2002 11:39:18 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXL9GN; Tue, 19 Feb 2002 11:39:15 -0000 Message-ID: <3C723614.3020800@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: dchiod@inwind.it Cc: gtk-list@gnome.org Subject: Re: variable newbie problem Date: Tue, 19 Feb 2002 11:25:08 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dchiod@inwind.it wrote: > I have a global variable used to store a filename got from a gtk_file_selection; > now, when the gtk_file_selection object is destroyed, the memory allocated to the variable > is corrupted, changing its value. Hi, the gtk_file_selection gives you a pointer to its internal data for the filename. If you want to keep the filename after you've destroyed the widget, you need to take a copy with g_strdup(). John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From otaylor@redhat.com Tue Feb 19 07:22:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (unknown [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 15AFB181D6 for ; Tue, 19 Feb 2002 07:22:02 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 52EE3241BE2; Tue, 19 Feb 2002 07:22:01 -0500 (EST) To: "Aleksey A. Malyshev" Cc: gtk-list@gnome.org Subject: Re: gtk_im_context_get_preedit_string () References: <16993091808.20020219143716@sparc.spb.su> From: Owen Taylor In-Reply-To: "Aleksey A. Malyshev"'s message of "Tue, 19 Feb 2002 14:37:16 +0300" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 36 Message-Id: <20020219122201.52EE3241BE2@fresnel.labs.redhat.com> Date: Tue, 19 Feb 2002 07:22:01 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Aleksey A. Malyshev" writes: > Hi, > > I have a question. > Docs for gtk_im_context_get_preedit_string () says: > "Retrieve the current preedit string for the input context, > and a list of attributes to apply to the string." > but if you look sources you can see: > > gtk_im_context_real_get_preedit_string (GtkIMContext *context, > gchar **str, > PangoAttrList **attrs, > gint *cursor_pos) > //---------------- > { > if (str) > *str = g_strdup (""); > if (attrs) > *attrs = pango_attr_list_new (); > if (cursor_pos) > *cursor_pos = 0; > } > //---------------- > > And str always equal "". > > What for this function needed? You are looking at the fallback implementation. It needs to be overriden (look at, for instance, gtkimcontextxim.c) to be useful. Regards, Owen From pvosta@unionbio-eu.com Tue Feb 19 08:01:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 57C4718367 for ; Tue, 19 Feb 2002 08:01:20 -0500 (EST) Received: (qmail 4788 invoked from network); 19 Feb 2002 12:57:43 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 19 Feb 2002 12:57:43 -0000 Message-ID: <3C724C65.3DBA2A42@unionbio-eu.com> Date: Tue, 19 Feb 2002 14:00:21 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: signal_connect depreciated ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I apologize for this newbie question, but I have just started studying GTK and I want to try to compile the simple "helloworld.c" example on the gtk.org website http://www.gtk.org/tutorial/ch-gettingstarted.html#SEC-HELLOWORLD I saved the source code into a C-file and tried to compile it as indicated. However I got the following error message: helloworld.c: In function `main': helloworld.c:55: warning: implicit declaration of function `signal_connect' helloworld.c:79: warning: implicit declaration of function `g_signal_connect_swapped' I read somewhere that "g_signal_connect" is depreciated, but I have no clue what should be replacing it ? Best regards, Peter -- Dr. Peter Van Osta Union Biometrica N.V./S.A. European Scientific Operations Cipalstraat 3 B-2440 Geel Belgium tel.: +32 (0)14 570 619 fax.: +32 (0)14 570 621 From sven@gimp.org Tue Feb 19 08:18:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id E30E0182AA for ; Tue, 19 Feb 2002 08:18:28 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16dAA2-0007jK-00; Tue, 19 Feb 2002 14:18:22 +0100 To: pvosta@unionbio-eu.com Cc: gtk-list@gnome.org Subject: Re: signal_connect depreciated ? References: <3C724C65.3DBA2A42@unionbio-eu.com> From: Sven Neumann Date: 19 Feb 2002 14:18:21 +0100 In-Reply-To: <3C724C65.3DBA2A42@unionbio-eu.com> Message-ID: Lines: 45 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Peter Van Osta writes: > I apologize for this newbie question, but I have just started studying > GTK and I want to try to compile the simple "helloworld.c" example on > the gtk.org website > > http://www.gtk.org/tutorial/ch-gettingstarted.html#SEC-HELLOWORLD > > I saved the source code into a C-file and tried to compile it as > indicated. However I got the following error message: > > helloworld.c: In function `main': > helloworld.c:55: warning: implicit declaration of function > `signal_connect' > helloworld.c:79: warning: implicit declaration of function > `g_signal_connect_swapped' you are most probably following a GTK+-2.0 tutorial and link against GTK+-1.2. Actually the tutorial is in a strange state. It mixes GTK+-2.0 and GTK+-1.2 API: g_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (destroy), NULL); that should be (for GTK+-2.0): g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (destroy), NULL); IIRC, the tutorial is not fully converted to the new API yet and I don't think the tutorial found on the web-site is supposed to be the new one yet. > I read somewhere that "g_signal_connect" is depreciated, but I have no > clue what should be replacing it ? g_signal_connect() and friends is the new GObject signal API. The deprecated functions are gtk_signal_connect() and friends. Salut, Sven From jeremy@chaos.org.uk Tue Feb 19 14:08:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ganglion.demon.co.uk (ganglion.demon.co.uk [212.228.142.92]) by mail.gnome.org (Postfix) with ESMTP id 9EE1C18154 for ; Tue, 19 Feb 2002 14:08:37 -0500 (EST) Received: from chaos.org.uk (jeremy@localhost) by ganglion.demon.co.uk (8.11.6/8.11.6) with ESMTP id g1JJ0Ph27279 for ; Tue, 19 Feb 2002 19:00:26 GMT Message-Id: <200202191900.g1JJ0Ph27279@ganglion.demon.co.uk> X-Authentication-Warning: ganglion.demon.co.uk: jeremy owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: Re: new problem In-Reply-To: Message from Javed of "Tue, 19 Feb 2002 10:35:25 +0530." <3C71DD15.F9A01CAE@vsnl.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 19 Feb 2002 19:00:23 +0000 From: Jeremy Henty Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Javed writes: > configure: error: C compiler cannot create executables. > After which I tried compiling a C program, and it did not > execute. What were the error messages? It's hard to offer useful help without the details. Regards, Jeremy Henty -- Here's the secret that every successful software company is based on: You can domesticate programmers the way beekeepers tame bees. You can't exactly communicate with them, but you can get them to swarm in one place and when they're not looking, you can carry off the honey. -- Orson Scott Card, http://carolyn.org/osc.html From inodal@teleline.es Tue Feb 19 14:15:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp2.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 4FB4F18196 for ; Tue, 19 Feb 2002 14:15:45 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp2.mail.isp (Netscape Messaging Server 4.15 tsmtp2 Jul 26 2001 13:10:38) with ESMTP id GRSO6401.RUA for ; Tue, 19 Feb 2002 20:15:40 +0100 Message-ID: <3C72A469.8090807@teleline.es> Date: Tue, 19 Feb 2002 19:15:53 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: which child of my box is the one currently "activate"? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I've a class (written in C++) whith a GtkGLArea and several callbacks connected to button_press_event, button_release_event, etc... I call it GGLSurf. Now I want to use this class in another one to insert two GtkGLArea widgets in my Application. This new class is not a subclass of GGLSurf, it only has GGLSurf* as members of it. I've created an horizontal box and pack the to widgets in it. I also have several dialog windows to change values in the scene (lights, camera, fog, etc). The problem comes when I try to use the dialogs windows for both GtkGLAreas. _GGLSurfs is an array pointing to all my objects of the GGLSurf class, in this case just two: GGLSurf* _GGLSurfs[MAX_GGLSURFS]; guint _current_gglsurf; guint _num_gglsurfs; And all the elements in these windows are relative to _gglsurf, which is declared as: #define _gglsurf _GGLSurfs[_current_gglsurf] The problem is I don't know how to update "_current_gglsurf" since the callbacks for button_press_event, etc. are all in GGLSurf.hpp. How can I updat my "_current_gglsurf" from outside this class? Is there any way to ask, for example, which one of the childs inserted in the box is "activate"?? Thanks From seberino@dt092n42.san.rr.com Tue Feb 19 16:32:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 3106318DDD for ; Tue, 19 Feb 2002 16:32:35 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16dHsJ-0000CW-00 for gtk-list@gnome.org; Tue, 19 Feb 2002 13:32:35 -0800 Date: Tue, 19 Feb 2002 13:32:35 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: Linux->Win32 GTK+ porting question Message-ID: <20020219133235.A772@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes I know Cygwin rules and VMWare rules. Both would allow painless running of Linux GTK+ code on Windoze. I want to make an executable that ANYONE can run on Windoze without having to install anything like Cygwin or VMWARE. Has anyone taken the painful path of using the Win32 GTK+ libraries and getting even toy GTK+ code to generate a working .exe file?? I'm stuck on this and could use some help. I did the RTFM thing already but there are lots of gotchas and it would be really be nice to find someone who got this working successfully. Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From cooperdl@worldnet.att.net Tue Feb 19 22:46:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by mail.gnome.org (Postfix) with ESMTP id 9CE6D180E3 for ; Tue, 19 Feb 2002 22:46:45 -0500 (EST) Received: from athlon ([209.195.176.164]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020220034645.FBJE11818.mtiwmhc22.worldnet.att.net@athlon> for ; Wed, 20 Feb 2002 03:46:45 +0000 From: "David L. Cooper II" To: Subject: RE: Linux->Win32 GTK+ porting question Date: Tue, 19 Feb 2002 22:46:57 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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) In-Reply-To: <20020219133235.A772@spawar.navy.mil> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Chris, Yes, I've been down that road. I'm actually happy to say that I was able to take an application that I developed using Glade and recompile it to run natively on Windows. Check out: http://www.gimp.org/~tml/gimp/win32//new-downloads.html for more information on the libraries for windows. Regards, David -----Original Message----- From: gtk-list-admin@gnome.org [mailto:gtk-list-admin@gnome.org]On Behalf Of Chris Seberino Sent: Tuesday, February 19, 2002 4:33 PM To: gtk-list@gnome.org Subject: Linux->Win32 GTK+ porting question Yes I know Cygwin rules and VMWare rules. Both would allow painless running of Linux GTK+ code on Windoze. I want to make an executable that ANYONE can run on Windoze without having to install anything like Cygwin or VMWARE. Has anyone taken the painful path of using the Win32 GTK+ libraries and getting even toy GTK+ code to generate a working .exe file?? I'm stuck on this and could use some help. I did the RTFM thing already but there are lots of gotchas and it would be really be nice to find someone who got this working successfully. Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From blue_pion@hotmail.com Wed Feb 20 02:48:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f50.pav1.hotmail.com [64.4.31.50]) by mail.gnome.org (Postfix) with ESMTP id 7ECE9181E9 for ; Wed, 20 Feb 2002 02:48:54 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 19 Feb 2002 23:48:53 -0800 Received: from 137.132.3.9 by pv1fd.pav1.hotmail.msn.com with HTTP; Wed, 20 Feb 2002 07:48:52 GMT X-Originating-IP: [137.132.3.9] From: "Ricky Foo" To: gtk-list@gnome.org Subject: Gtk drawing Date: Wed, 20 Feb 2002 07:48:52 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 20 Feb 2002 07:48:53.0608 (UTC) FILETIME=[0AFBE680:01C1B9E3] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Question about gtk_drawing_area. I created this dialog window with 3 drawing areas inside. However, no matter how I tried, I couldn't get the graphics to appear. There is nothing wrong with my callback. I have already cross-checked it. Does GTK+ forbid multiple drawing areas within 1 window? Where could the problem be? Ricky _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From seberino@dt092n42.san.rr.com Wed Feb 20 03:50:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id B3452181CF for ; Wed, 20 Feb 2002 03:50:52 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16dSSn-0000c8-00; Wed, 20 Feb 2002 00:50:57 -0800 Date: Wed, 20 Feb 2002 00:50:57 -0800 From: Chris Seberino To: gtk-list@gnome.org Cc: pbd@Op.Net Subject: How access pixmap info like width&height? (1st arg of configure/expose callback nice...) Message-ID: <20020220005057.A2332@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Configure and Expose events will use a callback with the first argument being a widget that has nice info about pixmap to be redrawn like width, height, style & "window". How can I access this widget on my own??? Or, how can I get at this info for a pixmap some other way??? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pvosta@unionbio-eu.com Wed Feb 20 04:24:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 13A91183C4 for ; Wed, 20 Feb 2002 04:24:26 -0500 (EST) Received: (qmail 7136 invoked from network); 20 Feb 2002 09:20:46 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 20 Feb 2002 09:20:46 -0000 Message-ID: <3C736B0B.BF995AC1@unionbio-eu.com> Date: Wed, 20 Feb 2002 10:23:23 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: upgrading GTK1.2 to GTK2.0 and displaying images Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am currently running a RedHat 7.2 system with GTK1.2 installed. How do I upgrade from GTK1.2 to GTK2.0 without breaking the system ? I am using GNOME for my desktop and I do not want to crash the system by changing libraries the system might depend on. When compiling a GTK-based program I use "gtk-config --cflags --libs", I suppose I have to redirect the settings of gtk-config to the updated GTK2.0 if I want to use GTK2.0 instead of GTK1.2 ? I intend to use the GTK for "modernising" an imaging system, where do I find information/examples of how to "send" image data (bitmaps) to a GTK-window. Although the focus in my application is on automated image acquisition and analysis, I now and then wan to display an image on the screen. The focus of my work is to "extract" numerical data out of images, not displaying them or interactive work. For an example of what I intend to "modernise", you can have a look at my persoanl website: http://ourworld.compuserve.com/homepages/pvosta/cvwww.htm Best regards and lots of thanks in advance, Peter -------------------- Dr. Peter Van Osta Union Biometrica N.V./S.A. European Scientific Operations Cipalstraat 3 B-2440 Geel Belgium tel.: +32 (0)14 570 619 fax.: +32 (0)14 570 621 From sven@gimp.org Wed Feb 20 04:58:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 0D936181DA for ; Wed, 20 Feb 2002 04:58:41 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16dTWJ-00032V-00; Wed, 20 Feb 2002 10:58:39 +0100 To: pvosta@unionbio-eu.com Cc: GTK-list Subject: Re: upgrading GTK1.2 to GTK2.0 and displaying images References: <3C736B0B.BF995AC1@unionbio-eu.com> From: Sven Neumann Date: 20 Feb 2002 10:58:39 +0100 In-Reply-To: <3C736B0B.BF995AC1@unionbio-eu.com> Message-ID: Lines: 20 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Peter Van Osta writes: > I am currently running a RedHat 7.2 system with GTK1.2 installed. How do > I upgrade from GTK1.2 to GTK2.0 without breaking the system ? I am using > GNOME for my desktop and I do not want to crash the system by changing > libraries the system might depend on. no too old versions of gtk+-1.2 live peacefully with gtk+-2.0 on the same system or even in the same prefix. > When compiling a GTK-based program I use "gtk-config --cflags --libs", I > suppose I have to redirect the settings of gtk-config to the updated > GTK2.0 if I want to use GTK2.0 instead of GTK1.2 ? pkg-config --cflags --libs gtk+-2.0 Salut, Sven From John.Cupitt@ng-london.org.uk Wed Feb 20 06:25:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 9619918198 for ; Wed, 20 Feb 2002 06:25:34 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXL099>; Wed, 20 Feb 2002 11:25:33 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXL098; Wed, 20 Feb 2002 11:25:31 -0000 Message-ID: <3C73845B.40902@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: blue_pion@hotmail.com Cc: gtk-list@gnome.org Subject: Re: Gtk drawing Date: Wed, 20 Feb 2002 11:11:23 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ricky Foo wrote: > Question about gtk_drawing_area. I created this dialog window with 3 > drawing areas inside. However, no matter how I tried, I couldn't get the > graphics to appear. There is nothing wrong with my callback. I have > already cross-checked it. > > Does GTK+ forbid multiple drawing areas within 1 window? Where could the > problem be? No, this should be fine. I'm afraid there's probably a problem in your code somewhere. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From castor.fou@wanadoo.fr Wed Feb 20 06:30:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto2.wanadoo.fr (smtp-out-2.wanadoo.fr [193.252.19.254]) by mail.gnome.org (Postfix) with ESMTP id 2DCF21819F for ; Wed, 20 Feb 2002 06:30:56 -0500 (EST) Received: from mel-rta1.wanadoo.fr (193.252.19.150) by mel-rto2.wanadoo.fr; 20 Feb 2002 12:30:55 +0100 Received: from pentium (193.249.83.45) by mel-rta1.wanadoo.fr; 20 Feb 2002 12:30:43 +0100 Message-ID: <003501c1ba02$095a5360$2d53f9c1@pentium> From: "Castor Fou" To: Subject: [GTK help] Date: Wed, 20 Feb 2002 12:30:43 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0032_01C1BA0A.6A0730E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0032_01C1BA0A.6A0730E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi! How I can superpose two GtkText in the same window (in a notebook for = example)? In a background, a gtktext where you can't modify the text and = in the foreground, a gtktext where you can modify the text. Result, you = have the background and the foreground in the same window with the = superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------=_NextPart_000_0032_01C1BA0A.6A0730E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi!
How I can superpose two GtkText in the = same window=20 (in a notebook for example)? In a background, a gtktext where you can't = modify=20 the text and in the foreground, a gtktext where you can modify the text. = Result,=20 you have the background and the foreground in the same window with = the=20 superposed texts.
Thanks,
 
Excuse me for my 'english' but I don't = speak it=20 very well.
------=_NextPart_000_0032_01C1BA0A.6A0730E0-- From bruces@mail.petech.ac.za Wed Feb 20 06:36:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ed.petech.ac.za (smtpgate.petech.ac.za [196.21.192.4]) by mail.gnome.org (Postfix) with ESMTP id A6C2418853 for ; Wed, 20 Feb 2002 06:36:06 -0500 (EST) Received: from what (what.petech.ac.za [10.11.2.27]) by ed.petech.ac.za (8.9.3/8.8.7) with SMTP id NAA22670 for ; Wed, 20 Feb 2002 13:36:00 +0200 Message-ID: <00e701c1ba03$d00a78e0$1b020b0a@petech.ac.za> From: "Bruce A. Smith" To: References: <003501c1ba02$095a5360$2d53f9c1@pentium> Subject: Re: [GTK help] Date: Wed, 20 Feb 2002 13:43:27 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00E4_01C1BA14.9371B720" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_00E4_01C1BA14.9371B720 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Nope, can't be done. ----- Original Message -----=20 From: Castor Fou=20 To: gtk-list@gnome.org=20 Sent: Wednesday, February 20, 2002 1:30 PM Subject: [GTK help] Hi! How I can superpose two GtkText in the same window (in a notebook for = example)? In a background, a gtktext where you can't modify the text and = in the foreground, a gtktext where you can modify the text. Result, you = have the background and the foreground in the same window with the = superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------=_NextPart_000_00E4_01C1BA14.9371B720 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Nope, can't be done.
 
----- Original Message -----
From:=20 Castor=20 Fou
Sent: Wednesday, February 20, = 2002 1:30=20 PM
Subject: [GTK help]

Hi!
How I can superpose two GtkText in = the same=20 window (in a notebook for example)? In a background, a gtktext where = you can't=20 modify the text and in the foreground, a gtktext where you can modify = the=20 text. Result, you have the background and the foreground in the = same=20 window with the superposed texts.
Thanks,
 
Excuse me for my 'english' but I = don't speak it=20 very well.
------=_NextPart_000_00E4_01C1BA14.9371B720-- From inimss@yahoo.com Wed Feb 20 08:02:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ekm.asianetonline.net (unknown [202.88.231.2]) by mail.gnome.org (Postfix) with ESMTP id 2B5D11814F; Wed, 20 Feb 2002 08:02:02 -0500 (EST) Received: from dino ([202.88.224.172]) by ekm.asianetonline.net (Netscape Messaging Server 4.15) with SMTP id GRTZK100.I4I; Wed, 20 Feb 2002 07:19:13 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: [INIMSS] Problem with CList, may be a bug in GTK+. Date: Tue, 19 Feb 2002 06:10:13 +0530 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02021906101300.01257@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi In my application I had a CList with the selection mode set to Browse (Glade term, hope you will understand). When I tried to add a row using gtk_clist_append the application crashed (segmentation fault). Then I changed the selection mode to Single and the application worked fine. Why is this happening? Is it my fault or the fault of the GTK? Thanks Dino From inodal@teleline.es Wed Feb 20 08:23:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp7.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 8160E1814B for ; Wed, 20 Feb 2002 08:23:06 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp7.mail.isp (Netscape Messaging Server 4.15 tsmtp7 Jul 26 2001 13:10:38) with ESMTP id GRU2IH01.NKM for ; Wed, 20 Feb 2002 14:23:05 +0100 Message-ID: <3C73A33C.2020504@teleline.es> Date: Wed, 20 Feb 2002 13:23:08 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: g_strdup() Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm using the g_strdup() function provided by glib, which is suppose to duplicate a string, to update a file name string stored in a gchar* from a GtkEntry. In fact, it's a member of a my class, so I pass it in the constructor: ParameterFile::ParameterFile(GtkWidget* parent, gchar* param) { _file_name = param; _File_entry = 0; //It's created later _value_changed = 0; .... } I've connected the "activate" signal of the GtkEntry used show/enter the file name. In my callback I call a member function Update(): ParameterFile::Update() { gchar *ch; ch = g_strdup(gtk_entry_get_text(GTK_ENTRY(_File_entry))); _value_changed = (strcmp(_file_name, ch) != 0); if (_value_changed) { if (_file_name != 0) g_free(_file_name); _file_name = g_strdup(ch); } } If I call g_print("post-g_strdup %s\n",_filename); it shows me the correct value. If I call it in my main.cpp the value passed to the constructor, where the strign should be stored, points whereever it my be, but not where I want.. In my main.cpp, just testing, I use: gchar* _wrl_name = g_strdup("default.wrl"); ParameterFile* entry_param = new ParameterFile(parent, _wrl_name); [...] And a button that prints _wrl_name if clicked. What's going wrong? Can I pass _wrl_name to my constructor or do I have to pass gchar**? Thanks.. Someday I'll beat pointers... From John.Cupitt@ng-london.org.uk Wed Feb 20 09:21:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 4507A181A9 for ; Wed, 20 Feb 2002 09:21:39 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMA3G>; Wed, 20 Feb 2002 14:21:38 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMA3F; Wed, 20 Feb 2002 14:21:31 -0000 Message-ID: <3C73AD9B.9000500@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: inodal@teleline.es Cc: gtk-list@gnome.org Subject: Re: g_strdup() Date: Wed, 20 Feb 2002 14:07:23 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Ignacio, you need to be more careful about where you strdup, and you need to look at entry_param->_file_name, not at _wrl_name. The rule is that each instance of ParameterFile must own the pointer to the _file_name string. So: strdup() when you set _file_name, free when you unset, and absolutely NO free/strdup anywhere else. I have a couple of macros I use to make this safer: #define STRFREE( S ) \ { if( S ) { g_free( S ); (S) = 0; } } #define STRSET( S, V ) \ { STRFREE( S ); if( V ) { (S) = g_strdup( V ); } } so your functions become: > ParameterFile::ParameterFile(GtkWidget* parent, gchar* param) > { > > _file_name = 0; > STRSET( _file_name, param ); > _File_entry = 0; //It's created later > > _value_changed = 0; > .... > > } > ParameterFile::Update() > { > gchar *ch; > > ch = gtk_entry_get_text(GTK_ENTRY(_File_entry)); > > _value_changed = (strcmp(_file_name, ch) != 0); > > if (_value_changed) > STRSET( _file_name, ch ); > > } and in main.cpp: > gchar *_wrl_name = "default.wrl"; > ParameterFile* entry_param = new ParameterFile(parent, _wrl_name); You also need to make sure you have STRFREE( _file_name ) in your destructor for ParameterFile. Finally, in your button callback, don't print _wrl_name ... that will always be the start value. Instead, print entry_param->_file_name John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From Esteban.Quijano@artinsoft.com Wed Feb 20 10:29:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id 9188518AF8 for ; Wed, 20 Feb 2002 10:29:16 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id ; Wed, 20 Feb 2002 10:21:45 -0600 Message-ID: From: Esteban Quijano To: Castor Fou Cc: gtk-list@gnome.org Subject: RE: [GTK help] Date: Wed, 20 Feb 2002 09:23:04 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1BA22.7DEE2CE0" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C1BA22.7DEE2CE0 Content-Type: text/plain; charset="iso-8859-1" Let's see. As I understand you want a gtktext over a bigger gtktext, both in the same window, don't you? You can do that with a GtkFixed widget. You can position widgets at fixed coordinates, no matter if one widget is in front of another one. Esteban Quijano V. Artinsoft corp -----Original Message----- From: Castor Fou [mailto:castor.fou@wanadoo.fr] Sent: Wednesday, February 20, 2002 5:31 AM To: gtk-list@gnome.org Subject: [GTK help] Hi! How I can superpose two GtkText in the same window (in a notebook for example)? In a background, a gtktext where you can't modify the text and in the foreground, a gtktext where you can modify the text. Result, you have the background and the foreground in the same window with the superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------_=_NextPart_001_01C1BA22.7DEE2CE0 Content-Type: text/html; charset="iso-8859-1"
Let's see. As I understand you want a gtktext over a bigger gtktext, both in the same window, don't you?
You can do that with a GtkFixed widget. You can position widgets at fixed coordinates, no matter if one widget is in front of another one.
 
Esteban Quijano V.
Artinsoft corp
-----Original Message-----
From: Castor Fou [mailto:castor.fou@wanadoo.fr]
Sent: Wednesday, February 20, 2002 5:31 AM
To: gtk-list@gnome.org
Subject: [GTK help]

Hi!
How I can superpose two GtkText in the same window (in a notebook for example)? In a background, a gtktext where you can't modify the text and in the foreground, a gtktext where you can modify the text. Result, you have the background and the foreground in the same window with the superposed texts.
Thanks,
 
Excuse me for my 'english' but I don't speak it very well.
------_=_NextPart_001_01C1BA22.7DEE2CE0-- From jimmycllin@hotmail.com Wed Feb 20 11:39:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (oe64.law11.hotmail.com [64.4.16.199]) by mail.gnome.org (Postfix) with ESMTP id D89231814C for ; Wed, 20 Feb 2002 11:39:55 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 20 Feb 2002 08:39:55 -0800 X-Originating-IP: [61.10.172.12] From: "Jimmy Lin" To: Subject: When will GTK+2.0 be released? Date: Thu, 21 Feb 2002 00:41:35 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0061_01C1BA70.83EC4ED0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 20 Feb 2002 16:39:55.0176 (UTC) FILETIME=[39F55A80:01C1BA2D] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0061_01C1BA70.83EC4ED0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Hello, I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and GTK+2.0 = is incompatible. So should I learn GTK+2.0 is much better now? Please = give me some advices. Thanks!!! Jimmy ------=_NextPart_000_0061_01C1BA70.83EC4ED0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Hello,
 
I'm a new comer of GTK+, I noticed that the api = of GTK+1.2=20 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much=20 better now? Please give me some advices. = Thanks!!!
 
Jimmy
------=_NextPart_000_0061_01C1BA70.83EC4ED0-- From josebagar@euskalnet.net Wed Feb 20 16:45:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from eui3smtp.euskaltel.es (eui3smtp.euskaltel.es [212.55.8.58]) by mail.gnome.org (Postfix) with ESMTP id A8005181DD for ; Wed, 20 Feb 2002 16:45:36 -0500 (EST) Received: from localhost ([193.153.232.47]) by eui3smtp.euskaltel.es (Netscape Messaging Server 4.15) with ESMTP id GRUPRJ02.SEP for ; Wed, 20 Feb 2002 22:45:19 +0100 Content-Type: text/plain; charset="us-ascii" From: Joseba Garcia Etxebarria To: gtk-list@gnome.org Subject: gtk on win32 Date: Wed, 20 Feb 2002 22:44:47 +0100 X-Mailer: KMail [version 1.3.9] MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200202202244.47712.josebagar@euskalnet.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, maybe you have discussed this many times before, but the thing is that i = got a=20 project in linux that uses gtk that i want to port to windows (either MSV= C5=20 or cygwin) i'm quite newby to this kind of things, so i don't know where = to=20 start from. I've been to gimp.org/win32 but it seems quite confusing to m= e in=20 relation to porting my own applications to win32 (although it's a great p= age=20 for other purposes, like geting gimp :-) So, where should i start from? i think it would be of a great help if any= one=20 could send me a "standard" win32+gtk project with only the headers and=20 libraries linked to it, i don't thinks i physically need this headers and= =20 libraries emailed to me as i have already downloaded them from the gimp p= age. thanks a lot in advance, joseba PD: my code compiles cleanly in linux From castor.fou@wanadoo.fr Wed Feb 20 17:27:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto1.wanadoo.fr (smtp-out-1.wanadoo.fr [193.252.19.188]) by mail.gnome.org (Postfix) with ESMTP id 7B9871889A for ; Wed, 20 Feb 2002 17:27:00 -0500 (EST) Received: from mel-rta2.wanadoo.fr (193.252.19.152) by mel-rto1.wanadoo.fr; 20 Feb 2002 23:26:58 +0100 Received: from pentium (193.248.63.221) by mel-rta2.wanadoo.fr; 20 Feb 2002 23:26:48 +0100 Message-ID: <001d01c1ba5d$b0116760$dd3ff8c1@pentium> From: "Castor Fou" To: References: Subject: [GTK help] Date: Wed, 20 Feb 2002 23:25:20 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0014_01C1BA65.DD288CD0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0014_01C1BA65.DD288CD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks for the tips. But, my foreground must be diaphanously because the text on the = background must be visible. I think I'm not clear. I have a notebook. In the notebook, I add a GtKFixed with two GtkText = which coordonates must be the same. The first GtkText include, for = example, a head, the legs, the armes, the foot and two hands. The second = include the body. It is possible to see the body completely ? With a = second text's foreground diaphanously ? I hope that you understand me, Thanks, C@stor ------=_NextPart_000_0014_01C1BA65.DD288CD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Thanks for the tips.
But, my foreground must be diaphanously because the text on the background must be = visible. I think=20 I'm not clear.
I have a notebook. In the notebook, I = add a=20 GtKFixed with two GtkText which coordonates must be the same. = The=20 first GtkText include, for example, a head, the legs, the armes, the=20 foot and two hands. The second include the body. It is = possible to see=20 the body completely ? With a second text's foreground diaphanously=20 ?
I hope that you understand = me,
Thanks,
 
------=_NextPart_000_0014_01C1BA65.DD288CD0-- From cooperdl@worldnet.att.net Wed Feb 20 17:53:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by mail.gnome.org (Postfix) with ESMTP id 5ECFC18201 for ; Wed, 20 Feb 2002 17:53:25 -0500 (EST) Received: from athlon ([209.195.176.164]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020220225324.DMK5745.mtiwmhc22.worldnet.att.net@athlon>; Wed, 20 Feb 2002 22:53:24 +0000 From: "David L. Cooper II" To: "Joseba Garcia Etxebarria" , Subject: RE: gtk on win32 Date: Wed, 20 Feb 2002 17:53:39 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" 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) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <200202202244.47712.josebagar@euskalnet.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Check out: http://www.gimp.org/~tml/gimp/win32//new-downloads.html for more information on the libraries for windows. Regards, David -----Original Message----- From: gtk-list-admin@gnome.org [mailto:gtk-list-admin@gnome.org]On Behalf Of Joseba Garcia Etxebarria Sent: Wednesday, February 20, 2002 4:45 PM To: gtk-list@gnome.org Subject: gtk on win32 Hi, maybe you have discussed this many times before, but the thing is that i got a project in linux that uses gtk that i want to port to windows (either MSVC5 or cygwin) i'm quite newby to this kind of things, so i don't know where to start from. I've been to gimp.org/win32 but it seems quite confusing to me in relation to porting my own applications to win32 (although it's a great page for other purposes, like geting gimp :-) So, where should i start from? i think it would be of a great help if anyone could send me a "standard" win32+gtk project with only the headers and libraries linked to it, i don't thinks i physically need this headers and libraries emailed to me as i have already downloaded them from the gimp page. thanks a lot in advance, joseba PD: my code compiles cleanly in linux _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From cooperdl@worldnet.att.net Wed Feb 20 17:59:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by mail.gnome.org (Postfix) with ESMTP id 7677018201 for ; Wed, 20 Feb 2002 17:59:20 -0500 (EST) Received: from athlon ([209.195.176.164]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020220225920.DRU5745.mtiwmhc22.worldnet.att.net@athlon>; Wed, 20 Feb 2002 22:59:20 +0000 From: "David L. Cooper II" To: "Jimmy Lin" , Subject: RE: When will GTK+2.0 be released? Date: Wed, 20 Feb 2002 17:59:35 -0500 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0016_01C1BA38.5B047C00" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0016_01C1BA38.5B047C00 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit Check the mailing list archive at: http://mail.gnome.org/archives/gtk-devel-list/2002-February/thread.html David -----Original Message----- From: gtk-list-admin@gnome.org [mailto:gtk-list-admin@gnome.org]On Behalf Of Jimmy Lin Sent: Wednesday, February 20, 2002 11:42 AM To: gtk-list@gnome.org Subject: When will GTK+2.0 be released? Hello, I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much better now? Please give me some advices. Thanks!!! Jimmy ------=_NextPart_000_0016_01C1BA38.5B047C00 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Check=20 the mailing list archive at:
http://mail.gnome.org/archives/gtk-devel-list/2002-February/threa= d.html
 
David
-----Original Message-----
From: = gtk-list-admin@gnome.org=20 [mailto:gtk-list-admin@gnome.org]On Behalf Of Jimmy = Lin
Sent:=20 Wednesday, February 20, 2002 11:42 AM
To:=20 gtk-list@gnome.org
Subject: When will GTK+2.0 be=20 released?

Hello,
 
I'm a new comer of GTK+, I noticed that the = api of=20 GTK+1.2 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much = better now? Please give me some advices. = Thanks!!!
 
Jimmy
------=_NextPart_000_0016_01C1BA38.5B047C00-- From cpollock@vvm.com Wed Feb 20 18:25:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ns.vvm.com (ns.vvm.com [66.196.0.1]) by mail.gnome.org (Postfix) with ESMTP id C8E3618201 for ; Wed, 20 Feb 2002 18:25:24 -0500 (EST) Received: from there (ka02-66.vvm.com [66.196.2.66]) by ns.vvm.com (8.12.1/8.12.1) with SMTP id g1KNPNVh005874 for ; Wed, 20 Feb 2002 17:25:23 -0600 Message-Id: <200202202325.g1KNPNVh005874@ns.vvm.com> Content-Type: text/plain; charset="iso-8859-1" From: Chris Pollock Reply-To: cpollock@vvm.com To: gtk-list@gnome.org Subject: gtk config Date: Wed, 20 Feb 2002 17:30:07 -0600 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Linux newbie here. I'm trying to install a program named BookBase. During the installation I get 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: error: Cannot find GTK: Is gtk-config in path? As far as I know GTK was installed when I installed Mandrake. I'm running Mandrake 8.1 Any help for this lost newbie would be appreciated. Chris From rbultje@ronald.bitfreak.net Wed Feb 20 18:29:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id 0160D18201 for ; Wed, 20 Feb 2002 18:29:53 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1KNKH4K025870 for ; Thu, 21 Feb 2002 00:20:17 +0100 (CET) Subject: move-event From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 21 Feb 2002 00:29:51 +0100 Message-Id: <1014247791.20045.134.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, is there an event which is triggered by moving windows? expose_event only gets called on a full repaint, I basically need to do some work whenever the drawing area is being increased/decreased in size or is being moved, either relative to the parent window or relative to the desktop root window. I thought configure_event would be my lucky guess, but that doesn't seem to get triggered at all. I use Gtk-1.3.13. Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From Esteban.Quijano@artinsoft.com Wed Feb 20 19:48:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id D2D96186B0 for ; Wed, 20 Feb 2002 19:48:44 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id ; Wed, 20 Feb 2002 19:25:28 -0600 Message-ID: From: Esteban Quijano To: 'Ronald Bultje' Cc: "'gtk-list@gnome.org'" Subject: RE: move-event Date: Wed, 20 Feb 2002 18:28:02 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: gtk_signal_connect(GTK_OBJECT(window), "configure_event", GTK_SIGNAL_FUNC(msg_window_setposition), data); gbool msg_window_setposition(GtkWidget *widget, GdkEventConfigure *event, gpointer user_data) { /* Do whatever you want with event->x and event->y */ return TRUE; } The configure_event can also catch resizing. Esteban Quijano Vincenzi Artinsoft corp. -----Original Message----- From: Ronald Bultje [mailto:rbultje@ronald.bitfreak.net] Sent: Wednesday, February 20, 2002 5:30 PM To: gtk-list@gnome.org Subject: move-event Hi there, is there an event which is triggered by moving windows? expose_event only gets called on a full repaint, I basically need to do some work whenever the drawing area is being increased/decreased in size or is being moved, either relative to the parent window or relative to the desktop root window. I thought configure_event would be my lucky guess, but that doesn't seem to get triggered at all. I use Gtk-1.3.13. Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From rtriay@avantel.net Thu Feb 21 01:22:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h004.c003.snv.cp.net [209.228.32.218]) by mail.gnome.org (Postfix) with SMTP id 5623418D6F for ; Thu, 21 Feb 2002 01:22:02 -0500 (EST) Received: (cpmta 3237 invoked from network); 20 Feb 2002 22:21:57 -0800 Received: from 148.240.116.19 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.218) with SMTP; 20 Feb 2002 22:21:57 -0800 X-Sent: 21 Feb 2002 06:21:57 GMT Received: from triay.net [10.0.0.2] by Proxy+; Thu, 21 Feb 2002 00:20:31 -0600 for Subject: inheritance From: Ramon Alberto Triay Espinosa To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 00:27:44 -0500 Mime-Version: 1.0 Message-Id: <20020221062202.5623418D6F@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: simple question: does all the 'children' widgets inherit all the functions of the 'parent' widget? I mean, does all functions that apply to a widget, apply to their children too? thanx rtriay :) From hp@redhat.com Thu Feb 21 01:29:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id B019C18FA8 for ; Thu, 21 Feb 2002 01:29:07 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1L6T6v10508; Thu, 21 Feb 2002 01:29:06 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: move-event References: <1014247791.20045.134.camel@tux> From: Havoc Pennington Date: 21 Feb 2002 01:29:06 -0500 In-Reply-To: <1014247791.20045.134.camel@tux> Message-ID: Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > > is there an event which is triggered by moving windows? expose_event > only gets called on a full repaint, I basically need to do some work > whenever the drawing area is being increased/decreased in size or is > being moved, either relative to the parent window or relative to the > desktop root window. configure_event will come on a drawing area when it's moved relative to its parent, or resized. For relative to the root, you need configure_event on the toplevel GtkWindow. Havoc From rsteinke@w-link.net Thu Feb 21 01:43:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 3D3A8183B9 for ; Thu, 21 Feb 2002 01:43:20 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dmwj-00006J-00; Wed, 20 Feb 2002 22:43:13 -0800 Date: Wed, 20 Feb 2002 22:43:13 -0800 From: rsteinke@w-link.net To: rtriay@avantel.net, gtk-list@gnome.org Subject: Re: inheritance Message-ID: <3C749701.nailAA1IL9PT@w-link.net> References: <20020221062202.5623418D6F@mail.gnome.org> In-Reply-To: <20020221062202.5623418D6F@mail.gnome.org> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > From: Ramon Alberto Triay Espinosa > > simple question: > does all the 'children' widgets inherit all the functions of the > 'parent' widget? > I mean, does all functions that apply to a widget, apply to their > children too? > > thanx > rtriay > :) Yep. All you need to do is cast them using the appropriate macros (e.g., to use the gtk_widget_foo() function, cast your descended widget pointer to a GtkWidget* using the macro GTK_WIDGET()). Ron Steinke From jyothi@ncoretech.com Thu Feb 21 01:58:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id D248318282 for ; Thu, 21 Feb 2002 01:58:13 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g1L6w5U18028 for ; Thu, 21 Feb 2002 12:28:05 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g1L6w5p32074 for gtk-list@gnome.org.VIRCHECK; Thu, 21 Feb 2002 12:28:05 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g1L6w4U31985 for ; Thu, 21 Feb 2002 12:28:04 +0530 Message-ID: <3C749A68.FEB69057@ncoretech.com> Date: Thu, 21 Feb 2002 12:27:44 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How to center the text Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 21 12:28:04 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have drawn a rectangle using gdk_draw_rectangle. I am using gdk_draw_string to write a char into that rectangle. But every time I am manually centering the char inside the rectangle , I mean by adjusting x an y position of char. It is not accurately centered. Is there any function or way by which I can center the char inside a drawn rectangle. Thanks in Advance, Jyothi. From rtriay@avantel.net Thu Feb 21 01:59:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h000.c003.snv.cp.net [209.228.32.214]) by mail.gnome.org (Postfix) with SMTP id 9037C18D23 for ; Thu, 21 Feb 2002 01:59:13 -0500 (EST) Received: (cpmta 9949 invoked from network); 20 Feb 2002 22:59:09 -0800 Received: from 148.240.116.19 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.214) with SMTP; 20 Feb 2002 22:59:09 -0800 X-Sent: 21 Feb 2002 06:59:09 GMT Received: from triay.net [10.0.0.2] by Proxy+; Thu, 21 Feb 2002 00:53:05 -0600 for multiple recipients Subject: Re: inheritance From: Ramon Alberto Triay Espinosa To: rsteinke@w-link.net, gtk-list@gnome.org In-Reply-To: <3C749701.nailAA1IL9PT@w-link.net> References: <20020221062202.5623418D6F@mail.gnome.org> <3C749701.nailAA1IL9PT@w-link.net> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 01:00:17 -0500 Mime-Version: 1.0 Message-Id: <20020221065913.9037C18D23@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: El 20 Feb 2002 22:43:13 -0800, rsteinke@w-link.net escribió: > > From: Ramon Alberto Triay Espinosa > > > > simple question: > > does all the 'children' widgets inherit all the functions of the > > 'parent' widget? > > I mean, does all functions that apply to a widget, apply to their > > children too? > > > > thanx > > rtriay > > :) > > Yep. All you need to do is cast them using the appropriate macros > (e.g., to use the gtk_widget_foo() function, cast your descended widget > pointer to a GtkWidget* using the macro GTK_WIDGET()). > > Ron Steinke > THANX RON! that's all i needed to know SALUDOS!! rtriay :) From mano@pluto.linux.it Thu Feb 21 03:08:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailrelay1.inwind.it (mailrelay1.inwind.it [212.141.54.101]) by mail.gnome.org (Postfix) with ESMTP id 096E11811A for ; Thu, 21 Feb 2002 03:08:58 -0500 (EST) Received: from pluto.linux.it (62.98.86.101) by mailrelay1.inwind.it (5.5.053) id 3C727DC70010AC5C for gtk-list@gnome.org; Thu, 21 Feb 2002 09:08:56 +0100 Message-ID: <3C74A9C8.1090607@pluto.linux.it> Date: Thu, 21 Feb 2002 09:03:20 +0100 From: Germano Rizzo User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020208 X-Accept-Language: it, en, en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Gtk+2-style auto* scripts Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! just for sake of exploring, I've begun to develop a program in GTK+ 2.0. Now, I'd like to get it packaged properly, so I really need all the automake/autoconf stuff... in the other programs I made, it was easy to find another similar program, just... eeeh... "quote" ;) that kind of stuff from there, and then modify the scripts for my own purposes. The matter is, I don't know of any simple program that uses GTK2, for now. Could you address me, please? Or just advice me to a good documentation that can explain how to make myself such scripts, and/or which differences are there (if any) with the GTK-1.2-style ones? Thanks in advance, and compliments for the really good work you're doing with GTK2, Mano :) PS: I'd like something less complex than GIMP 1.3.x... -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Germano Rizzo - mano@pluto.linux.it ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Pluto FSUG member - www.pluto.linux.it Linux Registered User #120637 PGP/GPG Public Key at http://gnomermind.sf.net/pubkey.txt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ An rud is annamh is iontach ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From mano@pluto.linux.it Thu Feb 21 03:08:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailrelay1.inwind.it (mailrelay1.inwind.it [212.141.54.101]) by mail.gnome.org (Postfix) with ESMTP id C088C1811A for ; Thu, 21 Feb 2002 03:08:58 -0500 (EST) Received: from pluto.linux.it (62.98.86.101) by mailrelay1.inwind.it (5.5.053) id 3C727DC70010AC66 for gtk-list@gnome.org; Thu, 21 Feb 2002 09:08:58 +0100 Message-ID: <3C74AB03.4000900@pluto.linux.it> Date: Thu, 21 Feb 2002 09:08:35 +0100 From: Germano Rizzo User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020208 X-Accept-Language: it, en, en-us MIME-Version: 1.0 To: Mailing List GTK+ Subject: Saving the whole GTKTextBuffer state Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I think this question is really stupid, but... isn't there a way to get *all* the text displayed in a GtkTextBuffer? I mean, the text plus all the tags, attributes, pixmaps... just like a word processor would have? I'm using a textbuffer, and I'm going to implement a way to save it all; but I've a strong feeling of "reinventing the wheel", doing that... would it be simpler, more standard and more "portable" between different apps to implement such a facility? Thanks, Mano :) -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Germano Rizzo - mano@pluto.linux.it ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Pluto FSUG member - www.pluto.linux.it Linux Registered User #120637 PGP/GPG Public Key at http://gnomermind.sf.net/pubkey.txt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ An rud is annamh is iontach ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From seberino@dt092n42.san.rr.com Thu Feb 21 05:28:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F39A41811A for ; Thu, 21 Feb 2002 05:28:47 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16dqT7-00015o-00 for gtk-list@gnome.org; Thu, 21 Feb 2002 02:28:53 -0800 Date: Thu, 21 Feb 2002 02:28:53 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: ??? passing `gint (*)()' as argument 1 of `gtk_idle_add(gint (*)(void *), void *)' Message-ID: <20020221022853.A4177@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I want to add function with this interface to argument list of gtk_idle_add: gint drawPlots(); But when I do this: gtk_idle_add(drawPlots, NULL); I get this at compile time: passing `gint (*)()' as argument 1 of `gtk_idle_add(gint (*)(void *), void *)' Any ideas? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From rbultje@ronald.bitfreak.net Thu Feb 21 06:06:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id 1392E1811A for ; Thu, 21 Feb 2002 06:06:27 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1LAum4K029518; Thu, 21 Feb 2002 11:56:48 +0100 (CET) Subject: Re: ??? passing `gint (*)()' as argument 1 of `gtk_idle_add(gint (*)(void *), void *)' From: Ronald Bultje To: Christian Seberino Cc: gtk-list@gnome.org In-Reply-To: <20020221022853.A4177@spawar.navy.mil> References: <20020221022853.A4177@spawar.navy.mil> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 21 Feb 2002 12:06:25 +0100 Message-Id: <1014289585.20045.138.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, 2002-02-21 at 11:28, Christian Seberino wrote: > gint drawPlots(); [...] > gtk_idle_add(drawPlots, NULL); Make that "gint drawPlots(gpointer data)", where data is the pointer you give as second argument in the gtk_idle_add() function (in your case: NULL). Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From gbabusia@ulb.ac.be Thu Feb 21 07:14:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from guppy.vub.ac.be (guppy.vub.ac.be [134.184.129.2]) by mail.gnome.org (Postfix) with ESMTP id C2D481915D for ; Thu, 21 Feb 2002 07:14:25 -0500 (EST) Received: from mach.vub.ac.be (mach.vub.ac.be [134.184.129.3]) by guppy.vub.ac.be (8.9.1b+Sun/3.17.1.ap (guppy)) id NAA19631; Thu, 21 Feb 2002 13:13:38 +0100 (MET) for Received: from resu1.ulb.ac.be (resu1.ulb.ac.be [164.15.59.200]) by mach.vub.ac.be (8.9.3/3.13.3.ap (mach)) id NAA09269; Thu, 21 Feb 2002 13:14:23 +0100 (MET) for gtk-list@gnome.org Date: Thu, 21 Feb 2002 13:14:23 +0100 (MET) Message-Id: <200202211214.NAA09269@mach.vub.ac.be> From: Gregory Babusiaux To: gtk-list@gnome.org Subject: problems creating windows X-Mailer: Webmail ULB v2.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi i got a problem in an application i'm trying to develop. I've created a new window (the main window) with the command window=gtk_window_new(GTK_WINDOW_TOPLEVEL); by pressing on a button , i'd like to create a child window. So that in the callback function i 'd like to create the child window. But i don't know to create the child window window=gtk_window_new(GTK_WINDOW_CHILDLEVEL) doesn't work!! Can anyone help me??? thanks a lot for reading greg, brussels, belgium From flavio@maqplas.com.br Thu Feb 21 09:49:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id E3F70185A4 for ; Thu, 21 Feb 2002 09:49:38 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1LEnWC5042195; Thu, 21 Feb 2002 11:49:33 -0300 (BRT) Subject: Re: problems creating windows From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Gregory Babusiaux Cc: gtk-list@gnome.org In-Reply-To: <200202211214.NAA09269@mach.vub.ac.be> References: <200202211214.NAA09269@mach.vub.ac.be> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 21 Feb 2002 11:51:28 -0300 Message-Id: <1014303090.1147.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: You should use GTK_WINDOW_TOPLEVEL, GTK_WINDOW_POPUP or GTK_WINDOW_DIALOG Success Flavio Alberto > > window=gtk_window_new(GTK_WINDOW_TOPLEVEL); > > by pressing on a button , i'd like to create a child window. So that in the callback function i 'd like to create the child window. But i don't know to create the child window > > window=gtk_window_new(GTK_WINDOW_CHILDLEVEL) doesn't work!! > From bugcreator@gmx.de Thu Feb 21 10:26:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id 640801845A for ; Thu, 21 Feb 2002 10:26:09 -0500 (EST) Received: (qmail 25109 invoked by uid 0); 21 Feb 2002 15:26:07 -0000 Received: from dialin-145-254-090-159.arcor-ip.net (HELO there) (145.254.90.159) by mail.gmx.net (mp001-rz3) with SMTP; 21 Feb 2002 15:26:07 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Dominic =?iso-8859-1?q?Sacr=E9?= To: gtk-list@gnome.org Subject: Creating a font based on the GTK default font Date: Thu, 21 Feb 2002 16:25:02 +0100 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020221152609.640801845A@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm looking for a way to get the GTK default font - i.e. the font which is normally used for all GTK widgets - and to create a new font based on that. For example, I want to use the same font for a widget, but bold and/or italic, or the same font at a different size. How can I do that? I guess I need to get the font's desciption (how?!), and then modify that string somehow, but maybe there's a better and easier way? Thanks in advance, Dominic From pbd@op.net Thu Feb 21 11:30:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 573EB1921C for ; Thu, 21 Feb 2002 11:30:14 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-502.phlpa.fast.net [209.92.97.248]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA01280; Thu, 21 Feb 2002 11:30:09 -0500 (EST) Message-Id: <200202211630.LAA01280@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How access pixmap info like width&height? (1st arg of configure/expose callback nice...) In-reply-to: Your message of "Wed, 20 Feb 2002 00:50:57 PST." <20020220005057.A2332@spawar.navy.mil> Date: Thu, 21 Feb 2002 06:29:44 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Configure and Expose events will use a callback with >the first argument being a widget that has nice >info about pixmap to be redrawn like width, height, >style & "window". > >How can I access this widget on my own??? >Or, how can I get at this >info for a pixmap some other way??? its the widget that *is* the pixmap. that is, if you did: GtkWidget *pixmap = gtk_pixmap_new (...); and then connected to configure_event and expose_event on that pixmap, the widget passed as the first argument is precisely that widget. you can use it yourself anywhere else, except that its allocation (width, height), style and window may not be set until certain events have occured. --p From leidola@newcon.de Thu Feb 21 11:32:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 746B318B47 for ; Thu, 21 Feb 2002 11:32:52 -0500 (EST) Received: from [213.70.108.86] ([213.70.108.86]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id RAA03664; Thu, 21 Feb 2002 17:32:55 +0100 Subject: Re: Gtk+2-style auto* scripts From: Olaf Leidinger To: Germano Rizzo , GTK Mailing List In-Reply-To: <3C74A9C8.1090607@pluto.linux.it> References: <3C74A9C8.1090607@pluto.linux.it> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 21 Feb 2002 17:35:48 +0100 Message-Id: <1014309355.1319.4.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 21 Feb 2002 09:03:20 +0100 schrieb Germano Rizzo: > Hi! > just for sake of exploring, I've begun to develop a program in GTK+ 2.0. > Now, I'd like to get it packaged properly, so I really need all the > automake/autoconf stuff... in the other programs I made, it was easy to > find another similar program, just... eeeh... "quote" ;) that kind of > stuff from there, and then modify the scripts for my own purposes. The > matter is, I don't know of any simple program that uses GTK2, for now. > Could you address me, please? Or just advice me to a good documentation > that can explain how to make myself such scripts, and/or which > differences are there (if any) with the GTK-1.2-style ones? > Thanks in advance, and compliments for the really good work you're doing > with GTK2, > Mano :) > > PS: I'd like something less complex than GIMP 1.3.x... > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Germano Rizzo - mano@pluto.linux.it > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Pluto FSUG member - www.pluto.linux.it > Linux Registered User #120637 > PGP/GPG Public Key at > http://gnomermind.sf.net/pubkey.txt > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > An rud is annamh is iontach > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hi! Try http://developer.gnome.org/dotplan/porting Ciao, Olaf From hp@redhat.com Thu Feb 21 12:29:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 4ABC118AC5 for ; Thu, 21 Feb 2002 12:29:17 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LHTF110866; Thu, 21 Feb 2002 12:29:15 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Dominic =?iso-8859-1?q?Sacr=E9?= Cc: gtk-list@gnome.org Subject: Re: Creating a font based on the GTK default font References: <20020221152609.640801845A@mail.gnome.org> From: Havoc Pennington Date: 21 Feb 2002 12:29:15 -0500 In-Reply-To: <20020221152609.640801845A@mail.gnome.org> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dominic Sacr=E9 writes: >=20 > I'm looking for a way to get the GTK default font - i.e. the font which i= s=20 > normally used for all GTK widgets - and to create a new font based on=20 > that. For example, I want to use the same font for a widget, but bold=20 > and/or italic, or the same font at a different size. How can I do that? > In GTK 1.2 it's a huge nightmare, but the "eel" library has example code. In GTK 2 you'd usually just gtk_widget_modify_font() using a font desc that only has the attribute you want to change set; e.g. just set the weight, but don't set the font family or anything. In GTK 2 you can also use markup labels (see docs on gtk_label_set_markup()= ). =20 Havoc From jeff@nmt.edu Thu Feb 21 12:59:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id E9EC918B7E for ; Thu, 21 Feb 2002 12:59:25 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LHxPL0016590 for ; Thu, 21 Feb 2002 10:59:25 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LHxPl6001456 for ; Thu, 21 Feb 2002 10:59:25 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 10:59:25 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: gtk-list@gnome.org Subject: Interesting suid problem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a situation where I am using GTK as a frontend for a databse we have. Everything is fine except for the fact that I want to keep the database password secure. I do not want to store it in the program for obvious reasons so I thought I would save it in an external file and have the program read it on startup. The only decent way that I know of to do this have a special user which can read the file and have the program setuid to run as that user. However, gtk doesn't like being run setuid. I looked at the setuid page because it says: "You must create a helper program instead. For further details, see: http://www.gtk.org/setuid.html" However, the only mention on this page of a helper program would require me to practically rewrite my entire application which is unacceptable. The only information my application receives is from the database and the password file. I don't like setuid applications as much as the next person, but I need to be able to secure the password file while being able to use and write this application in a feasible manner. If anyone else has a suggestion for solving my problem, please let me know (as long as it's not rediculous like the solution on the suid page. Otherwise, is there a way to work around this warning? Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff From castor.fou@wanadoo.fr Thu Feb 21 13:10:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto3.wanadoo.fr (smtp-out-3.wanadoo.fr [193.252.19.233]) by mail.gnome.org (Postfix) with ESMTP id CEBB818176 for ; Thu, 21 Feb 2002 13:10:54 -0500 (EST) Received: from mel-rta2.wanadoo.fr (193.252.19.152) by mel-rto3.wanadoo.fr; 21 Feb 2002 19:10:52 +0100 Received: from pentium (193.250.221.32) by mel-rta2.wanadoo.fr; 21 Feb 2002 19:10:40 +0100 Message-ID: <001401c1bb03$11f61340$20ddfac1@pentium> From: "Castor Fou" To: Subject: GTK Background Date: Thu, 21 Feb 2002 19:10:28 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000B_01C1BB0B.6CBE9BF0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C1BB0B.6CBE9BF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, For my application, I need a transparent background for a GtkText (not a = white background). It is possible? And how can I do this if it is = possible ? ------=_NextPart_000_000B_01C1BB0B.6CBE9BF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
For my application, I need a = transparent background=20 for a GtkText (not a white background). It is possible? And how can I do = this if=20 it is possible ?
------=_NextPart_000_000B_01C1BB0B.6CBE9BF0-- From sven@gimp.org Thu Feb 21 13:11:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9587785.dip.t-dialin.net [217.88.119.133]) by mail.gnome.org (Postfix) with ESMTP id 9D21A18786 for ; Thu, 21 Feb 2002 13:11:27 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16dxga-0000Jx-00; Thu, 21 Feb 2002 19:11:16 +0100 To: Jeff Shipman - SysProg Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem References: From: Sven Neumann Date: 21 Feb 2002 19:11:16 +0100 In-Reply-To: Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Jeff Shipman - SysProg writes: > I have a situation where I am using GTK as > a frontend for a databse we have. Everything > is fine except for the fact that I want to > keep the database password secure. I do > not want to store it in the program for > obvious reasons so I thought I would save > it in an external file and have the program > read it on startup. The only decent way that > I know of to do this have a special user > which can read the file and have the program > setuid to run as that user. However, gtk > doesn't like being run setuid. If you make your GTK+ app run setuid you can as well make the passwd file readable by everyone. How about making the file readable by members of a special group and add authorized users to that group ? Salut, Sven From jeff@nmt.edu Thu Feb 21 13:14:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id 3E100180FF for ; Thu, 21 Feb 2002 13:14:54 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LIEqL0023912; Thu, 21 Feb 2002 11:14:52 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LIEpSG001529; Thu, 21 Feb 2002 11:14:52 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 11:14:51 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: Sven Neumann Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Because we have 1500+ users which are added every semester and EVERYONE needs to be able to read it. There are three different levels of access which are determined upon startup by which group you are in (nothing special, worker, or manager). The access is software enforced and what we want is to make it so normal users cannot read the password file. If they could, they'd be able to just login to the DB and issue commands, viewing information about other users which they should not be able to view. Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff On 21 Feb 2002, Sven Neumann wrote: } Hi, } } Jeff Shipman - SysProg writes: } } > I have a situation where I am using GTK as } > a frontend for a databse we have. Everything } > is fine except for the fact that I want to } > keep the database password secure. I do } > not want to store it in the program for } > obvious reasons so I thought I would save } > it in an external file and have the program } > read it on startup. The only decent way that } > I know of to do this have a special user } > which can read the file and have the program } > setuid to run as that user. However, gtk } > doesn't like being run setuid. } } If you make your GTK+ app run setuid you can as well make the passwd } file readable by everyone. How about making the file readable by } members of a special group and add authorized users to that group ? } } } Salut, Sven } From rsteinke@w-link.net Thu Feb 21 13:23:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id C6636180FF for ; Thu, 21 Feb 2002 13:23:40 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dxsZ-00066F-00; Thu, 21 Feb 2002 10:23:39 -0800 Date: Thu, 21 Feb 2002 10:23:39 -0800 From: rsteinke@w-link.net To: jeff@nmt.edu, sven@gimp.org Subject: Re: Interesting suid problem Cc: gtk-list@gnome.org Message-ID: <3C753B2B.nailI311WSZ5F@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Jeff Shipman - SysProg > > Because we have 1500+ users which are added > every semester and EVERYONE needs to be able > to read it. There are three different levels > of access which are determined upon startup > by which group you are in (nothing special, > worker, or manager). The access is software > enforced and what we want is to make it so > normal users cannot read the password file. > If they could, they'd be able to just login > to the DB and issue commands, viewing information > about other users which they should not > be able to view. > > Jeff Shipman E-Mail: jeff@nmt.edu > Systems Programmer Phone: (505) 835-5748 > NMIMT Computer Center http://www.nmt.edu/~jeff Can't you make the database itself able to enforce user access to certain databases? I think Postgresql can do this. > On 21 Feb 2002, Sven Neumann wrote: > > } Hi, > } > } Jeff Shipman - SysProg writes: > } > } > I have a situation where I am using GTK as > } > a frontend for a databse we have. Everything > } > is fine except for the fact that I want to > } > keep the database password secure. I do > } > not want to store it in the program for > } > obvious reasons so I thought I would save > } > it in an external file and have the program > } > read it on startup. The only decent way that > } > I know of to do this have a special user > } > which can read the file and have the program > } > setuid to run as that user. However, gtk > } > doesn't like being run setuid. > } > } If you make your GTK+ app run setuid you can as well make the passwd > } file readable by everyone. How about making the file readable by > } members of a special group and add authorized users to that group ? > } > } > } Salut, Sven > } From jeff@nmt.edu Thu Feb 21 13:25:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id C200E18D62 for ; Thu, 21 Feb 2002 13:25:54 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LIPrL0027062; Thu, 21 Feb 2002 11:25:53 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LIPrnw001588; Thu, 21 Feb 2002 11:25:53 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 11:25:53 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: rsteinke@w-link.net Cc: sven@gimp.org, Subject: Re: Interesting suid problem In-Reply-To: <3C753B2B.nailI311WSZ5F@w-link.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm using Oracle and some columns of some tables should be viewable to some users while other columns of the same table are viewable. I would have to write out a billion different queries, different ones for each access level to do this. Kinda infeasible, IMO espcially since our queries may change often depending on new features we add to the software. Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: } } Can't you make the database itself able to enforce user access } to certain databases? I think Postgresql can do this. From rsteinke@w-link.net Thu Feb 21 13:33:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id D300418338 for ; Thu, 21 Feb 2002 13:33:49 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dy2O-00067Q-00; Thu, 21 Feb 2002 10:33:48 -0800 Date: Thu, 21 Feb 2002 10:33:48 -0800 From: rsteinke@w-link.net To: jeff@nmt.edu Subject: Re: Interesting suid problem Cc: sven@gimp.org, gtk-list@gnome.org Message-ID: <3C753D8C.nailI551BDQ9C@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Jeff Shipman - SysProg > > I'm using Oracle and some columns of some > tables should be viewable to some users while > other columns of the same table are viewable. > I would have to write out a billion different > queries, different ones for each access > level to do this. Kinda infeasible, IMO espcially > since our queries may change often depending > on new features we add to the software. > > Jeff Shipman E-Mail: jeff@nmt.edu > Systems Programmer Phone: (505) 835-5748 > NMIMT Computer Center http://www.nmt.edu/~jeff > > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: > } > } Can't you make the database itself able to enforce user access > } to certain databases? I think Postgresql can do this. That's what shell scripts are for. Ron Steinke From jeff@nmt.edu Thu Feb 21 13:34:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id 13E56190D9 for ; Thu, 21 Feb 2002 13:34:58 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LIYvL0029268; Thu, 21 Feb 2002 11:34:57 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LIYumE001636; Thu, 21 Feb 2002 11:34:57 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 11:34:56 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: rsteinke@w-link.net Cc: sven@gimp.org, Subject: Re: Interesting suid problem In-Reply-To: <3C753D8C.nailI551BDQ9C@w-link.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Care to elaborate? Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: } From: Jeff Shipman - SysProg } > } > I'm using Oracle and some columns of some } > tables should be viewable to some users while } > other columns of the same table are viewable. } > I would have to write out a billion different } > queries, different ones for each access } > level to do this. Kinda infeasible, IMO espcially } > since our queries may change often depending } > on new features we add to the software. } > } > Jeff Shipman E-Mail: jeff@nmt.edu } > Systems Programmer Phone: (505) 835-5748 } > NMIMT Computer Center http://www.nmt.edu/~jeff } > } > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: } > } } > } Can't you make the database itself able to enforce user access } > } to certain databases? I think Postgresql can do this. } } That's what shell scripts are for. } } Ron Steinke } From rsteinke@w-link.net Thu Feb 21 13:45:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 3BF6018A93 for ; Thu, 21 Feb 2002 13:45:43 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dyDu-00069g-00; Thu, 21 Feb 2002 10:45:42 -0800 Date: Thu, 21 Feb 2002 10:45:41 -0800 From: rsteinke@w-link.net To: jeff@nmt.edu Subject: Re: Interesting suid problem Cc: sven@gimp.org, gtk-list@gnome.org Message-ID: <3C754055.nailI7M1HNNAG@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Jeff Shipman - SysProg > > Care to elaborate? > > Jeff Shipman E-Mail: jeff@nmt.edu > Systems Programmer Phone: (505) 835-5748 > NMIMT Computer Center http://www.nmt.edu/~jeff > > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: > > } From: Jeff Shipman - SysProg > } > > } > I'm using Oracle and some columns of some > } > tables should be viewable to some users while > } > other columns of the same table are viewable. > } > I would have to write out a billion different > } > queries, different ones for each access > } > level to do this. Kinda infeasible, IMO espcially > } > since our queries may change often depending > } > on new features we add to the software. > } > > } > Jeff Shipman E-Mail: jeff@nmt.edu > } > Systems Programmer Phone: (505) 835-5748 > } > NMIMT Computer Center http://www.nmt.edu/~jeff > } > > } > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: > } > } > } > } Can't you make the database itself able to enforce user access > } > } to certain databases? I think Postgresql can do this. > } > } That's what shell scripts are for. > } > } Ron Steinke > } I'm assuming oracle has some command line interface/way to send batch commands or something. Write a shell script for each set of permissions (I'm assuming that, while you have many, many users, there are only about three or four access levels) that is passed a user name and writes to stdout the sql commands necessary to create that user with the appropriate permissions. Then, write a shell script that loop through the list of users you've been given, calls the appropriate permission-generating shell script, and pipes the output to oracle. This will require maintainance of the shell scripts as you update your database version/requirements, but not more so than you would need ysing any other means of enforcing this. You can also write little update scripts to change the permissions of users from one level to another in mid-stream, if that's necessary. This method is also probably more secure than having a separate password file, as it reduces the possible number of points of failure. All pretty standard sysadmin stuff. Ron Steinke From hp@redhat.com Thu Feb 21 14:33:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 5DB3718A7E for ; Thu, 21 Feb 2002 14:33:37 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LJXZ710894; Thu, 21 Feb 2002 14:33:35 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Jeff Shipman - SysProg Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem References: From: Havoc Pennington Date: 21 Feb 2002 14:33:35 -0500 In-Reply-To: Message-ID: Lines: 56 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jeff Shipman - SysProg writes: > I have a situation where I am using GTK as > a frontend for a databse we have. Everything > is fine except for the fact that I want to > keep the database password secure. I do > not want to store it in the program for > obvious reasons so I thought I would save > it in an external file and have the program > read it on startup. The only decent way that > I know of to do this have a special user > which can read the file and have the program > setuid to run as that user. However, gtk > doesn't like being run setuid. I don't see why the helper program would be that hard - especially with GTK 2 and the g_spawn_* family of functions. You have a small helper app, it spits the database password to a pipe, your app reads the password from the pipe. Should be maybe 500 lines of code. It's a good thing GTK doesn't let you do what you want, because the result would be a giant security hole. The limitation here is not imposed by GTK; it's imposed by security concerns. If you don't care about security, then chmod 666 your file. If you do care about security, you can't make a GUI application setuid. End of story. There is nothing GTK can do about it - other than have the safety check to keep you from doing the wrong thing. > However, the only mention on this page of > a helper program would require me to practically > rewrite my entire application which is > unacceptable. Well, the fact that you don't have time to fix a bug, doesn't mean that the bug goes away. You either have to fix the app, or have it be a giant security hole. There isn't a magic solution. > Otherwise, is there a way to work around this warning? Sure, you can hack your local copy of GTK to contain a giant security hole... it's a trivial patch to gtkmain.c. But it's easier (and equivalent from a security standpoint) to chmod 666 the files you want to access. The warning is amazingly enough there for a reason. ;-) The warning is a symptom, not the underlying problem. The underlying problem is the security hole inherent in the application's design. Removing the warning about the security hole doesn't mean the security hole is now gone... Havoc From bl_nero@o2.pl Thu Feb 21 16:03:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rekin.go2.pl (rekin4.go2.pl [212.126.20.8]) by mail.gnome.org (Postfix) with ESMTP id 0A862180F4 for ; Thu, 21 Feb 2002 16:03:25 -0500 (EST) Received: from s (pb75.piotrkow.cvx.ppp.tpnet.pl [213.77.225.75]) by rekin.go2.pl (Mailer_v2.01) with SMTP id 78C786EE9F for ; Thu, 21 Feb 2002 22:03:01 +0100 (CET) Message-ID: <000701c1bb1b$255c4680$4be14dd5@s> From: "Bartosz \"Neron\" Leper" To: "GTK-list" Subject: GTK and non-monospace fonts Date: Thu, 21 Feb 2002 19:25:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello there, I'm new here and I'm from Poland, so I'm sorry for my weak English. But I'll try to explain what's on my mind. I'm using Mandrake Linux and I've experienced some problems with displaying GTK widgets: all applications I have that are written using GTK are calculating word length incorrectly, which causes labels unreadable in some cases. It happens when I use non-monospace fonts (in Poland we say: proportional fonts). Nearly each word is displayed correctly, but every space between words is somehow "strange": sometimes it's normal, somtimes it's illogically wide (when the word consists of narrow letters, like 'iiii', and sometimes even "space" means "backspace" (when the word consists of many wide letters, like 'WWWWW'). I think it's because GTK (or GDK?) counts word width as if it was written in monospace font (like Courier)! Simmilar thing happens in edit boxes (sorry for that Win32 terminology), and it's even worse: when I try to put caret into box using mouse, I click between two letters, but the actual point of inserting text appears to be somewhere else - it's also sounted using monospace font width! I am running GTK version 1.2.8-6mdk, but I don't know if it really matters, because nearly all applications I have are pre-compiled. Please help me, because it's really annoying! I don't know if I refer to appropriate mailing list; if you know some other places to find some info, please mail me. Thanks in anvance, Nero -- ------====[Bartosz "Neron" Leper]====------ mailto:bl_nero@o2.pl | IRC: #warsztat www.nerosite.prv.pl | www.programex.prv.pl ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From v.j.arkesteijn@utwente.nl Thu Feb 21 16:28:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ken (inbel240061.inbel.utwente.nl [130.89.240.61]) by mail.gnome.org (Postfix) with ESMTP id 0AFD3191E6 for ; Thu, 21 Feb 2002 16:28:08 -0500 (EST) Received: by ken (Postfix, from userid 1000) id CD45F19E5; Thu, 21 Feb 2002 22:30:55 +0100 (CET) Date: Thu, 21 Feb 2002 22:30:54 +0100 From: Vincent Arkesteijn To: gtk-list@gnome.org Subject: Re: Interesting suid problem Message-ID: <20020221223053.A6053@ken> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jeff@nmt.edu on Thu, Feb 21, 2002 at 10:59:25AM -0700 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, On Thu, Feb 21, 2002 at 10:59:25AM -0700, Jeff Shipman - SysProg wrote: > Everything > is fine except for the fact that I want to > keep the database password secure. I do > not want to store it in the program for > obvious reasons Why? Just put the password in the program, and give your users execute permission, but no read permission on the program. It may not be too elegant, and it's a bit clumsy when you want to change the password, but it's the simplest solution. Regards, Vincent. From Valdis.Kletnieks@vt.edu Thu Feb 21 16:39:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id CEE2F18DC8 for ; Thu, 21 Feb 2002 16:39:48 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1LLdlVj032087; Thu, 21 Feb 2002 16:39:47 -0500 Message-Id: <200202212139.g1LLdlVj032087@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Vincent Arkesteijn Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem In-Reply-To: Your message of "Thu, 21 Feb 2002 22:30:54 +0100." <20020221223053.A6053@ken> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ <20020221223053.A6053@ken> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1644264643P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 21 Feb 2002 16:39:47 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_1644264643P Content-Type: text/plain; charset=us-ascii On Thu, 21 Feb 2002 22:30:54 +0100, Vincent Arkesteijn said: > Why? Just put the password in the program, and give your users > execute permission, but no read permission on the program. It > may not be too elegant, and it's a bit clumsy when you want to > change the password, but it's the simplest solution. Still vulnerable to attack via gdb/dbx or ptrace(), but that's a question of whether your threat model includes somebody both that determined and skilled... -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_1644264643P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8dWkjcC3lWbTT17ARAiqDAJ9wv8Ksi6m/yuvMqGMJYz+ME2z0pgCfYJ+N IJO+WswuWgKZbxpDb1WIXJo= =qAM+ -----END PGP SIGNATURE----- --==_Exmh_1644264643P-- From hp@redhat.com Thu Feb 21 16:53:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 6DF1A182AF for ; Thu, 21 Feb 2002 16:53:23 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LLrGh10939; Thu, 21 Feb 2002 16:53:16 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Bartosz \"Neron\" Leper" Cc: "GTK-list" Subject: Re: GTK and non-monospace fonts References: <000701c1bb1b$255c4680$4be14dd5@s> From: Havoc Pennington Date: 21 Feb 2002 16:53:16 -0500 In-Reply-To: <000701c1bb1b$255c4680$4be14dd5@s> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Bartosz \"Neron\" Leper" writes: > I'm using Mandrake Linux and I've experienced some problems with displaying > GTK widgets: all applications I have that are written using GTK are > calculating word length incorrectly, which causes labels unreadable in some > cases. This doesn't happen for most people; it's probably a bug in some specific aspect of your setup - either the old GTK version, the X server, the font you're using, or the like. Havoc From bugcreator@gmx.de Thu Feb 21 16:57:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id 186C419275 for ; Thu, 21 Feb 2002 16:57:46 -0500 (EST) Received: (qmail 25147 invoked by uid 0); 21 Feb 2002 21:57:44 -0000 Received: from a1f63.pppool.de (HELO there) (213.6.31.99) by mail.gmx.net (mp009-rz3) with SMTP; 21 Feb 2002 21:57:44 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Dominic =?iso-8859-1?q?Sacr=E9?= To: Havoc Pennington Subject: Re: Creating a font based on the GTK default font Date: Thu, 21 Feb 2002 22:56:08 +0100 X-Mailer: KMail [version 1.3.1] References: <20020221152609.640801845A@mail.gnome.org> In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: gtk-list@gnome.org Message-Id: <20020221215746.186C419275@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thursday 21 February 2002 18:29, Havoc Pennington wrote: > Dominic Sacré writes: > > I'm looking for a way to get the GTK default font - i.e. the font > > which is normally used for all GTK widgets - and to create a new font > > based on that. For example, I want to use the same font for a widget, > > but bold and/or italic, or the same font at a different size. How can > > I do that? > > In GTK 1.2 it's a huge nightmare, but the "eel" library has example > code. Hmm, a nightmare, indeed... But is there no reasonable way to get at least the name (logical font description) of the default font? > In GTK 2 you'd usually just gtk_widget_modify_font() using a font desc > that only has the attribute you want to change set; e.g. just set the > weight, but don't set the font family or anything. > > In GTK 2 you can also use markup labels (see docs on > gtk_label_set_markup()). Sounds great... I should really consider porting my code to GTK2 soon... Thanks, Dominic From seberino@dt092n42.san.rr.com Thu Feb 21 16:58:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 877211927C for ; Thu, 21 Feb 2002 16:58:16 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16e1EE-000081-00; Thu, 21 Feb 2002 13:58:14 -0800 Date: Thu, 21 Feb 2002 13:58:14 -0800 From: Christian Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: How access pixmap info like width&height? (1st arg of configure/expose callback nice...) Message-ID: <20020221135814.A457@spawar.navy.mil> References: <20020220005057.A2332@spawar.navy.mil> <200202211630.LAA01280@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202211630.LAA01280@renoir.op.net>; from pbd@op.net on Thu, Feb 21, 2002 at 06:29:44AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I did some experimentation and printed out the "drawingarea" pointer that pixmap rests on. This first argument turned out to be the same address as the drawingarea rather than the pixmap. I wrote some code that assumed this was true and it worked. Are you sure pixmap is the first arg? Maybe it is in some situations but not others? Chris On Thu, Feb 21, 2002 at 06:29:44AM -0500, Paul Davis wrote: > >Configure and Expose events will use a callback with > >the first argument being a widget that has nice > >info about pixmap to be redrawn like width, height, > >style & "window". > > > >How can I access this widget on my own??? > >Or, how can I get at this > >info for a pixmap some other way??? > > its the widget that *is* the pixmap. that is, if you did: > > GtkWidget *pixmap = gtk_pixmap_new (...); > > and then connected to configure_event and expose_event on that pixmap, > the widget passed as the first argument is precisely that widget. > > you can use it yourself anywhere else, except that its allocation > (width, height), style and window may not be set until certain events > have occured. > > --p -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From hp@redhat.com Thu Feb 21 17:17:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id B7595180E8 for ; Thu, 21 Feb 2002 17:17:45 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LMHiC26415; Thu, 21 Feb 2002 17:17:44 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Dominic =?iso-8859-1?q?Sacr=E9?= Cc: gtk-list@gnome.org Subject: Re: Creating a font based on the GTK default font References: <20020221152609.640801845A@mail.gnome.org> <20020221215746.186C419275@mail.gnome.org> From: Havoc Pennington Date: 21 Feb 2002 17:17:43 -0500 In-Reply-To: <20020221215746.186C419275@mail.gnome.org> Message-ID: Lines: 9 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dominic Sacr=E9 writes:=20 > Hmm, a nightmare, indeed... But is there no reasonable way to get at least > the name (logical font description) of the default font? Not really... you have to use GdkFontPrivate I think. Eel does it somehow or other. Havoc From scherfa@web.de Thu Feb 21 18:59:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp01.web.de [194.45.170.210]) by mail.gnome.org (Postfix) with ESMTP id 1CDE0180D9 for ; Thu, 21 Feb 2002 18:59:21 -0500 (EST) Received: from [143.93.58.49] (helo=rmpc47.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.28 #21) id 16e37P-0000tx-00 for gtk-list@gnome.org; Fri, 22 Feb 2002 00:59:20 +0100 Subject: GtkTreeModel Rows ???? From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 22 Feb 2002 00:58:09 +0100 Message-Id: <1014335890.7997.3.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, i want to know how do i get the number of rows that are inside a GtkTreeModel. The depth of my model is always 1 so im using it instead of a gtkclist. Ok i could count the row number via gtk_tree_model_iter_next but i think thats not a clear way to go. So how could i get the number of rows that are stored inside my gtktreemodel ? Thanks for hints.. Andreas -- Andreas Scherf ICQ: 52910964 scherfa@web.de From rtriay@avantel.net Thu Feb 21 22:50:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h004.c003.snv.cp.net [209.228.32.218]) by mail.gnome.org (Postfix) with SMTP id 46B1618118 for ; Thu, 21 Feb 2002 22:50:15 -0500 (EST) Received: (cpmta 5744 invoked from network); 21 Feb 2002 19:50:11 -0800 Received: from 148.240.116.43 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.218) with SMTP; 21 Feb 2002 19:50:11 -0800 X-Sent: 22 Feb 2002 03:50:11 GMT Received: from triay.net [10.0.0.2] by Proxy+; Thu, 21 Feb 2002 21:47:14 -0600 for Subject: Re: gtk config From: Ramon Alberto Triay Espinosa To: gtk-list@gnome.org Content-Type: multipart/mixed; boundary="=-Am5+mOsrxaf0NmTBZcru" X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 21:54:30 -0500 Mime-Version: 1.0 Message-Id: <20020222035015.46B1618118@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-Am5+mOsrxaf0NmTBZcru Content-Type: text/plain ops! I answered this one , but didn't reply to the group... my solution was kind of old school, and Chris made it with RPM's, i hope someone else's find this helpful. OK SALUDOS!!! rtriay :) --=-Am5+mOsrxaf0NmTBZcru Content-Disposition: inline Content-Description: Reenviado mensaje - Re: gtk config Content-Type: message/rfc822 Subject: Re: gtk config From: Ramon Alberto Triay Espinosa To: cpollock@vvm.com In-Reply-To: <200202202325.g1KNPNVh005874@ns.vvm.com> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 00:18:34 -0500 Mime-Version: 1.0 X-Evolution: 00000001-0010 O.K. so you're suppoused to have the version of GTK that comes with the default instalation of Mandrake 8.1, so what you have to do is exactly what the message says: check the content of the '.bashrc' file in your home path (/home/rtriay in my case) with any text editor and check if the path to the file 'gtk-config' is in the PATH environment variable (a line that looks exactly like the MSDOS one PATH=::...: , how to know where this 'gtk-config' file is? well issue the comand "find / -name 'gtk-config' -depth" (without the double quotation marks), and read the output (that means 'find the file gtk-config begining ftom the root directory and all the subdirectories down), you have to be root or belong to its group to have access to the main system directories where i'm sure gtk-config is located. Finally, when you get the path add the following lines to your '.bashrc' file: PATH=$PATH: EXPORT PATH That's it! now you can try again to install your BookBase. Maybe you'll get another error message similar to this one but asking for the location on glib-config, just follow the same steps described above but for this file. Oh! I forgot to tell, as you see i assumed that you're using the bourne again shell (bash), default to all users in Mandrake. This actions will enable the use of gtk-config/glib-config ONLY to the user whose '.bashrc' file is being changed, if you want to make this path available to all users, append the same changes in '/etc/profile' file, again you'll need to be root or belong to its group to do this. GOOD LUCK!!!! SALUDOS!!! rtriay :) El 20 Feb 2002 17:30:07 -0600, Chris Pollock escribió: > Linux newbie here. I'm trying to install a program named BookBase. During > the installation I get 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: error: Cannot find GTK: Is gtk-config in path? > > As far as I know GTK was installed when I installed Mandrake. I'm running > Mandrake 8.1 Any help for this lost newbie would be appreciated. > > Chris > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > --=-Am5+mOsrxaf0NmTBZcru-- From hvv@hippo.ru Fri Feb 22 02:43:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [195.218.232.218]) by mail.gnome.org (Postfix) with ESMTP id 6D5E618206 for ; Fri, 22 Feb 2002 02:43:53 -0500 (EST) Date: Fri, 22 Feb 2002 12:40:45 +0400 (SAMT) From: Vlad Harchev X-Sender: hvv@localhost.localdomain To: "Bartosz \"Neron\" Leper" Cc: GTK-list Subject: Re: GTK and non-monospace fonts In-Reply-To: <000701c1bb1b$255c4680$4be14dd5@s> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, 21 Feb 2002, Bartosz "Neron" Leper wrote: Hi, That was a bug in gdk fixed personally by me - the standard gtk-1.2.10 already contains the fix - so please upgrade your gtk to version 1.2.10. Best regards, -Vlad > Hello there, > > I'm new here and I'm from Poland, so I'm sorry for my weak English. But I'll > try to explain what's on my mind. > > I'm using Mandrake Linux and I've experienced some problems with displaying > GTK widgets: all applications I have that are written using GTK are > calculating word length incorrectly, which causes labels unreadable in some > cases. > > It happens when I use non-monospace fonts (in Poland we say: proportional > fonts). Nearly each word is displayed correctly, but every space between > words is somehow "strange": sometimes it's normal, somtimes it's illogically > wide (when the word consists of narrow letters, like 'iiii', and sometimes > even "space" means "backspace" (when the word consists of many wide letters, > like 'WWWWW'). I think it's because GTK (or GDK?) counts word width as if it > was written in monospace font (like Courier)! > > Simmilar thing happens in edit boxes (sorry for that Win32 terminology), and > it's even worse: when I try to put caret into box using mouse, I click > between two letters, but the actual point of inserting text appears to be > somewhere else - it's also sounted using monospace font width! > > I am running GTK version 1.2.8-6mdk, but I don't know if it really matters, > because nearly all applications I have are pre-compiled. > > Please help me, because it's really annoying! I don't know if I refer to > appropriate mailing list; if you know some other places to find some info, > please mail me. > > Thanks in anvance, > Nero > > -- > ------====[Bartosz "Neron" Leper]====------ > mailto:bl_nero@o2.pl | IRC: #warsztat > www.nerosite.prv.pl | www.programex.prv.pl > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From shaffei@softhome.net Fri Feb 22 04:23:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from waltz.SoftHome.net (unknown [66.54.152.30]) by mail.gnome.org (Postfix) with SMTP id B576718239 for ; Fri, 22 Feb 2002 04:23:50 -0500 (EST) Received: (qmail 6106 invoked by uid 417); 22 Feb 2002 09:23:50 -0000 Message-ID: <20020222092350.6105.qmail@softhome.net> From: shaffei@softhome.net To: gtk-list@gnome.org Subject: How to remove glib 1.2.9 from my system? Date: Fri, 22 Feb 2002 09:23:50 GMT Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Sender: shaffei@softhome.net Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I've installed glib-1.2.9 on my linux box and I didn't know that glib-1.2.10. When I "./configure" many programs it say that I have to delete the older version. Can you help me removing the 1.2.9? Thank you for your help. Yours, Ibrahim El-Shafei From pvosta@unionbio-eu.com Fri Feb 22 08:38:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 0D5D118981 for ; Fri, 22 Feb 2002 08:38:36 -0500 (EST) Received: (qmail 13960 invoked from network); 22 Feb 2002 13:34:50 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 22 Feb 2002 13:34:50 -0000 Message-ID: <3C764994.376E68C1@unionbio-eu.com> Date: Fri, 22 Feb 2002 14:37:24 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: g_signal_connect_swapped Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am studying the "helloworld.c" example on the gtk.org website, but as the examples are already a mixture of GTK1.2 and GTK2.0, things do not compile as it should. "g_signal_connect_swapped" doesn't compile. eg.: g_signal_connect_swapped (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (gtk_widget_destroy), GTK_OBJECT (window)); Is there still a manual somewhere that describes the GTK1.2 version of GTK ? It seems as if I stepped into GTK in the middle of a transition, and this causes some confusion. Also I will probably still use GTK1.2 for a while as I cannot take the risk of instability of the new GTK2.0 version which will probably be the case in the beginning. Best regards, Peter From hp@redhat.com Fri Feb 22 10:54:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id C6382189D6 for ; Fri, 22 Feb 2002 10:54:00 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1MFrX323242; Fri, 22 Feb 2002 10:53:33 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: pvosta@unionbio-eu.com Cc: GTK-list Subject: Re: g_signal_connect_swapped References: <3C764994.376E68C1@unionbio-eu.com> From: Havoc Pennington Date: 22 Feb 2002 10:53:32 -0500 In-Reply-To: <3C764994.376E68C1@unionbio-eu.com> Message-ID: Lines: 9 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Peter Van Osta writes: > Is there still a manual somewhere that describes the GTK1.2 version of > GTK ? If you download the GTK 1.2 tarballs (gtk+-1.2.x.tar.gz) there's a copy of the 1.2 tutorial in there. Havoc From pbd@op.net Fri Feb 22 11:23:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 8DA3918D82 for ; Fri, 22 Feb 2002 11:23:32 -0500 (EST) Received: from op.net (maxtnt02-141.phlpa.fast.net [209.92.227.141]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA18328 for ; Fri, 22 Feb 2002 11:23:31 -0500 (EST) Received: (from pbd@localhost) by op.net (8.10.1/8.10.1) id g1MGLsh17460; Fri, 22 Feb 2002 11:21:54 -0500 Date: Fri, 22 Feb 2002 11:21:54 -0500 Message-Id: <200202221621.g1MGLsh17460@op.net> From: Paul Davis To: gtk-list@gnome.org Subject: interesting thread issue at exit() Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: GDK registers an exit function to be called on normal process termination. This function will be called from whatever thread calls exit(2). However, the function is not thread safe, and if the thread calling exit(2) is not the "main GUI thread", many nasty things can happen. This is not fixed in GTK+ 1.3/2.0, at least not as of a month or two ago. Do you folks consider this a genuine bug, or a design constraint? --p From hp@redhat.com Fri Feb 22 12:10:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 31D09191B6 for ; Fri, 22 Feb 2002 12:10:19 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1MHA8B12607; Fri, 22 Feb 2002 12:10:08 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: interesting thread issue at exit() References: <200202221621.g1MGLsh17460@op.net> From: Havoc Pennington Date: 22 Feb 2002 12:10:08 -0500 In-Reply-To: <200202221621.g1MGLsh17460@op.net> Message-ID: Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > GDK registers an exit function to be called on normal process > termination. This function will be called from whatever thread calls > exit(2). However, the function is not thread safe, and if the thread > calling exit(2) is not the "main GUI thread", many nasty things can > happen. > > This is not fixed in GTK+ 1.3/2.0, at least not as of a month or two > ago. Do you folks consider this a genuine bug, or a design constraint? > Fri Feb 1 08:57:38 2002 Owen Taylor * gtk/gtkmain.c (gtk_exit_func): Remove this useless atexit handler. (existance pointed out by Stefan Kost) 2001-02-19 Havoc Pennington * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it (gdk_init_check): no atexit func atexit functions are completely evil - the intent is to have none. Havoc From scherfa@web.de Fri Feb 22 13:21:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id C82D218AFE for ; Fri, 22 Feb 2002 13:21:37 -0500 (EST) Received: from [143.93.58.42] (helo=rmpc40.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.28 #21) id 16eKK8-00031H-00 for gtk-list@gnome.org; Fri, 22 Feb 2002 19:21:36 +0100 Subject: GtkTreeModel patch ... From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 22 Feb 2002 19:20:17 +0100 Message-Id: <1014402020.10567.3.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello ,i have written a small patch to get the rows from the GtkTreeModel: ---- gint gtk_tree_model_get_n_rows (GtkTreeModel *model) { gint rows=0; GtkTreeIter iter; if (gtk_tree_model_get_flags (GTK_TREE_MODEL(model))!=GTK_TREE_MODEL_LIST_ONLY) return -1; gtk_tree_model_get_iter_root (GTK_TREE_MODEL(model), &iter); do { rows++; }while ( gtk_tree_model_iter_next(GTK_TREE_MODEL(model),&iter) ); return rows; } ---- So i want to get the rows from a GtkTreeModel (i wanna use it as gtkclist ..) But if i test with gtk_tree_model_get_flags if it was a list .. i didn`t get what i expected there did i misunderstood gtk_tree_model flags ??? Thanks -- Andreas Scherf ICQ: 52910964 scherfa@web.de From MBOWMAN@arinc.com Fri Feb 22 18:22:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from exanpcn4.arinc.com (outmail2.arinc.com [144.243.4.70]) by mail.gnome.org (Postfix) with ESMTP id CBE8E18BBD for ; Fri, 22 Feb 2002 18:22:16 -0500 (EST) Received: from exanpcn1.arinc.com (unverified) by exanpcn4.arinc.com (Content Technologies SMTPRS 4.1.5) with ESMTP id for ; Fri, 22 Feb 2002 18:23:33 -0500 Received: by exanpcn1.arinc.com with Internet Mail Service (5.5.2653.19) id ; Fri, 22 Feb 2002 18:22:30 -0500 Message-ID: <05A70E173104D511A5840002A55C37EE1C478B@exanpmb2.arinc.com> From: "Bowman, Michael W. (MBOWMAN)" To: "'gtk-list@gnome.org'" Subject: How do I find out an object's type using the GTK+ (1.2) type syst em? Date: Fri, 22 Feb 2002 18:22:28 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a situation like the following: void setParms(GtkOpenmapProj* proj, ...) { ... class->normalize_latitude(proj, ...); } GtkOpenmapProj is a base class that has multiple sub-types. Each of the subtypes may override the normalize_latitude method of the GtkOpenmapProj class. However, I don't know which of the subtypes is passed into my function, just that its some sub-type of GtkOpenmapProj. How do I find which type identifier to feed to gtk_type_class() so that I can obtain the class struct for the proper sub-type (and use the proper normalize_latitude function)? How does GTK+ handle polymorphism? Thanks for any help. By the way, I'm assuming use of the GTK+ 1.2 version of the type system. I understand that the system may change some with 2.0, but I'm trying to learn the "simpler" system first. It also helps that a book is available for the earlier system (GGAD). --------------------------------- Michael Bowman mbowman@arinc.com (410) 266-4876 From kasonhuang@kinposh.com.cn Fri Feb 22 20:02:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id D3DF8188C4 for ; Fri, 22 Feb 2002 20:02:12 -0500 (EST) Subject: About the focus move in table? MIME-Version: 1.0 Content-Type: multipart/related; boundary="----_=_NextPart_001_01C1BC05.93F9C4C4"; type="text/html" Date: Sat, 23 Feb 2002 09:01:08 +0800 content-class: urn:content-classes:message x-mimeole: Produced By Microsoft Exchange V6.0.5762.3 Message-ID: <92CD479384374A439EFA0077E7C50F822476B1@kes01.kinposh.com.cn> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: About the focus move in table? Thread-Index: AcG8BZGUSrsvSSg0Eda2ugCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1BC05.93F9C4C4 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable About the focus move in table?

hi guys:
anyone could tell = how to change the focus in three tables(there is a lot of buttons in = each table) with keyboard.
and I find = that  the buttons focus in one table couldn't be changed = smoothly.for example,when you press left key on keyboard,you expect the = focus will move to the left button,however the focus maybe move to the a = button on the bottom of the table.

a table's layout like = following picture:(24 buttons in one table)

3D"ole0.bmp"

when focus in 14 = button,i press down key on keyboard.i expect the focus will move to the = 20 button,the result is the focus moves to the15 button or other = button,not 20 button.the same thing is happen to the 18,20 button.do = anyone knows how to handle with the problem? or how to control the focus = in a table?

Thanks in = advance!
kason



------_=_NextPart_001_01C1BC05.93F9C4C4 Content-Type: image/bmp; name="ole0.bmp" Content-Transfer-Encoding: base64 Content-Description: ole0.bmp Content-Location: No%20AttachName Qk2KLAAAAAAAAD4AAAAoAAAAyQEAAL0AAAABAAEAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAA AP///wD///////////////////////////////////////////////////////////////////// //////+AAAD///////////////////////////////////////////////////////////////// //////////+AAAD///////////////////////////////////////////////////////////// //////////////+AAAD///////////////////////////////////////////////////////// //////////////////+AAAD///////////////////////////////////////////////////// //////////////////////+AAAD///////////////////////////////////////////////// //////////////////////////+AAAD///////////////////////////////////////////// //////////////////////////////+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/+AAAD//f//////v////////f////////////////// +///////////////////////////////////9/+AAAD//f//////v////3///f////////8D//// ////+//////////////n////////////////////9/+AAAD//f//////v////x///f/////3///8 ////////+//////////////3////////////////////9/+AAAD//f//////vwAAP4Af/f/////w AH/+////////+/////////4AD//7////////////////////9/+AAAD//f//////v7//v+///f// ///8///+////////+/////////4////5////////////////////9/+AAAD//fgAHz//v8////f/ /f//////H//+////////+/////////+P///9////////////////////9/+AAAD//f3//7//v+H/ //f//f//////4//9////////+//////////w///8AH//////////////////9/+AAAD//f5//7// v/4///f//f///////H/5////////+//////////+P/4C/5//////////////////9/+AAAD//f8P /9//v/+//+f//f///////7wH////////+///////////n/3/P///////////////////9/+AAAD/ /f/x/9//v/+//+///f///////7+f////////+///////////3/3/v///////////////////9/+A AAD//f/8/8//v/+//+///f///////7/n////////+///////////3/3/3/////////////////// 9/+AAAD//f/+/+//v/+/+E///f///////7/3////////+///////////3/3/z/////////////// ////9/+AAAD//f//f/f/v/+//z///f///////7/3////////+///////////3/7/7/////////// ////////9/+AAAD//f//f/f/v/+//////f///////X/v////////+///////////v/7/9/////// ////////////9/+AAAD//f//f/f/v/9//////f///////P+f////////+//////////+f/7/9/// ////////////////9/+AAAD//f//f/f/v/B//////f////////w/////////+//////////5//9/ ////////////////////9/+AAAD//fwAf/f/v////////f//////////////////+/////////// //9/////////////////////9/+AAAD//f//////v////////f//////////////////+/////// //////9/////////////////////9/+AAAD//f//////v////////f//////////////////+/// ////////////////////////////////9/+AAAD//f//////v////////f////////////////// +///////////////////////////////////9/+AAAD//f//////v////////f////////////// ////+///////////////////////////////////9/+AAAD//f//////v////////f////////// ////////+///////////////////////////////////9/+AAAD//f//////v////////f////// ////////////+///////////////////////////////////9/+AAAD//f//////v////////f// ////////////////+///////////////////////////////////9/+AAAD//f//////v/////// /f//////////////////+///////////////////////////////////9/+AAAD//f//////v/// /////f//////////////////+///////////////////////////////////9/+AAAD//f////// v////////f//////////////////+///////////////////////////////////9/+AAAD//f// ////v////////f//////////////////+///////////////////////////////////9/+AAAD/ /f//////v////////f//////////////////+///////////////////////////////////9/+A AAD//f//////v////////f//////////////////+/////////////////////////////////// 9/+AAAD//f//////v////////f//////////////////+/////////////////////////////// ////9/+AAAD//f//////v////////f//////////////////+/////////////////////////// ////////9/+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAB/+AAAD//f//////v////////f////////f/////////+////////9////////// ////////////////9/+AAAD//f//////v////////f////////f/////////+////////9////// ////////////////////9/+AAAD//f//////v////////f////////f////+P///+////////9// ////////////////////////9/+AAAD//f//////v////////f///8////f//3/+wf//+/////P/ /9//////////////////////////9/+AAAD//f//////v////////f///+////f//3/+/v//+//3 //v//9//////////v///////////////9/+AAAD//f//////v////////f///+////f//7/+/v// +//3//v//9//////4f4AP///////////////9/+AAAD//f//////v///8H///f////f///f//7/+ /v//+//3//3//9//////4AD/////////////////9/+AAAD//f//////v///77///f////f///f/ /9/+/v//+//7//7//9///////9////gD////////////9/+AAAD//f//////v///39///f/n//v/ //f//9//PP//+//7//7//9///////8///+f8////////////9/+AAAD//f//////v///P9///f/7 //v///f//+//jf//+//7//7//9////////P//+/+////////////9/+AAAD//f//////v/f/f9// /f/7//3///f//+//4f//+//9//7//9////////3//+//f///////////9/+AAAD//f//////v/f/ f9///f/7//3///f//+//8///+//9//9//9////////7//+//f///////////9/+AAAD//e//5/// v/P/fz///f/9//7///f///f/6f//+//9//9//9////////7//+//f///////////9/+AAAD//e// iP//v/3/YP///f/9//7///f///f/3f//+//+//9//9////////5//+//v///////////9/+AAAD/ /e//P3//v/3/f////f/9//7///f///f/vf//+//+//+//9////////9//+//v///////////9/+A AAD//ff//3//v/7/f////f/+//9///f///f+ff//+///f/+//9////////9///f/v/////////// 9/+AAAD//ff//3//v/7/v////f/+//+///f///f+/f//+///f4A//9////////9///H/f/////// ////9/+AAAD//fv//3//v/7/n////f/+//+///f///f+////+///f7+//9////////9///X/f/// ////////9/+AAAD//fv//n//v/9/z////f/+///f//f///v+f///+///f3+//9////////9///3+ ////////////9/+AAAD//f3//v//v/9/8////f/+///f//f///v/gP//+///f3/v/9////////9/ //z9////////////9/+AAAD//f3/4P//v/9//f///f/+//gf//f///v/////+////3/v/9////// //9///57////////////9/+AAAD//f3/n9//v/+//P///f/+/4f///f///v/////+////3/3/9// //////9///8H////////////9/+AAAD//f7/3h//v/+//v///f/+/n////f///v/////+////3/3 /9////////9/////////////////9/+AAAD//f7/wf//v/+//////f/+//////f///v/////+/// /5/3/9////////9/////////////////9/+AAAD//f9/7///v/+//////f/+//////f///v///// +////+AH/9////////7/////////////////9/+AAAD//f9/9///v/+//////f////////f///// ////+////////9///////+D/////////////////9/+AAAD//f9/9///v////////f////////f/ ////////+////////9//////////////////////////9/+AAAD//f//////v////////f////// //f/////////+////////9//////////////////////////9/+AAAD//f//////v////////f// //////f/////////+////////9//////////////////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9//////////////////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9//////////////////////////9/+AAAD//f////// v////////f////////f/////////+////////9//////////////////////////9/+AAAD//f// ////v////////f////////f/////////+////////9//////////////////////////9/+AAAD/ /f//////v////////f////////f/////////+////////9//////////////////////////9/+A AAD//f//////v////////f////////f/////////+////////9////////////////////////// 9/+AAAD//f//////v////////f////////f/////////+////////9////////////////////// ////9/+AAAD//f//////v////////f////////f/////////+////////9////////////////// ////////9/+AAAD//f//////v////////f////////f/////////+////////9////////////// ////////////9/+AAAD//f//////v////////f////////f/////////+////////9////////// ////////////////9/+AAAD//f//////v////////f////////f/////////+////////9////// ////////////////////9/+AAAD//f//////v////////f////////f/////////+////////9// ////////////////////////9/+AAAD//f//////v////////f////////f/////////+/////// /9//////////////////////////9/+AAAD//f//////v////////f////////f/////////+/// /////9//////////////////////////9/+AAAD//f//////v////////f////////f///////// +////////9//////////////////////////9/+AAAD//f//////v////////f////////f///// ////+////////9//////////////////////////9/+AAAD//f//////v////////f////////f/ ////////+////////9//////////////////////////9/+AAAD//f//////v////////f////// //f/////////+////////9//////////////////////////9/+AAAD//f//////v////////f// //////f/////////+////////9//////////////////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9//////////////////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9//////////////////////////9/+AAAD//f////// v////////f////////f/////////+////////9//////////////////////////9/+AAAD//f// ////v////////f////////f/////////+////////9//////////////////////////9/+AAAD/ /AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/+A AAD//f//////v////////f////////f/////////+////////9////////////3///////////// 9/+AAAD//f//////v////////f////////f/////////+//////j/9////////////3///////// ////9/+AAAD//f//////v///n////f////////f/////////+/////AP/9////////////3///// ////////9/+AAAD//f//4f//v///3////f////////f/////////+////Af//9/////v//////3/ ////////////9/+AAAD//f//7n//v///3////f////////f/////////+//+/P///9/////v//// //3//////v//////9/+AAAD//f//75//v///3////f/3/8B///f/////////+//+fv///9/////v //////3///3//3//////9/+AAAD//f//79//v///3////f/7/98///f/////f///+///fn///9// ///v//////3///3//3//////9/+AAAD//f//79//v///7////f/7/9+f//f/////v///+///f3// /9/////v//P///3///3//z//////9/+AAAD//f//79//v///7////f/7/9/f//f/////v///+/// v4///9/////v//AA//3///7//7//////9/+AAAD//f//79//v///7////f/7/9/f//f///P/v/// +///3/A//9/////v///+P/3///7//7//////9/+AAAD//f//79//v///7////f/9/9/f//f///v/ 3///+///3//f/9/////3////v/3///7//9//////9/+AAAD//f//59//v///9////f/9/9/f//f/ //v/3///+///3//f/9/////3////3/3///7/v9/f////9/+AAAD//f//99//v///9////f/+/9/f //f///3/3///+///7//f/9/////3////3/3///9/gAAf////9/+AAAD//f//89//v///+////f/+ /+/f//f///3/7///+///7//f/9/////3////3/3///9/3+f/////9/+AAAD//f//+Z//v///+/// /f//f+/f//f///7/7///+///9//f/9/////3////3/3///+/z/f/////9/+AAAD//f///H//v/// +f///f//v+/f//f///7/7///+///9//f/9/////3////3/3///+/7/P/////9/+AAAD//f//+P// v////f///f//v/ff//f///7/9///+///9/+f/9/////3////3/3///+/5/3/////9/+AAAD//f// 5v//v///8P///f//v/ff//f///7/9///+///+/8//9/////3////n/3////f9/z/////9/+AAAD/ /f//33//v///73///f//v/uf//f///9/9///+///+/5//9/////3//8AP/3////v+/7/////9/+A AAD//f//vz//v///7z///f//3/2///f///9/9///+///+/n//9/////3/+D///3////v+f7///// 9/+AAAD//f//f7//v///7////f//3/9///f///9/9///+///+/P//9/////3//P///3////3/f// ////9/+AAAD//f/+/7//v///77///f//3/7///f///9/9///+///+////9/////3//w///3////3 /v//////9/+AAAD//f/+/7//v///77///f//3/////f///9/9///+////////9/////3///P//3/ ///3/n//////9/+AAAD//f/+/7//v///79///f//3/////f///9/////+////////9/////3///z //3////3/7//////9/+AAAD//f/+/7//v///79///f//3/////f/////////+////////9/////3 /v/7//3//////7//////9/+AAAD//f/+/z//v///79///f//3/////f/////////+////////9// ///3/j/7//3/////////////9/+AAAD//f/+/3//v///99///f////////f/////////+/////// /9///////8AH//3/////////////9/+AAAD//f/+fv//v///9+///f////////f/////////+/// /////9////////////3/////////////9/+AAAD//f//fv//v///++///f////////f///////// +////////9////////////3/////////////9/+AAAD//f//AP//v///+Y///f////////f///// ////+////////9////////////3/////////////9/+AAAD//f//////v////D///f////////f/ ////////+////////9////////////3/////////////9/+AAAD//f//////v////////f////// //f/////////+////////9////////////3/////////////9/+AAAD//f//////v////////f// //////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9////////////3/////////////9/+AAAD//f////// v////////f////////f/////////+////////9////////////3/////////////9/+AAAD//f// ////v////////f////////f/////////+////////9////////////3/////////////9/+AAAD/ /f//////v////////f////////f/////////+////////9////////////3/////////////9/+A AAD//f//////v////////f////////f/////////+////////9////////////3///////////// 9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///////// ////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///// ////////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3/ ////////////9/+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAB/+AAAD//f//////v////////f////////f/////////+////////9////// //////3/////////////9/+AAAD//f//////v////////f////////f/////////+////////9// //////////3/////////////9/+AAAD//f//////v////////f////////f/////////+/////// /9/////4AH////3/////////////9/+AAAD//f//////v////////f////////f/////////+/// /////9/////3/7////3/////////////9/+AAAD//f//////v////+B//f////////f///P///// +///wP///9/////3/7////3/////f///////9/+AAAD//f//////v///AB///f////////f///n/ ////+///nw///9/////3/9////3/////v///////9/+AAAD//f//z///v//8/////f/9//////f/ //3/////+///P+///9/////3/9////3/////v///////9/+AAAD//f//7///v//j/////f/8AP// //f///z/////+////+///9/////3/9////3/////3///////9/+AAAD//f//7///v//z/////f// /wH///f///5/////+////+///9/////3/D////3/////3///////9/+AAAD//f//7///v//9//// /f////7///f///9/////+////+///9/////zw/////3/////z///////9/+AAAD//f//7///v//+ f////f////7///f///+/////+////8///9/////wP/////3/////7///////9/+AAAD//f//7/// v///g////f////z///f////f////+////7///9/////3//////3/////9///////9/+AAAD//f// 7///v////H///f////3///f/8//v////+////z///9/////3//////3/////+///////9/+AAAD/ /f//7///v////5///f////v///f/+AAAP///+////H///9/////3//////3/////+///////9/+A AAD//f//7///v////9///f////P///f//f/3z///+///4////9/////3//////3//////f////// 9/+AAAD//f//7///v////9///f///8////f//v/7////+///7////9/////3//////3//////f// ////9/+AAAD//f//7///v////x///f///j////f//n/5////+///8AP//9/////3//////3///// /v//////9/+AAAD//f//7///v///+P///f//4f////f//z/9////+///8////9/////7//////3/ /////z//////9/+AAAD//f//7///v///h////f/+H/////f//4/+////+///+////9/////7//// //3//////5//////9/+AAAD//f//7///v///P////f//4H////f//+/+////+///+////9/////9 //////3//////+f/////9/+AAAD//f//7///v////////f///4////f///P+f///+///+f///9// ///+//////3///////j/////9/+AAAD//f//7///v////////f///+////f///n/f///+////f// /9/////+f/////3///////8/////9/+AAAD//f//7///v////////f///+////f///7/f///+/// /f///9//////n/////3////////P////9/+AAAD//f//7///v////////f///+////f///5///// +////f///9//////7/////3/////wAAP////9/+AAAD//f//7///v////////f///x////f///+/ ////+////////9//////7/////3/////////////9/+AAAD//f//7///v////////f/8AP////f/ //+/////+////////9////////////3/////////////9/+AAAD//f//////v////////f////// //f/////////+////////9////////////3/////////////9/+AAAD//f//////v////////f// //////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9////////////3/////////////9/+AAAD//f////// v////////f////////f/////////+////////9////////////3/////////////9/+AAAD//f// ////v////////f////////f/////////+////////9////////////3/////////////9/+AAAD/ /f//////v////////f////////f/////////+////////9////////////3/////////////9/+A AAD//f//////v////////f////////f/////////+////////9////////////3///////////// 9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///////// ////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///// ////////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3/ ////////////9/+AAAD//f//////v////////f////////f/////////+////////9////////// //3/////////////9/+AAAD//f//////v////////f////////f/////////+////////9////// //////3/////////////9/+AAAD//f//////v////////f////////f/////////+////////9// //////////3/////////////9/+AAAD//f//////v////////f////////f/////////+/////// /9////////////3/////////////9/+AAAD//f//////v////////f////////f/////////+/// /////9////////////3/////////////9/+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/+AAAD///////////////////////////////// //////////////////////////////////////////+AAAD///////////////////////////// //////////////////////////////////////////////+AAAD///////////////////////// //////////////////////////////////////////////////+AAAD///////////////////// //////////////////////////////////////////////////////+AAAD///////////////// //////////////////////////////////////////////////////////+AAAD///////////// //////////////////////////////////////////////////////////////+AAAD///////// //////////////////////////////////////////////////////////////////+AAAD///// //////////////////////////////////////////////////////////////////////+AAAD/ //////////////////////////////////////////////////////////////////////////+A AAA= ------_=_NextPart_001_01C1BC05.93F9C4C4-- From superylam@netscape.net Fri Feb 22 20:12:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imo-r08.mx.aol.com (imo-r08.mx.aol.com [152.163.225.104]) by mail.gnome.org (Postfix) with ESMTP id A701818D43 for ; Fri, 22 Feb 2002 20:12:47 -0500 (EST) Received: from superylam@netscape.net by imo-r08.mx.aol.com (mail_out_v32.5.) id h.13a.138afd9 (16232) for ; Fri, 22 Feb 2002 20:12:40 -0500 (EST) Received: from netscape.net (pcd331066.netvigator.com [203.218.121.66]) by air-in02.mx.aol.com (v83.35) with ESMTP id MAILININ28-0222201240; Fri, 22 Feb 2002 20:12:40 -0500 Message-ID: <3C77A283.30609@netscape.net> Date: Sat, 23 Feb 2002 09:09:07 -0500 From: Lam Yick Yan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk->deviceid How to use? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I have just devleoped a X input driver for my small graphic tablet. And it is working.... Now I have cursor that will move according to mouse OR graphic tablet. Now I want to develope a gtk application that will ONLY respond the event from my graphic tablet. I have a callback function in my GTK application, motion_notify_event and I have compared the event content of my mouse and my graphic tablet and they look the same (the deviceid content etc). and I have no way to distuguish whether the event is from the mouse or from the graphic tablet. What did I do wrong in my driver? can please have a look at http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether I did wrong in the device driver? Yick Hong Kong china From hp@redhat.com Fri Feb 22 23:40:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 49C4A182B1 for ; Fri, 22 Feb 2002 23:40:43 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1N4eg531923; Fri, 22 Feb 2002 23:40:42 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Bowman, Michael W. (MBOWMAN)" Cc: "'gtk-list@gnome.org'" Subject: Re: How do I find out an object's type using the GTK+ (1.2) type syst em? References: <05A70E173104D511A5840002A55C37EE1C478B@exanpmb2.arinc.com> From: Havoc Pennington Date: 22 Feb 2002 23:40:41 -0500 In-Reply-To: <05A70E173104D511A5840002A55C37EE1C478B@exanpmb2.arinc.com> Message-ID: Lines: 38 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Bowman, Michael W. \(MBOWMAN\)" writes: > I have a situation like the following: > > void > setParms(GtkOpenmapProj* proj, ...) { > ... > class->normalize_latitude(proj, ...); > } > > GtkOpenmapProj is a base class that has multiple sub-types. Each of the > subtypes may > override the normalize_latitude method of the GtkOpenmapProj class. However, > I don't > know which of the subtypes is passed into my function, just that its some > sub-type of > GtkOpenmapProj. How do I find which type identifier to feed to > gtk_type_class() so > that I can obtain the class struct for the proper sub-type (and use the > proper > normalize_latitude function)? How does GTK+ handle polymorphism? Just look at any example in GTK itself. You should not need the subtype's class, just GtkOpenmapProjClass, which contains the normalize_latitude function. The whole point of virtual functions is you don't have to know the type of the object, isn't it? Usually people write a wrapper function: void gtk_openmap_proj_normalize_latitude (GtkOpenmapProj *proj) { GTK_OPENMAP_PROJ_GET_CLASS (proj)->normalize_latitude (proj); } Havoc From rbultje@ronald.bitfreak.net Sat Feb 23 07:49:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id 46D3F180D8 for ; Sat, 23 Feb 2002 07:49:47 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1NCds4K029012 for ; Sat, 23 Feb 2002 13:39:54 +0100 (CET) Subject: bug/missing feature in gtk2 From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 23 Feb 2002 13:49:45 +0100 Message-Id: <1014468585.18710.0.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm not sure whether to call this a bug or a missing feature... First of all, gtk-1.3.14 fixed the bug where my picture disappeared if I highlighted the button to which it was attached, thanks! Now, I've noticed something else that might be wrong. I have the following code: menu = gtk_menu_new(); for (i=0;iaudio_recsrc, menu); gtk_widget_show_all(menu); prefs->audio_recsrc is a GtkOptionMenu. The problem is that hat images *do* appear in the menu if it pops up, but not in the GtkOptionMenu itself with the selected item. I hope the following two screenshots can make clear what I mean: http://ronald.bitfreak.net/images/icon-problem-1.png http://ronald.bitfreak.net/images/icon-problem-2.png In the second one, you'll notice that the icon is not being shown in front of the selected item, while in the popup-menu itself, the icons are being shown. I'm not sure whether to call this a bug or a missing feature. Should I report this somewhere? Secondly (this is very offtopic), I'm getting my icons from the 'tigert' collection (http://primates.ximian.com/~tigert/new_stock_project/). According to that page, these icons are supposed to be part of gtk's stock icon collection, however, I can't find the media-rec, media-pause and media-stop icons as stock icons in Gtk. Are they supposed to be in some other package than Gtk? Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From sven@gimp.org Sat Feb 23 08:47:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD95871C7.dip.t-dialin.net [217.88.113.199]) by mail.gnome.org (Postfix) with ESMTP id AACDF18EE6 for ; Sat, 23 Feb 2002 08:47:39 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ecWU-0002tx-00; Sat, 23 Feb 2002 14:47:34 +0100 To: Lam Yick Yan Cc: gtk-list@gnome.org Subject: Re: gtk->deviceid How to use? References: <3C77A283.30609@netscape.net> From: Sven Neumann Date: 23 Feb 2002 14:47:34 +0100 In-Reply-To: <3C77A283.30609@netscape.net> Message-ID: Lines: 20 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Lam Yick Yan writes: > I have just devleoped a X input driver for my small graphic tablet. > And it is working.... Now I have cursor that will move according to > mouse OR graphic tablet. > > Now I want to develope a gtk application that will ONLY respond > the event from my graphic tablet. I have a callback function in my GTK > application, motion_notify_event and I have compared the event content > of my mouse and my graphic tablet and they look the same (the deviceid > content etc). and I have no way to distuguish whether the event is from the > mouse or from the graphic tablet. one thing you should check before you start to debug your driver is whether GTK+ was compiled with xinput support (configure --with-xinput=xfree). Salut, Sven From otaylor@redhat.com Sat Feb 23 09:36:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 85889180D8 for ; Sat, 23 Feb 2002 09:36:50 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id C161B241BE2; Sat, 23 Feb 2002 09:36:49 -0500 (EST) To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: bug/missing feature in gtk2 References: <1014468585.18710.0.camel@tux> From: Owen Taylor In-Reply-To: Ronald Bultje's message of "23 Feb 2002 13:49:45 +0100" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 35 Message-Id: <20020223143649.C161B241BE2@fresnel.labs.redhat.com> Date: Sat, 23 Feb 2002 09:36:49 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > prefs->audio_recsrc is a GtkOptionMenu. The problem is that hat images > *do* appear in the menu if it pops up, but not in the GtkOptionMenu > itself with the selected item. I hope the following two screenshots can > make clear what I mean: > http://ronald.bitfreak.net/images/icon-problem-1.png > http://ronald.bitfreak.net/images/icon-problem-2.png > In the second one, you'll notice that the icon is not being shown in > front of the selected item, while in the popup-menu itself, the icons > are being shown. I'm not sure whether to call this a bug or a missing > feature. Should I report this somewhere? I'd say it's a "known limitation" rather than either a bug or missing feature. I doubt we'll fix it in the context of GtkOpttionMenu, but if you want to file a bug report on the issue on bugzilla.gnome.org that will remind us to look at the issue of Icon/Text combination items for the new combo/option menu widget that is scheduled to be done for GTK+-2.2. > Secondly (this is very offtopic), I'm getting my icons from the 'tigert' > collection (http://primates.ximian.com/~tigert/new_stock_project/). > According to that page, these icons are supposed to be part of gtk's > stock icon collection, however, I can't find the media-rec, media-pause > and media-stop icons as stock icons in Gtk. Are they supposed to be in > some other package than Gtk? These icons weren't there when we finalized the set of stock icons for GTK+-2.0; they'll most likely be added for 2.2. You can package them with your application and register them as stock icons yourself, (with stock id's like myprogr-media-rec) and then when GTK+-2.2 switch to using the official version. Regards, Owen From otaylor@redhat.com Sat Feb 23 09:39:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 540BB18EC4 for ; Sat, 23 Feb 2002 09:39:48 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 121B5241BE2; Sat, 23 Feb 2002 09:39:47 -0500 (EST) To: Valdis.Kletnieks@vt.edu Cc: Vincent Arkesteijn , gtk-list@gnome.org Subject: Re: Interesting suid problem References: <20020221223053.A6053@ken> <200202212139.g1LLdlVj032087@foo-bar-baz.cc.vt.edu> From: Owen Taylor In-Reply-To: Valdis.Kletnieks@vt.edu's message of "Thu, 21 Feb 2002 16:39:47 -0500" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 18 Message-Id: <20020223143947.121B5241BE2@fresnel.labs.redhat.com> Date: Sat, 23 Feb 2002 09:39:47 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Valdis.Kletnieks@vt.edu writes: > On Thu, 21 Feb 2002 22:30:54 +0100, Vincent Arkesteijn said: > > > Why? Just put the password in the program, and give your users > > execute permission, but no read permission on the program. It > > may not be too elegant, and it's a bit clumsy when you want to > > change the password, but it's the simplest solution. > > Still vulnerable to attack via gdb/dbx or ptrace(), but that's a > question of whether your threat model includes somebody both that > determined and skilled... You can't gdb/ptrace a non-readable executable on most operating systems. Regards, Owen From rbultje@ronald.bitfreak.net Sat Feb 23 11:04:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id A4C1D18108 for ; Sat, 23 Feb 2002 11:04:11 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1NFsI4K004660 for ; Sat, 23 Feb 2002 16:54:18 +0100 (CET) Subject: Re: bug/missing feature in gtk2 From: Ronald Bultje To: gtk-list@gnome.org In-Reply-To: <20020223143649.C161B241BE2@fresnel.labs.redhat.com> References: <1014468585.18710.0.camel@tux> <20020223143649.C161B241BE2@fresnel.labs.redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 23 Feb 2002 17:04:10 +0100 Message-Id: <1014480250.18709.5.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, 2002-02-23 at 15:36, Owen Taylor wrote: > I'd say it's a "known limitation" rather than either a bug or missing feature. > I doubt we'll fix it in the context of GtkOpttionMenu, but if you > want to file a bug report on the issue on bugzilla.gnome.org that will > remind us to look at the issue of Icon/Text combination items for the > new combo/option menu widget that is scheduled to be done for GTK+-2.2. I filed it on bugzilla, hope it'll be fixed one day. But if I understand you correctly, there's little chance that it'll be "fixed" for Gtk+-2.0? For the archives then, here's code I use as a workaround (got this idea while looking in the sourcecode of GtkImageMenuItem): static GtkWidget * gtk_menu_item_with_image (const gchar *labeltxt, const gchar **pixmap) { GtkWidget *hbox, *menuitem, *label, *image; menuitem = gtk_menu_item_new(); hbox = gtk_hbox_new(FALSE, 5); image = gtk_image_new_from_pixbuf(gdk_pixbuf_new_from_xpm_data(pixmap)); gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0); gtk_widget_show(image); label = gtk_label_new(labeltxt); gtk_misc_set_alignment(GTK_MISC(label), 0.0, GTK_MISC(label)->yalign); gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0); gtk_widget_show(label); gtk_container_add(GTK_CONTAINER(menuitem), hbox); gtk_widget_show(hbox); return menuitem; } and then for the menus: [..] menu = gtk_menu_new(); pixmap = (const gchar**) audio_src_volume_xpm; for (i=0;iaudio_recsrc, menu); gtk_widget_show_all(menu); [..] Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From otaylor@redhat.com Sat Feb 23 11:20:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 8CAFC18F32 for ; Sat, 23 Feb 2002 11:20:55 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id D65CD241BE2; Sat, 23 Feb 2002 11:20:54 -0500 (EST) To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: bug/missing feature in gtk2 References: <1014468585.18710.0.camel@tux> <20020223143649.C161B241BE2@fresnel.labs.redhat.com> <1014480250.18709.5.camel@tux> From: Owen Taylor In-Reply-To: Ronald Bultje's message of "23 Feb 2002 17:04:10 +0100" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 24 Message-Id: <20020223162054.D65CD241BE2@fresnel.labs.redhat.com> Date: Sat, 23 Feb 2002 11:20:54 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > On Sat, 2002-02-23 at 15:36, Owen Taylor wrote: > > I'd say it's a "known limitation" rather than either a bug or missing feature. > > I doubt we'll fix it in the context of GtkOpttionMenu, but if you > > want to file a bug report on the issue on bugzilla.gnome.org that will > > remind us to look at the issue of Icon/Text combination items for the > > new combo/option menu widget that is scheduled to be done for GTK+-2.2. > > I filed it on bugzilla, hope it'll be fixed one day. But if I understand > you correctly, there's little chance that it'll be "fixed" for Gtk+-2.0? To change GtkImageMenuitem to make the image/label pair, instead of the label GTK_BIN(item)->child would be an API change and we are completely API frozen at this point. So, it's "just the way it works" (we could hack GtkOptionMenu to do something special for GtkImageMenuItem... but it would a reasonable amount of ugly code.) Regards, Owen From bl_nero@o2.pl Sat Feb 23 16:59:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rekin.go2.pl (rekin4.go2.pl [212.126.20.8]) by mail.gnome.org (Postfix) with ESMTP id 8EB1B180D8 for ; Sat, 23 Feb 2002 16:59:41 -0500 (EST) Received: from s (pa34.piotrkow.cvx.ppp.tpnet.pl [213.77.224.34]) by rekin.go2.pl (Mailer_v2.01) with SMTP id C79B76EFB3; Sat, 23 Feb 2002 22:59:37 +0100 (CET) Message-ID: <001201c1bcb5$60c043c0$22e04dd5@s> From: "Bartosz \"Neron\" Leper" To: "Vlad Harchev" Cc: "GTK-list" References: Subject: Re: GTK and non-monospace fonts Date: Sat, 23 Feb 2002 22:58:29 +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 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Hi, > > That was a bug in gdk fixed personally by me - the standard gtk-1.2.10 > already contains the fix - so please upgrade your gtk to version 1.2.10. > > Best regards, > -Vlad Thanks a lot. That was quite easy. I have downloaded and installed version 1.2.10 and my own programs are now OK. But is there any chance to "patch" my pre-compiled applications somehow without recompiling all of them? I have no sources and no time to download them all. Thanks again, Nero -- ------====[Bartosz "Neron" Leper]====------ mailto:bl_nero@o2.pl | IRC: #warsztat www.nerosite.prv.pl | www.programex.prv.pl ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From johnnyb@localhost.localdomain Sat Feb 23 19:58:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by mail.gnome.org (Postfix) with ESMTP id 1AD4B180D8 for ; Sat, 23 Feb 2002 19:58:36 -0500 (EST) Received: (from johnnyb@localhost) by localhost.localdomain (8.11.6/8.11.6) id g1O0xZt32057 for gtk-list@gnome.org; Sat, 23 Feb 2002 19:59:35 -0500 Date: Sat, 23 Feb 2002 19:59:35 -0500 From: "Johnny B ." To: gtk-list@gnome.org Subject: linking problem Message-ID: <20020223195935.C31813@tasha.vonbek.dhs.org> Reply-To: "Johnny B ." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Greetings all! Ive installed glib and gtk from source, run ldconfig and so on and I think everything is installed ok (pertinent data below), yet I'm getting a few errors when linking and app: /tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' /tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' /tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' Assuming that I have everything installed ok and that this is just a silly user error, which include or library covers these? I've grepped like crazy in /usr/lib and /usr/include ... gtk/glib is setup as such: [johnnyb@tasha lib]$ gtk-config --cflags --libs -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/X11R6/include -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm Is there a file I should be including? I'm trying to build the classic helloworld.c in section 2.1 of the tutorial. I can build it if I use the massive Makefile provided with the samples, but I'm trying to make my own makefile to see what is required for the build. There's just too much gtk info on the internet to search effectively for this, but Ill keep trying. Thanks - JB +--------------------------------- | John Bleichert | syborg@stny.rr.com | http://vonbek.dhs.org/latest.jpg From hp@redhat.com Sat Feb 23 20:13:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 7D96F180D8 for ; Sat, 23 Feb 2002 20:13:22 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1O1DL832259; Sat, 23 Feb 2002 20:13:21 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Johnny B ." Cc: gtk-list@gnome.org Subject: Re: linking problem References: <20020223195935.C31813@tasha.vonbek.dhs.org> From: Havoc Pennington Date: 23 Feb 2002 20:13:21 -0500 In-Reply-To: <20020223195935.C31813@tasha.vonbek.dhs.org> Message-ID: Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Johnny B ." writes: > > Ive installed glib and gtk from source, run ldconfig and so on and I > think everything is installed ok (pertinent data below), yet I'm > getting a few errors when linking and app: > > /tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' > /tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' > /tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' > Turn on warnings for your compiler, then eliminate all warnings like "function G_CALLBACK has not been declared" Havoc From hp@redhat.com Sat Feb 23 20:13:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 2FC52180D8 for ; Sat, 23 Feb 2002 20:13:42 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1O1DfA32263; Sat, 23 Feb 2002 20:13:41 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Johnny B ." Cc: gtk-list@gnome.org Subject: Re: linking problem References: <20020223195935.C31813@tasha.vonbek.dhs.org> From: Havoc Pennington Date: 23 Feb 2002 20:13:41 -0500 In-Reply-To: <20020223195935.C31813@tasha.vonbek.dhs.org> Message-ID: Lines: 6 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, (The way you eliminate the warnings is to include gtk/gtk.h) Havoc From superylam@netscape.net Sat Feb 23 20:31:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imo-r06.mx.aol.com (imo-r06.mx.aol.com [152.163.225.102]) by mail.gnome.org (Postfix) with ESMTP id 5AFFD180D8 for ; Sat, 23 Feb 2002 20:31:22 -0500 (EST) Received: from superylam@netscape.net by imo-r06.mx.aol.com (mail_out_v32.5.) id h.19.30351f3 (16233) for ; Sat, 23 Feb 2002 20:31:19 -0500 (EST) Received: from netscape.net (pcd331236.netvigator.com [203.218.121.236]) by air-in02.mx.aol.com (v83.35) with ESMTP id MAILININ29-0223203118; Sat, 23 Feb 2002 20:31:18 -0500 Message-ID: <3C78F85E.6010307@netscape.net> Date: Sun, 24 Feb 2002 09:27:42 -0500 From: Lam Yick Yan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How gtk distinguish event from differnt input device? References: <3C77A283.30609@netscape.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I have asked similar question before but may be the subject is not very attractive, I ask again, using a different subject. Suppose I have 3 input devices, one PS/2 and one COM port and one USB mouse. Now I am writing a GTK application with a drawing area, and I have a callback event handler to handle motion_notify_event. Is it possible to distinguish from which device the motion event is triggered? In the gint motion_notify(GtkWidget *widget, GdkEvent *event), I have study throught every field in the event structure, and I cannot find a way to tell from which device the event is generated, can some one please instruct me how to do so? An example or a pointer to webpage will be greatly appreciated. Yick Lam Hong Kong, Chna From otaylor@redhat.com Sun Feb 24 01:58:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id A2CC0180EA; Sun, 24 Feb 2002 01:58:19 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id C5086241BE2; Sun, 24 Feb 2002 01:58:18 -0500 (EST) To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Reply-To: gtk-devel-list@gnome.org Subject: New release of GTK+ libraries (1.3.15). Please test! From: Owen Taylor User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 155 Message-Id: <20020224065818.C5086241BE2@fresnel.labs.redhat.com> Date: Sun, 24 Feb 2002 01:58:18 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: A new release of GTK+ and associated libraries (GLib, Pango, Atk) is now available at: ftp://ftp.gtk.org/pub/gtk/v1.3/ This is the last scheduled pre-release before GTK+-2.0, so we'd really appreciate it if people developing with GTK+ would try compiling and using these libraries so we catch problems before we release. Bugs should be reported to http://bugzilla.gnome.org. The relevant products are gtk+, glib, pango, and atk. We'd also appreciate reports of successful compilation, especially on less common platforms; please send such reports to gtkdev@gnome.org. Information on platform, operating system (and distribution for Linux), operating system version, and compiler is useful. The JPEG/PNG/TIFF libraries, and pkg-config 0.8 or newer are needed to compile this release. These are available at: ftp://ftp.gtk.org/pub/gtk/v1.3/dependencies/ (The canonical upstream location for pkg-config is http://www.freedesktop.org/software/pkgconfig/. But gtk.org mirrors the 0.11 version you need to build GTK+) You will also need "libiconv" on systems with C libraries that lack the iconv() function: http://www.gnu.org/software/libiconv/ And the libintl library from the GNU "gettext" package if your C library doesn't have gettext() functionality: http://www.gnu.org/software/gettext/ Overview of Changes in GLib 1.3.15: =================================== * Speed up marshalers by using private access to GValue [Anders Carlsson, Tim Janik] * Reduce GValue to 2 elements [Tim] * Add G_DEBUG environment variable, G_DEBUG=fatal_warnings [Matthias Clasen] * Fixes for AIX compilation [Miroslaw Dobrzanski-Neumann] * Add padding to various structures [Owen Taylor, Tim] * Win32 fixes [Tor Lillquist] Other contributors: Daniel Elstner, James Henstridge, Ryan Lovett, Morten Welinder, Overview of Changes in Pango 0.26 ================================= * Fixes for AIX compilation [Miroslaw Dobrzanski-Neumann] * Fix zero-width characters being displayed [Sven Neumann] * Add some padding to class structures [Owen Taylor] Overview of Changes in Atk 0.13 ================================= * Add padding to class structures for future expansion [Padraig O'Briain] * Add include guards to atk.h [Morten Welinder] * Change argument of atk_component_get_layer(),atk_component_get_mdi_zorder() to be AtkComponent instead of AtkObject [Padraig] * Cleanups [Padraig] Overview of Changes in GTK+ 1.3.15 ================================== * New stock and improved icon images [Tuomas Kuosomann, Jakub Steiner, Anders Carlsson] * Widget drawing improvements for check and radio buttons, spinbuttons [Soeren Sandmann] * Clean up module search path algorithm, use GTK_PATH [Owen Taylor] * Add GtkSetting for font name. [Richard Hestilow] * Much improved key matching code, accelerators work independent of group [Owen] * Make mnemonics work for embedded GtkPlug widgets [Owen] * Keynav improvements for GtkTreeView [Kristian Rietveld] * Fix gtk_tree_view_scroll_to_cell() [Jonathan Blandford] * Rename gtk_tree_view_get_iter_root() and gtk_tree_path_new_root() to gtk_tree_view_get_iter_first() and gtk_tree_path_new_first(), add compatibility macros. * GtkTreeView bug fixes [Kristian, Anders, Damon Chaplin] * GtkTextView bug fixes [Havoc Pennington] * Pad class structures for future binary compatibility [Owen] * Tutorial improvements [Sven Neumann, Matthias Clasen] * Fixes for MULTIPLE selection target [Gregory Merchan, Owen] * Fix problems with initial widget size [Owen] * AIX compilation fixes [Miroslaw Dobrzanski-Neumann] * Win32 fixes [Hans Breuer, Tor Lillqvist] * Miscellaneous bug fixes Other contributors: David L. Cooper, Eric Fischer, Jody Goldberg, Satajyit Kanungo, Thomas Leonard, Mark Patton, Manish Singh, Nicolas Setton Library Descriptions ==================== GLib 1.3.15 (http://www.gtk.org) GLib is the low-level core library that forms the basis of 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. Pango 0.26 (http://www.pango.org) Pango is a library for layout and rendering of text, with an emphasis on internationalization. It forms the core of text and font handling for GTK+-2.0. Atk 0.13 (http://developer.gnome.org/projects/gap) The ATK library provides a set of interfaces for accessibility. By supporting the ATK interfaces, an application or toolkit can be used such as tools such as screen readers, magnifiers, and alternative input devices. GTK+ 1.3.15 (http://www.gtk.org) GTK+ is a widget toolkit for X and other windowing systems. It is used in such projects as the GIMP and GNOME. Notes ===== This release is incompatible with GTK+ and GLib 1.2.x. Software that has not been explicitly ported will not compile with this version. Do not send bug reports about such compilation problems to either us or maintainers of software that uses GLib and GTK+ 1.2.x; The currently supported version of GLib and GTK+ is version 1.2.10. If you install these libraries, do NOT replace your current GLib and GTK+ packages with them; these libraries are designed so they can be installed in parallel with a GTK+ install without affecting it. The API is frozen at this point. No additional API changes are anticipated before GTK+-2.0 is released. Binary interfaces for these libraries are not yet frozen; applications built against these libraries will need to be rebuilt when the final GTK+-2.0.0 is released. Comments should be sent to: GLib, GTK+: gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list Pango: gtk-i18n-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-i18n-list ATK: gnome-accessibility-list@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list From ehml@pacific.net.sg Tue Feb 19 11:04:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from spade.pacific.net.sg (spade.pacific.net.sg [203.120.90.71]) by mail.gnome.org (Postfix) with ESMTP id B8E0B189C3 for ; Tue, 19 Feb 2002 11:04:25 -0500 (EST) Received: from smtp1.pacific.net.sg (smtp1.pacific.net.sg [203.120.90.70]) by spade.pacific.net.sg with ESMTP id g1JG4Np02015 for ; Wed, 20 Feb 2002 00:04:23 +0800 Received: from pacific.net.sg (ppp235.dyn91.pacific.net.sg [210.24.91.235]) by smtp1.pacific.net.sg with ESMTP id g1JG4Kt03787 for ; Wed, 20 Feb 2002 00:04:21 +0800 Message-ID: <3C7277C4.7394E50F@pacific.net.sg> Date: Wed, 20 Feb 2002 00:05:24 +0800 From: ehml X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Scrolled window unable to handle huge list ( > 1700 entries) in it References: <3C36FA81.24BEA795@pacific.net.sg> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I need advice on putting huge list in a scrolled window. I notice that when I have more than 1700 (exact number is around 167+) entries in a list (or tree), and the list is in a scrolled window, it will not be displayed correctly. Anyone know limitation on the number of entry (or height) a scrolled window can support, and is there a known way to workaround this? Thanks. Regards, Eng Han From Romain.Parmantier@wanadoo.fr Tue Feb 19 19:18:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto2.wanadoo.fr (smtp-out-2.wanadoo.fr [193.252.19.254]) by mail.gnome.org (Postfix) with ESMTP id B4B1418649 for ; Tue, 19 Feb 2002 19:18:23 -0500 (EST) Received: from mel-rta4.wanadoo.fr (193.252.19.58) by mel-rto2.wanadoo.fr; 20 Feb 2002 01:18:22 +0100 Received: from pentium (193.250.93.194) by mel-rta4.wanadoo.fr; 20 Feb 2002 01:18:05 +0100 Message-ID: <010d01c1b9a4$12de05c0$c25dfac1@pentium> From: "Romain" To: Subject: [GTK help] Date: Wed, 20 Feb 2002 01:18:07 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_010A_01C1B9AC.74020F10" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_010A_01C1B9AC.74020F10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi! How I can superpose two GtkText in the same window (in a notebook for = example)? In a background, a gtktext where you can't modify the text and = in the foreground, a gtktext where you can modify the text. Result, you = have the background and the foreground in the same window with the = superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------=_NextPart_000_010A_01C1B9AC.74020F10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi!
How I can superpose two GtkText in the = same window=20 (in a notebook for example)? In a background, a gtktext where you can't = modify=20 the text and in the foreground, a gtktext where you can modify the text. = Result,=20 you have the background and the foreground in the same window with = the=20 superposed texts.
Thanks,
 
Excuse me for my 'english' but I don't = speak it=20 very well.
------=_NextPart_000_010A_01C1B9AC.74020F10-- From jimmycllin@hotmail.com Wed Feb 20 11:24:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (oe21.law11.hotmail.com [64.4.16.125]) by mail.gnome.org (Postfix) with ESMTP id 39D4A1814C for ; Wed, 20 Feb 2002 11:24:17 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 20 Feb 2002 08:24:16 -0800 X-Originating-IP: [61.10.172.12] From: "Jimmy Lin" To: Subject: When will GTK+2.0 be released? Date: Thu, 21 Feb 2002 00:25:54 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C1BA6E.52CC1580" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 20 Feb 2002 16:24:16.0399 (UTC) FILETIME=[0A6759F0:01C1BA2B] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C1BA6E.52CC1580 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Hello, I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and GTK+2.0 = is incompatible. So should I learn GTK+2.0 is much better now? Please = give me some advices. Thanks!!! Jimmy ------=_NextPart_000_0007_01C1BA6E.52CC1580 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Hello,
 
I'm a new comer of GTK+, I noticed that the api = of GTK+1.2=20 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much=20 better now? Please give me some advices. = Thanks!!!
 
Jimmy
------=_NextPart_000_0007_01C1BA6E.52CC1580-- From falconer@falconer.best.vwh.net Thu Feb 21 16:46:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id D229419273 for ; Thu, 21 Feb 2002 16:46:05 -0500 (EST) Received: (qmail 70778 invoked by uid 25889); 21 Feb 2002 21:46:04 -0000 Date: 21 Feb 2002 21:46:04 -0000 Message-ID: <20020221214604.70777.qmail@falconer.best.vwh.net> From: falconer@falconer.best.vwh.net To: gtk-list@gnome.org Subject: Gtk feature requests Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all; I just saw that gtk 2 is coming out soon. It's probably too late for 2.0, but could I get folks to consider the following features for a future release? These comments stem from frustrations I encountered while developing under gtk. Most of these could be considered bug reports rather than changes to the API. * Toolkit should recognize traditional "-g WxH+X+Y" commandline arguments. * It would be very handy to be able to somehow specify the width of a TextEntry widget in terms of displayed characters instead of pixels. I just want the option of creating a text entry that displays 10 characters, or whatever. Currently, I use a utility function which I wrote which converts en-spaces to pixels, but it can't account for the widget's internal margins, etc. * Scrollbars and scales desperately need a way for callbacks to differentiate a scroll-in-progress from a scroll-completed type event. I would suggest a "value-done" signal to supplement the "value" event. (Example: a cad program that takes a long time to rebuild the display. I want to scroll it without rebuilding while the user manipulates the scroll bar, and then do the rebuild when the user releases the mouse.) * It would be nice to add a scale factor option to sliders and scrollbars so that a large mouse motion results in a small change in slider position (very useful feature when dealing with very small sliders. See http://www.efalk.org/Widgets/#slider for an example of one I wrote for the X intrinsics many years ago. * It would be nice for TextEntry widgets to have signals which indicate that the widget has received/lost keyboard focus. This is especially important when losing focus, as this is a good time for the application to validate and/or reformat the input. * It would be nice to have an option for TextEntry widgets to select their contents when gaining focus (although this could be done manually given a focus-received signal.) * I found the toolkit's habit of highlighting the widget under the cursor rather than highlighting the widget with keyboard focus to be confusing. * It would be a nice feature to add "focus follows mouse" to the keyboard focus mechanism. That is, moving the mouse from widget to widget would change the focus without needing to click on the new widget. The tab keys would still change the focus as before. (I implemented this in my XawM toolkit, see http://www.efalk.org/Widgets/#xawm) * Buttons should provide visual feedback when activated from keyboard (i.e. button-pressed on key down, button-released on key up.) * It would be nice to be able to expand/collapse tree widgets with the +/- keys. * It would be nice if I could use my own select loop with gtk; something like: gtkfd = gtk_get_connection_id() ; : select(nfds, &readfds, ...)) : if( FD_ISSET(gtkfd, &readfds) ) { while( GtkPeekEvent() ) GtkDispatchEvent() ; } -ed falk From Matthias.Clasen@poet.de Fri Feb 22 10:13:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.poet.de (unknown [195.243.100.246]) by mail.gnome.org (Postfix) with ESMTP id 82A05182E0 for ; Fri, 22 Feb 2002 10:13:48 -0500 (EST) Received: from POONS.poet.de ([192.168.11.9]) by mail.poet.de with Microsoft SMTPSVC(5.0.2195.2966); Fri, 22 Feb 2002 16:02:49 +0100 To: gtk-list@gnome.org Cc: amundson@gtk.org Subject: Re: g_signal_connect_swapped X-Mailer: Lotus Notes Release 5.0.4 June 8, 2000 Message-ID: From: "Matthias Clasen" Date: Fri, 22 Feb 2002 16:11:23 +0100 X-MIMETrack: Serialize by Router on hamburg/server/Poet(Release 5.0.8 |June 18, 2001) at 22.02.2002 16:11:05, Serialize complete at 22.02.2002 16:11:05 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-OriginalArrivalTime: 22 Feb 2002 15:02:49.0156 (UTC) FILETIME=[FE34C040:01C1BBB1] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: The tutorial and examples in CVS head should be pure GTK+ 2.0. The title even expresses this ("GTK+ 2.0 tutorial") - it is a bit unfortunate that the online version at www.gtk.org/tutorial tracks CVS head. Maybe Shawn Amundson (cc'ed) can be convinced to set things up so that the GTK+ 1.2 version of the tutorial is available as well (there is already a parallel setup for the reference manuals). Until that happens, you can try ftp://ftp.gtk.org/pub/gtk/tutorial/db-gtk-tutorial.20000721.tar.gz, which is admittedly fairly old. Matthias From ehml@pacific.net.sg Fri Feb 22 10:50:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from scythe.pacific.net.sg (scythe.pacific.net.sg [203.120.90.37]) by mail.gnome.org (Postfix) with ESMTP id 5EAC6189D6 for ; Fri, 22 Feb 2002 10:50:35 -0500 (EST) Received: from smtp1.pacific.net.sg (smtp1.pacific.net.sg [203.120.90.70]) by scythe.pacific.net.sg with ESMTP id g1MFoXn27457 for ; Fri, 22 Feb 2002 23:50:33 +0800 Received: from pacific.net.sg (ppp200.dyn89.pacific.net.sg [210.24.89.200]) by smtp1.pacific.net.sg with ESMTP id g1MFoWt24846 for ; Fri, 22 Feb 2002 23:50:32 +0800 Message-ID: <3C76690A.E46C047A@pacific.net.sg> Date: Fri, 22 Feb 2002 23:51:38 +0800 From: ehml X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: key input get grab by other widget References: <3C36FA81.24BEA795@pacific.net.sg> <3C7277C4.7394E50F@pacific.net.sg> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I run into another "I do not know how to do" difficulty, and need advice. My application has a drawing-area, menu, and a frame with check-button in it. In the drawing-area, I assign "key press event" to it. It work find for key like "a" and "b", but does not work for arrow key. Once I press a arrow key, the "check button" grab that input, and subsequently, all key is grab by the "check button". The same will happen if I point at the menu-bar and click in a empty space following by pressing a key. What I need is: If the pointer is in the drawing-area, drawing-area should grab all key event. Is this possible, or there is any good workaround? Thanks. Regards, Eng Han PS: As gtk-list@gnome.org is a private email, is there a public news-group for me to seek advice? Thanks. From haem@netvigator.com Fri Feb 22 12:19:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imsmq05.netvigator.com (imsmq05.netvigator.com [208.167.231.41]) by mail.gnome.org (Postfix) with SMTP id E8078191AE for ; Fri, 22 Feb 2002 12:19:04 -0500 (EST) Received: (qmail 11385 invoked from network); 22 Feb 2002 17:19:02 -0000 Received: from pcd331066.netvigator.com (HELO netvigator.com) (203.218.121.66) by imsmq05.netvigator.com with SMTP; 22 Feb 2002 17:19:02 -0000 Message-ID: <3C773384.9070104@netvigator.com> Date: Sat, 23 Feb 2002 01:15:32 -0500 From: Lam Yick Yan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk->deviceid How to use? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I have just devleoped a X input driver for my small graphic tablet. And it is working.... Now I have cursor that will move according to mouse OR graphic tablet. Now I want to develope a gtk application that will ONLY respond the event from my graphic tablet. I have a callback function in my GTK application, motion_notify_event and I have compared the event content of my mouse and my graphic tablet and they look the same (the deviceid content etc). and I have no way to distuguish whether the event is from the mouse or from the graphic tablet. What did I do wrong in my driver? can please have a look at http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether I did wrong in the device driver? Yick Hong Kong china From csingla@nc.rr.com Fri Feb 22 16:50:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from Mail6.nc.rr.com (fe6.southeast.rr.com [24.93.67.53]) by mail.gnome.org (Postfix) with ESMTP id AE0A71931A for ; Fri, 22 Feb 2002 16:50:52 -0500 (EST) Received: from nc.rr.com ([66.57.252.230]) by Mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Fri, 22 Feb 2002 16:50:46 -0500 Message-ID: <3C76BD1F.70702@nc.rr.com> Date: Fri, 22 Feb 2002 16:50:23 -0500 From: Oliver Singla Reply-To: oliver_singla@yahoo.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Trouble to compile atk-0.12 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, On my RH7.2 box, I have trouble to compile atk-0.12. After I have ran .configure, here is what I get when I do a make: [omsingla@oliver atk-0.12]$ make Making all in atk make[1]: Entering directory `/home/omsingla/gtk/1.3/atk-0.12/atk' case ..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal in \ .*) glib_genmarshal=`pwd`/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal ;; \ *) glib_genmarshal=..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal ;; \ esac; \ $glib_genmarshal --prefix=atk_marshal ./atkmarshal.list --body >> xgen-gmc \ && (cmp -s xgen-gmc ./atkmarshal.c || cp xgen-gmc ./atkmarshal.c) \ && rm -f xgen-gmc xgen-gmc~ \ && echo timestamp > stamp-atkmarshal.c /bin/sh: /home/omsingla/gtk/1.3/atk-0.12/atk/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal: No such file or directory make[1]: *** [stamp-atkmarshal.c] Error 127 make[1]: Leaving directory `/home/omsingla/gtk/1.3/atk-0.12/atk' make: *** [all-recursive] Error 1 [omsingla@oliver atk-0.12]$ Any idea ? TIA, Olivier Singla From soppers3@cti.ecp.fr Fri Feb 22 18:28:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from manoul.cti.ecp.fr (manoul.cti.ecp.fr [138.195.33.28]) by mail.gnome.org (Postfix) with ESMTP id 6CE4418A19 for ; Fri, 22 Feb 2002 18:28:02 -0500 (EST) Received: from caracal2.cti.ecp.fr (caracal2.cti.ecp.fr [138.195.33.40]) by manoul.cti.ecp.fr (Postfix) with SMTP id 825FB1EF1E for ; Sat, 23 Feb 2002 00:28:01 +0100 (CET) Received: from soppera.via.ecp.fr (soppera.via.ecp.fr [138.195.141.103]) by caracal2.cti.ecp.fr (Postfix) with ESMTP id 3B74D15A70 for ; Sat, 23 Feb 2002 00:28:33 +0100 (MET) Subject: Will GTKGlArea be included in GTK+ one day From: Stephane SOPPERA Reply-To: soppers3@cti.ecp.fr To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.13 (Preview Release) Date: 23 Feb 2002 00:27:45 +0100 Message-Id: <1014420468.6631.16.camel@soppera> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I was wondering if the GTK GlArea widget will be one day included in GTK+? Is it planned? -- Stephane SOPPERA http://stephane.soppera.free.fr From Romain.Parmantier@wanadoo.fr Thu Feb 21 12:25:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto3.wanadoo.fr (smtp-out-3.wanadoo.fr [193.252.19.233]) by mail.gnome.org (Postfix) with ESMTP id C067618AC5 for ; Thu, 21 Feb 2002 12:25:06 -0500 (EST) Received: from mel-rta9.wanadoo.fr (193.252.19.69) by mel-rto3.wanadoo.fr; 21 Feb 2002 18:25:05 +0100 Received: from pentium (193.250.93.90) by mel-rta9.wanadoo.fr; 21 Feb 2002 18:24:48 +0100 Message-ID: <001401c1bafc$a8c19b70$5a5dfac1@pentium> From: "Romain" To: Subject: GTK Background Date: Thu, 21 Feb 2002 18:24:40 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0011_01C1BB05.06FBF250" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C1BB05.06FBF250 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, For my application, I need a transparent background for a GtkText (not a = white background). It is possible? And how can I do this if it is = possible ? ------=_NextPart_000_0011_01C1BB05.06FBF250 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
For my application, I need a = transparent background=20 for a GtkText (not a white background). It is possible? And how can I do = this if=20 it is possible ?
------=_NextPart_000_0011_01C1BB05.06FBF250-- From hvv@hippo.ru Sun Feb 24 03:06:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [195.218.232.214]) by mail.gnome.org (Postfix) with ESMTP id B4AD418136 for ; Sun, 24 Feb 2002 03:06:13 -0500 (EST) Date: Sun, 24 Feb 2002 13:09:32 +0400 (SAMT) From: Vlad Harchev X-Sender: hvv@localhost.localdomain To: "Bartosz \"Neron\" Leper" Cc: GTK-list Subject: Re: GTK and non-monospace fonts In-Reply-To: <001201c1bcb5$60c043c0$22e04dd5@s> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, 23 Feb 2002, Bartosz "Neron" Leper wrote: Hi, > > Hi, > > > > That was a bug in gdk fixed personally by me - the standard gtk-1.2.10 > > already contains the fix - so please upgrade your gtk to version 1.2.10. > > > > Best regards, > > -Vlad > > Thanks a lot. That was quite easy. I have downloaded and installed version > 1.2.10 and my own programs are now OK. But is there any chance to "patch" my > pre-compiled applications somehow without recompiling all of them? I have no > sources and no time to download them all. No, you don't have to recompile all applications that use gtk in order to get fixed behaviour - because they don't include gtk's code, they just link dynamically with gtk. All you have to do is to install updated gtk package to the standard locations where all programs expect it (it seems that just downloading and installing RPM with gtk-1.2.10 from Mandrake distribiution should be a solution). Best regards, -Vlad From aditya_gilra@yahoo.com Sun Feb 24 04:16:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14702.mail.yahoo.com (web14702.mail.yahoo.com [216.136.224.119]) by mail.gnome.org (Postfix) with SMTP id AB46F18136 for ; Sun, 24 Feb 2002 04:16:04 -0500 (EST) Message-ID: <20020224091604.934.qmail@web14702.mail.yahoo.com> Received: from [61.0.108.240] by web14702.mail.yahoo.com via HTTP; Sun, 24 Feb 2002 01:16:04 PST Date: Sun, 24 Feb 2002 01:16:04 -0800 (PST) From: Aditya Gilra Subject: Opentype Indic? To: gtk-list@gnome.org In-Reply-To: <20020224070921.9C5EF18FE9@mail.gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ||Shriharih|| God-Remembrance All. I noticed that Eric Mader's Indic Opentype patches are not mentioned in changes to pango for 1.3.15 . I hope they'll be considered for 2.0 . Or are they in already? It'll be a big help to be able to use good-quality Opentype fonts for Hindi - two are already available freely. - Aditya Gilra. __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From leidola@newcon.de Sun Feb 24 07:32:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id EA9F61823D for ; Sun, 24 Feb 2002 07:32:00 -0500 (EST) Received: from attic ([213.70.108.83]) by mail-1.newcon.de (8.9.3/8.9.3) with SMTP id NAA15034; Sun, 24 Feb 2002 13:31:56 +0100 From: Olaf Leidinger To: "Johnny B ." Cc: gtk-list@gnome.org Date: Sun, 24 Feb 2002 13:35:02 +0100 X-Priority: 3 (Normal) In-Reply-To: <20020223195935.C31813@tasha.vonbek.dhs.org> Message-Id: <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic> Subject: Re: linking problem MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Mailer: Opera 6.0 build 1010 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 24.02.2002 01:59:35, schrieb "Johnny B ." : [...] >/tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' >/tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' >/tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' [...] > >[johnnyb@tasha lib]$ gtk-config --cflags --libs >-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 >-I/usr/local/lib/glib/include -I/usr/X11R6/include >-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule >-lglib -ldl -lXext -lX11 -lm You link against gtk+-1.2, don't you? But as far as I know the missing things (g_signal_connect, G_OBJECT ans so) are part of gtk+-2.0 (or more exactly glib-2.0). Are you really sure that your installation is correct. This seems like a mixture of gtk+-1.2 and gtk+-2.0. Use the -v option when compiling to see exactly what is included and what linked to your application. Ciao Olaf From pbd@op.net Sun Feb 24 08:05:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 238191823D for ; Sun, 24 Feb 2002 08:05:12 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-82.phlpa.fast.net [209.92.99.82]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id IAA16035; Sun, 24 Feb 2002 08:04:59 -0500 (EST) Message-Id: <200202241304.IAA16035@renoir.op.net> To: ehml Cc: gtk-list@gnome.org Subject: Re: key input get grab by other widget In-reply-to: Your message of "Fri, 22 Feb 2002 23:51:38 +0800." <3C76690A.E46C047A@pacific.net.sg> Date: Sun, 24 Feb 2002 08:03:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >My application has a drawing-area, menu, and a frame with check-button in it. > >In the drawing-area, I assign "key press event" to it. It work find for key >like "a" and "b", but does not work for arrow key. Once I press a arrow key, >the "check button" grab that input, and subsequently, all key is grab by the >"check button". The same will happen if I point at the menu-bar and click in a >empty space following by pressing a key. What I need is: > >If the pointer is in the drawing-area, drawing-area should grab all key event. the arrow buttons, tab key and enter key are all considered "special" by GTK+, and are used (by default) to move the keyboard focus around between widgets. there is no way to turn off this behaviour in a global sense, but it can be handled on a per-widget basis. if you have a widget that needs to be able use any of these keys as a "normal" key, you need to connect to the widgets "key_press_event" signal with a handler that does something like this: gint key_press_handler (GtkWidget *widget, GdkEventKey *event, gpointer data) { int stop_emission = FALSE; switch (event->keyval){ case GDK_Up: case GDK_Down: case GDK_Left: case GDK_Right: stop_emission = TRUE; break; default: break; } if (stop_emission) { /* don't let the rest of GTK+ see this key */ gtk_signal_stop_emit_by_name (GTK_OBJECT(widget), "key_press_event"); } .... rest of your conventional key handling ... return TRUE; } --p From pbd@op.net Sun Feb 24 08:20:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D5E8F181D6 for ; Sun, 24 Feb 2002 08:20:37 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-82.phlpa.fast.net [209.92.99.82]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id IAA17161; Sun, 24 Feb 2002 08:20:34 -0500 (EST) Message-Id: <200202241320.IAA17161@renoir.op.net> To: falconer@falconer.best.vwh.net Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests In-reply-to: Your message of "21 Feb 2002 21:46:04 GMT." <20020221214604.70777.qmail@falconer.best.vwh.net> Date: Sun, 24 Feb 2002 08:19:23 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > arguments. which window is that for? think about it. > * Scrollbars and scales desperately need a way for callbacks to > differentiate a scroll-in-progress from a scroll-completed type > event. I would suggest a "value-done" signal to supplement > the "value" event. (Example: a cad program that takes a long > time to rebuild the display. I want to scroll it without > rebuilding while the user manipulates the scroll bar, and then > do the rebuild when the user releases the mouse.) this would be very valuable. XForms has a nice model, where you can specify the behaviour on a per-widget basis: report value when changed, report value when motion pauses (but before mouse release), report value every N msecs, report value when mouse is released). adding "value_change_complete" or "value_done" or whatever would allow widgets to support some or all of these models. > * It would be nice to add a scale factor option to sliders and > scrollbars so that a large mouse motion results in a small > change in slider position (very useful feature when dealing > with very small sliders. See you can write this yourself. my DAW application "ardour" has non-linear logarithmically scaled sliders. i've also written GTK+ widgets that have distance-log-scaled motion scaling, wherein mouse motion a long way from the widget (e.g. click-drag-right-now-drag-up-and-down) causes less change in the adjustment value than similar motion close to the widget. > * It would be nice for TextEntry widgets to have signals which > indicate that the widget has received/lost keyboard focus. focus_in_event focus_out_event > * I found the toolkit's habit of highlighting the widget under the > cursor rather than highlighting the widget with keyboard focus > to be confusing. catch enter_notify_event and leave_notify_event and stop the emission. this will prevent prelighting. i wish there was a way to turn off prelighting on a global basis, but it appears to contradict the desire of GTK+'s designers for a consistent GUI experience. > * It would be nice to be able to expand/collapse tree widgets with > the +/- keys. you can write this yourself. catch the key_press_event signal and handle it. > * It would be nice if I could use my own select loop with gtk; > something like: > > gtkfd = gtk_get_connection_id() ; > : > select(nfds, &readfds, ...)) > : > if( FD_ISSET(gtkfd, &readfds) ) > { > while( GtkPeekEvent() ) > GtkDispatchEvent() ; > } GTK uses glib, and its inner loop is a bit more complex than this. What you can do is to add your own fd's to its inner loop. There have been several posts here in the last month about this, and many in the archives, as well as information in the tutorial and reference docs. see gtk_input_add() and its more generic cousins g_source_add(). in the current "pending release" version of glib, the inner loop has been restructured to allow some decomposition into something like you describe, but i don't think it was with the idea of moving the outer while() into your code. glib's handling of what it terms "sources" is much more generic than select() would necessarily allow for (though under a POSIX system, select() is more or less all we have, since other types of signalling systems like semaphores can't be waited for with select). --p From johnnyb@zappa.vonbek.dhs.org Sun Feb 24 08:55:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from zappa.vonbek.dhs.org (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by mail.gnome.org (Postfix) with ESMTP id A081D18363 for ; Sun, 24 Feb 2002 08:55:46 -0500 (EST) Received: (from johnnyb@localhost) by zappa.vonbek.dhs.org (8.11.6/8.11.6) id g1ODumi02309 for gtk-list@gnome.org; Sun, 24 Feb 2002 08:56:48 -0500 Date: Sun, 24 Feb 2002 08:56:48 -0500 From: "Johnny B ." To: gtk-list@gnome.org Subject: Re: linking problem Message-ID: <20020224085648.A2282@zappa.vonbek.dhs.org> Reply-To: "Johnny B ." References: <20020223195935.C31813@tasha.vonbek.dhs.org> <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic>; from leidola@newcon.de on Sun, Feb 24, 2002 at 01:35:02PM +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Olaf and Havoc, Thanks for the info. I am indeed working with gtk-1.2 and I was unaware that the tutorial code on the gtk web site is for gtk-2.0! Sorry to eat your bandwidth like that! I don't see gtk-2.0 anywhere for download so I'll assume it's not released yet. I'll work through the tutorial that came with the 1.2 source. I'm trying to port a terminal app to gtk, with the hopes that it may run on Linux, AIX and probably win32, so I'll stick with gtk-1.2. Or should I seek out 2.0 ? Can't find it anywhere... Anyways, thanks for helping me sort this out! JB On Sun, Feb 24, 2002 at 01:35:02PM +0100, Olaf Leidinger wrote: > Am 24.02.2002 01:59:35, schrieb "Johnny B ." : > > [...] > >/tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' > >/tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' > >/tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' > > [...] > > > >[johnnyb@tasha lib]$ gtk-config --cflags --libs > >-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 > >-I/usr/local/lib/glib/include -I/usr/X11R6/include > >-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule > >-lglib -ldl -lXext -lX11 -lm > > You link against gtk+-1.2, don't you? But as far as I know the missing things (g_signal_connect, G_OBJECT ans so) are part of gtk+-2.0 (or more exactly glib-2.0). Are > you really sure that your installation is correct. This seems like a mixture of gtk+-1.2 and gtk+-2.0. > > Use the -v option when compiling to see exactly what is included and what linked to your application. > > Ciao > > Olaf > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list +--------------------------------- | John Bleichert | syborg@stny.rr.com | http://vonbek.dhs.org/latest.jpg From rsteinke@w-link.net Sun Feb 24 12:51:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 32634189DC for ; Sun, 24 Feb 2002 12:51:38 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16f2o7-0002QQ-00; Sun, 24 Feb 2002 09:51:31 -0800 Date: Sun, 24 Feb 2002 09:51:31 -0800 From: rsteinke@w-link.net To: haem@netvigator.com, gtk-list@gnome.org Subject: Re: gtk->deviceid How to use? Message-ID: <3C792823.nail7191IMBE5@w-link.net> References: <3C773384.9070104@netvigator.com> In-Reply-To: <3C773384.9070104@netvigator.com> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Lam Yick Yan > > Dear Sir, > > I have just devleoped a X input driver for my small graphic tablet. > And it is working.... Now I have cursor that will move according to > mouse OR graphic tablet. > > Now I want to develope a gtk application that will ONLY respond > the event from my graphic tablet. I have a callback function in my GTK > application, motion_notify_event and I have compared the event content > of my mouse and my graphic tablet and they look the same (the deviceid > content etc). and I have no way to distuguish whether the event is from the > mouse or from the graphic tablet. > > What did I do wrong in my driver? can please have a look at > http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether > I did wrong in the device driver? You should (I think), in principle, be able to distinguish them using the GdkInputSource (GDK_SOURCE_MOUSE vs GDK_SOURCE_PEN). If the tablet isn't giving events as GDK_SOURCE_PEN, look at the gdk source code and see how gdk determines this information from the XEvent, and make sure your driver is giving the proper information to X. Ron Steinke P.S. This is _way_ out of my area of expertise, someone please correct me if I'm wrong. From hp@redhat.com Sun Feb 24 17:18:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 3E72E181A5 for ; Sun, 24 Feb 2002 17:18:46 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMIgM09833; Sun, 24 Feb 2002 17:18:42 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Jimmy Lin" Cc: Subject: Re: When will GTK+2.0 be released? References: From: Havoc Pennington Date: 24 Feb 2002 17:18:42 -0500 In-Reply-To: Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Jimmy Lin" writes: > > I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and > GTK+2.0 is incompatible. So should I learn GTK+2.0 is much better > now? Please give me some advices. Thanks!!! > Yes, I would start with 2.0. Havoc From hp@redhat.com Sun Feb 24 17:41:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 62F81181A5 for ; Sun, 24 Feb 2002 17:41:36 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMfZa09838; Sun, 24 Feb 2002 17:41:35 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: falconer@falconer.best.vwh.net Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests References: <20020221214604.70777.qmail@falconer.best.vwh.net> From: Havoc Pennington Date: 24 Feb 2002 17:41:35 -0500 In-Reply-To: <20020221214604.70777.qmail@falconer.best.vwh.net> Message-ID: Lines: 112 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: falconer@falconer.best.vwh.net writes: > Hi all; I just saw that gtk 2 is coming out soon. It's probably > too late for 2.0, but could I get folks to consider the following > features for a future release? These comments stem from frustrations > I encountered while developing under gtk. > > Most of these could be considered bug reports rather than changes > to the API. Both features and bug reports should go in bugzilla - http://bugzilla.gnome.org, otherwise they typically get lost. If you put the report in bugzilla you also get the nice advantage that you will be able to monitor patches and discussion relating to the feature and add your own comments, and you'll be notified when the fix goes in. Certainly a number of these comments would be useful in bugzilla. > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > arguments. gtk_window_parse_geometry(). Toolkit can't do more than that for you, as Paul points out. > * It would be very handy to be able to somehow specify the > width of a TextEntry widget in terms of displayed characters > instead of pixels. gtk_entry_set_width_chars() > * Scrollbars and scales desperately need a way for callbacks to > differentiate a scroll-in-progress from a scroll-completed type > event. I would suggest a "value-done" signal to supplement > the "value" event. (Example: a cad program that takes a long > time to rebuild the display. I want to scroll it without > rebuilding while the user manipulates the scroll bar, and then > do the rebuild when the user releases the mouse.) gtk_range_set_update_policy() is the intended feature here, though it doesn't handle the case you mention. > * It would be nice to add a scale factor option to sliders and > scrollbars so that a large mouse motion results in a small > change in slider position (very useful feature when dealing > with very small sliders. See > > http://www.efalk.org/Widgets/#slider > > for an example of one I wrote for the X intrinsics many years > ago. Wouldn't it make more sense for the slider to autocompute the scale factor depending on its size and range and step increment? > * It would be nice for TextEntry widgets to have signals which > indicate that the widget has received/lost keyboard focus. > This is especially important when losing focus, as this is > a good time for the application to validate and/or reformat > the input. There are focus_in_event and focus_out_event signals that do this as Paul pointed out. > * It would be nice to have an option for TextEntry widgets to > select their contents when gaining focus (although this could > be done manually given a focus-received signal.) GtkEntry does this by default now - now the usual request is to have an option to disable it. ;-) We may have made it a user option, I don't remember. > * I found the toolkit's habit of highlighting the widget under the > cursor rather than highlighting the widget with keyboard focus > to be confusing. I don't think it's "rather than", there are two separate kinds of indication - focus outline and prelight. This is in some sense entirely a function of the theme (a theme can disable or modify how either thing is displayed). > * It would be a nice feature to add "focus follows mouse" to the > keyboard focus mechanism. That is, moving the mouse from widget > to widget would change the focus without needing to click on > the new widget. The tab keys would still change the focus as > before. (I implemented this in my XawM toolkit, see > http://www.efalk.org/Widgets/#xawm) Hrm, I think you'll find little enthusiasm for that... no modern toolkit does this. > * Buttons should provide visual feedback when activated from keyboard > (i.e. button-pressed on key down, button-released on key up.) GTK 2 has this feature. > * It would be nice to be able to expand/collapse tree widgets with > the +/- keys. I believe GtkTreeView in GTK 2 has this feature. If not it has some other keybinding for it. > * It would be nice if I could use my own select loop with gtk; > something like: > GLib 2 is set up to allow integration with other main loops, though again Paul is right - it's a bit more complex than you were hoping. ;-) GTK has more "event sources" than just the X event queue. Havoc From hp@redhat.com Sun Feb 24 17:43:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id EF23F1878D for ; Sun, 24 Feb 2002 17:43:26 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMhOM09842; Sun, 24 Feb 2002 17:43:24 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: soppers3@cti.ecp.fr Cc: gtk-list@gnome.org Subject: Re: Will GTKGlArea be included in GTK+ one day References: <1014420468.6631.16.camel@soppera> From: Havoc Pennington Date: 24 Feb 2002 17:43:24 -0500 In-Reply-To: <1014420468.6631.16.camel@soppera> Message-ID: Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Stephane SOPPERA writes: > I was wondering if the GTK GlArea widget will be one day included in > GTK+? > Is it planned? > It's been discussed but I wouldn't say plans have been made. You might want to be sure there's a bug about this in bugzilla, and contact the GtkGLArea maintainer and ask him/her to add their opinion to the bug and maybe get on the CC list for the bug. Havoc From hp@redhat.com Sun Feb 24 17:45:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 426B018A9C for ; Sun, 24 Feb 2002 17:45:09 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMj8Y09846; Sun, 24 Feb 2002 17:45:08 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Johnny B ." Cc: gtk-list@gnome.org Subject: Re: linking problem References: <20020223195935.C31813@tasha.vonbek.dhs.org> <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic> <20020224085648.A2282@zappa.vonbek.dhs.org> From: Havoc Pennington Date: 24 Feb 2002 17:45:08 -0500 In-Reply-To: <20020224085648.A2282@zappa.vonbek.dhs.org> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Johnny B ." writes: > > Thanks for the info. I am indeed working with gtk-1.2 and I was > unaware that the tutorial code on the gtk web site is for gtk-2.0! > Sorry to eat your bandwidth like that! I don't see gtk-2.0 anywhere > for download so I'll assume it's not released yet. > > I'll work through the tutorial that came with the 1.2 source. I'm > trying to port a terminal app to gtk, with the hopes that it may run > on Linux, AIX and probably win32, so I'll stick with gtk-1.2. Or > should I seek out 2.0 ? Can't find it anywhere... > I'd suggest using 2.0 at this point. 2.0 isn't actually released as a final stable release; so it's called 1.3.15 still, rather than 2.0. But it will be called 2.0.0 very soon. (Planned in a week or so.) Havoc From weigelt@metux.de Sun Feb 24 23:00:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from annwfn.erfurt.thur.de (annwfn.erfurt.thur.de [194.122.210.1]) by mail.gnome.org (Postfix) with ESMTP id 988A41838F for ; Sun, 24 Feb 2002 23:00:09 -0500 (EST) Received: from annwfn.erfurt.thur.de (localhost [127.0.0.1]) by annwfn.erfurt.thur.de (8.12.0/8.12.0) with ESMTP id g1P408eY007631 for ; Mon, 25 Feb 2002 05:00:08 +0100 Received: (from uucp@localhost) by annwfn.erfurt.thur.de (8.12.0/8.12.0/Submit) with UUCP id g1P407wQ007630 for gtk-list@gnome.org; Mon, 25 Feb 2002 05:00:07 +0100 Received: from metux.de (localhost [127.0.0.1]) by metux.de (8.11.3/8.11.4) with ESMTP id g1P3tmm31790; Mon, 25 Feb 2002 04:55:48 +0100 Message-ID: <3C79B5C4.F1FA3AF5@metux.de> Date: Mon, 25 Feb 2002 04:55:48 +0100 From: Enrico Weigelt Reply-To: weigelt@metux.de Organization: meTUX IT services X-Mailer: Mozilla 4.76 [de] (X11; U; Linux 2.4.9 i686) X-Accept-Language: de, en MIME-Version: 1.0 To: GTK Mailing List Subject: garbage collection (long) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi folks, some month ago, i already asked for an gc implementation in GTK, but got almost no response, so i'd like to warm up the topic now. for those who are not familar with GC, some short explaination: * an garbage collector is responsible for freeing memory chunks which are not used (referenced) any longer, so it's no longer the job of the developer. * if properly implemented, the GC removes most errors situations with bad pointers, since once an pointer was initialized it will (theoretically) never point to unallocated memory. * especially when working with complex graphs (an normal GTK application already has them, even when hidden behind the ADTs), it makes code smaller, easier to understand, and much more stable. * many modern languages (i.e. oberon, java, perl, php) use GCs, but there are also GC-based memory allocators for C or C++. * in general there are two common methods for GCs. a) reference counting the GC manages an reference counter for each chunk. this counter is increased evry time the chunk gets referenced (pointer assignment) and will be decreased when the reference is removed. this method quite is easy to implement (in C with macros or in C++ by overloading pointer operations), is unproblematic in multithreaded enviroments, but can leave some trash when using ring graphs. b) conservative GC here the GC runs from time to time over the whole heap, follows pointers and marks all chunks it can reach as used. unmarked chunks can be considered as unreachable=unused and are collected/freed. an conservative GC needs to know (or guess) where pointers lay around in the chunks to follow them. the Hans-Boehm-GC is able to do this even without knowing the type infos. an disatwantage can be seen in conjunction MT-realtime-applications, since the mark phase (when walking through the heap), all threads have to stopped, but this should not be an problem if you're not really hanging on microseconds ... if someone's interested, i'll do the most of the work with implementing an GC (Hans-Boehm-GC) in glib/gtk, but i need some help with testing the build stuff (i wont touch this spooky automake) ... ~-n -- Enrico Weigelt == meTUX IT services software development, IT service, internet security solutions www: http://www.metux.de/ phone: +49 36207 519931 email: contact@metux.de cellphone: +49 174 7066481 From hp@redhat.com Mon Feb 25 00:20:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 4472C181E6 for ; Mon, 25 Feb 2002 00:20:46 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1P5Kek09925; Mon, 25 Feb 2002 00:20:40 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: weigelt@metux.de Cc: GTK Mailing List Subject: Re: garbage collection (long) References: <3C79B5C4.F1FA3AF5@metux.de> From: Havoc Pennington Date: 25 Feb 2002 00:20:40 -0500 In-Reply-To: <3C79B5C4.F1FA3AF5@metux.de> Message-ID: Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Enrico Weigelt writes: > > if someone's interested, i'll do the most of the work with implementing > an GC (Hans-Boehm-GC) in glib/gtk, but i need some help with testing the > build stuff (i wont touch this spooky automake) ... > I already did this a while ago, it's in CVS as "libggc" - I'm not sure it still works with latest GTK but fixing it should be easy. It just drops in the Boehm GC as the GLib memory allocator. It isn't all that useful though, because running the destroy/finalize methods for GObject/GtkWidget will still be controlled by the reference count instead of the GC, so you still need to hold references to everything to keep objects from being rendered useless. To make this useful GTK would have to be reworked internally to rely on it, which won't happen anytime soon. Havoc From dchiod@inwind.it Mon Feb 25 01:25:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailweb8.inwind.it (unknown [212.141.54.118]) by mail.gnome.org (Postfix) with ESMTP id DFB0B185A0 for ; Mon, 25 Feb 2002 01:25:38 -0500 (EST) Received: from inwind.it (127.0.0.1) by mailweb8.inwind.it (5.5.053) id 3C5BADD500010228 for gtk-list@gnome.org; Mon, 25 Feb 2002 07:27:44 +0100 Date: Mon, 25 Feb 2002 07:27:44 +0100 Message-Id: Subject: accessing widget property (newbie) MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable From: "Davide Chiodi" To: gtk-list@gnome.org X-XaM3-API-Version: 1.1.9.1.39.1.2 X-SenderIP: 217.56.227.2 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want change text in a label from another window( a window that isn't its parent);now, I tried GList and other stuff with the gtk_container but i'm not able to find the correct way; now i change the property making the label global and it is ok, but i think there's a more elegant way to get the goal. Thanks to anyone. Davide. From david@jopasana.com Mon Feb 25 02:32:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from jopasana.com (unknown [128.121.218.64]) by mail.gnome.org (Postfix) with ESMTP id CC49E18337 for ; Mon, 25 Feb 2002 02:32:24 -0500 (EST) Received: from [203.197.90.72] ([203.197.90.72]) by jopasana.com (8.11.6) id g1P7WM308772; Mon, 25 Feb 2002 00:32:23 -0700 (MST) Message-ID: <015701c1bdce$ddb60210$aa0ba8c0@djj> From: "David Joseph" To: Received: from no.name.available by [203.197.90.72] via smtpd (for [128.121.218.64]) with SMTP; 25 Jan 2002 07:44:57 UT Subject: Problems in attaching GtkScrolledWindow to GtkList Date: Mon, 25 Feb 2002 13:04:29 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0154_01C1BDFC.F5BC4850" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0154_01C1BDFC.F5BC4850 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi I am doing a project that involves the use of GtkList. I am trying to attach scroll bars to the lists but am not very = successful. I then tried to do a simple program to see where I was going wrong ..... = The program ran .. but I got this error on the console Gtk-CRITICAL **: file gtkscrolledwindow.c: line 951 = (gtk_scrolled_window_add_with_viewport): assertion `child->parent =3D=3D = NULL' failed. Any Idea what is going wrong here? Thanks in advance David The code is as follows: /////////////////////////////////////////////////////////////////////////= ///////////////////////// GtkWidget * create_window1 (void) { GtkWidget *window1; GtkWidget *fixed1; GtkWidget *list2; GList *list_items =3D NULL; gint count; gchar buff[3]; GtkWidget *scrolled_window =3D NULL; window1 =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (window1), "window1", window1); gtk_window_set_title (GTK_WINDOW (window1), "window1"); fixed1 =3D gtk_fixed_new (); gtk_widget_ref (fixed1); gtk_object_set_data_full (GTK_OBJECT (window1), "fixed1", fixed1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (fixed1); gtk_container_add (GTK_CONTAINER (window1), fixed1); list2 =3D gtk_list_new (); gtk_widget_ref (list2); gtk_object_set_data_full (GTK_OBJECT (window1), "list2", list2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (list2); gtk_fixed_put (GTK_FIXED (fixed1), list2, 40, 16); gtk_widget_set_uposition (list2, 40, 16); gtk_widget_set_usize (list2, 104, 136); for(count =3D 0; count <10 ; count++) { sprintf(buff, "%d", count); list_items =3D g_list_prepend(list_items, = gtk_list_item_new_with_label(buff)); } g_print("\nafter scrolled window4\n"); gtk_list_append_items(GTK_LIST(list2), list_items); g_print("\nafter scrolled window5\n"); gtk_widget_show_all(list2); =20 scrolled_window =3D gtk_scrolled_window_new(NULL,NULL); if(scrolled_window =3D=3D NULL) g_print("\nscroll =3D NULL\n"); gtk_widget_set_usize(scrolled_window, 200,200); = gtk_scrolled_window_add_with_viewport(GTK_CONTAINER(scrolled_window),list= 2); = gtk_container_set_focus_hadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_hadjustment GTK_SCROLLED_WINDOW(scrolled_window))); = gtk_container_set_focus_vadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_vadjustment(GTK_SCROLLED_WINDOW(scrolled_window))); g_print("\nafter scrolled window3\n"); =20 return window1; } /////////////////////////////////////////////////////////////////////////= ///////////////////////// ------=_NextPart_000_0154_01C1BDFC.F5BC4850 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi
I am doing a project that involves the = use of=20 GtkList.
I am trying to attach scroll bars = to the lists=20 but am not very successful.
I then tried to do a simple program to = see where I=20 was going wrong ..... The program ran .. but I got this error on the=20 console
 
Gtk-CRITICAL **: file = gtkscrolledwindow.c:=20 line 951 (gtk_scrolled_window_add_with_viewport): assertion = `child->parent =3D=3D=20 NULL' failed.
 
Any Idea what is going wrong = here?
 
Thanks in advance
David
 
The code is as follows:
////////////////////////////////////////////////////////////////= //////////////////////////////////
GtkWidget * create_window1 = (void)
{
 =20 GtkWidget *window1;
  GtkWidget *fixed1;
  GtkWidget=20 *list2;
  GList   *list_items =3D NULL;
  = gint   count;
  = gchar   buff[3];
=20   GtkWidget *scrolled_window =3D NULL;
 
  window1 =3D gtk_window_new=20 (GTK_WINDOW_TOPLEVEL);
  gtk_object_set_data (GTK_OBJECT = (window1),=20 "window1", window1);
  gtk_window_set_title (GTK_WINDOW = (window1),=20 "window1");
 
  fixed1 =3D gtk_fixed_new = ();
 =20 gtk_widget_ref (fixed1);
  gtk_object_set_data_full (GTK_OBJECT=20 (window1), "fixed1",=20 fixed1,
          &n= bsp;           &nb= sp;    =20 (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show=20 (fixed1);
  gtk_container_add (GTK_CONTAINER (window1),=20 fixed1);
 
  list2 =3D gtk_list_new = ();
 =20 gtk_widget_ref (list2);
  gtk_object_set_data_full (GTK_OBJECT=20 (window1), "list2",=20 list2,
          &nb= sp;           &nbs= p;    =20 (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show=20 (list2);
  gtk_fixed_put (GTK_FIXED (fixed1), list2, 40, = 16);
 =20 gtk_widget_set_uposition (list2, 40, 16);
  gtk_widget_set_usize = (list2,=20 104, 136);
 
  for(count =3D 0; count <10 ;=20 count++)
 {
  sprintf(buff, "%d",=20 count);
  list_items =3D g_list_prepend(list_items,=20 gtk_list_item_new_with_label(buff));
 }
  g_print("\= nafter=20 scrolled window4\n");
 gtk_list_append_items(GTK_LIST(list2),=20 list_items);
 g_print("\nafter scrolled=20 window5\n");
 gtk_widget_show_all(list2);
 
 scrolled_window =3D=20 gtk_scrolled_window_new(NULL,NULL);
 if(scrolled_window =3D=3D=20 NULL)
  g_print("\nscroll =3D NULL\n");
 gtk_widget_set_usize(scrolled_window,=20 200,200);
 gtk_scrolled_window_add_with_viewport(GTK_CONTAINER(scroll= ed_window),list2);
 gtk_container_set_focus_hadjustment(GTK_CONTAINER(list2),g= tk_scrolled_window_get_hadjustment=20 GTK_SCROLLED_WINDOW(scrolled_window)));

 gtk_container_set_fo= cus_vadjustment(GTK_CONTAINER(list2),gtk_scrolled_window_get_vadjustment(= GTK_SCROLLED_WINDOW(scrolled_window)));
 g_print("\nafter=20 scrolled window3\n");
 
  return = window1;
}
 
////////////////////////////////////////////////////////////////= //////////////////////////////////
------=_NextPart_000_0154_01C1BDFC.F5BC4850-- From Padraig.Obriain@Sun.COM Mon Feb 25 04:06:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34]) by mail.gnome.org (Postfix) with ESMTP id 0065E18100 for ; Mon, 25 Feb 2002 04:06:42 -0500 (EST) Received: from dub-mail1.Ireland.Sun.COM ([129.156.220.70]) by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id CAA10841; Mon, 25 Feb 2002 02:06:40 -0700 (MST) Received: from maxfly (maxfly [129.156.238.23]) by dub-mail1.Ireland.Sun.COM (8.10.2+Sun/8.10.2/ENSMAIL,v2.1p1) with SMTP id g1P96du22622; Mon, 25 Feb 2002 09:06:39 GMT Message-Id: <200202250906.g1P96du22622@dub-mail1.Ireland.Sun.COM> Date: Mon, 25 Feb 2002 09:06:39 +0000 (GMT) From: "Padraig O'Briain" Reply-To: "Padraig O'Briain" Subject: Re: Trouble to compile atk-0.12 To: gtk-list@gnome.org, oliver_singla@yahoo.com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: DLwcr9KsDr4mKR/NOm8D5g== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4 SunOS 5.8 sun4u sparc Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It seems that pkg-config call for glib_genmarshal in glib-2.0 is returing the strange relative directory path ..//home/... What prefix did you specify when configuring glib? Padraig > > Hi, > > On my RH7.2 box, I have trouble to compile atk-0.12. After I have ran > .configure, here is what I get when I do a make: > > > [omsingla@oliver atk-0.12]$ make > Making all in atk > make[1]: Entering directory `/home/omsingla/gtk/1.3/atk-0.12/atk' > case ..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal in \ > .*) glib_genmarshal=`pwd`/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmars hal ;; \ *) glib_genmarshal=..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal ;; \ > esac; > \ > $glib_genmarshal --prefix=atk_marshal ./atkmarshal.list --body >> xgen-gmc \ > && (cmp -s xgen-gmc ./atkmarshal.c || cp xgen-gmc ./atkmarshal.c) \ > && rm -f xgen-gmc xgen-gmc~ \ > && echo timestamp > stamp-atkmarshal.c > /bin/sh: /home/omsingla/gtk/1.3/atk-0.12/atk/..//home/omsingla/gtk/1.3/glib-1.3.14/gobjec t/glib-genmarshal: No such file or directory > make[1]: *** [stamp-atkmarshal.c] Error 127 > make[1]: Leaving directory `/home/omsingla/gtk/1.3/atk-0.12/atk' > make: *** [all-recursive] Error 1 > [omsingla@oliver atk-0.12]$ > > Any idea ? > > TIA, > Olivier Singla > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From Steph.Fox@btinternet.com Mon Feb 25 04:08:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rhenium.btinternet.com (rhenium.btinternet.com [194.73.73.93]) by mail.gnome.org (Postfix) with ESMTP id 7BD8618F9B for ; Mon, 25 Feb 2002 04:08:08 -0500 (EST) Received: from host62-7-81-252.in-addr.btopenworld.com ([62.7.81.252] helo=t2r1o8) by rhenium.btinternet.com with smtp (Exim 3.22 #8) id 16fH76-0000gG-00; Mon, 25 Feb 2002 09:08:05 +0000 Message-ID: <00b601c1bddb$c96966a0$96fd7ad5@t2r1o8> From: "Steph" To: "David Joseph" , References: <015701c1bdce$ddb60210$aa0ba8c0@djj> Subject: Re: Problems in attaching GtkScrolledWindow to GtkList Date: Mon, 25 Feb 2002 09:05:53 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yeah, the list already has a parent - the 'fixed'. ps html drives the regulars mad .. ----- Original Message -----=20 From: "David Joseph" To: Sent: Monday, February 25, 2002 7:34 AM Subject: Problems in attaching GtkScrolledWindow to GtkList=20 Hi I am doing a project that involves the use of GtkList. I am trying to attach scroll bars to the lists but am not very = successful. I then tried to do a simple program to see where I was going wrong ..... = The program ran .. but I got this error on the console Gtk-CRITICAL **: file gtkscrolledwindow.c: line 951 = (gtk_scrolled_window_add_with_viewport): assertion `child->parent =3D=3D = NULL' failed. Any Idea what is going wrong here? Thanks in advance David The code is as follows: /////////////////////////////////////////////////////////////////////////= ///////////////////////// GtkWidget * create_window1 (void) { GtkWidget *window1; GtkWidget *fixed1; GtkWidget *list2; GList *list_items =3D NULL; gint count; gchar buff[3]; GtkWidget *scrolled_window =3D NULL; window1 =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (window1), "window1", window1); gtk_window_set_title (GTK_WINDOW (window1), "window1"); fixed1 =3D gtk_fixed_new (); gtk_widget_ref (fixed1); gtk_object_set_data_full (GTK_OBJECT (window1), "fixed1", fixed1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (fixed1); gtk_container_add (GTK_CONTAINER (window1), fixed1); list2 =3D gtk_list_new (); gtk_widget_ref (list2); gtk_object_set_data_full (GTK_OBJECT (window1), "list2", list2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (list2); gtk_fixed_put (GTK_FIXED (fixed1), list2, 40, 16); gtk_widget_set_uposition (list2, 40, 16); gtk_widget_set_usize (list2, 104, 136); for(count =3D 0; count <10 ; count++) { sprintf(buff, "%d", count); list_items =3D g_list_prepend(list_items, = gtk_list_item_new_with_label(buff)); } g_print("\nafter scrolled window4\n"); gtk_list_append_items(GTK_LIST(list2), list_items); g_print("\nafter scrolled window5\n"); gtk_widget_show_all(list2); =20 scrolled_window =3D gtk_scrolled_window_new(NULL,NULL); if(scrolled_window =3D=3D NULL) g_print("\nscroll =3D NULL\n"); gtk_widget_set_usize(scrolled_window, 200,200); = gtk_scrolled_window_add_with_viewport(GTK_CONTAINER(scrolled_window),list= 2); = gtk_container_set_focus_hadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_hadjustment GTK_SCROLLED_WINDOW(scrolled_window))); = gtk_container_set_focus_vadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_vadjustment(GTK_SCROLLED_WINDOW(scrolled_window))); g_print("\nafter scrolled window3\n"); =20 return window1; } /////////////////////////////////////////////////////////////////////////= ///////////////////////// From kasonhuang@kinposh.com.cn Mon Feb 25 04:18:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 6592518211 for ; Mon, 25 Feb 2002 04:18:09 -0500 (EST) Subject: FW: About the focus move in table? Date: Mon, 25 Feb 2002 17:17:13 +0800 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C1BDDD.3626FC52" Message-ID: <92CD479384374A439EFA0077E7C50F82260CE2@kes01.kinposh.com.cn> X-MS-Has-Attach: yes content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: About the focus move in table? Thread-Index: AcG8BZGUSrsvSSg0Eda2ugCAyEUULQB1dxNQ From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1BDDD.3626FC52 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable -----Original Message----- From: =B6=C0=BCy Kason Huang=20 Sent: Saturday, February 23, 2002 9:01 AM To: gtk-list@gnome.org Subject: About the focus move in table? hi guys:=20 anyone could tell how to change the focus in three tables(there is a lot = of buttons in each table) with keyboard.=20 and I find that the buttons focus in one table couldn't be changed = smoothly.for example,when you press left key on keyboard,you expect the = focus will move to the left button,however the focus maybe move to the a = button on the bottom of the table. a table's layout like tablelayout.doc picture:(24 buttons in one table) = =20 when focus in 14 button,i press down key on keyboard.i expect the focus = will move to the 20 button,the result is the focus moves to the15 button = or other button,not 20 button.the same thing is happen to the 18,20 = button.do anyone knows how to handle with the problem? or how to control = the focus in a table? Thanks in advance!=20 kason=20 ------_=_NextPart_001_01C1BDDD.3626FC52 Content-Type: application/msword; name="tablelayout.doc" Content-Transfer-Encoding: base64 Content-Description: tablelayout.doc Content-Disposition: attachment; filename="tablelayout.doc" 0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAIQAAAAAAAAAA EAAAIwAAAAEAAAD+////AAAAACAAAAD///////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////s pcEATSAJBAAA8FK/AAAAAAAAEAAAAAAABAAAzwQAAA4AYmpiauI94j0AAAAAAAAAAAAAAAAAAAAA AAAEBBYAMgwAAIBXAACAVwAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAAAAAAAAAD//w8AAAAA AAAAAAD//w8AAAAAAAAAAAD//w8AAAAAAAAAAAAAAAAAAAAAAGwAAAAAAJAAAAAAAAAAkAAAAJAA AAAAAAAAkAAAAAAAAADgAAAAAAAAAOAAAAAAAAAA4AAAABQAAAAAAAAAAAAAAPQAAAAAAAAA1AEA AAAAAADUAQAAAAAAANQBAAAAAAAA1AEAAAwAAADgAQAADAAAAPQAAAAAAAAAdAoAAPoAAAD4AQAA AAAAAPgBAAAAAAAA+AEAAAAAAAD4AQAAAAAAAPgBAAAAAAAAcQkAAAAAAABxCQAAAAAAAHEJAAAA AAAA8wkAAAIAAAD1CQAAAAAAAPUJAAAAAAAA9QkAAAAAAAD1CQAAAAAAAPUJAAAAAAAA9QkAACQA AABuCwAAIAIAAI4NAAA+AAAAGQoAABUAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAABxCQAAAAAA AAAAAAAAAAAAAAAAAAAAAABPCQAAIgAAAHEJAAAAAAAAcQkAAAAAAABxCQAAAAAAABkKAAAAAAAA rwkAAAAAAACQAAAAAAAAAJAAAAAAAAAA+AEAAAAAAAAAAAAAAAAAAPgBAABXBwAALgoAABYAAACv CQAAAAAAAK8JAAAAAAAArwkAAAAAAABxCQAAAAAAAJAAAAA4AAAA+AEAAAAAAADgAAAAAAAAAPgB AAAAAAAA8wkAAAAAAAAAAAAAAAAAAK8JAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAcQkAAAAAAADzCQAAAAAAAK8JAABEAAAArwkAAAAAAAAAAAAA AAAAAPMJAAAAAAAAyAAAABgAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8wkAAAAAAAD4AQAAAAAAAOwBAAAMAAAAYAmb7dy9 wQH0AAAA4AAAANQBAAAAAAAAcQkAABAAAADzCQAAAAAAAAAAAAAAAAAA8wkAAAAAAABECgAAMAAA AHQKAAAAAAAA8wkAAAAAAADMDQAAAAAAAIEJAAAuAAAAzA0AAAAAAADzCQAAAAAAAK8JAAAAAAAA 9AAAAAAAAAD0AAAAAAAAAJAAAAAAAAAAkAAAAAAAAACQAAAAAAAAAJAAAAAAAAAAAgDZAAAACA0x ICAgICAgICAyICAgICAgIDMgICAgICAgNCAgICAgICA1ICAgICAgIDYgICAgICAgIDcNDTggICAg ICAgIDkgICAgICAxMCAgICAgIDExICAgICAgIDEyICAgICAgMTMgICAgICAgIDE0DQ0xNSAgICAg ICAxNiAgICAgMTcgICAgICAxOCAgICAgIDE5ICAgICAgICAgIDIwDQ0yMSAgICAgICAgMjIgICAg ICAgMjMgICAgICAgICAgICAgICAgICAgICAgMjQNDQ0NAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAA AQQAAM8EAADzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYA2oAAAAAQ0oUAFUIAW1IAARuSAAEdQgBAgAEAAAC BAAANgQAADcEAABtBAAAbgQAAJ0EAACeBAAAzAQAAM0EAADOBAAAzwQAAP0AAAAAAAAAAAAAAAD9 AAAAAAAAAAAAAAAA/QAAAAAAAAAAAAAAAP0AAAAAAAAAAAAAAAD9AAAAAAAAAAAAAAAA/QAAAAAA AAAAAAAAAP0AAAAAAAAAAAAAAAD9AAAAAAAAAAAAAAAA/QAAAAAAAAAAAAAAAP0AAAAAAAAAAAAA AAD9AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAALAAQAAAIE AADOBAAA/v4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBAQIwADGQaAEy UAIAH7CCLiCwxkEhsAgHIrAIByOQoAUkkKAFJbAAABewUwMYsOADDJCpAQAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAPAAoAAQBp AA8AAwAAAAMAAAAAAEAAAEDx/wIAQAAMAAIAZ1GHZQAABQAAADEkAAAkAENKGABLSAIAUEoDAF9I AQRhShgAbUgJBG5IBARzSAkEdEgEBAAAAAAAAAAAAAAAAAAAAAAAABwAQUDy/6EAHAAMAAYAEJgt irVrPYRXW4tXAAAAAAAAAAAAAAAAAAAAAMsAAADPAAAAAQAAAAAAAAAAAP////8CBAAAAAAAAP// //8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAywAAAM4AAAAAAAAAAAj//wAAAAAAAAAAzwAAAAcAAAwA AAAA/////wAAAAACAAAANgAAADcAAABtAAAAbgAAAJ0AAACeAAAAzAAAAM0AAADQAAAAmAAAAAAw AAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAA AAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAA AIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAA AACAAAQAAM8EAAADAAAAAAQAAM8EAAAEAAAAAAQAAM4EAAAFAAAADwAA8DgAAAAAAAbwGAAAAAII AAACAAAADQAAAAEAAAABAAAADgAAAEAAHvEQAAAA//8AAAAA/wCAgIAA9wAAEAAPAALwDgcAABAA CPAIAAAADAAAAA0EAAAPAAPwrAYAAA8ABPAoAAAAAQAJ8BAAAAAAAAAAAAAAAAAAAAAAAAAAAgAK 8AgAAAAABAAABQAAAA8AA/B0BgAADwAE8JYAAAABAAnwEAAAACQJAAAIBwAAkCQAAEgSAAACAArw CAAAAA0EAAABAgAAIwAL8DoAAACDwy4AAAC/AwAAQAAFAAgACADS////AAAAANL///9gVAAAvFQA AGBUAAC8VAAAAAAAANL///8AAAAAIwAi8QwAAACPAwAAAACRAwAAAAAAABDwBAAAAAAAAAAAABHw BAAAAAEAAAAPAATwiAAAABIACvAIAAAAAgQAAAIKAAAzAAvwQAAAAIAAAAABAIPDLgAAAL8DAABA AAUACAAIANL///8AAAAA0v///2BUAACOVAAAYFQAAI5UAAAAAAAA0v///wAAAAAAAA/wEAAAACQJ AAAIBwAAkCQAAEgSAAAAABHwBAAAABcAAAAAAA3wBAAAAAAAAQAPAATwjgAAAEIBCvAIAAAABAQA AAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIANL/ //8AAAAA0v///wAAAACOVAAAAAAAAI5UAAAAAAAA0v///wAAAAAAAA/wEAAAACQJAADYCQAAkCQA ANgJAAAAABHwBAAAABAAAAAPAATwjgAAAEIBCvAIAAAABQQAAAIKAABjAAvwUgAAAEQBBAAAAH8B AAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIANL///8AAAAA0v///wAAAACOVAAAAAAA AI5UAAAAAAAA0v///wAAAAAAAA/wEAAAACQJAACoDAAAkCQAAKgMAAAAABHwBAAAABAAAAAPAATw jgAAAEIBCvAIAAAABgQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAA AL8DAABAAAUACAAIANL///8AAAAA0v///wAAAACOVAAAAAAAAI5UAAAAAAAA0v///wAAAAAAAA/w EAAAACQJAAB4DwAAkCQAAHgPAAAAABHwBAAAABAAAAAPAATwjgAAAEIBCvAIAAAABwQAAAIKAABj AAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAA AAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAAKgMAAAIBwAAqAwAAEgSAAAA ABHwBAAAABAAAAAPAATwjgAAAEIBCvAIAAAACAQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8B AAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAA AAAAAAAAAAAAAAAAAA/wEAAAACwQAAAIBwAALBAAAEgSAAAAABHwBAAAABUAAAAPAATwjgAAAEIB CvAIAAAACQQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABA AAUACAAIAAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAALAT AAAIBwAAsBMAAHgPAAAAABHwBAAAABsAAAAPAATwjgAAAEIBCvAIAAAACgQAAAIKAABjAAvwUgAA AEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAAAAAAAPBT AAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAADQXAAAIBwAANBcAAEgSAAAAABHwBAAA ABwAAAAPAATwjgAAAEIBCvAIAAAACwQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8B EAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAA AAAAAAAAAA/wEAAAAGwbAAAIBwAAbBsAAHgPAAAAABHwBAAAAB0AAAAPAATwjgAAAEIBCvAIAAAA DAQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAI AAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAAKQfAAAIBwAA pB8AAKgMAAAAABHwBAAAABwAAAAPAATwQgAAABIACvAIAAAAAQQAAAAOAABTAAvwHgAAAL8BAAAQ AMsBAAAAAP8BAAAIAAQDCQAAAD8DAQABAAAAEfAEAAAAAQAAAAAAAADPAAAADQQAABwCAABUBgAA IBwAAJQRAACUAAAAAAAAAAAAAgAAANAAAAAHAAcAAAAAAAIAAAA1AAAANwAAAG0AAABuAAAAywAA ANAAAAAHAAUABwAFAAcABQAHAP//AgAAAAUAQwBsAGkAbgBlABgAQwA6AFwATQB5ACAARABvAGMA dQBtAGUAbgB0AHMAXABEAG8AYwAxAC4AZABvAGMA/0ADgAEAAAAAAAAAAADI6G4AAQAAAAAAAAAA AAAAAAAAAAAAAAACEAAAAAAAAADPAAAAcAAACABAAAD//wEAAAAHAFUAbgBrAG4AbwB3AG4A//8B AAgAAAAAAAAAAAAAAP//AQAAAAAA//8AAAIA//8AAAAA//8AAAIA//8AAAAABAAAAEcWkAEAAAIC BgMFBAUCAwSHOgAAAAAAAAAAAAAAAAAA/wAAAAAAAABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBt AGEAbgAAADUWkAECAAUFAQIBBwYCBQcAAAAAAAAAEAAAAAAAAAAAAAAAgAAAAABTAHkAbQBiAG8A bAAAADMmAAAAAAILBgQCAgICAgSHOgAAAAAAAAAAAAAAAAAA/wAAAAAAAABBAHIAaQBhAGwAAABD FpABiAUCAgMAAAAAAAAAAQAAAAAACAgQAAAAAAAAAAAAEAAAAAAAsGUwfQ5m1JoAAFAATQBpAG4A ZwBMAGkAVQAAACAABAAxCIgYAADgAQAAaAEAAAAARMxiJk/MYiYAAAAAAQALAAAAAAAAAAEAAAAB AAEAAAAEAAMQAQAAAAAAAAAAAAAAAQABAAAAAQAAAAAAAAAhAwAAAAAAAAMAPwAcACEAKQAsAC4A OgA7AD8AXQB9AKIAtwATIBQgGSAdICIgJSAmICcgMiB0JQEwAjAJMAswDTAPMBEwFTAeMDD+Mf4z /jT+Nv44/jr+PP4+/kD+Qv5E/k/+UP5R/lL+VP5V/lb+V/5a/lz+Xv4B/wn/DP8O/xr/G/8f/1z/ Xf9k/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAFsAewCjAKUAGCAcIDUgCDAKMAwwDjAQMBQwHTA1/jf+ Of47/j3+P/5B/kP+Wf5b/l3+CP9b/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAIB6AFtAC0AIKAcgAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAA AAEygxEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//xIAAAAAAAAAAAAAAAAA AAAFAEMAbABpAG4AZQAFAEMAbABpAG4AZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP7/AAAECgIAAAAAAAAAAAAA AAAAAAAAAAEAAADghZ/y+U9oEKuRCAArJ7PZMAAAAGgBAAARAAAAAQAAAJAAAAACAAAAmAAAAAMA AACkAAAABAAAALAAAAAFAAAAwAAAAAYAAADMAAAABwAAANgAAAAIAAAA7AAAAAkAAAD8AAAAEgAA AAgBAAAKAAAAJAEAAAwAAAAwAQAADQAAADwBAAAOAAAASAEAAA8AAABQAQAAEAAAAFgBAAATAAAA YAEAAAIAAAC2AwAAHgAAAAEAAAAAAHMAHgAAAAEAAAAAAHMAHgAAAAYAAABDbGluZQBmAB4AAAAB AAAAAGxpbh4AAAABAAAAAGxpbh4AAAALAAAATm9ybWFsLmRvdAAAHgAAAAYAAABDbGluZQAuZB4A AAACAAAAMQBpbh4AAAATAAAATWljcm9zb2Z0IFdvcmQgOS4wAABAAAAAAAJkiQEAAABAAAAAAIAR Xdu9wQFAAAAAAIJ15ty9wQEDAAAAAQAAAAMAAAAAAAAAAwAAAAEAAAADAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/wAABAoCAAAAAAAAAAAAAAAAAAAAAAAB AAAAAtXN1ZwuGxCTlwgAKyz5rjAAAADsAAAADAAAAAEAAABoAAAADwAAAHAAAAAFAAAAgAAAAAYA AACIAAAAEQAAAJAAAAAXAAAAmAAAAAsAAACgAAAAEAAAAKgAAAATAAAAsAAAABYAAAC4AAAADQAA AMAAAAAMAAAAzQAAAAIAAAC2AwAAHgAAAAYAAABLaW5wbwBucAMAAAABAAAAAwAAAAEAAAADAAAA AQAAAAMAAADtDgkACwAAAAAAAAALAAAAAAAAAAsAAAAAAAAACwAAAAAAAAAeEAAAAQAAAAEAAAAA DBAAAAIAAAAeAAAABQAAALzQw0QAAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAP7///8J AAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAA/v///xEAAAASAAAAEwAAABQAAAAVAAAAFgAAABcA AAD+////GQAAABoAAAAbAAAAHAAAAB0AAAAeAAAAHwAAAP7////9////IgAAAP7////+/////v// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////9SAG8AbwB0ACAARQBuAHQAcgB5AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFgAFAf//////////AwAAAAYJAgAAAAAAwAAA AAAAAEYAAAAAAAAAAAAAAAAgMaTt3L3BASQAAACAAAAAAAAAADEAVABhAGIAbABlAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAIA//////////// ////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAQAAAAAAAAVwBvAHIA ZABEAG8AYwB1AG0AZQBuAHQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABoAAgEFAAAA//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAAAAAAAAAFAFMAdQBtAG0AYQByAHkASQBuAGYAbwByAG0AYQB0AGkAbwBuAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAKAACAQIAAAAEAAAA/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAABAAAAAAEAAAAAAAAAUARABvAGMAdQBtAGUAbgB0AFMAdQBtAG0AYQByAHkASQBu AGYAbwByAG0AYQB0AGkAbwBuAAAAAAAAAAAAAAA4AAIB////////////////AAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAAQAAAAAAAAAQBDAG8AbQBwAE8AYgBqAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAgEBAAAABgAAAP// //8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZgAAAAAAAABPAGIAagBl AGMAdABQAG8AbwBsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA FgABAP///////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAIDGk7dy9wQEgMaTt3L3BAQAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA////////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAP7///////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////8BAP7/AwoAAP////8GCQIAAAAAAMAAAAAAAABGFAAAAE1pY3Jv c29mdCBXb3JkIKTlpfMACgAAAE1TV29yZERvYwAQAAAAV29yZC5Eb2N1bWVudC44APQ5snEAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAA== ------_=_NextPart_001_01C1BDDD.3626FC52-- From lettere@di.unipi.it Mon Feb 25 04:30:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailserver.di.unipi.it (apis.di.unipi.it [131.114.4.6]) by mail.gnome.org (Postfix) with ESMTP id B044318766 for ; Mon, 25 Feb 2002 04:30:16 -0500 (EST) Received: from orione.di.unipi.it (orione [131.114.2.112]) by mailserver.di.unipi.it (8.11.6/8.11.6) with ESMTP id g1P9U5m31578 for ; Mon, 25 Feb 2002 10:30:05 +0100 Received: from localhost (lettere@localhost) by orione.di.unipi.it (8.11.2/8.9.1) with ESMTP id g1P9UcB26585 for ; Mon, 25 Feb 2002 10:30:38 +0100 X-Authentication-Warning: orione.di.unipi.it: lettere owned process doing -bs Date: Mon, 25 Feb 2002 10:30:38 +0100 (CET) From: Marco Lettere To: Subject: how to align a label in GtkTable Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello, I always get a label attached in a GtkTable to be centered in its cell. How do I get it to be left aligned? is it possible using only gtk_table_*() or gtk_label_*() functions? thanx, M. ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| From kasonhuang@kinposh.com.cn Mon Feb 25 04:37:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 3A3B418C94 for ; Mon, 25 Feb 2002 04:37:37 -0500 (EST) Subject: RE: how to align a label in GtkTable Date: Mon, 25 Feb 2002 17:36:42 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: how to align a label in GtkTable Thread-Index: AcG93xNEYNo31mkHQeiwoEBleADDCQAAGWIA From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: "Marco Lettere" Cc: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi: you could try gtk_label_set_justify(GtkLabel *label,GtkJustification = jtype); typedef enum { GTK_JUSTIFY_LEFT, GTK_JUSTIFY_RIGHT, GTK_JUSTIFY_CENTER, GTK_JUSTIFY_FILL } GtkJustification; for example: gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT); -----Original Message----- From: Marco Lettere [mailto:lettere@di.unipi.it] Sent: Monday, February 25, 2002 5:31 PM To: gtk-list@gnome.org Subject: how to align a label in GtkTable hello, I always get a label attached in a GtkTable to be centered in its cell. How do I get it to be left aligned? is it possible using only gtk_table_*() or gtk_label_*() functions? thanx, M. ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From anjali_grover@yahoo.com Mon Feb 25 04:46:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14606.mail.yahoo.com (web14606.mail.yahoo.com [216.136.224.86]) by mail.gnome.org (Postfix) with SMTP id 617BF18C94 for ; Mon, 25 Feb 2002 04:46:14 -0500 (EST) Message-ID: <20020225094613.99455.qmail@web14606.mail.yahoo.com> Received: from [155.69.5.223] by web14606.mail.yahoo.com via HTTP; Mon, 25 Feb 2002 01:46:13 PST Date: Mon, 25 Feb 2002 01:46:13 -0800 (PST) From: Anjali Grover Subject: Making Linux system calls as a signal to an event To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am a new user of GTK. I want to execute a Linux system call (like "ls" or "make" on the command line) by clicking on a button on my GTK interface. I am using C for my GTK code. I have associate the "clicked" event to my button as a signal to call a callback function. Within this callback function, how can I make system calls. ALso, how can I send parameters filled in by the user in my text entries to my other C files. I need to pass the content of the text entries to variables inside my other C files. Thank you, Anjali __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From lettere@di.unipi.it Mon Feb 25 04:46:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailserver.di.unipi.it (apis.di.unipi.it [131.114.4.6]) by mail.gnome.org (Postfix) with ESMTP id D9C7218C94 for ; Mon, 25 Feb 2002 04:46:16 -0500 (EST) Received: from orione.di.unipi.it (orione [131.114.2.112]) by mailserver.di.unipi.it (8.11.6/8.11.6) with ESMTP id g1P9k4m00765; Mon, 25 Feb 2002 10:46:04 +0100 Received: from localhost (lettere@localhost) by orione.di.unipi.it (8.11.2/8.9.1) with ESMTP id g1P9kcv26730; Mon, 25 Feb 2002 10:46:38 +0100 X-Authentication-Warning: orione.di.unipi.it: lettere owned process doing -bs Date: Mon, 25 Feb 2002 10:46:38 +0100 (CET) From: Marco Lettere To: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= Cc: Subject: RE: how to align a label in GtkTable In-Reply-To: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, 25 Feb 2002, [big5] =B6=C0=BCy Kason Huang wrote: yes I tried it by it doesn't seem to work in a table cell context. I do create a table, create a label, set the label justification and then attach the label. I don't know if I'm doing something wrong. Are there some caveats like "first set alignment of the label and then attach it to the table" or or viceversa? M. > hi: > you could try gtk_label_set_justify(GtkLabel *label,GtkJustification jtyp= e); > typedef enum > { > GTK_JUSTIFY_LEFT, > GTK_JUSTIFY_RIGHT, > GTK_JUSTIFY_CENTER, > GTK_JUSTIFY_FILL > } GtkJustification; > > > hello, > > I always get a label attached in a GtkTable to be centered in its cell. > How do I get it to be left aligned? is it possible using only > gtk_table_*() or gtk_label_*() functions? > thanx, > M. > > ____ _____ > | _ \ ___ ___ _ __| ____| > | | | |/ __/ _ \| '__| _| > | |_| | (_| (_) | | | |___ > |____/ \___\___/|_| |_____| > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| From kasonhuang@kinposh.com.cn Mon Feb 25 05:10:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id B174018163 for ; Mon, 25 Feb 2002 05:10:44 -0500 (EST) Subject: about curses programming? Date: Mon, 25 Feb 2002 18:09:49 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F82260CE8@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: about curses programming? Thread-Index: AcG95I2fx3U53SoQEda2ugCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Cc: "Paul Davis" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello: it 's not gtk problem. anyone know Curses programming? how to create Makefile,how to make? like the following code how to do? /* File: helloworld.c */ #include int main(int argc, char *argv[]) { initscr(); =09 box(stdscr, ACS_VLINE, ACS_HLINE); =09 mvaddstr(11, 30, "Hello World!"); refresh(); getch(); endwin(); return 0; } Thanks for you help. kason From Steph.Fox@btinternet.com Mon Feb 25 05:13:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium.btinternet.com (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id D70BF18830 for ; Mon, 25 Feb 2002 05:13:12 -0500 (EST) Received: from host213-1-158-138.btinternet.com ([213.1.158.138] helo=t2r1o8) by protactinium.btinternet.com with smtp (Exim 3.22 #8) id 16fI7v-0005QJ-00; Mon, 25 Feb 2002 10:13:00 +0000 Message-ID: <00da01c1bde4$dad6fc00$96fd7ad5@t2r1o8> From: "Steph" To: "Marco Lettere" , "=?iso-8859-1?B?tsC8eSBLYXNvbiBIdWFuZw==?=" Cc: References: Subject: Re: how to align a label in GtkTable Date: Mon, 25 Feb 2002 10:11:48 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I've never managed to get the text justification working in a label = either. But GtkMisc functions set_alignment(x, y) and set_padding(x, y) work = just fine .. ----- Original Message -----=20 From: "Marco Lettere" To: "=B6=C0=BCy Kason Huang" Cc: Sent: Monday, February 25, 2002 9:46 AM Subject: RE: how to align a label in GtkTable On Mon, 25 Feb 2002, [big5] =B6=C0=BCy Kason Huang wrote: yes I tried it by it doesn't seem to work in a table cell context. I do create a table, create a label, set the label justification and then attach the label. I don't know if I'm doing something wrong. Are there some caveats like "first set alignment of the label and then attach it to the table" or or viceversa? M. > hi: > you could try gtk_label_set_justify(GtkLabel *label,GtkJustification = jtype); > typedef enum > { > GTK_JUSTIFY_LEFT, > GTK_JUSTIFY_RIGHT, > GTK_JUSTIFY_CENTER, > GTK_JUSTIFY_FILL > } GtkJustification; > > > hello, > > I always get a label attached in a GtkTable to be centered in its = cell. > How do I get it to be left aligned? is it possible using only > gtk_table_*() or gtk_label_*() functions? > thanx, > M. > > ____ _____ > | _ \ ___ ___ _ __| ____| > | | | |/ __/ _ \| '__| _| > | |_| | (_| (_) | | | |___ > |____/ \___\___/|_| |_____| > > > _______________________________________________ > 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 John.Cupitt@ng-london.org.uk Mon Feb 25 07:14:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id C10C518779 for ; Mon, 25 Feb 2002 07:14:07 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMF7X>; Mon, 25 Feb 2002 12:14:06 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMF74; Mon, 25 Feb 2002 12:13:57 -0000 Message-ID: <3C7A2734.1090803@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: ehml@pacific.net.sg Cc: gtk-list@gnome.org Subject: Re: Scrolled window unable to handle huge list ( > 1700 entries) in it Date: Mon, 25 Feb 2002 11:59:48 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ehml wrote: > I notice that when I have more than 1700 (exact number is around 167+) > entries in a list (or tree), and the list is in a scrolled window, it will > not be displayed correctly. Anyone know limitation on the number of entry > (or height) a scrolled window can support, and is there a known way to > workaround this? Hi, GtkList and GtkTree use an X window to scroll. X windows have 16-bit coordinates, so you're probably running into a 32767 pixel limit. I think GtkCList does not have this problem. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From pvosta@unionbio-eu.com Mon Feb 25 07:15:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 66DC01879B for ; Mon, 25 Feb 2002 07:15:45 -0500 (EST) Received: (qmail 25003 invoked from network); 25 Feb 2002 12:11:50 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 25 Feb 2002 12:11:50 -0000 Message-ID: <3C7A2AAF.89B66FFE@unionbio-eu.com> Date: Mon, 25 Feb 2002 13:14:39 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: list of functions in menu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want to build software on RedHat Linux 7.2 with a frontend based on GTK. I already have several C-functions that will be the "backend" of the application. I am now looking for a way to use a list of these functions with their arguments to put them "automatically" into menus and submenus in a graphical interface. So eg. the interface item for the function "readimage( file )" would be placed in a window with automatic generation a text box "readimage" to fill out the filename or even a filebrowser. Are there tools available to do this ? Best regards, Peter From John.Cupitt@ng-london.org.uk Mon Feb 25 07:25:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 65D971879B for ; Mon, 25 Feb 2002 07:25:38 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMF89>; Mon, 25 Feb 2002 12:25:37 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMF88; Mon, 25 Feb 2002 12:25:32 -0000 Message-ID: <3C7A29EB.7040902@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: ehml@pacific.net.sg Cc: gtk-list@gnome.org Subject: Re: key input get grab by other widget Date: Mon, 25 Feb 2002 12:11:23 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ehml wrote: > In the drawing-area, I assign "key press event" to it. It work find for key > like "a" and "b", but does not work for arrow key. Once I press a arrow key, > the "check button" grab that input, and subsequently, all key is grab by the > "check button". The same will happen if I point at the menu-bar and click in a > empty space following by pressing a key. What I need is: > > If the pointer is in the drawing-area, drawing-area should grab all key event. Hi again :) the problem is that GtkDrawingArea does not implement any of the focus stuff that other widgets have (eg. drawing a focus highlight, catching focus_in/_out events, etc.). This means that keyboard input to a drawing area does not work well, especially if you mix drawing areas and widgets with "real" keyboard handling. I think the best solution is to subclass drawing area and implement the gtk focus system. It's not actually that hard ... when I did this I think I read gtkbutton and based it on that code. As I recall, you just need to implement draw_focus focus_in_event focus_out_event button_press_event button_release_event expose (you need to add code to draw the focus indicator) John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From John.Cupitt@ng-london.org.uk Mon Feb 25 07:28:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 133B618779 for ; Mon, 25 Feb 2002 07:28:18 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMF9P>; Mon, 25 Feb 2002 12:28:17 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMF93; Mon, 25 Feb 2002 12:28:08 -0000 Message-ID: <3C7A2A88.7060406@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: Romain.Parmantier@wanadoo.fr Cc: gtk-list@gnome.org Subject: Re: GTK Background Date: Mon, 25 Feb 2002 12:14:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Romain wrote: > For my application, I need a transparent background for a GtkText (not a > white background). It is possible? And how can I do this if it is possible ? You can have a static pixmap in the background with a theme, but I think that's all you can do without a lot of work :-( Of course, I'm probably wrong. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From hp@redhat.com Mon Feb 25 10:37:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 16D63193BE for ; Mon, 25 Feb 2002 10:37:16 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1PFbCa10189; Mon, 25 Feb 2002 10:37:12 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: =?big5?b?tsC8eQ==?= Kason Huang Cc: "Marco Lettere" , Subject: Re: how to align a label in GtkTable References: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> From: Havoc Pennington Date: 25 Feb 2002 10:37:12 -0500 In-Reply-To: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: =B6=C0=BCy Kason Huang writes: > hi: > you could try gtk_label_set_justify(GtkLabel *label,GtkJustification jtyp= e); > typedef enum > { > GTK_JUSTIFY_LEFT, > GTK_JUSTIFY_RIGHT, > GTK_JUSTIFY_CENTER, > GTK_JUSTIFY_FILL > } GtkJustification; >=20 > for example: > gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT); >=20 This is the wrong function - see the FAQ. You want gtk_misc_set_alignment() Havoc From anjali_grover@yahoo.com Mon Feb 25 10:43:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14608.mail.yahoo.com (web14608.mail.yahoo.com [216.136.224.88]) by mail.gnome.org (Postfix) with SMTP id AFBFC187D4 for ; Mon, 25 Feb 2002 10:43:05 -0500 (EST) Message-ID: <20020225154305.35127.qmail@web14608.mail.yahoo.com> Received: from [155.69.5.223] by web14608.mail.yahoo.com via HTTP; Mon, 25 Feb 2002 07:43:05 PST Date: Mon, 25 Feb 2002 07:43:05 -0800 (PST) From: Anjali Grover Subject: Plotting x-y graph with GTK To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Is there a way to plot a linear x versus y graph on the GUI developed with GTK? Thanx! Anjali __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From rwalden@tripos.com Mon Feb 25 11:42:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id AFE3B18B19 for ; Mon, 25 Feb 2002 11:42:41 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id KAA29754 for ; Mon, 25 Feb 2002 10:42:40 -0600 (CST) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma029691; Mon, 25 Feb 02 10:41:51 -0600 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id KAA43025 for ; Mon, 25 Feb 2002 10:41:51 -0600 (CST) Message-ID: <3C7A694E.FE8E50DD@tripos.com> Date: Mon, 25 Feb 2002 10:41:50 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: GTK List Subject: GTK_TYPE_BOXED References: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm attempting to port some gtk+-1.2 widgets to 2.0 (1.3.13 actually) and I'm running into a problem with an object that is derived from a GTK_TYPE_BOXED type. This seems to cause a segfault in the g_type system. I found some mention of this in the some of the list archives, but I couldn't figure what the resolution was. Is it an O.K. thing to derive objects from GTK_TYPE_BOXED and expect it to work with the new g_type system? Sorry for being so vague, but I'm on the fuzzy frontier of the understanding of my own problem... :) Thanks, Ralph Walden -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From flavio@maqplas.com.br Mon Feb 25 12:36:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id B376218B30 for ; Mon, 25 Feb 2002 12:36:23 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1PHa8Aj024452 for ; Mon, 25 Feb 2002 14:36:09 -0300 (BRT) Subject: Scrollbar flickers when clock run From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 25 Feb 2002 14:38:24 -0300 Message-Id: <1014658705.1109.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I'm using GTK 1.2 and my application has a clock that run always when I start the program, I make this clock using gtk_timeout_add with 1 second of interval and each 1 second it changes a gtk_label to show the elapsed time, and the program has too a CList with vertical scrollbar, but this scrollbar is making randon flickering when the numbers (gtk_label) of clock are swapped, why this occurs ? How to fix this ? Thanks in advance for all help Flavio Alberto From p@dirac.org Mon Feb 25 13:04:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from satan.diablo.localnet (adsl-64-164-47-8.dsl.scrm01.pacbell.net [64.164.47.8]) by mail.gnome.org (Postfix) with ESMTP id CEA8F181A5 for ; Mon, 25 Feb 2002 13:04:11 -0500 (EST) Received: from p by satan.diablo.localnet with local (Exim 3.34 #1 (Debian)) id 16fPU0-0005lz-00 for ; Mon, 25 Feb 2002 10:04:16 -0800 Date: Mon, 25 Feb 2002 10:04:16 -0800 To: gtk-list@gnome.org Subject: help with linked lists Message-ID: <20020225180416.GA21684@dirac.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i From: Peter Jay Salzman Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi there, using sdl i draw a number of circles (electric charges) and would like to know when the user clicks on a charge. a basic charge is a struct: typedef struct { SDL_Surface *img; int magnitude; SDL_Rect rect; } ChargeStruct; and i have a double linked list of them: GList *ChargeList = NULL; ChargeStruct puck; ... ChargeList = g_list_append (ChargeList, &puck); i'd like to take the mouse coordinates on a button click and check to see if the click happened on a charge. if it finds a clicked charge, it returns a pointer to the ChargeStruct belonging to the clicked charge: ChargeStruct *ChargeClicked(GList *ChgList, SDL_Event event) { GList *ptr; int x, y; while (ptr != NULL) { ptr = g_list_next(ChgList); x = ptr->data->rect.x; y = ptr->data->rect.y; if (event.button.x > x - 10 && event.button.x < x + 10) { printf("click\n"); } } return(ptr->data); } i don't have any experience with GList's, so i'm grasping at straws. ptr->data should be a pointer to a ChargeStruct. so ptr->data->rect should be the rect element of a ChargeStruct which is pointed to by data. but this function gives the compile errors: functions.c: In function `ChargeClicked': functions.c:21: warning: dereferencing `void *' pointer functions.c:21: request for member `rect' in something not a structure or union functions.c:22: warning: dereferencing `void *' pointer functions.c:22: request for member `rect' in something not a structure or union i feel like i'm losing my grip on what a pointer is. the code makes sense to me, but obviously i'm mistaken about something. can someone help me out? how do i access rect.x and rect.y of the ChargeStruct pointed to by ptr->data? thanks! pete From rsteinke@w-link.net Mon Feb 25 13:15:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id AF04B18B82 for ; Mon, 25 Feb 2002 13:15:17 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16fPeZ-0002Rh-00; Mon, 25 Feb 2002 10:15:11 -0800 Date: Mon, 25 Feb 2002 10:15:11 -0800 From: rsteinke@w-link.net To: p@dirac.org, gtk-list@gnome.org Subject: Re: help with linked lists Message-ID: <3C7A7F2F.nail78A1CT1JE@w-link.net> References: <20020225180416.GA21684@dirac.org> In-Reply-To: <20020225180416.GA21684@dirac.org> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Peter Jay Salzman > > hi there, > > using sdl i draw a number of circles (electric charges) and would like > to know when the user clicks on a charge. a basic charge is a struct: > > typedef struct { > SDL_Surface *img; > int magnitude; > SDL_Rect rect; > } ChargeStruct; > > and i have a double linked list of them: > > GList *ChargeList = NULL; > ChargeStruct puck; > ... > ChargeList = g_list_append (ChargeList, &puck); > > i'd like to take the mouse coordinates on a button click and check to > see if the click happened on a charge. if it finds a clicked charge, it > returns a pointer to the ChargeStruct belonging to the clicked charge: > > > ChargeStruct *ChargeClicked(GList *ChgList, SDL_Event event) > { > GList *ptr; > int x, y; > > while (ptr != NULL) { > ptr = g_list_next(ChgList); > x = ptr->data->rect.x; > y = ptr->data->rect.y; > if (event.button.x > x - 10 && event.button.x < x + 10) { > printf("click\n"); > } > } > return(ptr->data); > } > > i don't have any experience with GList's, so i'm grasping at straws. > > ptr->data should be a pointer to a ChargeStruct. so ptr->data->rect > should be the rect element of a ChargeStruct which is pointed to by > data. > > but this function gives the compile errors: > > functions.c: In function `ChargeClicked': > functions.c:21: warning: dereferencing `void *' pointer > functions.c:21: request for member `rect' in something not a structure or union > functions.c:22: warning: dereferencing `void *' pointer > functions.c:22: request for member `rect' in something not a structure or union > > i feel like i'm losing my grip on what a pointer is. the code makes > sense to me, but obviously i'm mistaken about something. > > can someone help me out? how do i access rect.x and rect.y of the > ChargeStruct pointed to by ptr->data? > > thanks! > pete This appears to be more of a C typecasting issue than anything else. What you need is ((ChargeStruct *) ptr->data)->rect, so that C knows what kind of pointer ptr->data is. GList stores things as void*, so that you can portably store any kind of pointer there. You could also do: ChargeStruct *data; ptr = g_list_next(ChgList); // Maybe should be g_list_next(ptr) instead? data = (ChargeStruct*) ptr->data; and just use "data" in the rest of the code, so things look cleaner. Ron Steinke From John.Cupitt@ng-london.org.uk Mon Feb 25 13:22:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 5A77E18B82 for ; Mon, 25 Feb 2002 13:22:12 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMHBP>; Mon, 25 Feb 2002 18:22:11 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMHB3; Mon, 25 Feb 2002 18:22:09 -0000 Message-ID: <3C7A7D80.1090404@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: p@dirac.org Cc: gtk-list@gnome.org Subject: Re: help with linked lists Date: Mon, 25 Feb 2002 18:08:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Peter Jay Salzman wrote: > typedef struct { > SDL_Surface *img; > int magnitude; > SDL_Rect rect; > } ChargeStruct; > > and i have a double linked list of them: > > GList *ChargeList = NULL; > ChargeStruct puck; > ... > ChargeList = g_list_append (ChargeList, &puck); Hi Peter, Is ChargeStruct a local? You probably want to allocate space for a struct of the heap, and then add a pointer to that area to your list. ChargeStruct *puck = g_new (ChargeStruct); ChargeList = g_list_append (ChargeList, puck); (also, _prepend() is much faster if you don't care about having the order reversed) (also GList keeps forwards and back pointers ... if you just want a one-way list, you can use GSList (singly-linked list) and save a little space) (also the usual convention is to use MixedCaps for type names, and underscore_names for variables ... so I'd call ChargeList charge_list) Of course, you'll need something to g_free() all these pucks when you're done with them. > ChargeStruct *ChargeClicked(GList *ChgList, SDL_Event event) > { > GList *ptr; > int x, y; > > while (ptr != NULL) { > ptr = g_list_next(ChgList); > x = ptr->data->rect.x; > y = ptr->data->rect.y; > if (event.button.x > x - 10 && event.button.x < x + 10) { > printf("click\n"); > } > } > return(ptr->data); > } You need to init ptr to the start of your list, and you need to cast ptr to ChargeStruct* (the compiler does not know what sort of thing you have in your list ... it just sees a dumb pointer). the usual g_idiom for iterating over lists is GList *i; for( i = ChargeList; i; i = i->next ) { ChargeStruct *puck = (ChargeStruct *) i->data; if( puck->rect.x ... etc. } John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From sven@gimp.org Mon Feb 25 13:45:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 247D918188 for ; Mon, 25 Feb 2002 13:45:40 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16fQ7o-00018W-00; Mon, 25 Feb 2002 19:45:24 +0100 To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: gtk-list Subject: Re: Scrollbar flickers when clock run References: <1014658705.1109.0.camel@flavio.maqplas> From: Sven Neumann Date: 25 Feb 2002 19:45:23 +0100 In-Reply-To: <1014658705.1109.0.camel@flavio.maqplas> Message-ID: Lines: 21 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Fl=E1vio Alberto Lopes Soares writes: > Hello all, I'm using GTK 1.2 and my application has a clock that run > always when I start the program, I make this clock using gtk_timeout_add > with 1 second of interval and each 1 second it changes a gtk_label to > show the elapsed time, and the program has too a CList with vertical > scrollbar, but this scrollbar is making randon flickering when the > numbers (gtk_label) of clock are swapped, why this occurs ? How to fix > this ? the GtkLabel you use for the clock has to recalculate its size when you change the text every second. Most probably this size change propagates to the GtkClist which has to adapt to the new size and thus redraws itself. Try to change your box layout so the label size doesn't affect the size of any other containers, especially not one that holds larger widgets like your GtkCList. Salut, Sven From pbd@op.net Mon Feb 25 14:15:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 2FB5618365 for ; Mon, 25 Feb 2002 14:15:40 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-412.phlpa.fast.net [209.92.100.158]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA06904; Mon, 25 Feb 2002 14:14:45 -0500 (EST) Message-Id: <200202251914.OAA06904@renoir.op.net> To: Sven Neumann Cc: Flávio Alberto Lopes Soares , gtk-list Subject: Re: Scrollbar flickers when clock run In-reply-to: Your message of "25 Feb 2002 19:45:23 +0100." Date: Mon, 25 Feb 2002 14:13:50 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >the GtkLabel you use for the clock has to recalculate its size when you >change the text every second. Most probably this size change propagates >to the GtkClist which has to adapt to the new size and thus redraws >itself. Try to change your box layout so the label size doesn't affect >the size of any other containers, especially not one that holds larger >widgets like your GtkCList. and maybe ensure the clock uses a fixed-size font, and a fixed format for the display, so that its size never actually changes. --p From flavio@maqplas.com.br Mon Feb 25 15:07:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pkdroid.ns1.com.br (pkdroid.ns1.com.br [200.185.44.16]) by mail.gnome.org (Postfix) with ESMTP id 4648218536 for ; Mon, 25 Feb 2002 15:07:07 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by pkdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1PK6wvD020181; Mon, 25 Feb 2002 17:06:59 -0300 (BRT) Subject: Re: Scrollbar flickers when clock run From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Sven Neumann Cc: gtk-list In-Reply-To: References: <1014658705.1109.0.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution/0.10 (Preview Release) Date: 25 Feb 2002 17:09:01 -0300 Message-Id: <1014667751.1108.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ok, it's true, my program has other modal window that has a CList too, and your scrollbar hasn't the problem while the clock is runing, probably this is the explanation about other problem that occurs in my program : it has a big pixmap (with green background) that blinks in about 400ms (usin gtk_timeout_add) swapping other pixmap with white background, when the clock and pixmap are runing this flicker occur with pixmap happening an "ugly effect". I will try something in this way. Thanks a lot Flavio Alberto Em 25 Feb 2002 19:45:23 +0100, Sven Neumann escreveu: > Hi, > > Flávio Alberto Lopes Soares writes: > > > Hello all, I'm using GTK 1.2 and my application has a clock that run > > always when I start the program, I make this clock using gtk_timeout_add > > with 1 second of interval and each 1 second it changes a gtk_label to > > show the elapsed time, and the program has too a CList with vertical > > scrollbar, but this scrollbar is making randon flickering when the > > numbers (gtk_label) of clock are swapped, why this occurs ? How to fix > > this ? > > the GtkLabel you use for the clock has to recalculate its size when you > change the text every second. Most probably this size change propagates > to the GtkClist which has to adapt to the new size and thus redraws > itself. Try to change your box layout so the label size doesn't affect > the size of any other containers, especially not one that holds larger > widgets like your GtkCList. > > > Salut, Sven From yfcho@ms9.hinet.net Mon Feb 25 18:07:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailout5.nyroc.rr.com (mailout5-1.nyroc.rr.com [24.92.226.169]) by mail.gnome.org (Postfix) with ESMTP id 60FCD182FF for ; Mon, 25 Feb 2002 18:07:28 -0500 (EST) Received: from talon (roc-24-161-69-214.rochester.rr.com [24.161.69.214]) by mailout5.nyroc.rr.com (8.11.6/Road Runner 1.12) with SMTP id g1PN7PM07430 for ; Mon, 25 Feb 2002 18:07:25 -0500 (EST) From: "Yu-Fong Cho" To: "GTK list" Subject: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? Date: Mon, 25 Feb 2002 18:07:06 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is a little different, so please take a look. Thank you!!! I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! I tried to install Netscape 6.2, but it keep telling me: error in loading shared libraries: libgtk-1.2.so.0: cannot open shared object file: No such file or directory. My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my whole file system. There is just no libgtk-1.2.so.0. What's wrong with it? Yu-Fong From superylam@netscape.net Mon Feb 25 20:39:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imo-m02.mx.aol.com (imo-m02.mx.aol.com [64.12.136.5]) by mail.gnome.org (Postfix) with ESMTP id 8C1ED18201 for ; Mon, 25 Feb 2002 20:39:32 -0500 (EST) Received: from superylam@netscape.net by imo-m02.mx.aol.com (mail_out_v32.5.) id t.f0.3190109 (16229); Mon, 25 Feb 2002 20:39:14 -0500 (EST) Received: from netscape.net (ip-244-195.cyberec.com [202.60.244.195]) by air-in02.mx.aol.com (v83.35) with ESMTP id MAILININ25-0225203913; Mon, 25 Feb 2002 20:39:13 -0500 Message-ID: <3C7AE6E4.40204@netscape.net> Date: Tue, 26 Feb 2002 09:37:40 +0800 From: Yick Lam User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: xpert@xfree86.org Cc: gtk-list@gnome.org Subject: Re: How X application distinguish input devices? References: <3C7A3C5F.7070000@netscape.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I posted this question and I found an answer with a guy who replied my email. There is an EXCELLENT example called xinput that complete solved my problem. The xinput description can be found at http://www.gtk.org/~otaylor/ (Owen Taylor). My heartiest thank to that guy who replied my email. Yick Hong Kong, China. superylam@netscape.net wrote: > Dear Sir, > > I have just devleoped a X input driver for my small graphic tablet. > It is a small tablet that is very popular in Hong Kong, Taiwan and China > for Chinese handwriting recoginition. It is working now. I have cursor > that will move according to mouse OR graphic tablet. > > Now I want to devlope a GTK application (honestly I posted this > question > in GTK mailing list) or X application that will ONLY respond the event > from > my graphic tablet. I have a callback function in my X application, > motion_notify_event and I have compared the event content > of my mouse and my graphic tablet and they look the same (the deviceid > content etc). and I have no way to distuguish whether the event is from the > mouse or from the graphic tablet. > > What did I do wrong in my driver? can please have a look at > http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether > I did wrong in the device driver? (BTW I would like if someone can > distribute > this driver). How can I pass special information from the driver to my X > applicaton? > > Yick Lam > Hong Kong, China > > > Yick > Hong Kong china > > > > > From scherfa@web.de Mon Feb 25 20:51:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id 86D69194FB for ; Mon, 25 Feb 2002 20:51:05 -0500 (EST) Received: from [143.93.58.8] (helo=rmpc06.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.28 #21) id 16fWkk-0005VZ-00; Tue, 26 Feb 2002 02:50:02 +0100 Subject: Re: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? From: Andreas Scherf To: Yu-Fong Cho Cc: Gtk Liste In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 26 Feb 2002 02:48:34 +0100 Message-Id: <1014688115.14155.2.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am Die, 2002-02-26 um 00.07 schrieb Yu-Fong Cho: > Hi, > > I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is > a little different, so please take a look. Thank you!!! > > I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any > gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so > and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! > > I tried to install Netscape 6.2, but it keep telling me: > > error in loading shared libraries: libgtk-1.2.so.0: cannot open shared > object file: No such file or directory. > > My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my > whole file system. There is just no libgtk-1.2.so.0. > > What's wrong with it? > > > Yu-Fong libgtk-1.2.so.0 is a link to the original lib: lrwxrwxrwx 1 root root 19 Jun 29 2001 libgtk-1.2.so.0 -> libgtk-1.2.so.0.9.1 you could add it by your won by tipping ln -s libgtk-1.2.so.0.10.x libgtk-1.2.so.0 You could look into $prefix/lib which gtk lib your are owning ... and fill the x with the right version.. Hope this helps Scherf -- Andreas Scherf ICQ: 52910964 scherfa@web.de From yfcho@ms9.hinet.net Mon Feb 25 21:05:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailout5.nyroc.rr.com (mailout5-1.nyroc.rr.com [24.92.226.169]) by mail.gnome.org (Postfix) with ESMTP id 3B021186EB for ; Mon, 25 Feb 2002 21:05:36 -0500 (EST) Received: from talon (roc-24-161-69-214.rochester.rr.com [24.161.69.214]) by mailout5.nyroc.rr.com (8.11.6/Road Runner 1.12) with SMTP id g1Q25VM01588; Mon, 25 Feb 2002 21:05:32 -0500 (EST) From: "Yu-Fong Cho" To: Cc: "Gtk Liste" Subject: RE: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? Date: Mon, 25 Feb 2002 21:05:12 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <1014688115.14155.2.camel@xerxes> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, My system only has libgtk-1.2.so --> libgtk-1.2.so.9 libgtk-1.2.so.9 I tried to link libgtk-1.2.so.0 --> libgtk-1.2.so.9 but Netscape 6.2 complained error in loading shared libraries: libgtk-1.2.so.0: ELF file OS ABI invalid. It looks like a Linux binary (Netscape) try to use a FreeBSD binary.... :-( That's all I got. Yu-Fong -----Original Message----- From: scherfa@web.de [mailto:scherfa@web.de] Sent: Monday, February 25, 2002 8:49 PM To: Yu-Fong Cho Cc: Gtk Liste Subject: Re: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? Am Die, 2002-02-26 um 00.07 schrieb Yu-Fong Cho: > Hi, > > I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is > a little different, so please take a look. Thank you!!! > > I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any > gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so > and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! > > I tried to install Netscape 6.2, but it keep telling me: > > error in loading shared libraries: libgtk-1.2.so.0: cannot open shared > object file: No such file or directory. > > My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my > whole file system. There is just no libgtk-1.2.so.0. > > What's wrong with it? > > > Yu-Fong libgtk-1.2.so.0 is a link to the original lib: lrwxrwxrwx 1 root root 19 Jun 29 2001 libgtk-1.2.so.0 -> libgtk-1.2.so.0.9.1 you could add it by your won by tipping ln -s libgtk-1.2.so.0.10.x libgtk-1.2.so.0 You could look into $prefix/lib which gtk lib your are owning ... and fill the x with the right version.. Hope this helps Scherf -- Andreas Scherf ICQ: 52910964 scherfa@web.de From s2108287@student.rmit.edu.au Tue Feb 26 00:27:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from its-mu-earth.its.rmit.edu.au (its-mu-earth.its.rmit.edu.au [131.170.2.10]) by mail.gnome.org (Postfix) with ESMTP id 5D24D18197 for ; Tue, 26 Feb 2002 00:27:26 -0500 (EST) Received: from student.rmit.edu.au (its-mn-ntce.its.rmit.edu.au [131.170.11.141]) by its-mu-earth.its.rmit.edu.au (8.10.1/8.10.1/ANTI-SPAM/ANTI-RELAY/EARTH) with ESMTP id g1Q5ROp15994 for ; Tue, 26 Feb 2002 16:27:24 +1100 (EST) Received: from bungalow [203.164.86.2] by student.rmit.edu.au with Novonyx SMTP Server $Revision: 2.75.1.9 $; Tue, 26 Feb 2002 16:27:25 +1100 (ESUT) Message-ID: <001401c1be86$2b92ca60$0300a8c0@bungalow> Reply-To: "Daniel Farrell" From: "Daniel Farrell" To: "GTK list" Subject: Compiling GTK+ 1.2.10 Date: Tue, 26 Feb 2002 16:26:40 +1100 Organization: RMIT MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0011_01C1BEE2.5ECAA630" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C1BEE2.5ECAA630 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I recently installed RedHat 7.0, then compiled kernel 2.4.17, and = installed XFree86 4.2.0, at this stage X works fine on my system. Next I was ready to start compiling Gnome 1.4 so ... compiled gmp 4.0.1, = gdbm 1.8.0, librep 0.15.2, glib 1.2.10 in that order. Then while configuring gtk+ 1.2.10, configure could find X include files = it wanted. So being a bit of a newbie I'm stumped. Does anybody know what I should = do? Or shouldn't have done? I would appreciate any response...Thanks Daniel Farrell. ------=_NextPart_000_0011_01C1BEE2.5ECAA630 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I recently installed RedHat 7.0,=20 then compiled kernel 2.4.17, and installed XFree86 4.2.0, at = this=20 stage X works fine on my system.
 
Next I was ready to start = compiling Gnome 1.4=20 so ... compiled gmp 4.0.1, gdbm 1.8.0, librep 0.15.2, glib = 1.2.10 in=20 that order.
 
Then while configuring gtk+ 1.2.10, = configure could=20 find X include files it wanted.
 
So being a bit of a newbie I'm=20 stumped.  Does anybody know what I should do? Or shouldn't = have=20 done?
 
I would appreciate any=20 response...Thanks
 
Daniel = Farrell.
------=_NextPart_000_0011_01C1BEE2.5ECAA630-- From kasonhuang@kinposh.com.cn Tue Feb 26 00:49:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 8030C182E9 for ; Tue, 26 Feb 2002 00:49:33 -0500 (EST) Subject: about GdkEventFocus and ...........? Date: Tue, 26 Feb 2002 13:48:30 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F822611AA@kes01.kinposh.com.cn> content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: about GdkEventFocus and ...........? Thread-Index: AcG+iTYlDaBPsSq3Eda2ugCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Cc: "Paul Davis" , "Havoc Pennington" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello, anyone could tell me two member variables of meaning in struct = GdkEventFocus of gtk source code. source code as following: struct _GdkEventFocus { GdkEventType type; GdkWindow *window; gint8 send_event; ----------->what meaning? gint16 in; ---------------------->what meaning? } why i want to ask that question. for i want to control the buttons focus move with keyboard (not by = mouse) in a gtktable not by the default done . anyone find that you couldn't move Parallelly the buttons focus in two = tables ,and you move buttons focus with up-down-left-right key in one = table sometime not as you expected. the following code is the problem about the buttons focus move in one = table,you can test it with up-down-left-right key then see the focus is = at the button as you expected. /*file ProblemInOneTable.c */ #include gint delete_event( GtkWidget *widget, GdkEvent *event,gpointer data ) { gtk_main_quit (); return(FALSE); } int main( int argc,char *argv[] ) { GtkWidget *window; GtkWidget *table; GtkWidget = *button1,*button2,*button3,*button4,*button5,*button6,*button7,*button8; =20 gtk_init (&argc, &argv); window =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "Table"); gtk_signal_connect (GTK_OBJECT (window), "delete_event", GTK_SIGNAL_FUNC (delete_event), NULL); gtk_container_set_border_width (GTK_CONTAINER (window), 20); table =3D gtk_table_new (4,4, TRUE); gtk_container_add (GTK_CONTAINER (window), table); button1 =3D gtk_button_new_with_label ("button 1"); gtk_table_attach_defaults (GTK_TABLE(table), button1, 0, 1, 0, 1); gtk_widget_show (button1); button2 =3D gtk_button_new_with_label ("button = 2");-------------------focus moves with down key not as expected? gtk_table_attach_defaults (GTK_TABLE(table), button2, 1, 2, 0,1); gtk_widget_show (button2); button3 =3D gtk_button_new_with_label ("button 3"); gtk_table_attach_defaults (GTK_TABLE(table), button3, 2, 3, 0, 1); gtk_widget_show (button3); button4 =3D gtk_button_new_with_label ("button = 4");------------------focus moves with down key not as expected? gtk_table_attach_defaults (GTK_TABLE(table), button4, 3, 4, 0,1); gtk_widget_show (button4); button5 =3D gtk_button_new_with_label ("button 5"); gtk_table_attach_defaults (GTK_TABLE(table), button5, 0, 1, 1, 2); gtk_widget_show (button5); button6 =3D gtk_button_new_with_label ("button 6"); gtk_table_attach_defaults (GTK_TABLE(table), button6, 1, 4, 1, 2); gtk_widget_show (button6); button7 =3D gtk_button_new_with_label ("button 7"); gtk_table_attach_defaults (GTK_TABLE(table), button7, 0,2,2, 3); gtk_widget_show (button7); button8 =3D gtk_button_new_with_label ("button 8"); gtk_table_attach_defaults (GTK_TABLE(table), button8, 2, 4, 2, 3); gtk_widget_show (button8); gtk_widget_show_all(window); gtk_main(); return 0; } someone knows this problem? Thanks in advance! kason From rwan@cs.mu.oz.au Tue Feb 26 01:01:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from vike.cs.mu.OZ.AU (vike.cs.mu.OZ.AU [128.250.36.73]) by mail.gnome.org (Postfix) with ESMTP id E08C1182DF for ; Tue, 26 Feb 2002 01:01:33 -0500 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 74BA675C0; Tue, 26 Feb 2002 17:01:32 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 74079ACAA for ; Tue, 26 Feb 2002 17:01:32 +1100 (EST) Date: Tue, 26 Feb 2002 17:01:32 +1100 (EST) From: Raymond Wan Reply-To: Raymond Wan To: gtk-list@gnome.org Subject: (1.3.15) - compiling pango In-Reply-To: <20020224065818.C5086241BE2@fresnel.labs.redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, On Sun, 24 Feb 2002, Owen Taylor wrote: > Overview of Changes in Pango 0.26 > ================================= > > * Fixes for AIX compilation [Miroslaw Dobrzanski-Neumann] > * Fix zero-width characters being displayed [Sven Neumann] > * Add some padding to class structures [Owen Taylor] I tried compiling pango and came up with some errors. I don't think I did anything wrong, though. The errors were: ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_ruleset_new' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_info_find_feature' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_ruleset_add_feature' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_ruleset_shape' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_info_new' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_info_find_script' while doing a make on pango. The problem occurs soon after it enters the pango-0.26/examples directory. I configured pango with: ./configure --prefix=$GTK_DIR --enable-shared --enable-static --with-included-loaders=xpm,png,gif,jpeg --with-included-modules=yes and have already installed pkgconfig and glib. As they're only examples, I may be able to continue installation without affecting my program, but perhaps someone should try it to prove that I'm not insane. :-) Thanks! Ray From anjali_grover@yahoo.com Tue Feb 26 05:02:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14608.mail.yahoo.com (web14608.mail.yahoo.com [216.136.224.88]) by mail.gnome.org (Postfix) with SMTP id CD45518150 for ; Tue, 26 Feb 2002 05:02:49 -0500 (EST) Message-ID: <20020226100248.69046.qmail@web14608.mail.yahoo.com> Received: from [155.69.5.223] by web14608.mail.yahoo.com via HTTP; Tue, 26 Feb 2002 02:02:48 PST Date: Tue, 26 Feb 2002 02:02:48 -0800 (PST) From: Anjali Grover Subject: Making a label text bold To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In order to get a bold label text, I loaded the desired font into GtkFont boldfont; Then I tried to get bold label text via: label=gtk_label_new(text); style = gtk_widget_get_style(label); style->font = boldfont; The result was everything bold, inlcuding the text in all buttons on my window. Then, I made a copy of GdkStyle, so I tried: label=gtk_label_new(text); style = gtk_widget_get_style(label); bstyle = *style; bstyle.font = boldfont; gtk_widget_set_style(label, &bstyle); The result was: nothing bold. I can't trace the problem:( Regards, Anjali __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From rhfreeman@micron.com Tue Feb 26 06:59:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id C550E181BB for ; Tue, 26 Feb 2002 06:59:53 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g1QBxrV16918 for ; Tue, 26 Feb 2002 04:59:53 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g1QBxqe16912 for ; Tue, 26 Feb 2002 04:59:52 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Tue, 26 Feb 2002 04:59:52 -0700 Message-ID: From: rhfreeman To: "'gtk-list@gnome.org'" Subject: ItemFactory callbacks not quite working Date: Tue, 26 Feb 2002 04:59:47 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Folks, I've got these few snips of code: void set_xaxis_context(gpointer cb_data, guint action, GtkWidget *w); static GtkItemFactoryEntry context_menu[] = { { "/Set X-Axis", NULL, set_xaxis_context, 0, NULL }, }; w_layout[number].context_menu=gtk_item_factory_new(GTK_TYPE_MENU, "
", NULL); gtk_item_factory_create_items(w_layout[number].context_menu, nmenu_items, context_menu, NULL); gtk_object_set_data(GTK_OBJECT(w_layout[number].context_menu), "id", GINT_TO_POINTER(number)); void set_xaxis_context(gpointer cb_data, guint action, GtkWidget *widget) { gpointer data; data=gtk_object_get_data(GTK_OBJECT(widget), "id"); if (data!=NULL) printf("ID %d\n", GPOINTER_TO_INT(data)); else printf("NULL!\n"); } gint button_press_event(GtkWidget *widget, GdkEventButton *event, gpointer data) { // other stuff if(event->button==3) { gtk_item_factory_popup(w_layout[foc].context_menu, (guint) event->x_root, (guint) event->y_root, 1, 0); return TRUE; } return FALSE; } This code all looks good. I press the RMB on my area and the popup menu appears normally. When I click on the "Set X-Axis" item the callback is called but it always returns NULL. I've tried using the widget->parent widget instead and that didn't help. Can anyone point out what I am doing wrong? Thanks! Rich From sven@gimp.org Tue Feb 26 07:34:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id C429118FD7 for ; Tue, 26 Feb 2002 07:34:58 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16fgop-0000f2-00; Tue, 26 Feb 2002 13:34:55 +0100 To: =?cn-big5?b?tsC8eQ==?= Kason Huang Cc: Subject: Re: about GdkEventFocus and ...........? References: <92CD479384374A439EFA0077E7C50F822611AA@kes01.kinposh.com.cn> From: Sven Neumann Date: 26 Feb 2002 13:34:54 +0100 In-Reply-To: <92CD479384374A439EFA0077E7C50F822611AA@kes01.kinposh.com.cn> Message-ID: Lines: 26 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=cn-big5 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, =B6=C0=BCy Kason Huang writes: > anyone could tell me two member variables of meaning in struct GdkEventFo= cus of gtk source code. > source code as following: > struct _GdkEventFocus > { > GdkEventType type; > GdkWindow *window; > gint8 send_event; ----------->what meaning? > gint16 in; ---------------------->what meaning? > } this maps pretty close to X11, so reading the XFocusChangeEvent docs may help send_event: TRUE if this came from a SendEvent request in : TRUE for FocusIn, FALSE for FocusOut Salut, Sven BTW: Could you try to send emails with shorter lines? Your mails are hard to read which makes it less probable that someone takes the time to answer them. From mssuser@localhost.localdomain Tue Feb 26 08:18:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.224.172]) by mail.gnome.org (Postfix) with ESMTP id 883C718471 for ; Tue, 26 Feb 2002 08:18:28 -0500 (EST) Received: from localhost (localhost [[UNIX: localhost]]) by localhost.localdomain (8.11.2/8.11.2) id g1O9wv202410 for gtk-list@gnome.org; Sun, 24 Feb 2002 15:28:57 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: gtk-list@gnome.org Subject: [INIMSS] How can I get the GList of items in a GtkList. Date: Sun, 24 Feb 2002 15:28:53 +0530 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02022415285301.00975@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All How can I get the pointer to the Glist of all the items in a GtkList of a GtkCombo? I am trying to get the index of the currently selected item in the list. Thank You Dino From hp@redhat.com Tue Feb 26 09:43:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 1BE89182D6 for ; Tue, 26 Feb 2002 09:43:28 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1QEhQd21881; Tue, 26 Feb 2002 09:43:26 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Anjali Grover Cc: gtk-list@gnome.org Subject: Re: Making a label text bold References: <20020226100248.69046.qmail@web14608.mail.yahoo.com> From: Havoc Pennington Date: 26 Feb 2002 09:43:26 -0500 In-Reply-To: <20020226100248.69046.qmail@web14608.mail.yahoo.com> Message-ID: Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Anjali Grover writes: > > In order to get a bold label text, I loaded the > desired font into GtkFont boldfont; > > Then I tried to get bold label text via: > label=gtk_label_new(text); > style = gtk_widget_get_style(label); > style->font = boldfont; > > The result was everything bold, inlcuding the text in > all buttons on my window. > > Then, I made a copy of GdkStyle, so I tried: > > label=gtk_label_new(text); > style = gtk_widget_get_style(label); > bstyle = *style; > bstyle.font = boldfont; > gtk_widget_set_style(label, &bstyle); > > The result was: nothing bold. You want to use gtk_widget_modify_style() probably. See http://pobox.com/~hp/gtk-colors.html In GTK 2 (1.3.15 is the most recent GTK 2 beta) you could use gtk_label_set_markup() or gtk_widget_modify_font() instead, which would be a lot easier. Havoc From ramses@computer.org Tue Feb 26 16:39:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id 791E918155; Tue, 26 Feb 2002 16:39:49 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020226214014.SZVF480.sv16@adsl50>; Tue, 26 Feb 2002 16:40:14 -0500 Subject: I think I found a freak bug on GTK+-1.3.15 From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 26 Feb 2002 16:47:54 -0500 Message-Id: <1014760074.1197.5.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If I compile an app with this two lines: GtkTreeViewColumn *ca; GtkTreeViewColumn *cb; When I run the app, I get a Segmentation Fault. *cb isn't used on the code. If I compile the app after comenting: GtkTreeViewColumn *ca; /*GtkTreeViewColumn *cb;*/ ...it runs nicely. This is wierd. From rwalden@tripos.com Tue Feb 26 16:48:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id D8E971821B for ; Tue, 26 Feb 2002 16:48:51 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id PAA10547 for ; Tue, 26 Feb 2002 15:48:51 -0600 (CST) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma010534; Tue, 26 Feb 02 15:48:00 -0600 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id PAA24217 for ; Tue, 26 Feb 2002 15:47:59 -0600 (CST) Message-ID: <3C7C028F.BEE311DD@tripos.com> Date: Tue, 26 Feb 2002 15:47:59 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: GTK List Subject: Re: GTK_TYPE_BOXED References: <3C7A694E.FE8E50DD@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Can anyone comment on the changes between 1.2 and 2.0 that woud break code using gtk_type_unique(GTK_TYPE_BOXED, &some_subclass_info ); in the _get_type function for a derived type? Thanks, Ralph Walden Ralph Walden wrote: > > I'm attempting to port some gtk+-1.2 widgets to 2.0 (1.3.13 actually) > and I'm running into a problem with an object that is derived from > a GTK_TYPE_BOXED type. This seems to cause a segfault in the g_type > system. > > I found some mention of this in the some of the list archives, but I > couldn't > figure what the resolution was. > > Is it an O.K. thing to derive objects from GTK_TYPE_BOXED and expect it > to > work with the new g_type system? > > Sorry for being so vague, but I'm on the fuzzy frontier of the > understanding > of my own problem... :) > > Thanks, > > Ralph Walden > > -- > > Ralph E. Walden > Tripos, Inc. > rwalden@tripos.com > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Tue Feb 26 17:09:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id F1CD018AB1 for ; Tue, 26 Feb 2002 17:09:01 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1QM8x831894; Tue, 26 Feb 2002 17:08:59 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ralph Walden Cc: GTK List Subject: Re: GTK_TYPE_BOXED References: <3C7A694E.FE8E50DD@tripos.com> <3C7C028F.BEE311DD@tripos.com> From: Havoc Pennington Date: 26 Feb 2002 17:08:59 -0500 In-Reply-To: <3C7C028F.BEE311DD@tripos.com> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > Can anyone comment on the changes between 1.2 and 2.0 that > woud break code using > > gtk_type_unique(GTK_TYPE_BOXED, &some_subclass_info ); > > in the _get_type function for a derived type? > You probably want g_boxed_type_register_static() instead. Havoc From pbd@op.net Tue Feb 26 17:23:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D86C51812F; Tue, 26 Feb 2002 17:23:35 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-239.phlpa.fast.net [209.92.96.239]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id RAA29528; Tue, 26 Feb 2002 17:22:44 -0500 (EST) Message-Id: <200202262222.RAA29528@renoir.op.net> To: Rams s Morales Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: I think I found a freak bug on GTK+-1.3.15 In-reply-to: Your message of "26 Feb 2002 16:47:54 EST." <1014760074.1197.5.camel@adsl50> Date: Tue, 26 Feb 2002 17:22:03 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >If I compile an app with this two lines: > >GtkTreeViewColumn *ca; >GtkTreeViewColumn *cb; > >When I run the app, I get a Segmentation Fault. *cb isn't used on the >code. > >If I compile the app after comenting: > >GtkTreeViewColumn *ca; >/*GtkTreeViewColumn *cb;*/ > >...it runs nicely. > >This is wierd. it may or may not be wierd, but its the classic fingerprint of a memory overrun bug in your code. the extra declaration of "cb" changes the memory layout of other variables in a way that causes the memory overrun to have a visible effect. there are not too many fast ways to debug this. electric fence is not bad, dmalloc can help sometimes, purify is good but costs money for the real thing and is pretty big. i generally find that deep meditation while reading the code and a few printfs most helpful. --p From torriem@cs.byu.edu Tue Feb 26 17:33:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from divit.cs.byu.edu (divit.cs.byu.edu [128.187.168.136]) by mail.gnome.org (Postfix) with ESMTP id 3674D1812F; Tue, 26 Feb 2002 17:33:38 -0500 (EST) Received: (from caseih@localhost) by divit.cs.byu.edu (8.11.6/8.9.3) id g1QMXUo32623; Tue, 26 Feb 2002 15:33:30 -0700 X-Authentication-Warning: divit.cs.byu.edu: caseih set sender to torriem@cs.byu.edu using -f Subject: Re: I think I found a freak bug on GTK+-1.3.15 From: Michael Torrie To: =?ISO-8859-1?Q?Rams=E9s?= Morales Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org In-Reply-To: <1014760074.1197.5.camel@adsl50> References: <1014760074.1197.5.camel@adsl50> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-sgV79JrogDTT8yBKJZBI" X-Mailer: Evolution/1.0.2 Date: 26 Feb 2002 15:33:30 -0700 Message-Id: <1014762810.32494.14.camel@divit.cs.byu.edu> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-sgV79JrogDTT8yBKJZBI Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, 2002-02-26 at 14:47, Rams=E9s Morales wrote: > If I compile an app with this two lines: >=20 > GtkTreeViewColumn *ca; > GtkTreeViewColumn *cb; >=20 > When I run the app, I get a Segmentation Fault. *cb isn't used on the > code. >=20 > If I compile the app after comenting: >=20 > GtkTreeViewColumn *ca; > /*GtkTreeViewColumn *cb;*/ >=20 > ...it runs nicely. >=20 > This is wierd. This type of thing is very likely indicative of some memory corruption in your code. It's unlikely to be in gtk (but could be). Just the fact that removing the second pointer declaration makes it work indicates that it's your code that's messing up somewhere. Just declaring a pointer doesn't do any object initialization (ie gtk_tree_view_new type stuff). What it does do is change your stack layout slightly such that whatever memory corruption you're doing won't cause an immediate crash when you remove that unused variable. Adding it back in changes offsets just slightly so that something important on the stack is overwritten. Pointer errors always maifest themselves in this type of manner. Very frustrating. Good luck. You'll want to run your code through DDD debugger. It has some very powerful facilities for viewing your variables etc. You can then watch what happens when the offending line is executed. Also you can load the core file into the debugger after the fact and see what line triggered the core dump, see the variables, etc. Should help you establish what's happening. (DDD is run by the command ddd. It's downloadable from the internet too -- see freshmeat.net) Michael >=20 >=20 >=20 > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list --=20 Public key available from http://students.cs.byu.edu/~torriem --=-sgV79JrogDTT8yBKJZBI Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8fA069bTmAa2MOJ8RAv5aAKCZX9ftnoDGKaNS0eQgjRP8CPqvpACgphjV boS2et4NQ7l1qTemwTWLVSk= =3SYB -----END PGP SIGNATURE----- --=-sgV79JrogDTT8yBKJZBI-- From rbultje@ronald.bitfreak.net Tue Feb 26 17:41:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id CE25818DCE for ; Tue, 26 Feb 2002 17:41:13 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1QMUu4K002400 for ; Tue, 26 Feb 2002 23:30:58 +0100 (CET) Subject: gtkfileselectiondialog is slow? From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 26 Feb 2002 23:41:10 +0100 Message-Id: <1014763272.18710.77.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, if I do the following on a gtkfileselectiondialog in gtk-1.3.14: * go to dir / using GtkOptionMenu widget * click dir media/ in the folders window * click dir mp3/ in the folders window * in the right window (files), go to the bottom of this dir (it has about 1000 files) * now, double click "../" in the left window (folders) It will take a terrible amount of time for the thing to load the "../" dir or to unload the current dir (I don't know exactly). Since entering this directory happens almost instanteniously, I suppose this is a small design flaw or so in the widget? I'd be tempted to call it a bug but it doesn't crash ;-). Should I file this on bugzilla or is this fixed in 1.3.15? (sorry, I haven't had the time yet to upgrade to 1.3.15, I will do so this weekend). Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From ramses@computer.org Tue Feb 26 18:26:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id B0A21182A1; Tue, 26 Feb 2002 18:26:17 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020226232642.TNCI480.sv16@adsl50>; Tue, 26 Feb 2002 18:26:42 -0500 Subject: Re: I think I found a freak bug on GTK+-1.3.15 From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org In-Reply-To: <1014760074.1197.5.camel@adsl50> References: <1014760074.1197.5.camel@adsl50> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 26 Feb 2002 18:34:22 -0500 Message-Id: <1014766463.1169.2.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yup, the problem is some pointer on my code, not a GTK+ bug. I'll hunt it with njam. Thanks for your help. From lnx1138@us.ibm.com Tue Feb 26 19:47:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sm11.texas.rr.com (sm11.texas.rr.com [24.93.35.42]) by mail.gnome.org (Postfix) with ESMTP id 2AA2F185B5 for ; Tue, 26 Feb 2002 19:47:50 -0500 (EST) Received: from cs24273-101.austin.rr.com (cs24273-101.austin.rr.com [24.27.3.101]) by sm11.texas.rr.com (8.12.1/8.12.0) with ESMTP id g1R0icKW020318 for ; Tue, 26 Feb 2002 18:44:43 -0600 Subject: cancelling/aborting an emitted signal From: Luciano Chavez To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 26 Feb 2002 18:46:50 -0600 Message-Id: <1014770815.8243.17.camel@localhost> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, Can someone suggest the proper generic way to abort a signal from actually causing the default handler to change the widget value. Must I connect the signal handler in a certain order? For example, in a "toggled" signal handler for a toggle button if some condition is true then I want the "toggled" signal to be canceled so the widget does not signify the change (a checkmark displayed or removed). I've tried the following but get a Gtk Warning indicating there is to no emitted signal to stop: gtk_signal_emit_stop_by_name (GTK_OBJECT (button), "toggled"); Again, I want to know the generic method to cancel a signal within a signal handler so the widget does not reflect the change. This applies to GtkAdjustment value changes (for GtkHScale and GtkSpinButton changes), GtkCList row selection and unselection, and others. -- regards, Luciano Chavez lnx1138@us.ibm.com http://sf.net/projects/evms From Steph.Fox@btinternet.com Tue Feb 26 19:55:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gadolinium.btinternet.com (gadolinium.btinternet.com [194.73.73.111]) by mail.gnome.org (Postfix) with ESMTP id 9B3F6185B5 for ; Tue, 26 Feb 2002 19:55:56 -0500 (EST) Received: from host213-1-199-78.in-addr.btopenworld.com ([213.1.199.78] helo=t2r1o8) by gadolinium.btinternet.com with smtp (Exim 3.22 #8) id 16fsNt-0003bC-00; Wed, 27 Feb 2002 00:55:53 +0000 Message-ID: <00ef01c1bf29$32786580$73417bd5@t2r1o8> From: "Steph" To: "Luciano Chavez" , References: <1014770815.8243.17.camel@localhost> Subject: Re: cancelling/aborting an emitted signal Date: Wed, 27 Feb 2002 00:53:33 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: can't you just set_sensitive(false)? - otherwise, signal_handler_block() is your friend. ----- Original Message -----=20 From: "Luciano Chavez" To: Sent: Wednesday, February 27, 2002 12:46 AM Subject: cancelling/aborting an emitted signal > Hello, >=20 > Can someone suggest the proper generic way to abort a signal from > actually causing the default handler to change the widget value. Must = I > connect the signal handler in a certain order? >=20 > For example, in a "toggled" signal handler for a toggle button if some > condition is true then I want the "toggled" signal to be canceled so = the > widget does not signify the change (a checkmark displayed or removed). > I've tried the following but get a Gtk Warning indicating there is to = no > emitted signal to stop: >=20 > gtk_signal_emit_stop_by_name (GTK_OBJECT (button), "toggled"); >=20 > Again, I want to know the generic method to cancel a signal within a > signal handler so the widget does not reflect the change. This applies > to GtkAdjustment value changes (for GtkHScale and GtkSpinButton > changes), GtkCList row selection and unselection, and others. > =20 > --=20 > regards, >=20 > Luciano Chavez >=20 > lnx1138@us.ibm.com =20 > http://sf.net/projects/evms >=20 > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From seberino@dt092n42.san.rr.com Tue Feb 26 20:02:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F2813185B5 for ; Tue, 26 Feb 2002 20:02:11 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16fsUH-0001R5-00 for gtk-list@gnome.org; Tue, 26 Feb 2002 17:02:29 -0800 Date: Tue, 26 Feb 2002 17:02:29 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: Does *packing* a drawing area into a box fire off a configure event? Message-ID: <20020226170228.A5520@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: By adding print statements it seems that when I pack a drawing area into a box that a configure or expose event gets fired. even before gtk_main gets called and show widget commands. Is this right? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Tue Feb 26 20:03:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 6A03718D50 for ; Tue, 26 Feb 2002 20:03:42 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-96.phlpa.fast.net [209.92.96.96]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA19387; Tue, 26 Feb 2002 20:03:40 -0500 (EST) Message-Id: <200202270103.UAA19387@renoir.op.net> To: Luciano Chavez Cc: gtk-list@gnome.org Subject: Re: cancelling/aborting an emitted signal In-reply-to: Your message of "26 Feb 2002 18:46:50 CST." <1014770815.8243.17.camel@localhost> Date: Tue, 26 Feb 2002 20:03:01 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hello, > >Can someone suggest the proper generic way to abort a signal from >actually causing the default handler to change the widget value. Must I >connect the signal handler in a certain order? > >For example, in a "toggled" signal handler for a toggle button if some >condition is true then I want the "toggled" signal to be canceled so the >widget does not signify the change (a checkmark displayed or removed). >I've tried the following but get a Gtk Warning indicating there is to no >emitted signal to stop: > >gtk_signal_emit_stop_by_name (GTK_OBJECT (button), "toggled"); catch the button_press_event and you'll probably find that you're in better shape. also, check and double check that you're calling it on the correct widget - i've sometimes done cut-n-paste ops that have led to that error message. >Again, I want to know the generic method to cancel a signal within a >signal handler so the widget does not reflect the change. This applies >to GtkAdjustment value changes (for GtkHScale and GtkSpinButton >changes), GtkCList row selection and unselection, and others. i do this a LOT in my code, and i always use gtk_signal_emit_stop_by_name(), but i always catch the underlying events (button press/release etc.), not the "translations" like clicked/selected/activate and so forth. you also need to still return TRUE, sometimes. --p From ruben@mrbrklyn.com Tue Feb 26 22:53:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www2.mrbrklyn.com (dsl254-112-136.nyc1.dsl.speakeasy.net [216.254.112.136]) by mail.gnome.org (Postfix) with ESMTP id 049D318122 for ; Tue, 26 Feb 2002 22:53:40 -0500 (EST) Received: from www2 (localhost [127.0.0.1]) by www2.mrbrklyn.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g1R3rdS15972 for ; Tue, 26 Feb 2002 22:53:39 -0500 Date: Tue, 26 Feb 2002 22:53:39 -0500 From: Ruben I Safir To: gtk-list@gnome.org Subject: Balsa Message-ID: <20020226225339.A15963@www2.mrbrklyn.com> Reply-To: ruben@mrbrklyn.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.2.3 Lines: 20 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Anyone seen the Balsa Product lately? Ruben -- __________________________ Brooklyn Linux Solutions __________________________ http://www.mrbrklyn.com - Consulting http://www.brooklynonline.com - For the love of Brooklyn http://www.nylxs.com - Leadership Development in Free Software http://www.nyfairuse.org - The foundation of Democracy http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from around the net http://www2.mrbrklyn.com/mp3/sins.mp3 - C'est La Vie and a boy named Joe http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn.... 1-718-382-5752 From mssuser@localhost.localdomain Tue Feb 26 23:26:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.224.172]) by mail.gnome.org (Postfix) with ESMTP id B07D718185 for ; Tue, 26 Feb 2002 23:25:58 -0500 (EST) Received: from localhost (localhost [[UNIX: localhost]]) by localhost.localdomain (8.11.2/8.11.2) id g1R4SgP01258 for gtk-list@gnome.org; Wed, 27 Feb 2002 09:58:42 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: gtk-list@gnome.org Subject: [INIMSS] How can I get the GList of items in a GtkList. Date: Wed, 27 Feb 2002 09:58:39 +0530 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02022709583900.01123@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All How can I get the pointer to the Glist of all the items in a GtkList of a GtkCombo? I am trying to get the index of the currently selected item in the list. Thank You Dino From wombat@borg.apana.org.au Tue Feb 26 23:52:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from borg.apana.org.au (borg.apana.org.au [203.11.114.137]) by mail.gnome.org (Postfix) with ESMTP id 1F1C21833B for ; Tue, 26 Feb 2002 23:52:26 -0500 (EST) Received: from developer ([10.0.0.23] ident=mail) by borg.apana.org.au with esmtp (Exim 3.12 #1 (Debian)) id 16fw4j-0004ck-00 for ; Wed, 27 Feb 2002 12:52:21 +0800 Received: from wombat by developer with local (Exim 3.34 #1 (Debian)) id 16fw6D-0000Xl-00 for ; Wed, 27 Feb 2002 12:53:53 +0800 Subject: file handling with fopen() and fclose() From: John Breen To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 27 Feb 2002 12:53:53 +0800 Message-Id: <1014785633.976.49.camel@developer> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Help! I'm in the process of developing an app. using gtk1.2 that requires the user to login, and thus needs to read /etc/shadow to get username and password info. Problem is, I've tried doing it with something like fp=fopen("/etc/shadow"); if(fp==NULL) fatal_error("cannot open file"); fclose(fp); showmessage("login processing done"); and are my own functions that work ok - i have tested them, so they're not at issue here. Problem is that the code never gets to either the showmessage() or fatalerror() calls. I need to do line-by-line text processing with fp, so a stream-based approach that lets me use fgets() is better. Is there a workaround? Has anyone run into similar problems? I have very similar code working fine in an ncurses-based version, but this is really bugging me. TIA, John Breen From Valdis.Kletnieks@vt.edu Wed Feb 27 00:05:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 025BB1833B for ; Wed, 27 Feb 2002 00:05:09 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1R550Vj027116; Wed, 27 Feb 2002 00:05:00 -0500 Message-Id: <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: John Breen Cc: gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() In-Reply-To: Your message of "Wed, 27 Feb 2002 12:53:53 +0800." <1014785633.976.49.camel@developer> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-534300354P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 27 Feb 2002 00:04:59 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-534300354P Content-Type: text/plain; charset=us-ascii On Wed, 27 Feb 2002 12:53:53 +0800, John Breen said: > fp=fopen("/etc/shadow"); SYNOPSIS #include FILE *fopen(const char *path, const char *mode); Might want to pass a mode there, it would SIGSEGV pretty quickly otherwise. Also, note that /etc/shadow is probably only readable by root - which means that you're in for *LOADS* of security fun (you get to run set-UID, or run as root, or figure out how to use PAM on systems that support it). Personally, I think PAM is your best bet if you can use it. -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_-534300354P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8fGj7cC3lWbTT17ARAtH0AJ0dyb+2mKPuQ+T6wssjMqYam8iJQQCgnpVp xrI13SbK/8pLgcKCxipFp/w= =HS9C -----END PGP SIGNATURE----- --==_Exmh_-534300354P-- From wombat@borg.apana.org.au Wed Feb 27 00:17:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from borg.apana.org.au (borg.apana.org.au [203.11.114.137]) by mail.gnome.org (Postfix) with ESMTP id 28FE71929B for ; Wed, 27 Feb 2002 00:17:11 -0500 (EST) Received: from developer ([10.0.0.23] ident=mail) by borg.apana.org.au with esmtp (Exim 3.12 #1 (Debian)) id 16fwSt-0004gQ-00 for ; Wed, 27 Feb 2002 13:17:19 +0800 Received: from wombat by developer with local (Exim 3.34 #1 (Debian)) id 16fwUO-0000Z7-00 for ; Wed, 27 Feb 2002 13:18:52 +0800 Subject: Re: file handling with fopen() and fclose() From: John Breen To: gtk-list@gnome.org In-Reply-To: <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 27 Feb 2002 13:18:51 +0800 Message-Id: <1014787131.976.56.camel@developer> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-27 at 13:04, Valdis.Kletnieks@vt.edu wrote: > On Wed, 27 Feb 2002 12:53:53 +0800, John Breen said: > > > fp=fopen("/etc/shadow"); > > SYNOPSIS > #include > > FILE *fopen(const char *path, const char *mode); sorry, the code is actually fp = fopen("/etc/shadow", "r"); > > > Might want to pass a mode there, it would SIGSEGV pretty quickly otherwise. > > Also, note that /etc/shadow is probably only readable by root - which means > that you're in for *LOADS* of security fun (you get to run set-UID, or > run as root, or figure out how to use PAM on systems that support it). the code's been compiled, and then chgrp shadow executable chmod g+s executable which means that the app will be run if by a member of the shadow group, which is the group on /etc/shadow, and has read-access to /etc/shadow. > > Personally, I think PAM is your best bet if you can use it. I hadn't thought of PAM (and don't know how to use it in the context of this app. anyway :( ) the thing is, it works ok for me in a console version, just won't work in GTK+ - it seems to get to the first line using the file after fopen() and close the app down totally. oh well, time to climb the ol' learning curve again. shame, 'cause i wanted to get this bit out of the way quickly - the rest of the app should be pretty easy after that... cheers, John Breen From anjali_grover@yahoo.com Wed Feb 27 00:59:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14602.mail.yahoo.com (web14602.mail.yahoo.com [216.136.224.82]) by mail.gnome.org (Postfix) with SMTP id 0546B181DF for ; Wed, 27 Feb 2002 00:59:30 -0500 (EST) Message-ID: <20020227055929.90176.qmail@web14602.mail.yahoo.com> Received: from [155.69.5.123] by web14602.mail.yahoo.com via HTTP; Tue, 26 Feb 2002 21:59:29 PST Date: Tue, 26 Feb 2002 21:59:29 -0800 (PST) From: Anjali Grover Subject: Undefined references fro Gtkdatabox To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have follwed the installation steps ('./configure' followed by 'make' an then 'make install') fro GtkDatabox. I can successfully run the testdatabox. However, when I copy-paste the code for say the basic data box to my pre-existing gtk program in another directory, I get undefined references for the databox functions at run-time. (I can compile the code) I believe I would have to copy the databox libraries to my previous original set of other gtk libraries. I am not sure how to do this??? Thanx, Anjali __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com From michael@cs.millersville.edu Wed Feb 27 06:24:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.millersville.edu (cs.millersville.edu [166.66.64.14]) by mail.gnome.org (Postfix) with ESMTP id 080B71865F for ; Wed, 27 Feb 2002 06:24:16 -0500 (EST) Received: from cs.millersville.edu (localhost.0.0.127.in-addr.arpa [127.0.0.1] (may be forged)) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RBNwIQ004892; Wed, 27 Feb 2002 06:23:59 -0500 Received: from localhost (michael@localhost) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RBNw5X004888; Wed, 27 Feb 2002 06:23:58 -0500 Date: Wed, 27 Feb 2002 06:23:58 -0500 (EST) From: Michael Mitton To: Valdis.Kletnieks@vt.edu Cc: John Breen , Subject: Re: file handling with fopen() and fclose() In-Reply-To: <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Even with PAM you need to be root. I had this trouble myself and ended up writing a helper script that ran suid as root and passed login info via pipes. If you are not root, it seems to only auth the user your are running your script as. -Michael On Wed, 27 Feb 2002 Valdis.Kletnieks@vt.edu wrote: > On Wed, 27 Feb 2002 12:53:53 +0800, John Breen said: > > > fp=fopen("/etc/shadow"); > > SYNOPSIS > #include > > FILE *fopen(const char *path, const char *mode); > > > Might want to pass a mode there, it would SIGSEGV pretty quickly otherwise. > > Also, note that /etc/shadow is probably only readable by root - which means > that you're in for *LOADS* of security fun (you get to run set-UID, or > run as root, or figure out how to use PAM on systems that support it). > > Personally, I think PAM is your best bet if you can use it. > > -- > Valdis Kletnieks > Computer Systems Senior Engineer > Virginia Tech > > From sven@gimp.org Wed Feb 27 08:02:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 98C52187B2 for ; Wed, 27 Feb 2002 08:02:46 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16g3j8-0000ZA-00; Wed, 27 Feb 2002 14:02:34 +0100 To: John Breen Cc: gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> <1014787131.976.56.camel@developer> From: Sven Neumann Date: 27 Feb 2002 14:02:33 +0100 In-Reply-To: <1014787131.976.56.camel@developer> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, John Breen writes: > > Also, note that /etc/shadow is probably only readable by root - which means > > that you're in for *LOADS* of security fun (you get to run set-UID, or > > run as root, or figure out how to use PAM on systems that support it). > > the code's been compiled, and then > > chgrp shadow executable > chmod g+s executable > > which means that the app will be run if by a member of the shadow group, > which is the group on /etc/shadow, and has read-access to /etc/shadow. which is actually a very bad idea for a GUI application. You can as well make /etc/shadow world-readable then. See http://gtk.org/setuid.html. GTK+-2.0 will even refuse to run if you make the executable setuid or setgid. Salut, Sven From wombat@borg.apana.org.au Wed Feb 27 08:25:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (relay1-us.simplemente.net [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id DCF3718E5E for ; Wed, 27 Feb 2002 08:25:22 -0500 (EST) Received: from borg.apana.org.au (borg.apana.org.au [203.11.114.137]) by relay1-us.simplemente.net (Postfix) with ESMTP id C89B2D780E for ; Wed, 27 Feb 2002 08:25:18 -0500 (EST) Received: from developer ([10.0.0.23] ident=mail) by borg.apana.org.au with esmtp (Exim 3.12 #1 (Debian)) id 16g3sY-0005V2-00 for ; Wed, 27 Feb 2002 21:12:18 +0800 Received: from wombat by developer with local (Exim 3.34 #1 (Debian)) id 16g3u2-0000tP-00 for ; Wed, 27 Feb 2002 21:13:50 +0800 Subject: Re: file handling with fopen() and fclose() From: John Breen To: gtk-list@gnome.org In-Reply-To: References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> <1014787131.976.56.camel@developer> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 27 Feb 2002 21:13:49 +0800 Message-Id: <1014815629.1706.68.camel@developer> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-27 at 21:02, Sven Neumann wrote: > Hi, > > John Breen writes: > > > which is actually a very bad idea for a GUI application. You can as > well make /etc/shadow world-readable then. See http://gtk.org/setuid.html. > GTK+-2.0 will even refuse to run if you make the executable setuid or > setgid. > > Ok, I sit corrected. I guess I'll have to add more overhead and figure out _how_ to handle the authentication. PAM _looks_ like it will do it, but then again maybe not. Has anyone done such a thing then, and prepared to share the methodology? If not the code? Regards, John Breen From satyajit.kanungo@wipro.com Wed Feb 27 09:58:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by mail.gnome.org (Postfix) with ESMTP id 54A4218844 for ; Wed, 27 Feb 2002 09:58:20 -0500 (EST) Received: from m2vwall5.wipro.com (m2vwall5.wipro.com [10.115.50.5]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id g1REwJe07948 for ; Wed, 27 Feb 2002 20:28:19 +0530 (IST) Received: from satyajit ([10.114.9.188]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GS75JN00.HZ0 for ; Wed, 27 Feb 2002 20:27:23 +0530 From: "satyajit kanungo" To: Subject: drawing area and expose event Date: Wed, 27 Feb 2002 20:35:37 +0530 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All I have a gtk drawing area put in a window. I have a function to draw something on this drawing area [ using GdkRGB gdk_draw_rgb_image (darea,..) call ] Now I find if I directly call this funtion to draw on to the drawing area I get warnings such as : GLib-GObject-WARNING **: invalid cast from (NULL) pointer to `GdkDrawable' Gdk-CRITICAL **: file gdkdraw.c: line 244: assertion `GDK_IS_DRAWABLE (drawable)' failed Then I attached an "expose-event" to the drawing area and in the callback I put the same function(drawing fuction) and it draws properly . Do we always need to attach the expose event to the drawing area to draw anything on it . Is there any other way where I can force the drawing . Thanks, Satyajit From hp@redhat.com Wed Feb 27 10:45:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id E0AE2182F6 for ; Wed, 27 Feb 2002 10:45:02 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RFit402249; Wed, 27 Feb 2002 10:44:55 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: John Breen Cc: gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> <1014787131.976.56.camel@developer> <1014815629.1706.68.camel@developer> From: Havoc Pennington Date: 27 Feb 2002 10:44:54 -0500 In-Reply-To: <1014815629.1706.68.camel@developer> Message-ID: Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: John Breen writes: > > Ok, I sit corrected. I guess I'll have to add more overhead and figure > out _how_ to handle the authentication. PAM _looks_ like it will do it, > but then again maybe not. > > Has anyone done such a thing then, and prepared to share the > methodology? If not the code? > You're just trying to authenticate a user? On Red Hat Linux we use an external program which authenticates then runs the app that needs higher privileges. Look at any of the admin tools such as redhat-config-network for how it's set up. I'm not all that familiar with it myself and don't know if there are docs or where they are. The relevant package is "usermode" There isn't really a very good portable way to do this sort of thing... UNIX flavors and Linux distributions tend to have their own setup. Havoc From Valdis.Kletnieks@vt.edu Wed Feb 27 10:50:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 86EF418BDA for ; Wed, 27 Feb 2002 10:50:18 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1RFo5Vj006288; Wed, 27 Feb 2002 10:50:05 -0500 Message-Id: <200202271550.g1RFo5Vj006288@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Michael Mitton Cc: John Breen , gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() In-Reply-To: Your message of "Wed, 27 Feb 2002 06:23:58 EST." From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_361658866P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 27 Feb 2002 10:50:05 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_361658866P Content-Type: text/plain; charset=us-ascii On Wed, 27 Feb 2002 06:23:58 EST, Michael Mitton said: > Even with PAM you need to be root. I had this trouble myself and ended up > writing a helper script that ran suid as root and passed login info via > pipes. If you are not root, it seems to only auth the user your are > running your script as. Very true - but on the *other* hand - under what conditions do you *want* to be able to authenticate as some other user? That's a big security hole. 1) Unless you're very careful, the progam can then be used as a password guesser for another userid. You can even automate it using XTest or similar. 2) Since you're still running as yourself, authenticating as somebody else doesn't do squat for you - you only have your own access permissions. You *could* invoke or contact something else - but *that* something should be doing its *own* authentication. For instance, having your program shout down a named pipe "Yeah, it's really the other guy" is broken security wise - the program at the other end of the pipe needs to verify *for itself* that whatever is at the sending end is who it claims to be. -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_361658866P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8fQAtcC3lWbTT17ARAv5QAKCTCfBzvdLJVg2cz7FWOgKF+bZK1QCg2R+4 7b7Q4lOmwD8x6V7SI1RZvJU= =nVDw -----END PGP SIGNATURE----- --==_Exmh_361658866P-- From hp@redhat.com Wed Feb 27 11:10:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 63D25181CC for ; Wed, 27 Feb 2002 11:10:38 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RGASC23616; Wed, 27 Feb 2002 11:10:28 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "satyajit kanungo" Cc: Subject: Re: drawing area and expose event References: From: Havoc Pennington Date: 27 Feb 2002 11:10:28 -0500 In-Reply-To: Message-ID: Lines: 10 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "satyajit kanungo" writes: > Do we always need to attach the expose event to the drawing area to draw anything on it . > Is there any other way where I can force the drawing . > Yes, all drawing should happen in expose_event. There are other ways to do it sometimes, but they are almost always a bad idea. Havoc From hunchback@netcabo.pt Wed Feb 27 11:27:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id D0A9E181CC for ; Wed, 27 Feb 2002 11:27:21 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Wed, 27 Feb 2002 16:21:10 +0000 Content-Class: urn:content-classes:message From: To: , "satyajit kanungo" Subject: RE: drawing area and expose event Date: Wed, 27 Feb 2002 16:21:10 -0000 Message-ID: <058c01c1bfaa$c45058b0$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG/qsRQbq+ojiubEdaCegBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, > Then I attached an "expose-event" to the drawing area and in the = callback I put >the same > function(drawing fuction) and it draws properly . > Do we always need to attach the expose event to the drawing area to = draw >anything on it . > Is there any other way where I can force the drawing . i also did something similar, and the only way it worked was connecting = to=20 expose-event, i think that it is always necessary to do that because the = area is only=20 showed when gtk_main_init starts, so when you try to paint on the area = before that=20 you are painting on something that does not exist... so in order to it = happear, it is=20 only painted when the drawing-area is exposed. Somebody correct me if i'm wrong... Afonso From michael@cs.millersville.edu Wed Feb 27 11:44:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.millersville.edu (cs.millersville.edu [166.66.64.14]) by mail.gnome.org (Postfix) with ESMTP id 2E68818D0F for ; Wed, 27 Feb 2002 11:44:08 -0500 (EST) Received: from cs.millersville.edu (localhost.0.0.127.in-addr.arpa [127.0.0.1] (may be forged)) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RGi2IQ014203; Wed, 27 Feb 2002 11:44:02 -0500 Received: from localhost (michael@localhost) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RGi0x2014199; Wed, 27 Feb 2002 11:44:00 -0500 Date: Wed, 27 Feb 2002 11:44:00 -0500 (EST) From: Michael Mitton To: Valdis.Kletnieks@vt.edu Cc: John Breen , Subject: Re: file handling with fopen() and fclose() In-Reply-To: <200202271550.g1RFo5Vj006288@foo-bar-baz.cc.vt.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 27 Feb 2002 Valdis.Kletnieks@vt.edu wrote: > On Wed, 27 Feb 2002 06:23:58 EST, Michael Mitton said: > > Even with PAM you need to be root. I had this trouble myself and ended up > > writing a helper script that ran suid as root and passed login info via > > pipes. If you are not root, it seems to only auth the user your are > > running your script as. > > Very true - but on the *other* hand - under what conditions do you *want* > to be able to authenticate as some other user? That's a big security hole. > > 1) Unless you're very careful, the progam can then be used as a password > guesser for another userid. You can even automate it using XTest or similar. > > 2) Since you're still running as yourself, authenticating as somebody else > doesn't do squat for you - you only have your own access permissions. > You *could* invoke or contact something else - but *that* something should > be doing its *own* authentication. For instance, having your program > shout down a named pipe "Yeah, it's really the other guy" is broken > security wise - the program at the other end of the pipe needs to verify > *for itself* that whatever is at the sending end is who it claims to be. We were actually using a web script that needed authenticated, and apache runs as www. :) > > > -- > Valdis Kletnieks > Computer Systems Senior Engineer > Virginia Tech > > From rwalden@tripos.com Wed Feb 27 11:45:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id 48DD918D41 for ; Wed, 27 Feb 2002 11:45:59 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id KAA20596 for ; Wed, 27 Feb 2002 10:45:54 -0600 (CST) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma020551; Wed, 27 Feb 02 10:45:01 -0600 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id KAA54812; Wed, 27 Feb 2002 10:45:00 -0600 (CST) Message-ID: <3C7D0D0C.94AF34F3@tripos.com> Date: Wed, 27 Feb 2002 10:45:00 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: GTK List Subject: Re: GTK_TYPE_BOXED References: <3C7A694E.FE8E50DD@tripos.com> <3C7C028F.BEE311DD@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks, that was the lead I needed. So, if you were deriving a type from GTK_TYPE_BOXED in gtk+-1.2, with the requisite GtkTypeInfo structure and gtk_type_unique call, for gtk-2.0 you just call newtype = g_boxed_type_register_static( name, copy_func, free_func ); and you're all set, no need to fill in a GTypeInfo structure. Thanks again, Ralph Walden Havoc Pennington wrote: > > Ralph Walden writes: > > Can anyone comment on the changes between 1.2 and 2.0 that > > woud break code using > > > > gtk_type_unique(GTK_TYPE_BOXED, &some_subclass_info ); > > > > in the _get_type function for a derived type? > > > > You probably want g_boxed_type_register_static() instead. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From stonybrk@ix.netcom.com Wed Feb 27 11:47:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from barry.mail.mindspring.net (barry.mail.mindspring.net [207.69.200.25]) by mail.gnome.org (Postfix) with ESMTP id 88FF318DAB for ; Wed, 27 Feb 2002 11:47:23 -0500 (EST) Received: from user-2iniv3c.dialup.mindspring.com ([165.121.124.108] helo=norman) by barry.mail.mindspring.net with smtp (Exim 3.33 #1) id 16g7Eb-00038d-00; Wed, 27 Feb 2002 11:47:18 -0500 Message-ID: <006a01c1bfae$728f6760$0200a8c0@norman> From: "Norman Black" To: "Havoc Pennington" Cc: "gtk-list" References: Subject: Re: drawing area and expose event Date: Wed, 27 Feb 2002 08:47:26 -0800 Organization: Stony Brook Software 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hmmm. "all drawing"!!! Are you saying that when a user hits the "e" key in my program I should generate an expose event to draw the "e" in my window rather than simply draw the "e" in response to them pressing "e". Best Regards, Norman Black Stony Brook Software ----- Original Message ----- From: "Havoc Pennington" To: "satyajit kanungo" Cc: Sent: Wednesday, February 27, 2002 8:10 AM Subject: Re: drawing area and expose event > > "satyajit kanungo" writes: > > Do we always need to attach the expose event to the drawing area to draw anything on it . > > Is there any other way where I can force the drawing . > > > > Yes, all drawing should happen in expose_event. There are other ways > to do it sometimes, but they are almost always a bad idea. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From iain@ximian.com Wed Feb 27 11:58:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from peabody.ximian.com (peabody.ximian.com [141.154.95.10]) by mail.gnome.org (Postfix) with ESMTP id 6ECE018D2F for ; Wed, 27 Feb 2002 11:58:54 -0500 (EST) Received: (qmail 25616 invoked from network); 27 Feb 2002 16:58:53 -0000 Received: from peabody.ximian.com (HELO localhost.localdomain) (141.154.95.10) by peabody.ximian.com with SMTP; 27 Feb 2002 16:58:53 -0000 Subject: Re: drawing area and expose event From: iain To: Norman Black Cc: Havoc Pennington , gtk-list In-Reply-To: <006a01c1bfae$728f6760$0200a8c0@norman> References: <006a01c1bfae$728f6760$0200a8c0@norman> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Ximian, Inc X-Mailer: Evolution/1.1.0.99 (Preview Release) Date: 27 Feb 2002 17:59:53 +0000 Message-Id: <1014832795.2179.12.camel@discomachinegun.prettypeople.org> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-27 at 16:47, Norman Black wrote: > Hmmm. "all drawing"!!! > > Are you saying that when a user hits the "e" key in my program I should > generate an expose event to draw the "e" in my window rather than simply > draw the "e" in response to them pressing "e". Well, if you don't do it in the expose callback anyway, it's not going to be there, so you might as well. iain -- "All men of conscience or prudence ply to windward, to maintain their wars to be defensive." -- Roger Williams From pbd@op.net Wed Feb 27 12:02:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3570818E66 for ; Wed, 27 Feb 2002 12:02:33 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-470.phlpa.fast.net [209.92.97.216]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA24793; Wed, 27 Feb 2002 12:02:28 -0500 (EST) Message-Id: <200202271702.MAA24793@renoir.op.net> To: "Norman Black" Cc: "Havoc Pennington" , "gtk-list" Subject: Re: drawing area and expose event In-reply-to: Your message of "Wed, 27 Feb 2002 08:47:26 PST." <006a01c1bfae$728f6760$0200a8c0@norman> Date: Wed, 27 Feb 2002 12:01:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hmmm. "all drawing"!!! > >Are you saying that when a user hits the "e" key in my program I should >generate an expose event to draw the "e" in my window rather than simply >draw the "e" in response to them pressing "e". call gtk_widget_queue_draw(), then redraw in the subsequent expose event. you have to draw the "e" in the expose event anyway, because if you window is hidden or minimized-then-restored or unmapped in any way, the X server will ask you to redraw it. X does not store the contents of windows - when an area of a window is uncovered, the application needs to redraw it from scratch. your program design becomes simpler by doing everything from an expose event. --p From hp@redhat.com Wed Feb 27 12:43:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id AEB7F19715 for ; Wed, 27 Feb 2002 12:43:16 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RHhFQ23054; Wed, 27 Feb 2002 12:43:15 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Norman Black" Cc: "gtk-list" Subject: Re: drawing area and expose event References: <006a01c1bfae$728f6760$0200a8c0@norman> From: Havoc Pennington Date: 27 Feb 2002 12:43:14 -0500 In-Reply-To: <006a01c1bfae$728f6760$0200a8c0@norman> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Norman Black" writes: > > Are you saying that when a user hits the "e" key in my program I should > generate an expose event to draw the "e" in my window rather than simply > draw the "e" in response to them pressing "e". > What you should do is call gtk_widget_queue_draw_area() or gdk_window_invalidate_rect() for the rectangle containing the "e". Then you will get an expose event for that area, and then you paint the "e" So all drawing is in the expose handler. The expose handler must be able to redraw any area anyway, so you may as well put all drawing there for code cleanliness; putting all drawing there is also crucial to be sure you don't have any flicker in GTK 2. Havoc From hp@redhat.com Wed Feb 27 12:44:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id C306419715 for ; Wed, 27 Feb 2002 12:44:03 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RHhsW23058; Wed, 27 Feb 2002 12:43:54 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Cc: , "satyajit kanungo" Subject: Re: drawing area and expose event References: <058c01c1bfaa$c45058b0$0914a8c0@netcabo.net> From: Havoc Pennington Date: 27 Feb 2002 12:43:54 -0500 In-Reply-To: <058c01c1bfaa$c45058b0$0914a8c0@netcabo.net> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: writes: > > Then I attached an "expose-event" to the drawing area and in the callback I put >the same > > function(drawing fuction) and it draws properly . > > Do we always need to attach the expose event to the drawing area to draw >anything on it . > > Is there any other way where I can force the drawing . > > i also did something similar, and the only way it worked was connecting to > expose-event, i think that it is always necessary to do that because the area is only > showed when gtk_main_init starts, so when you try to paint on the area before that > you are painting on something that does not exist... so in order to it happear, it is > only painted when the drawing-area is exposed. > > Somebody correct me if i'm wrong... > You're exactly right. Havoc From trefftzs@tcsn.net Wed Feb 27 14:05:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from thoth.trefftzs.org (psrb-ppp1-210.tcsn.net [63.174.82.210]) by mail.gnome.org (Postfix) with ESMTP id 595B21840D for ; Wed, 27 Feb 2002 14:05:56 -0500 (EST) Received: from outmail.tcsn.net (jeff@localhost) by thoth.trefftzs.org (8.9.3/8.9.3) with ESMTP id LAA05491 for ; Wed, 27 Feb 2002 11:06:27 -0800 Message-Id: <200202271906.LAA05491@thoth.trefftzs.org> X-Authentication-Warning: thoth.trefftzs.org: jeff owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: More pango-0.26 compile problems Reply-To: Jeff Trefftzs From: Jeff Trefftzs Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 27 Feb 2002 11:06:26 -0800 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all - I downloaded pango-0.26.tar.gz last night, and have begun trying to compile and install it. I managed the ./configure step okay -- I have installed glig-1.3.15 -- but, like Raymond Wan, my compilation breaks in the examples directory. Can anyone tell me where to start looking in order to fix this? I really need pango only so I can compile gtk+-1.3.15, so I can get to work on gimp-1.3. All help greatly appreciated. Here's the make output: Making all in examples make[2]: Entering directory `/mnt/S.home/trefftzs/downloads/Sourc es/pango-0.26/examples' c++ -DHAVE_CONFIG_H -I. -I. -I.. -DG_DISABLE_DEPRECATED -I.. -I /usr/lib/qt-2.0.1/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype 2 -g -O2 -c viewer-qt.cc c++ -DHAVE_CONFIG_H -I. -I. -I.. -DG_DISABLE_DEPRECATED -I.. -I /usr/lib/qt-2.0.1/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype 2 -g -O2 -c moc_viewer-qt.cc moc_viewer-qt.cc: In function `static class QString ViewerView::tr(const char *)': moc_viewer-qt.cc:42: no matching function for call to `QApplication::translate (char[11], const char *&, int)' /usr/lib/qt-2.0.1/include/qapplication.h:139: candidates are: QApplication::translate(const char *, const char *) const moc_viewer-qt.cc: At top level: moc_viewer-qt.cc:46: prototype for `class QString ViewerView::tr( const char *, const char *)' does not match any in class `ViewerView' moc_viewer-qt.cc:41: candidate is: static class QString ViewerView::tr(const char *) moc_viewer-qt.cc: In method `class QString ViewerView::tr(const char *, const char *)': moc_viewer-qt.cc:47: no matching function for call to `QApplication::translate (char[11], const char *&, const char *&)' /usr/lib/qt-2.0.1/include/qapplication.h:139: candidates are: QApplication::translate(const char *, const char *) const moc_viewer-qt.cc: At top level: moc_viewer-qt.cc:53: new declaration `static class QMetaObject * ViewerView::staticMetaObject()' viewer-qt.h:53: ambiguates old declaration `static void ViewerView::staticMetaObject()' moc_viewer-qt.cc: In function `static class QMetaObject * ViewerView::staticMetaObject()': moc_viewer-qt.cc:59: `Access' is not a member of type `QMetaData' moc_viewer-qt.cc:59: `slot_tbl_access' undeclared (first use this function) moc_viewer-qt.cc:59: (Each undeclared identifier is reported only once moc_viewer-qt.cc:59: for each function it appears in.) moc_viewer-qt.cc:68: no matching function for call to `QMetaObject::new_metaobject (char[11], char[12], int, int, int, int, int, int, int, int, int, int)' /usr/lib/qt-2.0.1/include/qmetaobject.h:65: candidates are: QMetaObject::new_metaobject(const char *, const char *, QMetaData *, int, QMetaData *, int) moc_viewer-qt.cc:69: confused by earlier errors, bailing out make[2]: *** [moc_viewer-qt.o] Error 1 make[2]: Leaving directory `/mnt/S.home/trefftzs/downloads/Source s/pango-0.26/examples' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/S.home/trefftzs/downloads/Source s/pango-0.26' make: *** [all-recursive-am] Error 2 -- --Jeff Jeff Trefftzs http://www.tcsn.net/trefftzs Home Page http://gug.sunsite.dk/gallery.php?artist=68 Gimp Gallery http://trefftzs.topcities.com/home.html Photo galleries From sven@gimp.org Wed Feb 27 14:44:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 2D7F118531 for ; Wed, 27 Feb 2002 14:44:19 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16g9zo-0002bF-00; Wed, 27 Feb 2002 20:44:12 +0100 To: Jeff Trefftzs Cc: gtk-list@gnome.org Subject: Re: More pango-0.26 compile problems References: <200202271906.LAA05491@thoth.trefftzs.org> From: Sven Neumann Date: 27 Feb 2002 20:44:12 +0100 In-Reply-To: <200202271906.LAA05491@thoth.trefftzs.org> Message-ID: Lines: 16 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Jeff Trefftzs writes: > I downloaded pango-0.26.tar.gz last night, and have begun trying > to compile and install it. I managed the ./configure step okay > -- I have installed glig-1.3.15 -- but, like Raymond Wan, my > compilation breaks in the examples directory. Can anyone tell > me where to start looking in order to fix this? I really need > pango only so I can compile gtk+-1.3.15, so I can get to work on > gimp-1.3. configure --without-qt should do the trick. Salut, Sven From andreabergia@yahoo.it Wed Feb 27 15:09:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp011.mail.yahoo.com (smtp011.mail.yahoo.com [216.136.173.31]) by mail.gnome.org (Postfix) with SMTP id CFF5618531 for ; Wed, 27 Feb 2002 15:09:39 -0500 (EST) Received: from andreabergia (AUTH poptime) at unknown (HELO alfa) (212.171.122.243) by smtp.mail.vip.sc5.yahoo.com with SMTP; 27 Feb 2002 20:09:29 -0000 Message-ID: <008701c1bfca$bddad9e0$f37aabd4@alfa> From: "Andrea Bergia" To: "gtk-list" Subject: Fixed size window Date: Wed, 27 Feb 2002 21:07:57 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a simple questions about GTK: how can I lock the size of a window? I want that the the user cannot resize the windows, is there a simple way to do this? Thanks. Andrea. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From hummaida@cs.man.ac.uk Wed Feb 27 15:16:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mail.gnome.org (Postfix) with ESMTP id 3B91E19249 for ; Wed, 27 Feb 2002 15:16:57 -0500 (EST) Received: from cs.man.ac.uk ([62.252.242.142]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020227201652.INIW7000.mta06-svc.ntlworld.com@cs.man.ac.uk>; Wed, 27 Feb 2002 20:16:52 +0000 Message-ID: <3C7D3E61.5080506@cs.man.ac.uk> Date: Wed, 27 Feb 2002 20:15:29 +0000 From: A R Hummaida User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Andrea Bergia Cc: gtk-list Subject: Re: Fixed size window References: <008701c1bfca$bddad9e0$f37aabd4@alfa> Content-Type: multipart/related; boundary="------------020002090807010808080100" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --------------020002090807010808080100 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit this is from API :). read more there under GtkWindow void gtk_window_set_policy (GtkWindow *window, gint allow_shrink, gint allow_grow, gint auto_shrink); Changes how a toplevel window deals with its size request and user resize attempts. There are really only two reasonable ways to call this function: 1. gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, FALSE) means that the window is user-resizable. 2. gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, TRUE) means that the window's size is program-controlled, and should simply match the current size request of the window's children. Andrea Bergia wrote: >Hi, I have a simple questions about GTK: how can I lock the size of a >window? I want that the the user cannot resize the windows, is there a >simple way to do this? >Thanks. Andrea. > > > >_________________________________________________________ >Do You Yahoo!? >Get your free @yahoo.com address at http://mail.yahoo.com > >_______________________________________________ >gtk-list mailing list >gtk-list@gnome.org >http://mail.gnome.org/mailman/listinfo/gtk-list > --------------020002090807010808080100-- From hummaida@cs.man.ac.uk Wed Feb 27 15:20:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mail.gnome.org (Postfix) with ESMTP id C733418531 for ; Wed, 27 Feb 2002 15:20:29 -0500 (EST) Received: from cs.man.ac.uk ([62.252.242.142]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020227202028.IQMY7000.mta06-svc.ntlworld.com@cs.man.ac.uk>; Wed, 27 Feb 2002 20:20:28 +0000 Message-ID: <3C7D3F3A.5010202@cs.man.ac.uk> Date: Wed, 27 Feb 2002 20:19:06 +0000 From: A R Hummaida User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 Cc: Andrea Bergia , gtk-list Subject: Re: Fixed size window References: <008701c1bfca$bddad9e0$f37aabd4@alfa> <3C7D3E61.5080506@cs.man.ac.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: oops read here http://developer.gnome.org/doc/API/gtk/gtkwindow.html A R Hummaida wrote: > this is from API :). read more there under GtkWindow > > > > > > > void gtk_window_set_policy (GtkWindow > *window, > gint > > allow_shrink, > gint > > allow_grow, > gint > > auto_shrink); > > > Changes how a toplevel window deals with its size request and user > resize attempts. There are really only two reasonable ways to call > this function: > > 1. > > gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, FALSE) > means that the window is user-resizable. > > 2. > > gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, TRUE) > means that the window's size is program-controlled, and should > simply match the current size request of the window's children. > > > > Andrea Bergia wrote: > >> Hi, I have a simple questions about GTK: how can I lock the size of a >> window? I want that the the user cannot resize the windows, is there a >> simple way to do this? >> Thanks. Andrea. >> >> >> >> _________________________________________________________ >> Do You Yahoo!? >> Get your free @yahoo.com address at http://mail.yahoo.com >> >> _______________________________________________ >> gtk-list mailing list >> gtk-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gtk-list >> > > From hunchback@netcabo.pt Wed Feb 27 15:28:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 45B1B18106 for ; Wed, 27 Feb 2002 15:28:22 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Wed, 27 Feb 2002 20:22:19 +0000 Content-Class: urn:content-classes:message From: To: Subject: New Documentation? Date: Wed, 27 Feb 2002 20:22:18 -0000 Message-ID: <537201c1bfcc$745537a0$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG/zHRSkEJsYSu8EdaCegBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm just wondering if GTK+ will have a better documentation? I ask this = because some metods aren't even commented, and just by the name you can't say what it = does=20 (at least on the gtk 1.2, i haven't used gtk 2). The Java Specification = is much better=20 in that mather.. Afonso From stonybrk@ix.netcom.com Wed Feb 27 16:13:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp10.atl.mindspring.net (smtp10.atl.mindspring.net [207.69.200.246]) by mail.gnome.org (Postfix) with ESMTP id E74891907E for ; Wed, 27 Feb 2002 16:13:19 -0500 (EST) Received: from user-38ldm4k.dialup.mindspring.com ([209.86.216.148] helo=norman) by smtp10.atl.mindspring.net with smtp (Exim 3.33 #1) id 16gBNx-00023Q-00 for gtk-list@gnome.org; Wed, 27 Feb 2002 16:13:14 -0500 Message-ID: <007a01c1bfd3$99730060$0200a8c0@norman> From: "Norman Black" To: "gtk-list" References: <006a01c1bfae$728f6760$0200a8c0@norman> Subject: Re: drawing area and expose event Date: Wed, 27 Feb 2002 13:13:21 -0800 Organization: Stony Brook Software 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > The expose handler must be able to redraw any area anyway, so you may > as well put all drawing there for code cleanliness; putting all > drawing there is also crucial to be sure you don't have any flicker in > GTK 2. My code does not flicker now on GTK or Win32. So if GTK 2 makes my code flicker, what does that mean? Best Regards, Norman Black Stony Brook Software ----- Original Message ----- From: "Havoc Pennington" To: "Norman Black" Cc: "gtk-list" Sent: Wednesday, February 27, 2002 9:43 AM Subject: Re: drawing area and expose event > > "Norman Black" writes: > > > > Are you saying that when a user hits the "e" key in my program I should > > generate an expose event to draw the "e" in my window rather than simply > > draw the "e" in response to them pressing "e". > > > > What you should do is call gtk_widget_queue_draw_area() or > gdk_window_invalidate_rect() for the rectangle containing the > "e". Then you will get an expose event for that area, and then you > paint the "e" > > So all drawing is in the expose handler. > > The expose handler must be able to redraw any area anyway, so you may > as well put all drawing there for code cleanliness; putting all > drawing there is also crucial to be sure you don't have any flicker in > GTK 2. > > Havoc From hp@redhat.com Wed Feb 27 17:29:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 8FF70184FF for ; Wed, 27 Feb 2002 17:29:45 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RMTgb23323; Wed, 27 Feb 2002 17:29:42 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Norman Black" Cc: "gtk-list" Subject: Re: drawing area and expose event References: <006a01c1bfae$728f6760$0200a8c0@norman> <007a01c1bfd3$99730060$0200a8c0@norman> From: Havoc Pennington Date: 27 Feb 2002 17:29:42 -0500 In-Reply-To: <007a01c1bfd3$99730060$0200a8c0@norman> Message-ID: Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Norman Black" writes: > > The expose handler must be able to redraw any area anyway, so you may > > as well put all drawing there for code cleanliness; putting all > > drawing there is also crucial to be sure you don't have any flicker in > > GTK 2. > > My code does not flicker now on GTK or Win32. So if GTK 2 makes my code > flicker, what does that mean? > It probably doesn't make it flicker if it doesn't flicker now. But you are probably doing extra work that is not necessary in GTK 2. Havoc From castor.fou@wanadoo.fr Wed Feb 27 18:13:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto6.wanadoo.fr (smtp-out-6.wanadoo.fr [193.252.19.25]) by mail.gnome.org (Postfix) with ESMTP id 125F518112 for ; Wed, 27 Feb 2002 18:13:32 -0500 (EST) Received: from mel-rta8.wanadoo.fr (193.252.19.79) by mel-rto6.wanadoo.fr; 28 Feb 2002 00:13:31 +0100 Received: from athlon (193.248.96.45) by mel-rta8.wanadoo.fr; 28 Feb 2002 00:13:14 +0100 Message-ID: <001b01c1bfe4$56cdc860$2d60f8c1@athlon> From: "Romain Epita" To: Subject: Transparent GtkWidget Date: Thu, 28 Feb 2002 00:13:16 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It is possible to set a GtkWidget transparent ? as a GdkWindow with the function gdk_window_shape_combine_mask ! If it is possible, how I do that ? Romain PARMANTIER A.K.A Castor Delegue SpeC2 Sécretaire BDE Epita-Epitech tel : 06-07-66-16-18 parman_r@epita.fr "L'homme commence par aimer l'amour et finit par aimer une femme. La femme commence par aimer un homme et finit par aimer l'amour." Remy de Gourmont, Physique de l'amour From shane_b@operamail.com Wed Feb 27 19:23:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail001.syd.optusnet.com.au (mail001.syd.optusnet.com.au [203.2.75.244]) by mail.gnome.org (Postfix) with ESMTP id 282E2197AE for ; Wed, 27 Feb 2002 19:23:48 -0500 (EST) Received: from pluto (geeax3-042.dialup.optusnet.com.au [198.142.133.42]) by mail001.syd.optusnet.com.au (8.11.1/8.11.1) with ESMTP id g1S0NVd01622 for ; Thu, 28 Feb 2002 11:23:35 +1100 Subject: GTK+2 - GtkTreeModel From: Shane Butler To: "List, GTK+" Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.99.2 (Preview Release) Date: 28 Feb 2002 11:25:14 +1100 Message-Id: <1014855940.937.5.camel@pluto> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Just wondering if someone could suggest the best way to move a row in a GtkTreeModel up or down. Thanks, Shane From oliver-singla@nc.rr.com Wed Feb 27 20:24:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail7.nc.rr.com (fe7.southeast.rr.com [24.93.67.54]) by mail.gnome.org (Postfix) with ESMTP id B405418425 for ; Wed, 27 Feb 2002 20:24:51 -0500 (EST) Received: from nc.rr.com ([66.57.252.230]) by mail7.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Wed, 27 Feb 2002 20:24:49 -0500 Message-ID: <3C7D86DC.8070906@nc.rr.com> Date: Wed, 27 Feb 2002 20:24:44 -0500 From: Oliver Singla User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Force a widget to redraw itself (1.2.10) Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, How can I really force a widget to redraw itself ? If I call gtk_widget_queue_draw(), that seems to work only for widgets without an X-Window (such GtkLabel or GtkHSeparator). I attached a expose_event signal to see if the draw is performed or not. TIA, Olivier Singla, QNX, Raleigh NC oliver_singla@nc.rr.com From pyaggi@aulamagna.com.ar Wed Feb 27 21:12:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aulamagna.com.ar (unknown [200.49.75.38]) by mail.gnome.org (Postfix) with SMTP id 01B7118137 for ; Wed, 27 Feb 2002 21:12:56 -0500 (EST) Received: (qmail 16138 invoked from network); 28 Feb 2002 02:22:41 -0000 Received: from unknown (HELO there) (200.63.161.149) by 0 with SMTP; 28 Feb 2002 02:22:41 -0000 Content-Type: text/plain; charset="iso-8859-3" From: Pablo Yaggi Organization: Aulamagna To: gtk-list@gnome.org Subject: Best way to Print Date: Wed, 27 Feb 2002 23:10:36 -0300 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020228021256.01B7118137@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want to build a simple application to test printing, I need to print formated text (in paragraphs) and graphics could anyone please give me a direction, how do I do that, with bonobo? gnome_print ? ? ?? Pablo From seberino@dt092n42.san.rr.com Wed Feb 27 21:15:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 996D419091 for ; Wed, 27 Feb 2002 21:15:01 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16gG6R-00017D-00; Wed, 27 Feb 2002 18:15:27 -0800 Date: Wed, 27 Feb 2002 18:15:27 -0800 From: Christian Seberino To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: drawing area and expose event Message-ID: <20020227181527.A4284@spawar.navy.mil> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from hp@redhat.com on Wed, Feb 27, 2002 at 11:10:28AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc I thought configure event handler draws *everything* and expose event handler just redraws portion *uncovered* e.g. covering with corner of window and then not. This would imply that all drawing should happen in configure event with "patches" being done in expose event. Am I missing something? Chris On Wed, Feb 27, 2002 at 11:10:28AM -0500, Havoc Pennington wrote: > > "satyajit kanungo" writes: > > Do we always need to attach the expose event to the drawing area to draw anything on it . > > Is there any other way where I can force the drawing . > > > > Yes, all drawing should happen in expose_event. There are other ways > to do it sometimes, but they are almost always a bad idea. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From hp@redhat.com Wed Feb 27 21:30:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id CACE918137 for ; Wed, 27 Feb 2002 21:30:23 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1S2ULf23665; Wed, 27 Feb 2002 21:30:21 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: drawing area and expose event References: <20020227181527.A4284@spawar.navy.mil> From: Havoc Pennington Date: 27 Feb 2002 21:30:20 -0500 In-Reply-To: <20020227181527.A4284@spawar.navy.mil> Message-ID: Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Christian Seberino writes: > > I thought configure event handler draws *everything* and > expose event handler just redraws portion *uncovered* > e.g. covering with corner of window and then not. > > This would imply that all drawing should happen in configure > event with "patches" being done in expose event. > > Am I missing something? > Yes, there is no reason to draw anything in configure event. It just means you got a new size. You'll also get an expose when this happens so drawing in expose only is fine. Havoc From hp@redhat.com Wed Feb 27 21:33:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 761A71837B for ; Wed, 27 Feb 2002 21:33:36 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1S2XZA23669; Wed, 27 Feb 2002 21:33:35 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Shane Butler Cc: "List, GTK+" Subject: Re: GTK+2 - GtkTreeModel References: <1014855940.937.5.camel@pluto> From: Havoc Pennington Date: 27 Feb 2002 21:33:35 -0500 In-Reply-To: <1014855940.937.5.camel@pluto> Message-ID: Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Shane Butler writes: > > Just wondering if someone could suggest the best way to move a row in a > GtkTreeModel up or down. > The GtkTreeModel interface is read-only; you have to use the specific subclass of GtkTreeModel to modify things. So for example with GtkListStore you could move a row up by removing it then reinserting it, or by swapping the contents of a row and the row above it, whatever is convenient for your app. I usually have a list store with a single column containing an object or struct, so I would just call list_store_set() a couple times to swap the row contents. Havoc From ganesan.sethuraman@wipro.com Wed Feb 27 23:48:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by mail.gnome.org (Postfix) with ESMTP id 8B307180F1 for ; Wed, 27 Feb 2002 23:48:49 -0500 (EST) Received: from m2vwall5.wipro.com (m2vwall5.wipro.com [10.115.50.5]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id g1S4mle09699 for ; Thu, 28 Feb 2002 10:18:47 +0530 (IST) Received: from wipro.com ([192.168.165.86]) by bhairavi.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GS881500.K7L for ; Thu, 28 Feb 2002 10:18:41 +0530 Message-ID: <3C7DB6DB.F959A8FA@wipro.com> Date: Thu, 28 Feb 2002 10:19:31 +0530 From: Ganesan Sethuraman Organization: Wipro Technologies X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Info Regarding GtkEntry Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Could you please tell me if there is any limatations on the number of characters a GtkEntry widget can hold ? If I give more than 7300(approx) characters, the characters are getting overlapped. Any idea on what could be the problem ? Thanks, S.Ganesan. From satyajit.kanungo@wipro.com Wed Feb 27 23:53:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by mail.gnome.org (Postfix) with ESMTP id 924E4180F1 for ; Wed, 27 Feb 2002 23:53:04 -0500 (EST) Received: from m2vwall5.wipro.com (m2vwall5.wipro.com [10.115.50.5]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id g1S4r2e11601 for ; Thu, 28 Feb 2002 10:23:02 +0530 (IST) Received: from satyajit ([10.114.9.188]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GS886U00.03O; Thu, 28 Feb 2002 10:22:06 +0530 From: "satyajit kanungo" To: "Havoc Pennington" , "Norman Black" Cc: "gtk-list" Subject: RE: drawing area and expose event Date: Thu, 28 Feb 2002 10:30:22 +0530 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal In-Reply-To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks a lot I shall put all my drawings in the expose event and try my application again. I had taken the sample program form GdkRGB chapter (gdk API Reference) and was trying it the other way round . So whenever I want some drawings to happen in my drawable I should better call a gtk_widget_queue_draw_area() or gdk_window_invalidate_rect() and do all the drawing in the expose event callback . Please correct me if I have understood it wrongly Behalf Of Havoc Pennington >What you should do is call gtk_widget_queue_draw_area() or >gdk_window_invalidate_rect() for the rectangle containing the >"e". Then you will get an expose event for that area, and then you >paint the "e" >So all drawing is in the expose handler. Havoc From davidgn@servidor.unam.mx Thu Feb 28 00:11:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id 930431832B for ; Thu, 28 Feb 2002 00:11:30 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.113.36]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g1S59tP25947 for ; Wed, 27 Feb 2002 23:09:55 -0600 (CST) Date: Wed, 27 Feb 2002 23:29:25 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: now that we're on GtkDrawingArea... =) Message-Id: <20020227232925.09c86401.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.1 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I was doing some tests on it. I have my DrawingArea on a ViewPort on a ScrolledWindow on a pane on a notebook on a table..... like the song... I couldnt use any function that gets a GdkWindow as a parameter. As in the scribble example, the Area is just under the Window, and it works. But i had the DrawingArea somewhere else, and area->window sent messages like: Gdk-CRITICAL **: file gdkdraw.c: line 42 (gdk_draw_point): assertion `drawable != NULL' failed. As i read, some widgets does not have its own window (but the example worked using the Area's window, widget-window), and they draw on its parent window. I thought maybe DrawingArea is one such widget (though doesnt sound like it), and since the example works, i used the main window's window as the parameter to gdk_pixmap_new and other functions. It works. Though i want to know whether i did right, or if i did a stupid thing and what would have been the right one? -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $BNx$K$7$7$g$&$J$7!#Nx$O$7$"$s$NB>!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From youssa@voila.fr Thu Feb 28 03:42:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailsmtp4.ftmms (smtp-out.voila.wanadooportails.com [193.252.117.74]) by mail.gnome.org (Postfix) with ESMTP id BF7D0181EB for ; Thu, 28 Feb 2002 03:42:29 -0500 (EST) Received: from voila.fr (10.3.7.82) by mailsmtp4.ftmms (5.1.071) id 3C7AC6FC0002ADA1; Thu, 28 Feb 2002 09:42:08 +0100 Date: Thu, 28 Feb 2002 09:42:08 +0100 Message-Id: Subject: =?iso-8859-1?Q?Re:Transparent_GtkWidget?= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?utf-8?Q?youssa@voila.fr?=" To: castor.fou@wanadoo.fr Cc: gtk-list@gnome.org X-XaM3-API-Version: 301build11 X-type: 0 X-SenderIP: 193.95.113.27 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQpUYWtlIGEgbG9vayBvbiB0aGUgd2VlbGJhcm93dyBleGVtcGxlICENCg0KRXQgcHVp cyBlbiBmcmFu52FpcyBwb3VyIHZvdXMgUm9tYWluLCBqZXR0ZSB1biBjb3VwIGQnb2V1aWwg c3VyIGwnZXhlbXBsZSB3ZWVsYmFyb3csIHZvdXMgcG91dmV6IHJlbXBsYWNlciBsZSB3ZWVs YmFycm93IHBhciB1biBpbWFnZSAueHBtLg0KSidhaSBldSBiZXNvaW4gbW9pIGF1c3NpIGQn dW5lIGZlbmV0cmUgdHJhbnNwYXJlbnRlLCB0b3V0IGNlIHF1ZSBqJ2FpIHB1IGF2b2lyIGMn ZXN0IGNldCBleGVtcGxlLiBTaSB2b3VzIGVuIHRyb3V2ZXIgdW4gbWVpbGxldXIgZXhlbXBs ZSwgbWVyY2kgZGUgbWUgY29udGFjdGVyLg0KQ29yZGlhbGVtZW50LCBJRVMgQkgNCmonYWpv dXRlIGVuZmluLCBMJ2Ftb3VyIGVzdCB1biBwbGFpc2lyLCBMJ0hvbW1lIGVzdCB1biBkZXZv aXIuDQoNCg0KPiBJdCBpcyBwb3NzaWJsZSB0byBzZXQgYSBHdGtXaWRnZXQgdHJhbnNwYXJl bnQgPyBhcyBhIEdka1dpbmRvdyB3aXRoIHRoZQ0KPiBmdW5jdGlvbiBnZGtfd2luZG93X3No YXBlX2NvbWJpbmVfbWFzayAhIElmIGl0IGlzIHBvc3NpYmxlLCBob3cgSSBkbyB0aGF0ID8N Cj4gICAgICAgUm9tYWluIFBBUk1BTlRJRVINCj4gICAgICAgICBBLksuQSBDYXN0b3INCj4g ICAgICAgIERlbGVndWUgU3BlQzINCj4gU+ljcmV0YWlyZSBCREUgRXBpdGEtRXBpdGVjaA0K PiAgICAgdGVsIDogMDYtMDctNjYtMTYtMTgNCj4gICAgICAgcGFybWFuX3JAZXBpdGEuZnIN Cj4gDQo+ICJMJ2hvbW1lIGNvbW1lbmNlIHBhciBhaW1lciBsJ2Ftb3VyIGV0IGZpbml0DQo+ IHBhciBhaW1lciB1bmUgZmVtbWUuIExhIGZlbW1lIGNvbW1lbmNlIHBhcg0KPiBhaW1lciB1 biBob21tZSBldCBmaW5pdCBwYXIgYWltZXIgbCdhbW91ci4iDQo+ICAgICAgICAgICAgICAg ICAgICAgICBSZW15IGRlIEdvdXJtb250LCBQaHlzaXF1ZSBkZSBsJ2Ftb3VyDQo+IA0KPiAN Cj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCj4g Z3RrLWxpc3QgbWFpbGluZyBsaXN0DQo+IGd0ay1saXN0QGdub21lLm9yZw0KPiBodHRwOi8v bWFpbC5nbm9tZS5vcmcvbWFpbG1hbi9saXN0aW5mby9ndGstbGlzdA0KPiANCg0KX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f DQpGYWl0ZXMgdW4gdm9ldSBldCBwdWlzIFZvaWxhICEgd3d3LnZvaWxhLmZyIA0KQXZlYyBW b2lsYSBNYWlsLCBjb25zdWx0ZXogdm9zIGUtbWFpbHMgc3VyIHZvdHJlIG1vYmlsZSBXYXAu IA0K From youssa@voila.fr Thu Feb 28 03:50:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailsmtp5.ftmms (smtp-out.voila.wanadooportails.com [193.252.117.74]) by mail.gnome.org (Postfix) with ESMTP id AB99F18528 for ; Thu, 28 Feb 2002 03:50:56 -0500 (EST) Received: from voila.fr (10.3.7.82) by mailsmtp5.ftmms (5.1.071) id 3C7CE6080000B1E3 for gtk-list@gnome.org; Thu, 28 Feb 2002 09:50:31 +0100 Date: Thu, 28 Feb 2002 09:50:31 +0100 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?utf-8?Q?youssa@voila.fr?=" To: gtk-list@gnome.org X-XaM3-API-Version: 301build11 X-type: 0 X-SenderIP: 193.95.113.27 Subject: (no subject) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQpQbGVhc2UgY2FuIGFueSBvbmUgc2VuZCBtZSBhIGxpdHRsZSBleGVtcGxlIHRvIGhl bHAgbWUgdG8gaW5jbHVkZSBhIEphdmEgQXBwbGV0IGluIGEgZ3RrIHdpbmRvdz8/DQpIb3cg dG8gY29tcGlsZSBpdD8/LCBXaGF0IEkgbmVlZCB0byBoYXZlPz8NClRoYW5rIHlvdSB2ZXJ5 IG11Y2guDQpQLlMgOiBJIHNlbmQgdGhpcyBxdWVzdGlvbiBtYW55IHRpbWVzIHRvIEdUSy1B UFAtREVWRUwtTElTVCBidXQgSSBzdGlsbCB3aXRob3V0IGFueSBoZWxwLCBSZWNlbnRseSBI YXZvYyBQIHRlbGwgbWUgdG8gc2VuZCB0aGlzIHF1emVzdGlvbiB0byB0aGlzIGxpc3QsIEkg bWF5IGhhdmUgYSBoZWxwLg0KVGhhbmsgeW91IHZlcnkgbXVjaA0KR29vZCBUaW1lLg0KDQoN Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fXw0KRmFpdGVzIHVuIHZvZXUgZXQgcHVpcyBWb2lsYSAhIHd3dy52b2lsYS5mciAN CkF2ZWMgVm9pbGEgTWFpbCwgY29uc3VsdGV6IHZvcyBlLW1haWxzIHN1ciB2b3RyZSBtb2Jp bGUgV2FwLiANCg== From syed@mimos.my Thu Feb 28 04:50:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from filter.mimos.my (filter.mimos.my [192.228.137.70]) by mail.gnome.org (Postfix) with ESMTP id D5A63198C2 for ; Thu, 28 Feb 2002 04:50:48 -0500 (EST) Received: from ew.mimos.my (localhost.localdomain [127.0.0.1]) by filter.mimos.my (8.11.0/8.11.0) with ESMTP id g1S9bSm31874 for ; Thu, 28 Feb 2002 17:37:28 +0800 Received: (from root@localhost) by ew.mimos.my (8.11.6/8.11.6) id g1S9olU41225 for gtk-list@gnome.org; Thu, 28 Feb 2002 17:50:47 +0800 (MYT) (envelope-from syed@mimos.my) Received: from mimos.my (infoniti25.nat.mimos.my [10.1.21.25]) by ew.mimos.my (8.11.6/8.11.6) with ESMTP id g1S9oka41169 for ; Thu, 28 Feb 2002 17:50:46 +0800 (MYT) (envelope-from syed@mimos.my) Message-ID: <3C7DFCE2.9606ADA7@mimos.my> Date: Thu, 28 Feb 2002 17:48:18 +0800 From: mrzali X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtknotebook & pixmap X-scanner: scanned by Inflex 1.0.10 - (http://pldaniels.com/inflex/) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How i want to attach pixmap into gtk-notebook-tab? As far i know we can only set label on it. Any suggestion. Thanks, mr_zali From pclouds@fptnet.com Thu Feb 28 05:36:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dns2.hcm.fpt.vn (dns2.hcm.fpt.vn [203.162.45.36]) by mail.gnome.org (Postfix) with ESMTP id 9A308180F1 for ; Thu, 28 Feb 2002 05:36:07 -0500 (EST) Received: from isp-mailsrv.hcm.fpt.vn (isp-mailsrv.hcm.fpt.vn [203.162.45.131]) by dns2.hcm.fpt.vn (8.11.6/8.11.6) with ESMTP id g1SAZ6s28452 for ; Thu, 28 Feb 2002 17:35:06 +0700 Received: from hcm.fpt.vn ([203.162.45.138]) by isp-mailsrv.hcm.fpt.vn with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id FZ0XND0G; Thu, 28 Feb 2002 17:44:19 +0700 Received: from [203.162.70.201] by hcm.fpt.vn [203.162.45.138] Received: (from pclouds@localhost) by localhost.localdomain (8.11.2/8.11.2) id g1RI2gR00736 for gtk-list@gnome.org; Wed, 27 Feb 2002 13:02:42 -0500 Date: Wed, 27 Feb 2002 13:02:42 -0500 From: pclouds To: gtk-list@gnome.org Subject: gtk default binding sets Message-ID: <20020227130242.A733@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Is there any document that describe the default binding set of each widget? From Steph.Fox@btinternet.com Thu Feb 28 05:49:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium.btinternet.com (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id 8DBAD1837B for ; Thu, 28 Feb 2002 05:49:27 -0500 (EST) Received: from host213-122-214-197.in-addr.btopenworld.com ([213.122.214.197] helo=t2r1o8) by protactinium.btinternet.com with smtp (Exim 3.22 #8) id 16gO5d-0003uF-00; Thu, 28 Feb 2002 10:47:09 +0000 Message-ID: <00aa01c1c044$f4536620$243e7bd5@t2r1o8> From: "Steph" To: "pclouds" , References: <20020227130242.A733@localhost.localdomain> Subject: Re: gtk default binding sets Date: Thu, 28 Feb 2002 10:44:48 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I've been doing that when I've noticed them, in the PHP-GTK manual = http://gtk.php.net/manual/en which is about half complete at present. = It depends which widget you're talking about ... oh, and which version = of GTK+, we're using 1.2 and some of the bindings have been changed = since then. ----- Original Message -----=20 From: "pclouds" To: Sent: Wednesday, February 27, 2002 6:02 PM Subject: gtk default binding sets > Hi > Is there any document that describe the default binding set of each = widget? > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From neil@fnxweb.com Thu Feb 28 06:57:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntsc0034.int.rdel.co.uk (mail.uk.thalesgroup.com [194.128.85.7]) by mail.gnome.org (Postfix) with ESMTP id 1453618854 for ; Thu, 28 Feb 2002 06:57:51 -0500 (EST) Received: from mail.uk.thalesgroup.com (lisc0022.int.rdel.co.uk) by ntsc0034.int.rdel.co.uk (Content Technologies SMTPRS 4.2.5) with ESMTP id for ; Thu, 28 Feb 2002 11:56:19 +0000 Received: from mail.uk.thalesgroup.com (localhost.localdomain [127.0.0.1]) by mail.uk.thalesgroup.com (8.11.6/8.11.0) with ESMTP id g1SBvnY17420 for ; Thu, 28 Feb 2002 11:57:49 GMT Received: from ntscxch1.int.rdel.co.uk (ntscxch1.int.rdel.co.uk [172.21.100.149]) by mail.uk.thalesgroup.com (8.11.6/8.11.0) with ESMTP id g1SBvlu17405; Thu, 28 Feb 2002 11:57:48 GMT Received: from fnxweb.com (172-21-182-92-roaming.int.rdel.co.uk [172.21.182.92]) by ntscxch1.int.rdel.co.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id DVB4LRFW; Thu, 28 Feb 2002 11:57:48 -0000 Message-ID: <3C7E1B3A.3020200@fnxweb.com> Date: Thu, 28 Feb 2002 11:57:46 +0000 From: Neil Bird Reply-To: GTK Mailing List User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en-us MIME-Version: 1.0 To: GTK Mailing List Cc: mrzali Subject: Re: gtknotebook & pixmap References: <3C7DFCE2.9606ADA7@mimos.my> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Around about 28/02/02 09:48, mrzali scribbled ... > How i want to attach pixmap into gtk-notebook-tab? > As far i know we can only set label on it. > Any suggestion. Do it in glade! Here's an edited example of how glade does it: notebook1 = gtk_notebook_new (); empty_notebook_page = gtk_vbox_new (FALSE, 0); gtk_widget_show (empty_notebook_page); gtk_container_add (GTK_CONTAINER (notebook1), empty_notebook_page); pixmap1 = create_pixmap (window1, NULL); gtk_widget_show (pixmap1); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), pixmap1); Nothing to stop you putting a container in the tab that contains pixmap+text, or pretty well anything, I guess. -- [neil@fnx ~]# rm -f .signature [neil@fnx ~]# ls -l .signature ls: .signature: No such file or directory [neil@fnx ~]# exit From edscott@imp.mx Thu Feb 28 08:31:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.imp.mx (imp.mx [192.100.181.86]) by mail.gnome.org (Postfix) with ESMTP id 6B7B51895B for ; Thu, 28 Feb 2002 08:31:58 -0500 (EST) Received: from there (gukumatz.imp.mx [192.100.181.220]) by www.imp.mx (SGI-8.9.3/8.9.3) with SMTP id HAA95238 for ; Thu, 28 Feb 2002 07:33:07 -0600 (CST) Message-Id: <200202281333.HAA95238@www.imp.mx> Content-Type: text/plain; charset="iso-8859-1" From: Edscott Wilson =?iso-8859-1?q?Garc=EDa?= Reply-To: edscott@imp.mx To: gtk-list@gnome.org Subject: GtkCTree drag bug workaround Date: Thu, 28 Feb 2002 07:31:35 -0600 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Time ago I asked a question on this list and noone knew the answer. So now I am sending a bug workaround to help whoever might confront the same problem. If you create a gtkctree and do a gtk_drag_source_set() from the start, what happens is that the first drag it receives from another gtk application will mistakenly start a drag on the gtkctree destination widget, without generating any of the signals. This only happens until the first "real" drag is initiated and finished in the offending gtkctree. And it will happen again after a expand or contract event. The workaround is to tie a signal to the buttonpress event, so that gtk_drag_source_set() is called with the buttonpress. And call gtk_drag_source_unset() on expand and contract events. Whether each gtk_drag_source_set() should be matched by a gtk_drag_source_unset(), I am not sure whether it is important or not. Edscott From pvosta@unionbio-eu.com Thu Feb 28 09:56:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (relay1-us.simplemente.net [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id 603F918D95 for ; Thu, 28 Feb 2002 09:56:33 -0500 (EST) Received: from unionbio-eu.com (unknown [213.193.139.10]) by relay1-us.simplemente.net (Postfix) with SMTP id BC83ED780D for ; Thu, 28 Feb 2002 09:56:31 -0500 (EST) Received: (qmail 2215 invoked from network); 28 Feb 2002 14:52:23 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 28 Feb 2002 14:52:23 -0000 Message-ID: <3C7E44CE.E993AF42@unionbio-eu.com> Date: Thu, 28 Feb 2002 15:55:10 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: gdk_draw_gray_image problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I ahve problem with "gdk_draw_gray_image". The code to display a greyvalue image is shown below. If I take gdk_draw_gray_image" out of the loop or reduce the number of loops below 3, either a solid grey image window display is shown (0 loops ) or only the lower half of the image (2 loops) ? Anyone any information about what is going wrong ( the test code is somewhat modified for clarity)? Best regards, Peter void xyz_rgb_display (GtkWidget *drawing_area, image *im ) { int *p = NULL; guchar buf[WIDTH * HEIGHT * 3]; gint i = 0, j = 0; gboolean dither = 1; p = image_data( im ); for (j = 0; j < WIDTH * HEIGHT; j++) buf[j] = *p++;; for( i = 0; i < 3; i++ ){ gdk_draw_gray_image (drawing_area->window, drawing_area->style->white_gc, 0, 0, WIDTH, HEIGHT, dither ? GDK_RGB_DITHER_MAX : GDK_RGB_DITHER_NONE, buf, WIDTH); } } From pbd@op.net Thu Feb 28 09:56:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 98A8818D95 for ; Thu, 28 Feb 2002 09:56:38 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-506.phlpa.fast.net [209.92.97.252]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA09776; Thu, 28 Feb 2002 09:56:23 -0500 (EST) Message-Id: <200202281456.JAA09776@renoir.op.net> To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: now that we're on GtkDrawingArea... =) In-reply-to: Your message of "Wed, 27 Feb 2002 23:29:25 CST." <20020227232925.09c86401.davidgn@servidor.unam.mx> Date: Thu, 28 Feb 2002 09:56:00 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I have my DrawingArea on a ViewPort on a ScrolledWindow on a pane on a noteboo >k on a table..... like the song... > >I couldnt use any function that gets a GdkWindow as a parameter. As in the scr >ibble example, the Area is just under the Window, and it works. But i had the >DrawingArea somewhere else, and area->window sent messages like: > >Gdk-CRITICAL **: file gdkdraw.c: line 42 (gdk_draw_point): assertion `drawable > != NULL' failed. at what point in your code are you trying to draw on the DrawingArea? i hope, given all the messages about this, that its within an expose_event handler. >As i read, some widgets does not have its own window (but the example worked u >sing the Area's window, widget-window), and they draw on its parent window. >I thought maybe DrawingArea is one such widget (though doesnt sound like it), >and since the example works, i used the main window's window as the parameter >to gdk_pixmap_new and other functions. It works. it has its own window. --p From hp@redhat.com Thu Feb 28 10:36:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 71C6A18CF2 for ; Thu, 28 Feb 2002 10:35:56 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SFZls32016; Thu, 28 Feb 2002 10:35:47 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ganesan Sethuraman Cc: gtk-list@gnome.org Subject: Re: Info Regarding GtkEntry References: <3C7DB6DB.F959A8FA@wipro.com> From: Havoc Pennington Date: 28 Feb 2002 10:35:47 -0500 In-Reply-To: <3C7DB6DB.F959A8FA@wipro.com> Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ganesan Sethuraman writes: > Could you please tell me if there is any limatations on the number of > characters a GtkEntry widget can hold ? If I give more than 7300(approx) > characters, the characters are getting overlapped. Any idea on what > could be the problem ? > Is this GTK 1.2 or GTK 2? It's probably an integer overflow for the character positions. In GTK 2 this isn't really supposed to happen though. Havoc From John.Cupitt@ng-london.org.uk Thu Feb 28 10:48:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id F315918229 for ; Thu, 28 Feb 2002 10:48:58 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id ; Thu, 28 Feb 2002 15:48:58 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F5CML7Y2; Thu, 28 Feb 2002 15:48:56 -0000 Message-ID: <3C7E4E16.4000405@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: pvosta@unionbio-eu.com Cc: gtk-list@gnome.org Subject: Re: gdk_draw_gray_image problem Date: Thu, 28 Feb 2002 15:34:46 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hiya, almost exactly that code works for me, so I guess the problem must be somewhere else :-( Does testrgb work OK? If it does, what's that code doing that you're not doing? Peter Van Osta wrote: > I ahve problem with "gdk_draw_gray_image". The code to display a > greyvalue image is shown below. If I take gdk_draw_gray_image" out of > the loop or reduce the number of loops below 3, either a solid grey > image window display is shown (0 loops ) or only the lower half of the > image (2 loops) ? > > Anyone any information about what is going wrong ( the test code is > somewhat modified for clarity)? > > Best regards, > > Peter > > > void xyz_rgb_display (GtkWidget *drawing_area, image *im ) > { > > int *p = NULL; > guchar buf[WIDTH * HEIGHT * 3]; > gint i = 0, j = 0; > gboolean dither = 1; > > p = image_data( im ); > > for (j = 0; j < WIDTH * HEIGHT; j++) > buf[j] = *p++;; > > for( i = 0; i < 3; i++ ){ > gdk_draw_gray_image (drawing_area->window, > drawing_area->style->white_gc, > 0, 0, WIDTH, HEIGHT, > dither ? GDK_RGB_DITHER_MAX : > GDK_RGB_DITHER_NONE, > buf, WIDTH); > } > } ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From seberino@dt092n42.san.rr.com Thu Feb 28 11:02:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 8225918F22 for ; Thu, 28 Feb 2002 11:02:52 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16gT1h-0001Jt-00 for gtk-list@gnome.org; Thu, 28 Feb 2002 08:03:25 -0800 Date: Thu, 28 Feb 2002 08:03:25 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: configure event & pixmap question... Message-ID: <20020228080325.A5074@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: After much analysis I figured out that if I dereference a global pixmap pointer and then redefine it in configure event handler ALL IS WELL. If I don't dereference but just keep drawing on top of old global pixmap pointer in new configure event handler calls then NOTHING gets drawn on screen. HOW COME PIXMAP MUST BE NEWLY CREATED IN EACH CONFIGURE EVENT CALL? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Thu Feb 28 11:07:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id EAE07184C3 for ; Thu, 28 Feb 2002 11:07:46 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16gT6S-0001KC-00 for gtk-list@gnome.org; Thu, 28 Feb 2002 08:08:20 -0800 Date: Thu, 28 Feb 2002 08:08:20 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: expose event & pixmap question Message-ID: <20020228080820.B5074@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: gint exposeEventHandler(GtkWidget* widget, GdkEventExpose* event) { gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], Pixmaps::myPicture, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return FALSE; }; Pixmaps make expose event handlers easy I think because you can just redraw uncovered portion with a single function call as in function above. WHY CAN'T WE REDRAW A PORTION OF THE DRAWING AREA THE SAME WAY AND AVOID NEED FOR PIXMAP? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Thu Feb 28 11:27:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 04B4218C74 for ; Thu, 28 Feb 2002 11:27:41 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-506.phlpa.fast.net [209.92.97.252]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA23626; Thu, 28 Feb 2002 11:27:37 -0500 (EST) Message-Id: <200202281627.LAA23626@renoir.op.net> To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: expose event & pixmap question In-reply-to: Your message of "Thu, 28 Feb 2002 08:08:20 PST." <20020228080820.B5074@spawar.navy.mil> Date: Thu, 28 Feb 2002 11:27:20 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >gint exposeEventHandler(GtkWidget* widget, GdkEventExpose* event) { > gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widge >t)], > Pixmaps::myPicture, event->area.x, event->area.y, > event->area.x, event->area.y, event->area.width, event->area.height); > > return FALSE; >}; > > >Pixmaps make expose event handlers easy I think because you can just >redraw uncovered portion with a single function call as in function above. > >WHY CAN'T WE REDRAW A PORTION OF THE DRAWING AREA THE SAME >WAY AND AVOID NEED FOR PIXMAP? because we're shouting? its because a Pixmap is a different kind of resource than a Window. They are both considered to "drawables" - you can draw things on them by calling the gdk_draw_*() functions. However, a pixmap is an "offscreen" drawable that is never mapped to the display. A window in an "onscreen" drawable that can be mapped to the display. when you draw on a window, you are either going to fail (the window is not mapped), or the results show up "right away". when you draw in a pixmap, the results don't show up till you draw the pixmap into a window. a drawing area has a window, not a pixmap, as its drawable. if you want something else, then i suspect that the Canvas might be worth getting to know. does this make it any clearer? --p From hp@redhat.com Thu Feb 28 11:33:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 834BA19702 for ; Thu, 28 Feb 2002 11:33:05 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SGX2g32295; Thu, 28 Feb 2002 11:33:02 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: configure event & pixmap question... References: <20020228080325.A5074@spawar.navy.mil> From: Havoc Pennington Date: 28 Feb 2002 11:33:02 -0500 In-Reply-To: <20020228080325.A5074@spawar.navy.mil> Message-ID: Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Christian Seberino writes: > After much analysis I figured out that if I dereference > a global pixmap pointer and then redefine it in > configure event handler ALL IS WELL. > > If I don't dereference but just keep drawing on top > of old global pixmap pointer in new configure event > handler calls then NOTHING gets drawn on screen. > > HOW COME PIXMAP MUST BE NEWLY CREATED IN EACH > CONFIGURE EVENT CALL? > Normally you create a new pixmap in order to resize it. Havoc From hp@redhat.com Thu Feb 28 11:34:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id D996D198E1 for ; Thu, 28 Feb 2002 11:34:36 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SGYT532299; Thu, 28 Feb 2002 11:34:29 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: expose event & pixmap question References: <20020228080820.B5074@spawar.navy.mil> From: Havoc Pennington Date: 28 Feb 2002 11:34:29 -0500 In-Reply-To: <20020228080820.B5074@spawar.navy.mil> Message-ID: Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Christian Seberino writes: > gint exposeEventHandler(GtkWidget* widget, GdkEventExpose* event) { > gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], > Pixmaps::myPicture, event->area.x, event->area.y, > event->area.x, event->area.y, event->area.width, event->area.height); > > return FALSE; > }; > > > Pixmaps make expose event handlers easy I think because you can just > redraw uncovered portion with a single function call as in function above. > > WHY CAN'T WE REDRAW A PORTION OF THE DRAWING AREA THE SAME > WAY AND AVOID NEED FOR PIXMAP? Because the user will see each individual drawing operation, causing flicker. Try it. This is what GTK 2 fixes - it automatically double buffers, so you can redraw directly to the drawing area and do not need the pixmap. Havoc From flavio@maqplas.com.br Thu Feb 28 12:43:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from powerdroid.ns1.com.br (smtphost.ns1.com.br [200.185.44.15]) by mail.gnome.org (Postfix) with ESMTP id 10D11198BB for ; Thu, 28 Feb 2002 12:43:31 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by powerdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1SHh92m068940 for ; Thu, 28 Feb 2002 14:43:11 -0300 (BRT) Subject: How to catch Pixmap widget x & y coordinates ? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 28 Feb 2002 14:45:47 -0300 Message-Id: <1014918350.1154.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I need to know how to catch the coordinates from a pixmap Widget; Thanks for any help Thanks a lot Flavio Alberto From pbd@op.net Thu Feb 28 13:03:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 02E761992E for ; Thu, 28 Feb 2002 13:03:57 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-247.phlpa.fast.net [209.92.227.247]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA09231; Thu, 28 Feb 2002 13:03:54 -0500 (EST) Message-Id: <200202281803.NAA09231@renoir.op.net> To: Fl vio Alberto Lopes Soares Cc: gtk-list Subject: Re: How to catch Pixmap widget x & y coordinates ? In-reply-to: Your message of "28 Feb 2002 14:45:47 -0300." <1014918350.1154.0.camel@flavio.maqplas> Date: Thu, 28 Feb 2002 13:03:38 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hello all, > >I need to know how to catch the coordinates from a pixmap Widget; >Thanks for any help your question is not clear. please be more specific. From venkat_ramakrishnan@hotmail.com Thu Feb 28 13:13:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f73.law11.hotmail.com [64.4.17.73]) by mail.gnome.org (Postfix) with ESMTP id 4E4B01834B for ; Thu, 28 Feb 2002 13:13:20 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 28 Feb 2002 10:13:19 -0800 Received: from 61.11.57.127 by lw11fd.law11.hotmail.msn.com with HTTP; Thu, 28 Feb 2002 18:13:19 GMT X-Originating-IP: [61.11.57.127] From: "Venkat Ramakrishnan" To: gtk-list@gnome.org Subject: PangoFontMetrics Date: Thu, 28 Feb 2002 18:13:19 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Feb 2002 18:13:19.0541 (UTC) FILETIME=[99B99650:01C1C083] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I am new to GTK+ . I used to use X and motif calls for UI design and i really find GTK to be very flexible and powerful. Thanks to the people who brought it up . I have a small question . I want to write some strings into a drawing area using certain fonts . And I am using Pango for this . Now I want to find out the height and width (ascent and descent etc) of the string so that i can place it properly . Hence I am using the PangoFontMterics. But there is one call which is confusing for me pango_language_from_string (const char *language); where language : a string representing a language tag (as the API says) Can somebosy tell me what string to passed as the "language" in the above call .Is it related somehow to the locale . I tried passing the string (i want to draw , but it does not work ) I mean for different strings I get the same ascent and descent . I am confused . I think the ascent and descent is based on the font being used . I would apprecite any help on this. Is there any application using pango . Cyrrently I am refering the API Refarence (from gtk.org) Thanks vankat _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From flavio@maqplas.com.br Thu Feb 28 13:44:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pkdroid.ns1.com.br (pkdroid.ns1.com.br [200.185.44.16]) by mail.gnome.org (Postfix) with ESMTP id 8E40B18FB0 for ; Thu, 28 Feb 2002 13:44:44 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by pkdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1SIicff042634; Thu, 28 Feb 2002 15:44:38 -0300 (BRT) Subject: Re: How to catch Pixmap widget x & y coordinates ? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Paul Davis Cc: gtk-list In-Reply-To: <200202281803.NAA09231@renoir.op.net> References: <200202281803.NAA09231@renoir.op.net> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 28 Feb 2002 15:47:06 -0300 Message-Id: <1014922027.1156.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Em 28 Feb 2002 13:03:38 -0500, Paul Davis escreveu: Ok, I want to use gdk_draw_pixmap to exchange one Gtk Pixmap with a file pixmap, I made some experiences with this command as above : int troca_pixmap(gpointer user_data, char *nome_pixmap, char *filename, gboolean use_pixmap_interno, GdkPixmap *pixmap_interno) { GtkWidget *pixmap; GdkColormap *colormap; GdkPixmap *gdkpixmap; GdkBitmap *mask; gchar *pathname = NULL; pixmap = lookup_widget(user_data, nome_pixmap); if(use_pixmap_interno == FALSE) { if (!filename || !filename[0]) return -1; pathname = gnome_pixmap_file (filename); if (!pathname) { g_warning (_("Couldn't find pixmap file: %s"), filename); return -1; } colormap = gtk_widget_get_colormap (user_data); gdkpixmap = gdk_pixmap_colormap_create_from_xpm (NULL, colormap, &mask, NULL, pathname); if (gdkpixmap == NULL) { g_warning (_("Couldn't create pixmap from file: %s"), pathname); g_free (pathname); return -1; } } else { if (pixmap_interno == NULL) { g_warning (_("Couldn't create pixmap from pixmap_interno")); return -1; } gdkpixmap = pixmap_interno; } if(use_pixmap_interno == FALSE) { g_free (pathname); gdk_draw_pixmap (pixmap->window, pixmap->style->fg_gc[GTK_WIDGET_STATE(pixmap)], gdkpixmap, -1, -1, -1, -1, GTK_WIDGET (pixmap)->requisition.width, GTK_WIDGET (pixmap)->requisition.height); } else { gtk_widget_hide(GTK_WIDGET(pixmap)); gtk_pixmap_set(GTK_PIXMAP(pixmap), gdkpixmap, NULL); gtk_widget_show(GTK_WIDGET(pixmap)); } if(use_pixmap_interno == FALSE) { gdk_pixmap_unref (gdkpixmap); gdk_bitmap_unref (mask); } return 1; } This works fine, but the position of pixmaps are allways in left up corner I believe because the parameters -1, -1, -1, -1, but I don't know what to put in these parameters, the gdk reference manual says that these parameters are the x,y coordinates of source and destination, but I don't know how to obtain this information. Any help to a newbie are Welcome Thanks a lot Flavio Alberto > >Hello all, > > > >I need to know how to catch the coordinates from a pixmap Widget; > >Thanks for any help > > your question is not clear. please be more specific. From a9308317@unet.univie.ac.at Thu Feb 28 14:09:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from email02.aon.at (WARSL401PIP3.highway.telekom.at [195.3.96.75]) by mail.gnome.org (Postfix) with SMTP id BE1C41832F for ; Thu, 28 Feb 2002 14:09:39 -0500 (EST) Received: (qmail 338460 invoked from network); 28 Feb 2002 19:09:38 -0000 Received: from n603p019.dipool.highway.telekom.at (HELO email.aon.at) ([212.183.85.83]) (envelope-sender ) by qmail2.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 28 Feb 2002 19:09:38 -0000 From: Markus Klein To: gtk-list@gnome.org Subject: messed up GTK Message-ID: <20020228201425.A1179@pcd-5nd> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.0.0 X-Mutt-Fcc: Gesendet Lines: 84 Date: Thu, 28 Feb 2002 14:09:39 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi everybody. I am looking for help with my Gnome/GTK installation. I want to compile some gnome programs but "make" always complains about missing files, though "./configure" is just fine: (Note: "Datei oder Verzeichnis nicht gefunden" means "file or directory not found").. ---cut --- In file included from /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid.h:23, from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:104, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden In file included from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:106, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-start.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-start.h:23: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden In file included from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:107, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-standard.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-standard.h:23: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden In file included from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:108, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-finish.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-finish.h:23: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden In file included from gtkdial.c:21: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-window-icon.h:28: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-window-icon.h:29: gtk/gtkwindow.h: Datei oder Verzeichnis nicht gefunden make[2]: *** [gtkdial.o] Error 1 make[2]: Leaving directory `/home/mox/gtkdial-0.4.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mox/gtkdial-0.4.0' make: *** [all-recursive-am] Error 2 mox@pcd-5nd:~/gtkdial-0.4.0 > As far as I can see all the relevant files are actually there. I have installed all the devel-packages (GTK, imlib, X, gnome-libs, etc.) but I have installed GTK-1.2.10 twice: One time by the dist-rpm-packages, one time by the *.tar.gz source (configure/make/make install). I remember that this was due to a "configure" didn't find GTK one time, so I did this. Now I have to find a solution for this problem. GTK-1.2.10 is in /usr/local/include/gtk-1.2/ and /opt/gnome/include/gtk-1.2/ The other files are were they should be, I suppose: mox@pcd-5nd:~ > ls /opt/gnome/include/ gdk_imlib.h gdk-pixbuf-1.0 Imlib.h libIDL-1.0 gdk_imlib_private.h gnome-1.0 Imlib_private.h libmedusa gdk_imlib_types.h gtk-1.2 Imlib_types.h orbit-1.0 gtk-config says following: # gtk-config --prefix /usr/local # gtk-config --exec-prefix /usr/local # gtk-config --libs -L/usr/local/libs -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm My distribution is a Suse7.2 (Xfree3) and Ximian Gnome (red-carpet). ... ?help? thanx mox From hp@redhat.com Thu Feb 28 14:26:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id C2AFF1832F for ; Thu, 28 Feb 2002 14:26:17 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SJQF424517; Thu, 28 Feb 2002 14:26:15 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Venkat Ramakrishnan" Cc: gtk-list@gnome.org Subject: Re: PangoFontMetrics References: From: Havoc Pennington Date: 28 Feb 2002 14:26:15 -0500 In-Reply-To: Message-ID: Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Venkat Ramakrishnan" writes: > I am new to GTK+ . I used to use X and motif calls for UI design and > i really find GTK to be very flexible and powerful. Thanks to the > people who brought it up . > I have a small question . I want to write some strings into a drawing > area using certain fonts . And I am using Pango for this . Now I want > to find out the height and width (ascent and descent etc) of the > string so that i can place it properly . Hence I am using the > PangoFontMterics. > But there is one call which is confusing for me > pango_language_from_string (const char *language); > where > language : a string representing a language tag (as the API says) > > Can somebosy tell me what string to passed as the "language" in the > above call .Is it related somehow to the locale . > I tried passing the string (i want to draw , but it does not work ) > I mean for different strings I get the same ascent and descent . > > I am confused . I think the ascent and descent is based on the font > being used . > I would apprecite any help on this. Is there any application using > pango . Cyrrently I am refering the API Refarence (from gtk.org) > Rather than fooling with font metrics, you probably just want to call pango_layout_get_pixel_extents(). If you need a PangoLanguage gtk_get_default_language() is the simplest way. Havoc From gtk_plus@yahoo.com Thu Feb 28 14:33:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11905.mail.yahoo.com (web11905.mail.yahoo.com [216.136.172.189]) by mail.gnome.org (Postfix) with SMTP id 30D3F1817F for ; Thu, 28 Feb 2002 14:33:27 -0500 (EST) Message-ID: <20020228193326.31707.qmail@web11905.mail.yahoo.com> Received: from [195.202.246.117] by web11905.mail.yahoo.com via HTTP; Thu, 28 Feb 2002 11:33:26 PST Date: Thu, 28 Feb 2002 11:33:26 -0800 (PST) From: Ibrahim Shaame Subject: Installing test gtk-1.3.15 To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have downloaded the lattest version, and would like to install it. I have created a directory within gnome directory (opt/gnome/gtk-1.3.15), successfully compiled glib-2.0, tried to load the libraries (from gtk-1.3.15/lib), but when trying to compile atk-0.13 I get a message the message that glib >= 1.3.12 is not found, and that I should try to edit the "script"/opt/gnome/bin/pkg-config (which infact is binary!). I have already compiled the new pkg-config into the directory /opt/gnome/gtk-1.3.15. I think my problem is how to make the system use the directory /opt/gnome/gtk-1.3.15. Could anyone help me how to use another another copy of gtk instead of the one which came with the system. Thanks IS __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com From maldonado@ibiquity.com Thu Feb 28 14:41:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from radioflyer.ibocradio.com (unknown [208.33.57.98]) by mail.gnome.org (Postfix) with ESMTP id 7BFA51820E for ; Thu, 28 Feb 2002 14:41:06 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1C08F.DCBB67F2" Subject: floating points Date: Thu, 28 Feb 2002 14:41:05 -0500 Message-ID: <6AC325EB1D98F84B986D83F985121C1F16FDBF@radioflyer.ibocradio.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: floating points Thread-Index: AcHAj9yuAivZs6oORZSsd9GtkHA2XQ== From: "Lourdes Maldonado" To: "Gtk-List" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1C08F.DCBB67F2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 I have an entry field where the user enters a string that should correspond to a floating point number (an FM frequency). When I retrieve the string from the entry field and convert it (using strtod) to a floating point, the number does not come out exact (i.e. if I enter the string 85.3 the floating point number I get is 85.299995). =20 I'm sorry this is not necessarily a gtk question, but the other day I saw a message on this Gtk-list were someone mentioned a similar issue with floating point representation and I forget if there was a solution included in the message. =20 Any help would be appreciated, =20 Lourdes ------_=_NextPart_001_01C1C08F.DCBB67F2 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

 

I have an entry field where the user enters a string = that should correspond to a floating point number (an FM frequency).  = When I retrieve the string from the entry field and convert it (using strtod) = to a floating point, the number does not come out exact (i.e. if I enter the = string 85.3 the floating point number I get is 85.299995).

 

I’m sorry this is not necessarily a gtk = question, but the other day I saw a message on this Gtk-list were someone mentioned a = similar issue with floating point representation and I forget if there was a = solution included in the message.

 

Any help would be appreciated,

 

Lourdes

=00 ------_=_NextPart_001_01C1C08F.DCBB67F2-- From sven@gimp.org Thu Feb 28 15:26:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9587782.dip.t-dialin.net [217.88.119.130]) by mail.gnome.org (Postfix) with ESMTP id 622DE18152 for ; Thu, 28 Feb 2002 15:26:50 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16gX8e-0004vP-00; Thu, 28 Feb 2002 21:26:52 +0100 To: Ibrahim Shaame Cc: gtk-list@gnome.org Subject: Re: Installing test gtk-1.3.15 References: <20020228193326.31707.qmail@web11905.mail.yahoo.com> From: Sven Neumann Date: 28 Feb 2002 21:26:51 +0100 In-Reply-To: <20020228193326.31707.qmail@web11905.mail.yahoo.com> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Ibrahim Shaame writes: > I have downloaded the lattest version, and would like > to install it. I have created a directory within gnome > directory (opt/gnome/gtk-1.3.15), successfully > compiled glib-2.0, tried to load the libraries (from > gtk-1.3.15/lib), but when trying to compile atk-0.13 I > get a message the message that glib >= 1.3.12 is not > found, and that I should try to edit the > "script"/opt/gnome/bin/pkg-config (which infact is > binary!). I have already compiled the new pkg-config > into the directory /opt/gnome/gtk-1.3.15. I think my > problem is how to make the system use the directory > /opt/gnome/gtk-1.3.15. read the output of configure again. It asked you to add the location of glib-2.0.pc to your PKG_CONFIG_PATH. You might also have to adapt your LD_LIBRARY_PATH. Salut, Sven From trefftzs@tcsn.net Thu Feb 28 17:18:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from thoth.trefftzs.org (psrb-ppp1-130.tcsn.net [63.174.82.130]) by mail.gnome.org (Postfix) with ESMTP id 2D1B118245 for ; Thu, 28 Feb 2002 17:18:47 -0500 (EST) Received: from outmail.tcsn.net (jeff@localhost) by thoth.trefftzs.org (8.9.3/8.9.3) with ESMTP id OAA01497; Thu, 28 Feb 2002 14:17:42 -0800 Message-Id: <200202282217.OAA01497@thoth.trefftzs.org> X-Authentication-Warning: thoth.trefftzs.org: jeff owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Ibrahim Shaame Cc: gtk-list@gnome.org Subject: Re: Installing test gtk-1.3.15 In-Reply-To: Message from Ibrahim Shaame of "Thu, 28 Feb 2002 11:33:26 PST." <20020228193326.31707.qmail@web11905.mail.yahoo.com> From: Jeff Trefftzs Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 28 Feb 2002 14:17:42 -0800 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Ibrahim - You're in luck. I had exactly the same problem last night. Here's how I fixed it (at least according to my notes). First, as root run /sbin/ldconfig to update your libraries. Find where your pkgconfig files are. There might be one under /opt/gnome. If so, the export PKG_CONFIG_PATH="/opt/gnome/pkgconfig:$PKG_CON FIG_PATH" and try again. You may also need to set LD_LIBRARY_PATH. I did, but I was installing in a *really* strange place (/usr/local/development). HTH, -- --Jeff Jeff Trefftzs http://www.tcsn.net/trefftzs Home Page http://gug.sunsite.dk/gallery.php?artist=68 Gimp Gallery http://trefftzs.topcities.com/home.html Photo galleries From shane_b@users.sourceforge.net Sun Feb 24 04:31:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail009.syd.optusnet.com.au (mail009.syd.optusnet.com.au [203.2.75.170]) by mail.gnome.org (Postfix) with ESMTP id 60B5E18129 for ; Sun, 24 Feb 2002 04:31:01 -0500 (EST) Received: from pluto (geeax5-103.dialup.optusnet.com.au [198.142.96.103]) by mail009.syd.optusnet.com.au (8.11.1/8.11.1) with ESMTP id g1O9Uvn22774 for ; Sun, 24 Feb 2002 20:30:58 +1100 Subject: GTK+2 - GtkTreeModel From: Shane Butler To: "List, GTK+" Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.99.2 (Preview Release) Date: 24 Feb 2002 20:32:52 +1100 Message-Id: <1014543176.8347.5.camel@pluto> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Just wondering if someone could suggest the best way to move a row in a GtkTreeModel up or down. Thanks, Shane From amrithamani@hotmail.com Sun Feb 24 12:56:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f94.law3.hotmail.com [209.185.241.94]) by mail.gnome.org (Postfix) with ESMTP id 7B966180E9 for ; Sun, 24 Feb 2002 12:56:27 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 24 Feb 2002 09:56:26 -0800 Received: from 137.132.3.9 by lw3fd.law3.hotmail.msn.com with HTTP; Sun, 24 Feb 2002 17:56:26 GMT X-Originating-IP: [137.132.3.9] From: "Amritha Mani" To: gtk-list@gnome.org Subject: Scrolling of Drawing area within GTKLayout Date: Mon, 25 Feb 2002 01:56:26 +0800 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 24 Feb 2002 17:56:26.0854 (UTC) FILETIME=[9476D060:01C1BD5C] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have just started using GTK. I need to draw a diagram with lines that depicts data flow between a client and a server, i.e, keeps growing in the vertical direction. I tried using Gtk Window-> Gtk Layout->Gtk Drawing area but the drawing area doesnt grow(and shows only the first few data lines) Is there some other simple way to do this? Kindly help. Amritha _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From falconer@falconer.best.vwh.net Mon Feb 25 15:57:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id D017618C15 for ; Mon, 25 Feb 2002 15:57:27 -0500 (EST) Received: (qmail 41813 invoked by uid 25889); 25 Feb 2002 20:57:23 -0000 Received: from unknown (HELO localhost) ([192.220.101.33]) (envelope-sender ) by 192.220.101.33 (qmail-ldap-1.03) with SMTP for ; 25 Feb 2002 20:57:23 -0000 Date: Mon, 25 Feb 2002 20:57:23 +0000 (GMT) From: Edward A Falk Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests In-Reply-To: <200202241320.IAA17161@renoir.op.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > > arguments. > > which window is that for? think about it. First window, or even all top-level windows. It would still be more useful than not being able to specify at all. Face it, most applications start with one initial window. Throwing away a useful feature because it's ambiguous (note: ambiguous, not broken) in the general case is silly. > > * It would be nice to add a scale factor option to sliders and > > you can write this yourself. ... Yes, but it's a fair bit of work, the way how is non-obvious (I didn't even know it was possible until I read your post), and most app writers won't even think to do it. In the slider widget I wrote for Xt, input scaling was simply set through a resource, and by default was automatic for sliders less than 100 pixels long. > > * It would be nice for TextEntry widgets to have signals which > > indicate that the widget has received/lost keyboard focus. > > focus_in_event > focus_out_event Doh! Didn't think to look at the signals in the super-classes. Thanks; I have a lot of code to re-write now. > > * I found the toolkit's habit of highlighting the widget under the > > cursor rather than highlighting the widget with keyboard focus > > to be confusing. > > catch enter_notify_event and leave_notify_event and stop the > emission. this will prevent prelighting. i wish there was a way to > turn off prelighting on a global basis, but it appears to contradict > the desire of GTK+'s designers for a consistent GUI experience. I was thinking of the general case. The prelighting should reflect the keyboard focus, not the mouse position. The user *knows* where the mouse is. > > * It would be nice if I could use my own select loop with gtk; > > GTK uses glib, and its inner loop is a bit more complex than > this. I was afraid of that. I've been able to use gtk_input_add(), but in my years of programming experience, I've learned that there are always cases that the API designer didn't think of. Someday, an application will come up that needs to react to events that are not file input events or signals, and then what? Anyway, thanks for your comments. -ed falk From falconer@falconer.best.vwh.net Mon Feb 25 16:07:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id 2897618B10 for ; Mon, 25 Feb 2002 16:07:08 -0500 (EST) Received: (qmail 42710 invoked by uid 25889); 25 Feb 2002 21:07:07 -0000 Received: from unknown (HELO localhost) ([192.220.101.33]) (envelope-sender ) by 192.220.101.33 (qmail-ldap-1.03) with SMTP for ; 25 Feb 2002 21:07:07 -0000 Date: Mon, 25 Feb 2002 21:07:07 +0000 (GMT) From: Edward A Falk Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Both features and bug reports should go in bugzilla - Thanks, didn't know about bugzilla. > Certainly a number of these comments would be useful in bugzilla. > > > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > > arguments. > > gtk_window_parse_geometry(). Thanx; missed that one in the docs. Better than nothing. > > * It would be very handy to be able to somehow specify the > > width of a TextEntry widget in terms of displayed characters > > instead of pixels. > > gtk_entry_set_width_chars() Also thanx. This one not my copy of the docs. I need to get an updated set. Or was this new with gtk 2? Wait, never mind. I see it's new with gtk 2. Excellent. > > * Scrollbars and scales desperately need a way for callbacks to > > differentiate a scroll-in-progress from a scroll-completed type > > gtk_range_set_update_policy() is the intended feature here, though it > doesn't handle the case you mention. Right. I know how to specify events under each policy, but there's no way to collect *both* kinds of events and differentiate them. I've already written two different CAD applications that need to know the difference. > > * It would be nice to add a scale factor option to sliders and > > scrollbars so that a large mouse motion results in a small > > change in slider position (very useful feature when dealing > > with very small sliders. See > > Wouldn't it make more sense for the slider to autocompute the scale > factor depending on its size and range and step increment? The slider I wrote does exactly that by default. If AutoScale is true, then scaling is set appropriate to the size of the slider. Otherwise, the application may manually set a scale factor. > > * It would be a nice feature to add "focus follows mouse" to the > > Hrm, I think you'll find little enthusiasm for that... no modern > toolkit does this. I know. I was re-writing the old Xaw toolkit to support keyboard traversal, and I had to face the issue that some users would object to changing the paradigm. So I added a user-setable flag to choose the focus model. Then I realized that the two models aren't incompatible and set the default behavior to use both. It really works quite well. -ed falk From syborg@janeway.vonbek.dhs.org Mon Feb 25 18:36:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from janeway.vonbek.dhs.org (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by mail.gnome.org (Postfix) with ESMTP id 584D019453 for ; Mon, 25 Feb 2002 18:36:27 -0500 (EST) Received: by janeway.vonbek.dhs.org (Postfix, from userid 12347) id 382D6FC70A4; Mon, 25 Feb 2002 18:37:30 -0500 (EST) Date: Mon, 25 Feb 2002 18:37:30 -0500 (EST) From: John Bleichert To: GTK list Subject: Re: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I just recently setup gtk on freebsd and I had similar results. I removed what I installed, and then installed gtk using /stand/sysinstall (the proper package management, along with the pkg_* tools) and it worked fine. Try that out - at first attempt I treated it like linux/ldconfig, but they are not the same system and it had, erm, unexpected results hehe ;-) I'M rtfm on that particular subject right now. JB On Mon, 25 Feb 2002, Yu-Fong Cho spewed forth: > Hi, > > I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is > a little different, so please take a look. Thank you!!! > > I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any > gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so > and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! > > I tried to install Netscape 6.2, but it keep telling me: > > error in loading shared libraries: libgtk-1.2.so.0: cannot open shared > object file: No such file or directory. > > My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my > whole file system. There is just no libgtk-1.2.so.0. > > What's wrong with it? > > > Yu-Fong > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From pyaggi@aulamagna.com.ar Tue Feb 26 16:20:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aulamagna.com.ar (unknown [200.49.75.38]) by mail.gnome.org (Postfix) with SMTP id C913E1925D for ; Tue, 26 Feb 2002 16:20:04 -0500 (EST) Received: (qmail 4941 invoked from network); 26 Feb 2002 21:29:46 -0000 Received: from unknown (HELO there) (200.63.133.120) by 0 with SMTP; 26 Feb 2002 21:29:46 -0000 Content-Type: text/plain; charset="iso-8859-3" From: Pablo Yaggi To: gtk-list@gnome.org Subject: Slot never called Date: Tue, 26 Feb 2002 18:17:42 -0300 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Organization: Aulamagna Message-Id: <20020226212004.C913E1925D@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I new on gtk-- and also in C++, so please be patient =) I'm doing this: - I create a window with glade (with anjusta) - I create a button in that window (with glade) and connect the click signal to some slot named on_clicked (with glade) - I manually add on_clicked to the class declaration (is that correct ?) because glade didn't do it. - In that function I call the constructor of a file_select dialog created with glade. Then there is no problem the file_select dialog is created and sown. - I connected the clicked signal of the ok button to a slot named on_clicked (with glade) and add that slot to the file_select class declaration manually. - That slot is never called, why ? Pablo From adam@cfar.umd.edu Tue Feb 26 17:37:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from chia.umiacs.umd.edu (chia.umiacs.umd.edu [128.8.120.111]) by mail.gnome.org (Postfix) with ESMTP id 67D911812F; Tue, 26 Feb 2002 17:37:39 -0500 (EST) Received: from localhost (adam@localhost) by chia.umiacs.umd.edu (8.9.3/8.9.1) with ESMTP id RAA02535; Tue, 26 Feb 2002 17:37:29 -0500 (EST) X-Authentication-Warning: chia.umiacs.umd.edu: adam owned process doing -bs Date: Tue, 26 Feb 2002 17:37:29 -0500 (EST) From: Adam X-X-Sender: To: Michael Torrie Cc: =?ISO-8859-1?Q?Rams=E9s?= Morales , , Subject: Re: I think I found a freak bug on GTK+-1.3.15 In-Reply-To: <1014762810.32494.14.camel@divit.cs.byu.edu> Message-ID: X-WEB: http://www.eax.com Content-Type-X: multipart/mixed; boundary="------------3897B7E0F65FF08A89ED6C92" MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > This type of thing is very likely indicative of some memory corruption > in your code. It's unlikely to be in gtk (but could be). Just the fact > that removing the second pointer declaration makes it work indicates > that it's your code that's messing up somewhere. Just declaring a > pointer doesn't do any object initialization (ie gtk_tree_view_new type > stuff). What it does do is change your stack layout slightly such that > whatever memory corruption you're doing won't cause an immediate crash > when you remove that unused variable. Adding it back in changes offsets > just slightly so that something important on the stack is overwritten. > > Pointer errors always maifest themselves in this type of manner. Very > frustrating. Good luck. You'll want to run your code through DDD > debugger. It has some very powerful facilities for viewing your > variables etc. You can then watch what happens when the offending line > is executed. Also you can load the core file into the debugger after > the fact and see what line triggered the core dump, see the variables, > etc. Should help you establish what's happening. (DDD is run by the > command ddd. It's downloadable from the internet too -- see > freshmeat.net) actually I would suggset memory debugger. some of those include efence njamd purify (non-free) my favourie is njamd (it comes with redhat 7.2 and possibly others) run it until it stop showing any errors and the above problem should get auto-magically corrected -- Adam http://www.eax.com The Supreme Headquarters of the 32 bit registers From asmcoded@home.com Tue Feb 26 23:04:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from femail16.sdc1.sfba.home.com (femail16.sdc1.sfba.home.com [24.0.95.143]) by mail.gnome.org (Postfix) with ESMTP id C60F618122 for ; Tue, 26 Feb 2002 23:04:20 -0500 (EST) Received: from asm ([68.81.142.15]) by femail16.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20020227040420.LZHH12244.femail16.sdc1.sfba.home.com@asm> for ; Tue, 26 Feb 2002 20:04:20 -0800 Message-ID: <002f01c1bf5d$94f2fa20$6501a8c0@asm> From: "Kevin Candelaria" To: Subject: gtk-engine compile problem. Date: Tue, 26 Feb 2002 23:08:38 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002C_01C1BF1A.86836EE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_002C_01C1BF1A.86836EE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable i compiled glib all standard=20 ./configure make make install then gtk all the latest sources. but when i do gtk-engine=20 i get this: checking for gtk-config... /usr/local/bin/gtk-config checking for GTK - version >=3D 1.2.9... no *** Could not run GTK test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding GTK or finding the wrong *** version of GTK. If it is not finding GTK, you'll need to set your *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to = point *** to the installed location Also, make sure you have run ldconfig if = that *** is required on your system *** *** If you have an old version installed, it is best to remove it, = although *** you may also be able to get things to work by modifying = LD_LIBRARY_PATH *** *** If you have a RedHat 5.0 system, you should remove the GTK package = that *** came with the system with the command *** *** rpm --erase --nodeps gtk gtk-devel configure: error: *** GTK+-1.2.9 not installed - please install first = *** i have dont ldconfig and stuff but i dont understand about the = LD_LIBRARY_PATH thanks. ------=_NextPart_000_002C_01C1BF1A.86836EE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
i compiled glib all standard =
./configure
make
make install
then gtk
all the latest sources.
but when i do gtk-engine
i get this:
 
checking for gtk-config...=20 /usr/local/bin/gtk-config
checking for GTK - version >=3D 1.2.9... = no
***=20 Could not run GTK test program, checking why...
*** The test program=20 compiled, but did not run. This usually means
*** that the run-time = linker is=20 not finding GTK or finding the wrong
*** version of GTK. If it is not = finding=20 GTK, you'll need to set your
*** LD_LIBRARY_PATH environment = variable, or=20 edit /etc/ld.so.conf to point
*** to the installed location  = Also, make=20 sure you have run ldconfig if that
*** is required on your=20 system
***
*** If you have an old version installed, it is best to = remove=20 it, although
*** you may also be able to get things to work by = modifying=20 LD_LIBRARY_PATH
***
*** If you have a RedHat 5.0 system, you = should remove=20 the GTK package that
*** came with the system with the=20 command
***
***    rpm --erase --nodeps gtk=20 gtk-devel
configure: error: *** GTK+-1.2.9 not installed - please = install=20 first ***
 
i have dont ldconfig and stuff but i = dont=20 understand about the LD_LIBRARY_PATH
thanks.
 
------=_NextPart_000_002C_01C1BF1A.86836EE0-- From unicorn@minet.uni-jena.de Wed Feb 27 09:31:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fsuj20.rz.uni-jena.de (fsuj20.rz.uni-jena.de [141.35.1.18]) by mail.gnome.org (Postfix) with ESMTP id 59131184CD for ; Wed, 27 Feb 2002 09:31:38 -0500 (EST) Received: from virusscan.rz.uni-jena.de (virusscan.rz.uni-jena.de [141.35.1.23]) by fsuj20.rz.uni-jena.de (8.12.0.Beta7/8.11.1) with ESMTP id g1REVVmH008215 for ; Wed, 27 Feb 2002 15:31:31 +0100 (MET) Received: from virusscan.rz.uni-jena.de (localhost [127.0.0.1]) by virusscan.rz.uni-jena.de (8.11.6/8.11.6) with ESMTP id g1REVbq10224 for ; Wed, 27 Feb 2002 15:31:37 +0100 Received: from pax10e3.mipool.uni-jena.de (daemon@pax10e2.mipool.uni-jena.de [141.35.13.142]) by pax08e3.mipool.uni-jena.de (8.11.6/8.11.6) with ESMTP id g1REVak417168 for ; Wed, 27 Feb 2002 15:31:36 +0100 (CET) From: Randy Rueckner Received: (from unicorn@localhost) by pax10e3.mipool.uni-jena.de (8.11.6/8.11.6) id g1REVao459665 for gtk-list@gnome.org; Wed, 27 Feb 2002 15:31:36 +0100 (MET) Message-Id: <200202271431.g1REVao459665@pax10e3.mipool.uni-jena.de> Subject: progressbar update To: gtk-list@gnome.org Date: Wed, 27 Feb 2002 15:31:36 +0100 (MET) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello there! maybe someone can help me here. i've made a little gtk_progress_bar to show the progress of long calculations. i use »gtk_progress_set_value(...)« to update the progressbar and »while(g_main_iteration(FALSE))« to update the display. works fine with gtk v1.2.10, but my program must also run with gtk v1.1.5 and i have no idea how to update the display with v1.1.5. thanks in advance, randy r. From kalsuram@yahoo.com Wed Feb 27 12:45:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web21302.mail.yahoo.com (web21302.mail.yahoo.com [216.136.173.210]) by mail.gnome.org (Postfix) with SMTP id 94B6E1971E for ; Wed, 27 Feb 2002 12:45:06 -0500 (EST) Message-ID: <20020227174505.56584.qmail@web21302.mail.yahoo.com> Received: from [210.214.128.63] by web21302.mail.yahoo.com via HTTP; Wed, 27 Feb 2002 09:45:05 PST Date: Wed, 27 Feb 2002 09:45:05 -0800 (PST) From: Kal ram Subject: Number of Characters in GtkEntry widget To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want to know is there is any limit on the max no of characters entered for a GtkEntry Widget ? When I try to enter more than 7200(approx) characters the characters are getting overlapped. Thanks, kalsuram. __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com From gparrot@free.fr Thu Feb 28 02:51:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from postfix2-1.free.fr (postfix2-1.free.fr [213.228.0.9]) by mail.gnome.org (Postfix) with ESMTP id E9DBF18418 for ; Thu, 28 Feb 2002 02:51:06 -0500 (EST) Received: from gilkar (nas-cbv-1-128-110.dial.proxad.net [62.147.128.110]) by postfix2-1.free.fr (Postfix) with SMTP id 51D83150 for ; Thu, 28 Feb 2002 08:51:05 +0100 (CET) From: "Gilles Parrot" To: Subject: Zend Studio Date: Thu, 28 Feb 2002 08:50:18 +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.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I have downloaded the demo version of Zend Studio 2.0 to see if it corresponds to my needs. It is a good tool but I have a problem with my GTK developpements. Zend Studio uses its own version of php and don't read the php.ini stored in c:\windows. The php.ini stored in the Zend's directory has only two lines. I've tried to add the following line, like in the other php.ini: php-gtk.extensions = php_gtk_libglade.dll, php_gtk_sqpane.dll It doesn't work. Has anybody allready tried to use GTK with Zend Studio ? Thanks. Gilles PARROT From syed@mimos.my Thu Feb 28 04:38:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from filter.mimos.my (filter.mimos.my [192.228.137.70]) by mail.gnome.org (Postfix) with ESMTP id 43B0D181EB for ; Thu, 28 Feb 2002 04:38:06 -0500 (EST) Received: from ew.mimos.my (localhost.localdomain [127.0.0.1]) by filter.mimos.my (8.11.0/8.11.0) with ESMTP id g1S9Oim08200 for ; Thu, 28 Feb 2002 17:24:44 +0800 Received: (from root@localhost) by ew.mimos.my (8.11.6/8.11.6) id g1S9c3c27893 for gtk-list@gnome.org; Thu, 28 Feb 2002 17:38:03 +0800 (MYT) (envelope-from syed@mimos.my) Received: from mimos.my (infoniti25.nat.mimos.my [10.1.21.25]) by ew.mimos.my (8.11.6/8.11.6) with ESMTP id g1S9c2a27837 for ; Thu, 28 Feb 2002 17:38:02 +0800 (MYT) (envelope-from syed@mimos.my) Message-ID: <3C7DF9E5.34D0B8A5@mimos.my> Date: Thu, 28 Feb 2002 17:35:33 +0800 From: mrzali X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk notebook & pixmap X-scanner: scanned by Inflex 1.0.10 - (http://pldaniels.com/inflex/) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How i want to attach pixmap into gtk-notebook-tab? As far i know we can only set label on it. Any suggestion. Thanks, mr_zali From feiguin@magnet.fsu.edu Thu Feb 28 13:25:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fangio.magnet.fsu.edu (fangio.magnet.fsu.edu [146.201.234.41]) by mail.gnome.org (Postfix) with ESMTP id D36821853E for ; Thu, 28 Feb 2002 13:25:09 -0500 (EST) Received: from localhost (feiguin@localhost) by fangio.magnet.fsu.edu (8.11.6/8.11.6) with ESMTP id g1SIP9w16309 for ; Thu, 28 Feb 2002 13:25:09 -0500 (EST) X-Authentication-Warning: fangio.magnet.fsu.edu: feiguin owned process doing -bs Date: Thu, 28 Feb 2002 13:25:09 -0500 (EST) From: Adrian Feiguin To: gtk-list@gnome.org Subject: built-in types Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I wonder if somebody can shed some light on the way the BOXED data types are generated. I understand that maketypes.awk is used, are there any guidelines? Thank you! From kevin@mpcf.com Thu Feb 28 13:30:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.mpcf.com (unknown [209.215.137.161]) by mail.gnome.org (Postfix) with ESMTP id 972AF18165 for ; Thu, 28 Feb 2002 13:30:18 -0500 (EST) Received: from mpcf.com (10.0.0.8 [10.0.0.8]) by mail.mpcf.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id FKYGZG9C; Thu, 28 Feb 2002 13:27:54 -0500 Message-ID: <3C7E7669.68BAF389@mpcf.com> Date: Thu, 28 Feb 2002 13:26:49 -0500 From: kevin X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.17 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk 1.2.10 configure issues Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, First off, i am not a list member so please direct any replies to kevin@mpcf.com, thanks. I am trying to compile Gtk+1.2.10 on a Slackware 8 box. I downloaded glib1.2.10 and gtk1.2.10 tarballs from the Gtk site. Glib compiled and installed just fine but when i run ./configure for Gtk, it keeps saying glib 1.2.8 (or greater) is not installed. I run "glib-config --version" and it spits 1.2.10 back at me, so obviously it is installed and running fine. I removed the glib.h and gmodules.h from the /usr/local/include/ dir, as directed by the INSTALL file and my ld.so.conf is pointing to all the correct places for libraries. Anyone have any ideas as to where i should look first? Thanks for your help, VeKTeReX From gtw@research.att.com Thu Feb 28 16:03:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-blue.research.att.com (mail-blue.research.att.com [135.207.30.102]) by mail.gnome.org (Postfix) with ESMTP id 34094181D9 for ; Thu, 28 Feb 2002 16:03:20 -0500 (EST) Received: from postal.research.att.com (postal.research.att.com [135.207.23.30]) by mail-blue.research.att.com (Postfix) with ESMTP id C43034CF1A for ; Thu, 28 Feb 2002 16:03:19 -0500 (EST) Received: from pc-gtw.research.att.com (root@pc-gtw.research.att.com [135.207.22.247]) by postal.research.att.com (8.8.7/8.8.7) with ESMTP id PAA20602 for ; Thu, 28 Feb 2002 15:59:26 -0500 (EST) Received: (from gtw@localhost) by pc-gtw.research.att.com (8.9.3/8.9.3) id QAA25224 for gtk-list@gnome.org; Thu, 28 Feb 2002 16:03:18 -0500 Date: Thu, 28 Feb 2002 16:03:18 -0500 From: Gary Wong To: gtk-list@gnome.org Subject: pixbuf-engine: image borders when stretch = FALSE Message-ID: <20020228160318.A25166@pc-gtw.research.att.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, The pixbuf-engine (CVS head) behaviour for image borders when stretch is FALSE doesn't match what I expect. For example, suppose I am using the definition: image { ... file = "foo.png" border = { 1, 1, 1, 1 } stretch = FALSE } and foo.png is a 4x4 image which looks like this: #### #x.# #.x# #### When this image is drawn on a (say) 10x10 area, I expect to see: ########## #x.x.x.x.# #.x.x.x.x# #x.x.x.x.# #.x.x.x.x# #x.x.x.x.# #.x.x.x.x# #x.x.x.x.# #.x.x.x.x# ########## but instead I get something like the following (the "offset" varies depending on the position of the window): ########## x.##x.##x. .x##.x##.x ########## ########## x.##x.##x. .x##.x##.x ########## ########## x.##x.##x. Is this behaviour wrong? Am I using pixbuf-engine incorrectly? Or am I just expecting the wrong thing to happen? After a very brief look at the source, it seems that theme_pixbuf_render() ignores theme_pb->border_* when theme_pb->stretch is FALSE. I'm happy to mention something on bugzilla and/or have a go at modifying this function, but I thought I'd ask for advice here first in case I misunderstand the situation. Cheers, Gary. -- Gary Wong gtw@gnu.org http://www.cs.arizona.edu/~gary/ From hzeng@hf.tvia.com Thu Jan 31 19:51:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx2.hf.tvia.com (unknown [61.132.182.9]) by mail.gnome.org (Postfix) with ESMTP id 5704D18B75 for ; Thu, 31 Jan 2002 19:51:44 -0500 (EST) Received: from hzeng ([192.168.2.65]) by mx2.hf.tvia.com (8.11.6/8.11.6) with SMTP id g110gvZ00563 for ; Fri, 1 Feb 2002 08:42:57 +0800 Message-ID: <000d01c1aaba$40ddc800$4102a8c0@hf.tvia.com> From: "hzeng" To: Subject: What event has happened? Date: Fri, 1 Feb 2002 08:49:06 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: base64 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQogICAgQXQgdGhlIHZpcnR1YWwgc2NyZWVuIG9mIFhXaW5kb3csd2hlbiBJIGRvIG5vdGhp bmcgdG8gbXkgYXBwIHdpbmRvdyBhbmQgb25seSBtb3ZlIHRoZQ0KIG1vdXNlLCBzbyBteSBhcHAg d2luZG93IHdpbGwgbW92ZSBvdXQgb2YgdGhlIHZpZXcgcG9ydCBib3JkZXJlZCBieSB0aGUgbW9u aXRvci4gSW4gdGhpcw0KIHNpdHVhdGlvbiBJIHdhbnQgdG8gZG8gc29tZSB0aGluZyBpbiBteSBh cHAsIGJ1dCBob3cgY2FuIEkgZ2V0IHRoZSBzaWduYWwsIG9yIHdoYXQgZXZlbnQNCiBoYXBwZW4/ IA0KDQpUaGFuayB5b3UgdmVyeSBtdWNoICENCkh6ZW5nDQo= From kasonhuang@kinposh.com.cn Thu Jan 31 21:27:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 16770180FA for ; Thu, 31 Jan 2002 21:27:00 -0500 (EST) Subject: how to change focus problem in two tables? MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="----_=_NextPart_001_01C1AAC7.ED85BA24" Date: Fri, 1 Feb 2002 10:27:00 +0800 Message-ID: <92CD479384374A439EFA0077E7C50F821FE889@kes01.kinposh.com.cn> X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: how to change focus problem in two tables? Thread-Index: AcGqx+vblN/cEhbsEda2uQCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Cc: , "Paul Davis" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1AAC7.ED85BA24 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable how to change focus problem in two tables?

hello:
do anyone tell me = how to change focus of buttons in two GtkTable with "up down left = right"key on the condition of no mouse supporting.if a easy = way?

i find i could change = focus in one table,not happened in two tables.

eg:buttons in two = tables
__________________________________
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|_______________|_________________ |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |        table_a
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|_______________|_________________ |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|______________ | = _________________ |

        =20 3D"ole0.bmp"focus with keyboard = control 3D"ole1.bmp"
__________________________________
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |  
|_______________|_________________ = |      
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |      =
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |      
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |       table_b
|_______________|_________________ = |       
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |        
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |         
|_______________| = _________________|         &= nbsp;  =


------_=_NextPart_001_01C1AAC7.ED85BA24 Content-Type: image/bmp; name="ole0.bmp" Content-Transfer-Encoding: base64 Content-Description: ole0.bmp Content-Location: No%20AttachName Qk0yAQAAAAAAAD4AAAAoAAAADAAAAD0AAAABAAEAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAA AP///wD/8AAA/fAAAPnwAAD48AAA8PAAAPBwAADgcAAA4DAAAMAwAADAEAAAgBAAAP3wAAD98AAA /fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD9 8AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3w AAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAA AP3wAAD98AAA/fAAAP3wAAD/8AAA ------_=_NextPart_001_01C1AAC7.ED85BA24 Content-Type: image/bmp; name="ole1.bmp" Content-Transfer-Encoding: base64 Content-Description: ole1.bmp Content-Location: No%20AttachName-2 Qk0iAgAAAAAAAD4AAAAoAAAADAAAAHkAAAABAAEAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAA AP///wD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA /fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD9 8AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3w AAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAA AP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA /fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD9 8AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3w AAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA//AAAMAQAADAMAAA4DAA AOBwAADwcAAA8PAAAPjwAAD58AAA/fAAAP/wAAD/8AAA ------_=_NextPart_001_01C1AAC7.ED85BA24-- From shiraz_baig@yahoo.com Fri Feb 1 00:05:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13904.mail.yahoo.com (web13904.mail.yahoo.com [216.136.175.67]) by mail.gnome.org (Postfix) with SMTP id DBB1618779 for ; Fri, 1 Feb 2002 00:05:57 -0500 (EST) Message-ID: <20020201050557.82681.qmail@web13904.mail.yahoo.com> Received: from [203.135.6.194] by web13904.mail.yahoo.com via HTTP; Thu, 31 Jan 2002 21:05:57 PST Date: Thu, 31 Jan 2002 21:05:57 -0800 (PST) From: Shiraz Baig Subject: Re: drawing a line To: gtk-list@gnome.org In-Reply-To: <3C594C38.9080303@ng-london.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Thanks for the reply. But I have not really understood the answer. My doubt is that if Drawing the line with the timer function does not need any "expose" event. Then why is pushing_button needing it? Why can't pushing_button also draw the line without expose_event? Thanks. Shiraz --- John.Cupitt@ng-london.org.uk wrote: > Shiraz Baig wrote: > > > Hi, > > I want to draw a line when I push a button. I > have > > written the following code. It draws line thru > two > > alternative signal commands. > > a. Thru the timer function. > > b. Thru the push button. > > > > It works with the timer function. But it does not > work > > with the push button. > > > > Question: > > Can anyone suggest how can it draw the line when > I > > click the button? > > > > > Hi, you need to connect to "expose_event" and do > your repaint there. > > Don't paint on button click. Instead, change your > model (your internal > representation of what it is you are showing on the > screen), and ask for > a repaint to be queued for your window with > gtk_widget_draw(). > > Also, you have a problem with your button callback. > > The scribble example covers some of this stuff: > > http://www.gtk.org/tutorial/sec-thedrawingareawidget.html > > John > > > > > ========================================================== > > Coming soon: > Aelbert Cuyp 13 February - 12 May 2002 > > For information and tickets: > http://www.nationalgallery.org.uk __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From hp@redhat.com Fri Feb 1 00:54:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 5D7F41876E for ; Fri, 1 Feb 2002 00:54:45 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g115sho24923; Fri, 1 Feb 2002 00:54:43 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200201291451.JAA17130@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 00:54:43 -0500 In-Reply-To: <200201291451.JAA17130@renoir.op.net> Message-ID: Lines: 10 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > i sincerely hope that in a future release of the 1.2 series, > pkg-config gets added. > Note that pkg-config has some dubious "legacy hacks" in it - try "pkg-config --cflags gtk" for example. Havoc From hp@redhat.com Fri Feb 1 00:57:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wilber.gimp.org (graft.XCF.Berkeley.EDU [128.32.247.248]) by mail.gnome.org (Postfix) with ESMTP id 35C90187C7 for ; Fri, 1 Feb 2002 00:57:22 -0500 (EST) Received: from nat-pool-meridian.redhat.com ([12.107.208.200] helo=icon.labs.redhat.com) by wilber.gimp.org with esmtp (Exim 3.12 #1 (Debian)) id 16WWhN-000728-00 for ; Thu, 31 Jan 2002 21:57:21 -0800 Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g115vI224927; Fri, 1 Feb 2002 00:57:18 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Isaac Pernas" Cc: Subject: Re: GtkEntry color Background References: <003e01c1a8c4$6308c4e0$03001aac@berta> From: Havoc Pennington Date: 01 Feb 2002 00:57:18 -0500 In-Reply-To: <003e01c1a8c4$6308c4e0$03001aac@berta> Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Isaac Pernas" writes: > Estoy intentando cambiar el fondo d un GtkEntry pero por m=E1s que lo > intento no me deja. Nos=E9 que estoy haciendo mal. La versi=F3n de mis > librer=EDas Gtk es la 1.2. > I'm trying to change de background color for my GtkEntry but i can=B4t. > I don't know what i'm doing wrong. I have de Gtk+ 1.2 version. > This funcxtion changes the color of the background when youn click the > button. >=20 See http://pobox.com/~hp/gtk-colors.html Havoc From hp@redhat.com Fri Feb 1 00:58:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 6AD1F1876E for ; Fri, 1 Feb 2002 00:58:50 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g115wni24931; Fri, 1 Feb 2002 00:58:49 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Andreas Scherf Cc: Gtk Liste Subject: Re: GtkListStore getting values in Gtk2.0 References: <1012487955.25095.3.camel@xerxes> From: Havoc Pennington Date: 01 Feb 2002 00:58:49 -0500 In-Reply-To: <1012487955.25095.3.camel@xerxes> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Andreas Scherf writes: > Hello, im porting some apps to Gtk+2.0, i wondering how to get values > back from a GtkListStore ? I saw only functions to add or del values > inside the List but no function to get the data back.What i want is to > print a GtkTreeView so istored the data inside a GtkListStore but after > showing them i couldn't get the data back ? Have i messed something ? > gtk_tree_model_get() Havoc From corsepiu@faw.uni-ulm.de Fri Feb 1 01:46:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.faw.uni-ulm.de (www.faw.uni-ulm.de [134.60.100.4]) by mail.gnome.org (Postfix) with SMTP id D29A91876E for ; Fri, 1 Feb 2002 01:46:29 -0500 (EST) Received: (qmail 4670 invoked from network); 1 Feb 2002 06:46:29 -0000 Received: from ultra2.faw.uni-ulm.de (HELO mailserv.faw.uni-ulm.de) (172.16.15.2) by www-intern.faw.uni-ulm.de with SMTP; 1 Feb 2002 06:46:29 -0000 Received: (qmail 5844 invoked by uid 0); 1 Feb 2002 06:46:27 -0000 Received: from dialin6.faw.uni-ulm.de (corsepiu@172.18.1.6) by mailserv.faw.uni-ulm.de with SMTP; 1 Feb 2002 06:46:27 -0000 Subject: Re: Does GTK+ support OpenGL and Inventor ? From: Ralf Corsepius To: "Lin, Lynn" Cc: gtk-list@gnome.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1012546025.32320.462.camel@mccallum> Mime-Version: 1.0 X-Mailer: Evolution/1.0.2 Date: 01 Feb 2002 07:47:09 +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am Don, 2002-01-31 um 20.07 schrieb Lin, Lynn: > Hi there, > > If I create a GtkWidget* gtk_drawing_area_new, can I call OpenGL or > Inventor routines to draw 3D graphics on the GTK drawing area widget ? If > yes, how to do it ? There exist several more or less immature ports of InventorXt to Gtk+. You might want to consult google and search for SoGtk. I have a port of InventorXt to Gtk+ of my own, but unfortunately, it's not in a shape worth being released nor will I have time to do so in the foreseeable furture. Ralf From shiraz_baig@yahoo.com Fri Feb 1 01:58:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13903.mail.yahoo.com (web13903.mail.yahoo.com [216.136.175.29]) by mail.gnome.org (Postfix) with SMTP id BCE0118AC7 for ; Fri, 1 Feb 2002 01:58:32 -0500 (EST) Message-ID: <20020201065832.15093.qmail@web13903.mail.yahoo.com> Received: from [203.135.6.194] by web13903.mail.yahoo.com via HTTP; Thu, 31 Jan 2002 22:58:32 PST Date: Thu, 31 Jan 2002 22:58:32 -0800 (PST) From: Shiraz Baig Subject: Re: drawing a line To: Sven Neumann Cc: gtk-list@gnome.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Mr Sven Neumann has given an excellent answer. Now I understand the difference between two functions (gtk_signal_connect and gtk_signal_connect_object). I changed the parameters as suggested by Mr Neumann and viola! I am drawing the lines without "expose" event and only with pushing a button. Thanks. I Must also thank Jeff Trefftzs who gave similar views though in too abbreviated a form. Bye Shiraz --- Sven Neumann wrote: > Hi, > > Shiraz Baig writes: > > > I want to draw a line when I push a button. I have > > written the following code. It draws line thru two > > alternative signal commands. > > a. Thru the timer function. > > b. Thru the push button. > > > > It works with the timer function. But it does not > work > > with the push button. > > you will need a separate function for the button > clicked > callback since it is called with the GtkButton as > first > parameter. Alternatively you could use > gtk_signal_connect_object() which swaps the > parameters. > > > Salut, Sven __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Fri Feb 1 02:00:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wilber.gimp.org (graft.XCF.Berkeley.EDU [128.32.247.248]) by mail.gnome.org (Postfix) with ESMTP id 0C8D818D5A for ; Fri, 1 Feb 2002 02:00:09 -0500 (EST) Received: from web9902.mail.yahoo.com ([216.136.129.37]) by wilber.gimp.org with smtp (Exim 3.12 #1 (Debian)) id 16WXg8-0007dj-00 for ; Thu, 31 Jan 2002 23:00:08 -0800 Message-ID: <20020201070008.29297.qmail@web9902.mail.yahoo.com> Received: from [213.29.206.62] by web9902.mail.yahoo.com via HTTP; Thu, 31 Jan 2002 23:00:08 PST Date: Thu, 31 Jan 2002 23:00:08 -0800 (PST) From: Vahid Zahiri Subject: Re: Send signal? To: Ishan Cc: gtk-list@gtk.org In-Reply-To: <000001c1aa7b$8560d6a0$59e3e30a@ishan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi ishan i can execute callbackfunction :), but i want get selection text in other applications by button3 click on my entry. but i find better way (on GTK world)to do this. thanks Vahid --- Ishan wrote: > Why on earth would you want the computer to think > that way? Better execute > the callback function which you have written for the > clicked signal of your > button. Hope this helps, > Ishan > > > Hi All > > > I want send a click signal to a widget, > > is it possible? > > > I want widget thinked mouse click on it. > > is it possible? > > > Thanks in advance > > Vahid Zahiri > > __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From inimss@yahoo.com Fri Feb 1 03:07:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by mail.gnome.org (Postfix) with SMTP id F0F55181BB for ; Fri, 1 Feb 2002 03:07:56 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 1 Feb 2002 08:07:54 -0000 Message-ID: <3C5A4CCD.ED06E07D@yahoo.com> Date: Fri, 01 Feb 2002 13:37:41 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: [INIMSS] GtkCList :: Wrapping Text in Cells Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, How can I make the text in the cell of GtkCList wrap-around within it? If it can't be done with GtkCList, then which widget should I use for the purpose? Thanks Dino Cherian K _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From lettere@di.unipi.it Fri Feb 1 03:29:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailserver.di.unipi.it (apis.di.unipi.it [131.114.4.6]) by mail.gnome.org (Postfix) with ESMTP id 5DFF6185C6 for ; Fri, 1 Feb 2002 03:29:03 -0500 (EST) Received: from idra.di.unipi.it (idra [131.114.2.113]) by mailserver.di.unipi.it (8.11.6/8.11.6) with ESMTP id g118T1823411 for ; Fri, 1 Feb 2002 09:29:01 +0100 Received: from localhost (lettere@localhost) by idra.di.unipi.it (8.11.2/8.9.1) with ESMTP id g118SKU27731 for ; Fri, 1 Feb 2002 09:28:20 +0100 X-Authentication-Warning: idra.di.unipi.it: lettere owned process doing -bs Date: Fri, 1 Feb 2002 09:28:16 +0100 (CET) From: Marco Lettere To: Subject: colors in pixmap Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello everyone, suppose I've a pixmap with a color which I want to modify with 3 slider widgets for RGB. The way I'm performing it now is to destroy the old pixmap, change the xpm C structure and then recreate the pixmap with the new data. Isn't there a better way (less expensive) of performing this operation I'm thinking about something like gtk_pixmap_update_color(Gtkpixmap* pix,int colorIndex,GdkColor* newColor); thanx, M. ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| From coframi.balr001@rd.francetelecom.com Fri Feb 1 03:32:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id C223818303 for ; Fri, 1 Feb 2002 03:32:46 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1AK0QZ7L>; Fri, 1 Feb 2002 09:32:38 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , gtk-list@gnome.org Subject: RE: [INIMSS] GtkCList :: Wrapping Text in Cells Date: Fri, 1 Feb 2002 09:32:38 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-a778d693-1656-11d6-b1e4-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-a778d693-1656-11d6-b1e4-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AAFB.01CD9CD0" ------_=_NextPart_001_01C1AAFB.01CD9CD0 Content-Type: text/plain Hello, you can get the text of a GtkCList cell using gtk_clist_get_text (GtkCList * clist, gchar * texte); and put a text in a cell using gtk_clist_set_text (GtkCList * clist, int row, int column, gchar * texte); With your variable texte, you can use all string.h functions (strcat, strcpy, sprintf...) I don't know if I understood your question Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : vendredi 1 fevrier 2002 09:08 A : gtk-list@gnome.org Objet : [INIMSS] GtkCList :: Wrapping Text in Cells Hi, How can I make the text in the cell of GtkCList wrap-around within it? If it can't be done with GtkCList, then which widget should I use for the purpose? Thanks Dino Cherian K _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AAFB.01CD9CD0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] GtkCList :: Wrapping Text in Cells

Hello,

you can get the text of a GtkCList cell using = gtk_clist_get_text (GtkCList * clist, gchar * texte); and put a text in = a cell using gtk_clist_set_text (GtkCList * clist,  int row, int = column, gchar * texte);


With your variable texte, you can use all string.h = functions (strcat, strcpy, sprintf...)

I don't know if I understood your question

Isabelle


-----Message d'origine-----
De : Dino Cherian K [mailto:inimss@yahoo.com]
Envoye : vendredi 1 fevrier 2002 09:08
A : gtk-list@gnome.org
Objet : [INIMSS] GtkCList :: Wrapping Text in = Cells


Hi,

How can I make the text in the cell of GtkCList = wrap-around within it?

If it can't be done with GtkCList, then which widget = should I use for
the purpose?

Thanks
Dino Cherian K

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

------_=_NextPart_001_01C1AAFB.01CD9CD0-- ------=_NextPartTM-000-a778d693-1656-11d6-b1e4-00508b69ab48-- From inimss@yahoo.com Fri Feb 1 04:00:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp018.mail.yahoo.com (smtp018.mail.yahoo.com [216.136.174.115]) by mail.gnome.org (Postfix) with SMTP id 403C0188EB for ; Fri, 1 Feb 2002 04:00:46 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 1 Feb 2002 09:00:38 -0000 Message-ID: <3C5A592D.40C96998@yahoo.com> Date: Fri, 01 Feb 2002 14:30:29 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: zze-coframi balr001 Cc: gtk-list@gnome.org Subject: Re: [INIMSS] GtkCList :: Wrapping Text in Cells References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I think you had not really understood the situation. I actually meant to wrap the text only in the display of the cell and not the data. By default the text that exceeds the limit of the cell is truncated. I want to avoid this truncation and make the text displayed wrapped-down so that we can view the whole text. May be the height of the row will have to be varied. Thanks Dino Cherian K > zze-coframi balr001 wrote: > > Hello, > > you can get the text of a GtkCList cell using gtk_clist_get_text > (GtkCList * clist, gchar * texte); and put a text in a cell using > gtk_clist_set_text (GtkCList * clist, int row, int column, gchar * > texte); > > With your variable texte, you can use all string.h functions (strcat, > strcpy, sprintf...) > > I don't know if I understood your question > > Isabelle > > -----Message d'origine----- > De : Dino Cherian K [mailto:inimss@yahoo.com] > Envoye : vendredi 1 fevrier 2002 09:08 > A : gtk-list@gnome.org > Objet : [INIMSS] GtkCList :: Wrapping Text in Cells > > Hi, > > How can I make the text in the cell of GtkCList wrap-around within it? > > If it can't be done with GtkCList, then which widget should I use for > the purpose? > > Thanks > Dino Cherian K > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From sven@gimp.org Fri Feb 1 04:07:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id AAF031892D for ; Fri, 1 Feb 2002 04:07:43 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16WZfZ-00035w-00; Fri, 01 Feb 2002 10:07:41 +0100 To: Shiraz Baig Cc: gtk-list@gnome.org Subject: Re: drawing a line References: <20020201065832.15093.qmail@web13903.mail.yahoo.com> From: Sven Neumann Date: 01 Feb 2002 10:07:40 +0100 In-Reply-To: <20020201065832.15093.qmail@web13903.mail.yahoo.com> Message-ID: Lines: 17 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Shiraz Baig writes: > I changed the parameters as suggested by Mr Neumann > and viola! I am drawing the lines without "expose" > event and only with pushing a button. now move your mouse over the line you've just drawn or obscure the window by moving another window over it. Assuming you are using a drawing_area to draw on directly, X will clear the area you've just painted on and since you aren't redrawing in your expose event handler, the line you've just drawn will be gone. Salut, Sven From coframi.balr001@rd.francetelecom.com Fri Feb 1 04:56:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id 5FD6818AF1 for ; Fri, 1 Feb 2002 04:56:00 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Fri, 1 Feb 2002 10:55:29 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , zze-coframi balr001 Cc: gtk-list@gnome.org Subject: RE: [INIMSS] GtkCList :: Wrapping Text in Cells Date: Fri, 1 Feb 2002 10:55:29 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, Now I undestand your point. Why don't you use ScrolledWindow ?? If you don't want to see the scroll bar, you put the gtk_policy to Never I explain : 1- You create you window 2- You add you scrolledwindow and put gtk_scrolled_window_set_policy (scrollwindow, GTK_POLICY_NEVER, GTK_POLICY_NEVER) 3- You add your GtkCList in your scrolledwindow With that you will be able to see the whole text that is in the cell using you arrow key Does this solution is OK for you ?? Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : vendredi 1 fevrier 2002 10:00 A : zze-coframi balr001 Cc : gtk-list@gnome.org Objet : Re: [INIMSS] GtkCList :: Wrapping Text in Cells Hi I think you had not really understood the situation. I actually meant to wrap the text only in the display of the cell and not the data. By default the text that exceeds the limit of the cell is truncated. I want to avoid this truncation and make the text displayed wrapped-down so that we can view the whole text. May be the height of the row will have to be varied. Thanks Dino Cherian K > zze-coframi balr001 wrote: > > Hello, > > you can get the text of a GtkCList cell using gtk_clist_get_text > (GtkCList * clist, gchar * texte); and put a text in a cell using > gtk_clist_set_text (GtkCList * clist, int row, int column, gchar * > texte); > > With your variable texte, you can use all string.h functions (strcat, > strcpy, sprintf...) > > I don't know if I understood your question > > Isabelle > > -----Message d'origine----- > De : Dino Cherian K [mailto:inimss@yahoo.com] > Envoye : vendredi 1 fevrier 2002 09:08 > A : gtk-list@gnome.org > Objet : [INIMSS] GtkCList :: Wrapping Text in Cells > > Hi, > > How can I make the text in the cell of GtkCList wrap-around within it? > > If it can't be done with GtkCList, then which widget should I use for > the purpose? > > Thanks > Dino Cherian K > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From John.Cupitt@ng-london.org.uk Fri Feb 1 06:56:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id D0786187D5 for ; Fri, 1 Feb 2002 06:56:47 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HG7G>; Fri, 1 Feb 2002 11:56:46 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HG7F; Fri, 1 Feb 2002 11:56:39 -0000 Message-ID: <3C5A7F3C.1@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: hzeng@hf.tvia.com Cc: gtk-list@gnome.org Subject: Re: What event has happened? Date: Fri, 1 Feb 2002 11:42:52 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="windows-1252" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hzeng wrote: > At the virtual screen of XWindow,when I do nothing to my app window and only move the > mouse, so my app window will move out of the view port bordered by the monitor. In this > situation I want to do some thing in my app, but how can I get the signal, or what event > happen? Hi, I think you need "enter_notify_event" and "leave_notify_event". The event watch in testgtk uses these sugnals. John ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From John.Cupitt@ng-london.org.uk Fri Feb 1 07:20:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 36098187D5 for ; Fri, 1 Feb 2002 07:20:18 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HG90>; Fri, 1 Feb 2002 12:20:17 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HG99; Fri, 1 Feb 2002 12:20:07 -0000 Message-ID: <3C5A84BB.5080605@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: shiraz_baig@yahoo.com Cc: gtk-list@gnome.org Subject: Re: drawing a line Date: Fri, 1 Feb 2002 12:06:19 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hiya, try the page for the drawing area widget: http://gtk.org/tutorial/sec-thedrawingareawidget.html I think this explains the problem. With a window system, you don't just draw on the screen. What happens when your window is covered or uncovered? You need to be able to recreate any part of your display when it is exposed. The rule is: do all drawing in the expose handler. If you want to draw in respose to an event, set some hints somewhere and trigger an expose. As Sven said, you also have a bug in your button callback. John Shiraz Baig wrote: > Hi, > Thanks for the reply. But I have not really > understood the answer. My doubt is that if Drawing the > line with the timer function does not need any > "expose" event. Then why is pushing_button needing it? > Why can't pushing_button also draw the line without > expose_event? > Thanks. > Shiraz > > --- John.Cupitt@ng-london.org.uk wrote: > >>Shiraz Baig wrote: >> >> > Hi, >> > I want to draw a line when I push a button. I >>have >> > written the following code. It draws line thru >>two >> > alternative signal commands. >> > a. Thru the timer function. >> > b. Thru the push button. >> > >> > It works with the timer function. But it does not >>work >> > with the push button. >> > >> > Question: >> > Can anyone suggest how can it draw the line when >>I >> > click the button? >> > >> >> >>Hi, you need to connect to "expose_event" and do >>your repaint there. >> >>Don't paint on button click. Instead, change your >>model (your internal >>representation of what it is you are showing on the >>screen), and ask for >>a repaint to be queued for your window with >>gtk_widget_draw(). >> >>Also, you have a problem with your button callback. >> >>The scribble example covers some of this stuff: >> ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From hzeng@hf.tvia.com Fri Feb 1 08:06:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx2.hf.tvia.com (unknown [61.132.182.9]) by mail.gnome.org (Postfix) with ESMTP id 73843182C8 for ; Fri, 1 Feb 2002 08:06:28 -0500 (EST) Received: from hzeng ([192.168.2.65]) by mx2.hf.tvia.com (8.11.6/8.11.6) with SMTP id g11CvSZ10197; Fri, 1 Feb 2002 20:57:28 +0800 Message-ID: <000801c1ab20$de71fd00$4102a8c0@hf.tvia.com> From: "hzeng" To: Cc: References: <3C5A7F3C.1@ng-london.org.uk> Subject: Re: What event has happened? Date: Fri, 1 Feb 2002 21:03:38 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: base64 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQogICAgSSB0aGluayB5b3UgbWlzdW5kZXJzdGFuZCBteSBtZWFuaW5nLiBJIHdhbnQgdG8g Z2V0IHRoZSBzaWduYWwgZW1pdCBieSB0aGUgYXBwIHdpbmRvdyB3aGVuIA0KICAgIEkgbW92ZSB0 aGUgbW91c2UgaW4gYW55d2h3ZXJlIG9mIHRoZSB2aXJ0dWFsIGRlc2t0b3AsIHRoZSBlbnRlcl9u b3RpZnlfZXZlbnQgYW5kIHRoZSBsZWF2ZV9ub3RpZnlfZXZlbnQgaXMNCiAgICBlbWl0IG9ubHkg dGhlIG1vdXNlIGVudGVyIHRoZSBhcHAgd2luZG93IGFuZCBsZWF2ZSB0aGUgYXBwIHdpbmRvdy4g SSBtdXN0IGRvIHNvbWUgc3BlY2lhbCB3b3JrIHdoZW4gDQogICAgbXkgYXBwIG1vdmUgb3V0IG9m IHRoZSBtb25pdG9yIGJvcmRlciBpbiB2ZXJ0dWFsIHNjcmVlbiBvciBldmVuIHRoZSB2aXN1YWwg cG9zaXRpb24gb2YgdGhlIGFwcCB3aW5kb3cgY2hhbmdlZCwNCiAgICBJIGp1c3QgZG9uJ3Qga25v dyBpZiB0aGVyZSBhcmUgc3VjaCBzaWduYWxzIGluIGd0ay4gTWF5YmUgIHRoZSBndGsgZG9uJ3Qg Y2FyZSBhYm91dCB0aGVzZSBzaXR1YWwgYW5kIGxlZnQgaXQgdG8gYmUgZG9uZSBieSANCiAgICBY c2VydmVyLiAgSSBoYXZlIHRyeSBtYW55IGV2ZW50IGJ1dCB0aGV5IGRvZXNuJ3QgZml0LiBTb3Jy eSBhYm91dCBteSBwb29yIEVuZ2xpc2guDQogICAgVGhhbmtzIGFueXdheSENCkh6ZW5nDQogICAg DQotLS0tLSBPcmlnaW5hbCBNZXNzYWdlIC0tLS0tIA0KDQo+IA0KPiBIaSwgSSB0aGluayB5b3Ug bmVlZCAiZW50ZXJfbm90aWZ5X2V2ZW50IiBhbmQgImxlYXZlX25vdGlmeV9ldmVudCIuIFRoZSAN Cj4gZXZlbnQgd2F0Y2ggaW4gdGVzdGd0ayB1c2VzIHRoZXNlIHN1Z25hbHMuDQo+IA0KPiBKb2hu DQo+IA0KDQo= From John.Cupitt@ng-london.org.uk Fri Feb 1 08:15:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 0AD2C18711 for ; Fri, 1 Feb 2002 08:15:10 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HHDC>; Fri, 1 Feb 2002 13:15:09 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HHDB; Fri, 1 Feb 2002 13:15:05 -0000 Message-ID: <3C5A919D.8040800@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: hzeng@hf.tvia.com Cc: gtk-list@gnome.org Subject: Re: What event has happened? Date: Fri, 1 Feb 2002 13:01:17 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="windows-1252" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ah, sorry, I misunderstood. You could grab the pointer: then you get all mouse movement until you ungrab. Of course, this will stop all other programs from working :-( so you must be very careful. gdk_pointer_grab() and gdk_pointer_ungrab(). John hzeng wrote: > Hi, > I think you misunderstand my meaning. I want to get the signal emit by the app window when > I move the mouse in anywhwere of the virtual desktop, the enter_notify_event and the leave_notify_event is > emit only the mouse enter the app window and leave the app window. I must do some special work when > my app move out of the monitor border in vertual screen or even the visual position of the app window changed, > I just don't know if there are such signals in gtk. Maybe the gtk don't care about these situal and left it to be done by > Xserver. I have try many event but they doesn't fit. Sorry about my poor English. > Thanks anyway! > Hzeng > > ----- Original Message ----- > > >>Hi, I think you need "enter_notify_event" and "leave_notify_event". The >>event watch in testgtk uses these sugnals. >> >>John >> >> > -- John Cupitt, john.cupitt@ng-london.org.uk, +44 (0)20 7747 2570 VASARI Lab, The National Gallery, Trafalgar Square, London, WC2N 5DN ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From lnx1138@us.ibm.com Fri Feb 1 09:31:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from e1.ny.us.ibm.com (e1.ny.us.ibm.com [32.97.182.101]) by mail.gnome.org (Postfix) with ESMTP id A6CC418D28 for ; Fri, 1 Feb 2002 09:31:12 -0500 (EST) Received: from northrelay01.pok.ibm.com (northrelay01.pok.ibm.com [9.117.200.21]) by e1.ny.us.ibm.com (8.9.3/8.9.3) with ESMTP id JAA488954 for ; Fri, 1 Feb 2002 09:28:05 -0500 Received: from chavez.austin.ibm.com (chavez.austin.ibm.com [9.53.216.228]) by northrelay01.pok.ibm.com (8.11.1m3/NCO v5.01) with ESMTP id g11EVAg190060 for ; Fri, 1 Feb 2002 09:31:10 -0500 Subject: Re: GUI design From: Luciano Chavez To: gtk-list@gnome.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 01 Feb 2002 08:31:07 -0600 Message-Id: <1012573868.2054.4.camel@chavez> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-01-30 at 20:34, Raymond Wan wrote: > > Hi all, > > Not directly related to GTK+, but I was wondering if anyone could > suggest a book which talks about how to design a GUI. In particular, what > are the do's and don'ts of GUI design. And, even better, if such a book > exists which is directed at GTK+. > > Thanks in advance! > > Ray > Ray, If you want to follow UI guidelines related to GTK+ or GNOME apps, read what the GNOME Usability Project is proposing. See http://developer.gnome.org/projects/gup/. > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- regards, Luciano Chavez lnx1138@us.ibm.com http://sf.net/projects/evms From engenharia3@maqplas.com.br Fri Feb 1 09:47:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id 1CE6018D21 for ; Fri, 1 Feb 2002 09:47:31 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11ElP35095578 for ; Fri, 1 Feb 2002 12:47:25 -0200 (BRST) Subject: GTK without X ??? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 12:44:08 -0200 Message-Id: <1012574649.1123.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I hear (in Linux for PlayStation2 Forum) about some version of GTK+ that access directly the framebuffer, does not need for X, this proceed ????, if yes where can I found information about this (for PC X86) ? Thanks in advance Flavio Alberto From lapenta_jm@yahoo.com Fri Feb 1 09:53:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14002.mail.yahoo.com (web14002.mail.yahoo.com [216.136.175.93]) by mail.gnome.org (Postfix) with SMTP id DDEFE18458 for ; Fri, 1 Feb 2002 09:53:27 -0500 (EST) Message-ID: <20020201145327.81863.qmail@web14002.mail.yahoo.com> Received: from [129.55.200.20] by web14002.mail.yahoo.com via HTTP; Fri, 01 Feb 2002 06:53:27 PST Date: Fri, 1 Feb 2002 06:53:27 -0800 (PST) From: Jason LaPenta Subject: Problem with *widget on show_event w/ idle process To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm using glade. I'm starting up an idle process when the main window is shown. I'm passing a widget pointer to the idle process so it can do widget lookups with lookup_widget(). If I start the idle process under a show event, then lookup_widget fails and causes my program to exit; Any ideas why this is? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From coframi.balr001@rd.francetelecom.com Fri Feb 1 09:56:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id D456418E0B for ; Fri, 1 Feb 2002 09:56:46 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Fri, 1 Feb 2002 15:50:59 +0100 Message-ID: From: zze-coframi balr001 To: =?iso-8859-1?Q?=27Fl=E1vio_Alberto_Lopes_Soares=27?= , gtk-list Subject: RE: GTK without X ??? Date: Fri, 1 Feb 2002 15:50:59 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, there's a version of GTK that directly access the framebuffer, but it's under developpement. It's GTK 1.3.X This version of GTK doesn't need an X Server. You can find it in = rmpfind.net or on gtk.org You can find information on it on gtk.org or directfb.org Isabelle -----Message d'origine----- De : Fl=E1vio Alberto Lopes Soares [mailto:engenharia3@maqplas.com.br] Envoy=E9 : vendredi 1 f=E9vrier 2002 15:44 =C0 : gtk-list Objet : GTK without X ??? Hello all, I hear (in Linux for PlayStation2 Forum) about some version of GTK+ = that access directly the framebuffer, does not need for X, this proceed = ????, if yes where can I found information about this (for PC X86) ? Thanks in advance Flavio Alberto _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From coframi.balr001@rd.francetelecom.com Fri Feb 1 10:01:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id 67E6F196B6 for ; Fri, 1 Feb 2002 10:01:47 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1AK0RA7Q>; Fri, 1 Feb 2002 16:01:33 +0100 Message-ID: From: zze-coframi balr001 To: 'Jason LaPenta' , gtk-list@gnome.org Subject: RE: Problem with *widget on show_event w/ idle process Date: Fri, 1 Feb 2002 16:01:33 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-a778e229-1656-11d6-b1e4-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-a778e229-1656-11d6-b1e4-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AB31.568C0A50" ------_=_NextPart_001_01C1AB31.568C0A50 Content-Type: text/plain Hello, Do you have named your widget using gtk_widget_set_name (GtkWidget * , char *); ?? Before making your call to lookup_widget, try to print the result of gtk_widget_get_name (GtkWidget *) GtkWdget * window = gtk_widget_new (....) gtk_widget_set_name (window, "toto"); ............. In a callback on a widget, GtkWidget * window = (GtkWidget *) lookup_widget (widget, "toto"); Isabelle -----Message d'origine----- De : Jason LaPenta [mailto:lapenta_jm@yahoo.com] Envoye : vendredi 1 fevrier 2002 15:53 A : gtk-list@gnome.org Objet : Problem with *widget on show_event w/ idle process Hello, I'm using glade. I'm starting up an idle process when the main window is shown. I'm passing a widget pointer to the idle process so it can do widget lookups with lookup_widget(). If I start the idle process under a show event, then lookup_widget fails and causes my program to exit; Any ideas why this is? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AB31.568C0A50 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: Problem with *widget on show_event w/ idle process

Hello,

Do you have named your widget using = gtk_widget_set_name (GtkWidget * , char *); ??

Before making your call to lookup_widget, try to = print the result of gtk_widget_get_name (GtkWidget *)

GtkWdget * window =3D gtk_widget_new (....)
gtk_widget_set_name (window, = "toto");

.............

In a callback on a widget,

GtkWidget * window =3D (GtkWidget *) lookup_widget = (widget, "toto");

Isabelle


-----Message d'origine-----
De : Jason LaPenta [mailto:lapenta_jm@yahoo.com]
Envoye : vendredi 1 fevrier 2002 15:53
A : gtk-list@gnome.org
Objet : Problem with *widget on show_event w/ idle = process


Hello,

I'm using glade.
I'm starting up an idle process when the main
window is shown. I'm passing a widget pointer = to
the idle process so it can do widget lookups = with

lookup_widget(). If I start the idle process
under a show event, then lookup_widget fails = and
causes my program to exit; Any ideas why this = is?


Thanks
Jason

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! =
http://auctions.yahoo.com
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list

------_=_NextPart_001_01C1AB31.568C0A50-- ------=_NextPartTM-000-a778e229-1656-11d6-b1e4-00508b69ab48-- From engenharia3@maqplas.com.br Fri Feb 1 10:15:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id A274619717 for ; Fri, 1 Feb 2002 10:15:26 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11FFKnp096677; Fri, 1 Feb 2002 13:15:21 -0200 (BRST) Subject: RE: GTK without X ??? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: zze-coframi balr001 Cc: gtk-list In-Reply-To: References: Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 13:11:59 -0200 Message-Id: <1012576326.1122.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Can I compile my application normally (I making my application using GTK+ 1.2.10), or I must make some changes ? Thanks in advance Flavio Alberto Em 01 Feb 2002 15:50:59 +0100, zze-coframi balr001 escreveu: > Hello, > > there's a version of GTK that directly access the framebuffer, but it's > under developpement. It's GTK 1.3.X > This version of GTK doesn't need an X Server. You can find it in rmpfind.net > or on gtk.org > You can find information on it on gtk.org or directfb.org > > Isabelle > From coframi.balr001@rd.francetelecom.com Fri Feb 1 10:21:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id CAA591973E for ; Fri, 1 Feb 2002 10:21:04 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Fri, 1 Feb 2002 16:19:37 +0100 Message-ID: From: zze-coframi balr001 To: =?iso-8859-1?Q?=27Fl=E1vio_Alberto_Lopes_Soares=27?= , zze-coframi balr001 Cc: gtk-list Subject: RE: GTK without X ??? Date: Fri, 1 Feb 2002 16:19:37 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, you don't need to make some changes. You just have to compile your code using the GTK 1.3.X for linux-fb librairies. Isabelle -----Message d'origine----- De : Fl=E1vio Alberto Lopes Soares [mailto:engenharia3@maqplas.com.br] Envoy=E9 : vendredi 1 f=E9vrier 2002 16:12 =C0 : zze-coframi balr001 Cc : gtk-list Objet : RE: GTK without X ??? Can I compile my application normally (I making my application using GTK+ 1.2.10), or I must make some changes ? Thanks in advance Flavio Alberto Em 01 Feb 2002 15:50:59 +0100, zze-coframi balr001 escreveu: > Hello, >=20 > there's a version of GTK that directly access the framebuffer, but = it's > under developpement. It's GTK 1.3.X > This version of GTK doesn't need an X Server. You can find it in rmpfind.net > or on gtk.org > You can find information on it on gtk.org or directfb.org >=20 > Isabelle >=20 From paulm@khan.dev.magentatech.com.au Thu Jan 31 21:14:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from magentatech.com.au (magent3.lnk.telstra.net [139.130.198.117]) by mail.gnome.org (Postfix) with ESMTP id 4DDFC18AED for ; Thu, 31 Jan 2002 21:14:44 -0500 (EST) Received: from khan.magentatech.com.au (kmsv [134.18.8.154]) by magentatech.com.au (8.8.8+Sun/8.8.8) with ESMTP id NAA16045 for ; Fri, 1 Feb 2002 13:07:59 +1100 (EST) Received: from blade.dev.magentatech.com.au (blade [134.18.8.105]) by khan.magentatech.com.au (8.9.3+Sun/8.9.3) with ESMTP id NAA08881 for ; Fri, 1 Feb 2002 13:16:02 +1100 (EST) Received: from blade (blade [134.18.8.105]) by blade.dev.magentatech.com.au (8.9.3+Sun/8.9.3) with SMTP id NAA09610 for ; Fri, 1 Feb 2002 13:16:24 +1100 (EST) Message-Id: <200202010216.NAA09610@blade.dev.magentatech.com.au> Date: Fri, 1 Feb 2002 13:16:24 +1100 (EST) From: Paul Moore Reply-To: Paul Moore Subject: linker problems To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: MULTIPART/mixed; BOUNDARY=Herd_of_Elephants_369_000 X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4.2 SunOS 5.8 sun4u sparc Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --Herd_of_Elephants_369_000 Content-Type: TEXT/plain; charset=US-ASCII Content-Transfer-Encoding: QUOTED-PRINTABLE Content-MD5: G2Hm9R+GHLsWMHwVOBHRwQ== Hi - I'm trying to build gtk+-1.2.10 on Solaris 8.=20 I started off by building glib-1.2.10. I ran the configure script, did a ma= ke,=20 followed by a make install. See the attached file (lib_list) for a list of= =20 libraries that were installed as a result of the make install. I then tried to build gtk+-1.2.10. I can not get the configure script to=20 complete successfully. The error is ------------------------------------------------------------------------- *** Could not run GLIB test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding GLIB or finding the wrong *** version of GLIB. If it is not finding GLIB, you'll need to set your *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point *** to the installed location Also, make sure you have run ldconfig if tha= t *** is required on your system *** *** If you have an old version installed, it is best to remove it, although *** you may also be able to get things to work by modifying LD_LIBRARY_PATH *** *** If you have a RedHat 5.0 system, you should remove the GTK package that *** came with the system with the command *** *** rpm --erase --nodeps gtk gtk-devel configure: error:=20 *** GLIB 1.2.8 or better is required. The latest version of GLIB *** is always available from ftp://ftp.gtk.org/. ------------------------------------------------------------------------- I've set the LD_LIBRARY_PATH as requested. Here is what the LD_LIBRARY_PATH= is=20 set to: /usr/lib:/usr/ucblib:/usr/dt/lib:/usr/openwin/lib:/usr/ccs/lib:/opt/SUNWspr= o/lib :/opt1/SUNWspro/lib:/opt/galaxy/lib:/opt/SUNWmotif/lib:/opt/softbench/lib:/= users /davidf/lib:/usr/local/lib/glib/include:/usr/local/lib:/usr/local/lib/pkgco= nfig You can see that the location of the GLIB libs (/usr/loacl/lib) appears in = the=20 LD_LIBRARY_PATH variable. Can you give me any idea why configure fails when I have correctly specifie= d the=20 path to the glib libraries. Thanks - Paul Moore. --Herd_of_Elephants_369_000 Content-Type: TEXT/plain; name=configure_output; charset=US-ASCII; x-unix-mode=0664 Content-Transfer-Encoding: BASE64 Content-Description: configure_output Content-MD5: GBWxdok639TVsFXVZBCVaw== U2NyaXB0IHN0YXJ0ZWQgb24gRnJpIEZlYiAwMSAxMjo1Nzo0MCAyMDAyCkRJ U1BMQVkgYWxyZWFkeSBzZXQgdG86IGJsYWRlOjIuMA0Ka2hhbltwYXVsbV0+ IC4vY29uZmlndXJlDQpsb2FkaW5nIGNhY2hlIC4vY29uZmlnLmNhY2hlDQpj aGVja2luZyBmb3IgYSBCU0QgY29tcGF0aWJsZSBpbnN0YWxsLi4uIC4vaW5z dGFsbC1zaCAtYw0KY2hlY2tpbmcgd2hldGhlciBidWlsZCBlbnZpcm9ubWVu dCBpcyBzYW5lLi4uIHllcw0KY2hlY2tpbmcgd2hldGhlciBtYWtlIHNldHMg JHtNQUtFfS4uLiAoY2FjaGVkKSB5ZXMNCmNoZWNraW5nIGZvciB3b3JraW5n IGFjbG9jYWwuLi4gbWlzc2luZw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYXV0 b2NvbmYuLi4gbWlzc2luZw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYXV0b21h a2UuLi4gbWlzc2luZw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYXV0b2hlYWRl ci4uLiBtaXNzaW5nDQpjaGVja2luZyBmb3Igd29ya2luZyBtYWtlaW5mby4u LiBtaXNzaW5nDQpjaGVja2luZyBob3N0IHN5c3RlbSB0eXBlLi4uIHNwYXJj LXN1bi1zb2xhcmlzMi44DQpjaGVja2luZyBidWlsZCBzeXN0ZW0gdHlwZS4u LiBzcGFyYy1zdW4tc29sYXJpczIuOA0KY2hlY2tpbmcgZm9yIHJhbmxpYi4u LiAoY2FjaGVkKSByYW5saWINCmNoZWNraW5nIGZvciBnY2MuLi4gKGNhY2hl ZCkgY2MNCmNoZWNraW5nIHdoZXRoZXIgdGhlIEMgY29tcGlsZXIgKGNjICAp IHdvcmtzLi4uIHllcw0KY2hlY2tpbmcgd2hldGhlciB0aGUgQyBjb21waWxl ciAoY2MgICkgaXMgYSBjcm9zcy1jb21waWxlci4uLiBubw0KY2hlY2tpbmcg d2hldGhlciB3ZSBhcmUgdXNpbmcgR05VIEMuLi4gKGNhY2hlZCkgbm8NCmNo ZWNraW5nIHdoZXRoZXIgY2MgYWNjZXB0cyAtZy4uLiAoY2FjaGVkKSB5ZXMN CmNoZWNraW5nIGZvciBub24tR05VIGxkLi4uIChjYWNoZWQpIC91c3IvY2Nz L2Jpbi9sZA0KY2hlY2tpbmcgaWYgdGhlIGxpbmtlciAoL3Vzci9jY3MvYmlu L2xkKSBpcyBHTlUgbGQuLi4gKGNhY2hlZCkgbm8NCmNoZWNraW5nIGZvciBC U0QtY29tcGF0aWJsZSBubS4uLiAoY2FjaGVkKSAvdXNyL2Njcy9iaW4vbm0g LXANCmNoZWNraW5nIHdoZXRoZXIgbG4gLXMgd29ya3MuLi4gKGNhY2hlZCkg eWVzDQpsb2FkaW5nIGNhY2hlIC4vY29uZmlnLmNhY2hlIHdpdGhpbiBsdGNv bmZpZw0KY2hlY2tpbmcgd2hldGhlciB3ZSBhcmUgdXNpbmcgR05VIEMuLi4g bm8NCmNoZWNraW5nIGZvciBvYmplY3Qgc3VmZml4Li4uIG8NCmNoZWNraW5n IGZvciBleGVjdXRhYmxlIHN1ZmZpeC4uLiAoY2FjaGVkKSBubw0KY2hlY2tp bmcgZm9yIGNjIG9wdGlvbiB0byBwcm9kdWNlIFBJQy4uLiAtS1BJQw0KY2hl Y2tpbmcgaWYgY2MgUElDIGZsYWcgLUtQSUMgd29ya3MuLi4geWVzDQpjaGVj a2luZyBpZiBjYyBzdXBwb3J0cyAtYyAtbyBmaWxlLm8uLi4geWVzDQpjaGVj a2luZyBpZiBjYyBzdXBwb3J0cyAtYyAtbyBmaWxlLmxvLi4uIG5vDQpjaGVj a2luZyBpZiBjYyBzdGF0aWMgZmxhZyAtQnN0YXRpYyB3b3Jrcy4uLiAtQnN0 YXRpYw0KY2hlY2tpbmcgaWYgdGhlIGxpbmtlciAoL3Vzci9jY3MvYmluL2xk KSBpcyBHTlUgbGQuLi4gbm8NCmNoZWNraW5nIHdoZXRoZXIgdGhlIGxpbmtl ciAoL3Vzci9jY3MvYmluL2xkKSBzdXBwb3J0cyBzaGFyZWQgbGlicmFyaWVz Li4uIHllcw0KY2hlY2tpbmcgY29tbWFuZCB0byBwYXJzZSAvdXNyL2Njcy9i aW4vbm0gLXAgb3V0cHV0Li4uIG9rDQpjaGVja2luZyBob3cgdG8gaGFyZGNv ZGUgbGlicmFyeSBwYXRocyBpbnRvIHByb2dyYW1zLi4uIGltbWVkaWF0ZQ0K Y2hlY2tpbmcgZm9yIC91c3IvY2NzL2Jpbi9sZCBvcHRpb24gdG8gcmVsb2Fk IG9iamVjdCBmaWxlcy4uLiAtcg0KY2hlY2tpbmcgZHluYW1pYyBsaW5rZXIg Y2hhcmFjdGVyaXN0aWNzLi4uIHNvbGFyaXMyLjggbGQuc28NCmNoZWNraW5n IGlmIGxpYnRvb2wgc3VwcG9ydHMgc2hhcmVkIGxpYnJhcmllcy4uLiB5ZXMN CmNoZWNraW5nIHdoZXRoZXIgdG8gYnVpbGQgc2hhcmVkIGxpYnJhcmllcy4u LiB5ZXMNCmNoZWNraW5nIHdoZXRoZXIgdG8gYnVpbGQgc3RhdGljIGxpYnJh cmllcy4uLiB5ZXMNCmNoZWNraW5nIGZvciBvYmpkaXIuLi4gLmxpYnMNCmNy ZWF0aW5nIGxpYnRvb2wNCmxvYWRpbmcgY2FjaGUgLi9jb25maWcuY2FjaGUN CmNoZWNraW5nIHdoZXRoZXIgdG8gZW5hYmxlIG1haW50YWluZXItc3BlY2lm aWMgcG9ydGlvbnMgb2YgTWFrZWZpbGVzLi4uIG5vDQpjaGVja2luZyBob3N0 IHN5c3RlbSB0eXBlLi4uIHNwYXJjLXN1bi1zb2xhcmlzMi44DQpjaGVja2lu ZyB3aGV0aGVyIGJ1aWxkIGVudmlyb25tZW50IGlzIHNhbmUuLi4geWVzDQpj aGVja2luZyBmb3IgZ2NjLi4uIChjYWNoZWQpIGNjDQpjaGVja2luZyB3aGV0 aGVyIHRoZSBDIGNvbXBpbGVyIChjYyAtZyApIHdvcmtzLi4uIHllcw0KY2hl Y2tpbmcgd2hldGhlciB0aGUgQyBjb21waWxlciAoY2MgLWcgKSBpcyBhIGNy b3NzLWNvbXBpbGVyLi4uIG5vDQpjaGVja2luZyB3aGV0aGVyIHdlIGFyZSB1 c2luZyBHTlUgQy4uLiAoY2FjaGVkKSBubw0KY2hlY2tpbmcgd2hldGhlciBj YyBhY2NlcHRzIC1nLi4uIChjYWNoZWQpIHllcw0KY2hlY2tpbmcgZm9yIFBP U0lYaXplZCBJU0MuLi4gbm8NCmNoZWNraW5nIGZvciBjYyBvcHRpb24gdG8g YWNjZXB0IEFOU0kgQy4uLiBub25lIG5lZWRlZA0KY2hlY2tpbmcgZm9yIGEg QlNEIGNvbXBhdGlibGUgaW5zdGFsbC4uLiAuL2luc3RhbGwtc2ggLWMNCmNo ZWNraW5nIHdoZXRoZXIgbWFrZSBzZXRzICR7TUFLRX0uLi4gKGNhY2hlZCkg eWVzDQpjaGVja2luZyBmb3IgZ2F3ay4uLiBubw0KY2hlY2tpbmcgZm9yIG1h d2suLi4gbm8NCmNoZWNraW5nIGZvciBuYXdrLi4uIG5hd2sNCmNoZWNraW5n IGZvciBwZXJsNS4uLiBubw0KY2hlY2tpbmcgZm9yIHBlcmwuLi4gcGVybA0K Y2hlY2tpbmcgZm9yIGluZGVudC4uLiBpbmRlbnQNCmNoZWNraW5nIHdoZXRo ZXIgbWFrZSBpcyBHTlUgTWFrZS4uLiBubw0KY2hlY2tpbmcgaG93IHRvIHJ1 biB0aGUgQyBwcmVwcm9jZXNzb3IuLi4gY2MgLUUNCmNoZWNraW5nIGZvciBB TlNJIEMgaGVhZGVyIGZpbGVzLi4uIHllcw0KY2hlY2tpbmcgZm9yIHdvcmtp bmcgY29uc3QuLi4geWVzDQpjaGVja2luZyBmb3IgaW5saW5lLi4uIG5vDQpj aGVja2luZyBmb3Igb2ZmX3QuLi4geWVzDQpjaGVja2luZyBmb3Igc2l6ZV90 Li4uIHllcw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYWxsb2NhLmguLi4geWVz DQpjaGVja2luZyBmb3IgYWxsb2NhLi4uIHllcw0KY2hlY2tpbmcgZm9yIHVu aXN0ZC5oLi4uIHllcw0KY2hlY2tpbmcgZm9yIGdldHBhZ2VzaXplLi4uIHll cw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgbW1hcC4uLiB5ZXMNCmNoZWNraW5n IGZvciBhcmd6LmguLi4gbm8NCmNoZWNraW5nIGZvciBsaW1pdHMuaC4uLiB5 ZXMNCmNoZWNraW5nIGZvciBsb2NhbGUuaC4uLiB5ZXMNCmNoZWNraW5nIGZv ciBubF90eXBlcy5oLi4uIHllcw0KY2hlY2tpbmcgZm9yIG1hbGxvYy5oLi4u IHllcw0KY2hlY2tpbmcgZm9yIHN0cmluZy5oLi4uIHllcw0KY2hlY2tpbmcg Zm9yIHVuaXN0ZC5oLi4uIChjYWNoZWQpIHllcw0KY2hlY2tpbmcgZm9yIHN5 cy9wYXJhbS5oLi4uIHllcw0KY2hlY2tpbmcgZm9yIGdldGN3ZC4uLiB5ZXMN CmNoZWNraW5nIGZvciBtdW5tYXAuLi4geWVzDQpjaGVja2luZyBmb3IgcHV0 ZW52Li4uIHllcw0KY2hlY2tpbmcgZm9yIHNldGVudi4uLiBubw0KY2hlY2tp bmcgZm9yIHNldGxvY2FsZS4uLiB5ZXMNCmNoZWNraW5nIGZvciBzdHJjaHIu Li4geWVzDQpjaGVja2luZyBmb3Igc3RyY2FzZWNtcC4uLiB5ZXMNCmNoZWNr aW5nIGZvciBzdHJkdXAuLi4geWVzDQpjaGVja2luZyBmb3IgX19hcmd6X2Nv dW50Li4uIG5vDQpjaGVja2luZyBmb3IgX19hcmd6X3N0cmluZ2lmeS4uLiBu bw0KY2hlY2tpbmcgZm9yIF9fYXJnel9uZXh0Li4uIG5vDQpjaGVja2luZyBm b3Igc3RwY3B5Li4uIG5vDQpjaGVja2luZyBmb3IgTENfTUVTU0FHRVMuLi4g eWVzDQpjaGVja2luZyB3aGV0aGVyIE5MUyBpcyByZXF1ZXN0ZWQuLi4geWVz DQpjaGVja2luZyBmb3IgbGliaW50bC5oLi4uIHllcw0KY2hlY2tpbmcgZm9y IGRnZXR0ZXh0IGluIGxpYmMuLi4geWVzDQpjaGVja2luZyBmb3IgbXNnZm10 Li4uIC9iaW4vbXNnZm10DQpjaGVja2luZyBmb3IgZGNnZXR0ZXh0Li4uIHll cw0KY2hlY2tpbmcgZm9yIGdtc2dmbXQuLi4gL2Jpbi9tc2dmbXQNCmNoZWNr aW5nIGZvciB4Z2V0dGV4dC4uLiAvYmluL3hnZXR0ZXh0DQpmb3VuZCB4Z2V0 dGV4dCBwcm9ncmFtIGlzIG5vdCBHTlUgeGdldHRleHQ7IGlnbm9yZSBpdA0K Y2hlY2tpbmcgZm9yIGNhdGFsb2dzIHRvIGJlIGluc3RhbGxlZC4uLiAgYXog Y2EgY3MgZGEgZGUgZWwgZXMgZXQgZXUgZmkgZnIgZ2EgZ2wgaHIgaHUgaXQg amEga28gbHQgbmwgbm8gbm4gcGwgcHQgcHRfQlIgcm8gcnUgc2sgc2wgc3Ag c3Igc3YgdHIgdWsgdmkgd2EgemhfQ04uR0IyMzEyIHpoX1RXLkJpZzUNCmNo ZWNraW5nIGZvciBleHRyYSBmbGFncyB0byBnZXQgQU5TSSBsaWJyYXJ5IHBy b3RvdHlwZXMuLi4gbm9uZSBuZWVkZWQNCmNoZWNraW5nIGZvciBleHRyYSBm bGFncyBmb3IgUE9TSVggY29tcGxpYW5jZS4uLiBub25lIG5lZWRlZA0KY2hl Y2tpbmcgZm9yIGdsaWItY29uZmlnLi4uIC91c3IvbG9jYWwvYmluL2dsaWIt Y29uZmlnDQpjaGVja2luZyBmb3IgR0xJQiAtIHZlcnNpb24gPj0gMS4yLjgu Li4gbm8NCioqKiBDb3VsZCBub3QgcnVuIEdMSUIgdGVzdCBwcm9ncmFtLCBj aGVja2luZyB3aHkuLi4NCioqKiBUaGUgdGVzdCBwcm9ncmFtIGNvbXBpbGVk LCBidXQgZGlkIG5vdCBydW4uIFRoaXMgdXN1YWxseSBtZWFucw0KKioqIHRo YXQgdGhlIHJ1bi10aW1lIGxpbmtlciBpcyBub3QgZmluZGluZyBHTElCIG9y IGZpbmRpbmcgdGhlIHdyb25nDQoqKiogdmVyc2lvbiBvZiBHTElCLiBJZiBp dCBpcyBub3QgZmluZGluZyBHTElCLCB5b3UnbGwgbmVlZCB0byBzZXQgeW91 cg0KKioqIExEX0xJQlJBUllfUEFUSCBlbnZpcm9ubWVudCB2YXJpYWJsZSwg b3IgZWRpdCAvZXRjL2xkLnNvLmNvbmYgdG8gcG9pbnQNCioqKiB0byB0aGUg aW5zdGFsbGVkIGxvY2F0aW9uICBBbHNvLCBtYWtlIHN1cmUgeW91IGhhdmUg cnVuIGxkY29uZmlnIGlmIHRoYXQNCioqKiBpcyByZXF1aXJlZCBvbiB5b3Vy IHN5c3RlbQ0KKioqDQoqKiogSWYgeW91IGhhdmUgYW4gb2xkIHZlcnNpb24g aW5zdGFsbGVkLCBpdCBpcyBiZXN0IHRvIHJlbW92ZSBpdCwgYWx0aG91Z2gN CioqKiB5b3UgbWF5IGFsc28gYmUgYWJsZSB0byBnZXQgdGhpbmdzIHRvIHdv cmsgYnkgbW9kaWZ5aW5nIExEX0xJQlJBUllfUEFUSA0KKioqDQoqKiogSWYg eW91IGhhdmUgYSBSZWRIYXQgNS4wIHN5c3RlbSwgeW91IHNob3VsZCByZW1v dmUgdGhlIEdUSyBwYWNrYWdlIHRoYXQNCioqKiBjYW1lIHdpdGggdGhlIHN5 c3RlbSB3aXRoIHRoZSBjb21tYW5kDQoqKioNCioqKiAgICBycG0gLS1lcmFz ZSAtLW5vZGVwcyBndGsgZ3RrLWRldmVsDQpjb25maWd1cmU6IGVycm9yOiAN CioqKiBHTElCIDEuMi44IG9yIGJldHRlciBpcyByZXF1aXJlZC4gVGhlIGxh dGVzdCB2ZXJzaW9uIG9mIEdMSUINCioqKiBpcyBhbHdheXMgYXZhaWxhYmxl IGZyb20gZnRwOi8vZnRwLmd0ay5vcmcvLg0Ka2hhbltwYXVsbV0+IGV4aXQK c2NyaXB0IGRvbmUgb24gRnJpIEZlYiAwMSAxMjo1ODoxNCAyMDAyCg== --Herd_of_Elephants_369_000 Content-Type: TEXT/plain; name=lib_list; charset=us-ascii; x-unix-mode=0664 Content-Description: lib_list Content-MD5: REcIQAPQJl9I9JwWGankUA== total 3904 -rw-r--r-- 1 root other 8096 Feb 21 2001 a2ps.header.ps drwxrwxr-x 3 paulm vicpol 512 Jan 31 18:58 glib lrwxrwxrwx 1 paulm vicpol 21 Jan 31 19:33 libglib-1.2.so.0 -> libglib-1.2.so.0.0.10 -rwxr-xr-x 1 paulm vicpol 549796 Jan 31 19:33 libglib-1.2.so.0.0.10 -rw-r--r-- 1 paulm vicpol 1267956 Jan 31 19:33 libglib.a -rwxr-xr-x 1 paulm vicpol 668 Jan 31 19:33 libglib.la lrwxrwxrwx 1 paulm vicpol 21 Jan 31 19:33 libglib.so -> libglib-1.2.so.0.0.10 lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgmodule-1.2.so.0 -> libgmodule-1.2.so.0.0.10 -rwxr-xr-x 1 paulm vicpol 21492 Jan 31 19:33 libgmodule-1.2.so.0.0.10 -rw-r--r-- 1 paulm vicpol 49908 Jan 31 19:33 libgmodule.a -rw-r--r-- 1 paulm vicpol 694 Jan 31 19:33 libgmodule.la lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgmodule.so -> libgmodule-1.2.so.0.0.10 lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgthread-1.2.so.0 -> libgthread-1.2.so.0.0.10 -rwxr-xr-x 1 paulm vicpol 17304 Jan 31 19:33 libgthread-1.2.so.0.0.10 -rw-r--r-- 1 paulm vicpol 47040 Jan 31 19:33 libgthread.a -rwxr-xr-x 1 paulm vicpol 698 Jan 31 19:33 libgthread.la lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgthread.so -> libgthread-1.2.so.0.0.10 drwxrwxr-x 2 paulm vicpol 512 Jan 31 19:33 pkgconfig --Herd_of_Elephants_369_000-- From engenharia3@maqplas.com.br Fri Feb 1 11:01:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id C858718776 for ; Fri, 1 Feb 2002 11:01:42 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11G0sCV016065 for ; Fri, 1 Feb 2002 14:00:59 -0200 (BRST) Subject: Catching keys combinations From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 13:58:12 -0200 Message-Id: <1012579101.1122.2.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello again, I need to catch key combinations (ex.: CTRL + X + any key) , my application windows are connected with the key_press_event, but I view only 1 key press in moment, what I do ? Thanks in advance Flavio Alberto From lapenta_jm@yahoo.com Fri Feb 1 11:04:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14006.mail.yahoo.com (web14006.mail.yahoo.com [216.136.175.122]) by mail.gnome.org (Postfix) with SMTP id 37F7918123 for ; Fri, 1 Feb 2002 11:04:59 -0500 (EST) Message-ID: <20020201160458.86534.qmail@web14006.mail.yahoo.com> Received: from [129.55.200.20] by web14006.mail.yahoo.com via HTTP; Fri, 01 Feb 2002 08:04:58 PST Date: Fri, 1 Feb 2002 08:04:58 -0800 (PST) From: Jason LaPenta Subject: Problem passing pointer to widget with gtk_idle_add() To: gtk-list@gnome.org Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hello, When I pass a pointer to a widget with void on_scan_window_show( GtkWidget *widget, gpointer user_data ) { printf( " adding main_idle 0x%x\n", widget ); g_idle_id = gtk_idle_add( main_idle, widget ); } By the time the user_data pointer gets to gint main_idle ( gpointer user_data ) { ... } My user_data( which should be a pointer to widget ) looks like it got casted to a 16bit int for some reason. At the very least it is mangled. Anybody know why? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From hp@redhat.com Fri Feb 1 11:10:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 03D9C18215 for ; Fri, 1 Feb 2002 11:10:40 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11GAcw25262; Fri, 1 Feb 2002 11:10:38 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: zze-coframi balr001 , gtk-list Subject: Re: GTK without X ??? References: <1012576326.1122.1.camel@flavio.maqplas> From: Havoc Pennington Date: 01 Feb 2002 11:10:38 -0500 In-Reply-To: <1012576326.1122.1.camel@flavio.maqplas> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Fl=E1vio Alberto Lopes Soares writes: > Can I compile my application normally (I making my application using > GTK+ 1.2.10), or I must make some changes ? >=20 You will need to port to 1.3.x/2.0, which is fairly simple and a good idea anyway. There's some information in the reference manual: http://developer.gnome.org/doc/API/2.0/gtk/gtk-framebuffer.html Havoc From hp@redhat.com Fri Feb 1 11:12:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 5DFDA197DC for ; Fri, 1 Feb 2002 11:12:11 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11GCB825266; Fri, 1 Feb 2002 11:12:11 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: gtk-list@gnome.org Subject: Re: GUI design References: <1012573868.2054.4.camel@chavez> From: Havoc Pennington Date: 01 Feb 2002 11:12:11 -0500 In-Reply-To: <1012573868.2054.4.camel@chavez> Message-ID: Lines: 8 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "User Interface Design for Programmers" by Joel Spolsky is good. It's online in shortened form but the paper version is enough better to be worth buying I think. Havoc From pbd@op.net Fri Feb 1 11:31:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 260051825C for ; Fri, 1 Feb 2002 11:31:39 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA15209; Fri, 1 Feb 2002 11:31:34 -0500 (EST) Message-Id: <200202011631.LAA15209@renoir.op.net> To: Fl vio Alberto Lopes Soares Cc: gtk-list Subject: Re: Catching keys combinations In-reply-to: Your message of "01 Feb 2002 13:58:12 -0200." <1012579101.1122.2.camel@flavio.maqplas> Date: Fri, 01 Feb 2002 11:29:08 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I need to catch key combinations (ex.: CTRL + X + any key) , my >application windows are connected with the key_press_event, but I view >only 1 key press in moment, what I do ? if i understand your question (which i am not confident about), then you must keep track of keys yourself. modifier keys known to the X server will change the "state" field of a GdkEventKey. in general, keys like "ctrl" and "alt" are set up as modifier keys. the "X" key will not be. so, you need to create a data structure to track which keys are "down", and modify your action according to its state. --p From pbd@op.net Fri Feb 1 11:32:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 0A27519816 for ; Fri, 1 Feb 2002 11:32:28 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA15282; Fri, 1 Feb 2002 11:32:21 -0500 (EST) Message-Id: <200202011632.LAA15282@renoir.op.net> To: Havoc Pennington Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX In-reply-to: Your message of "01 Feb 2002 00:54:43 EST." Date: Fri, 01 Feb 2002 11:29:55 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > >Paul Davis writes: >> i sincerely hope that in a future release of the 1.2 series, >> pkg-config gets added. >> > >Note that pkg-config has some dubious "legacy hacks" in it - try >"pkg-config --cflags gtk" for example. which version? 0.8.0 just reports an error if i try that. From hp@redhat.com Fri Feb 1 12:04:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 9D92518109 for ; Fri, 1 Feb 2002 12:04:54 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11H4rs25349; Fri, 1 Feb 2002 12:04:53 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011632.LAA15282@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 12:04:52 -0500 In-Reply-To: <200202011632.LAA15282@renoir.op.net> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > > >Paul Davis writes: > >> i sincerely hope that in a future release of the 1.2 series, > >> pkg-config gets added. > >> > > > >Note that pkg-config has some dubious "legacy hacks" in it - try > >"pkg-config --cflags gtk" for example. > > which version? 0.8.0 just reports an error if i try that. 0.8 should have this. I'm pretty sure it was there almost from the start, even before 0.8. What error do you get? If you "strace -f" is there any fork/exec of gtk-config going on? Havoc From hp@redhat.com Fri Feb 1 12:08:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id E88EF18109 for ; Fri, 1 Feb 2002 12:08:32 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11H8Sn25353; Fri, 1 Feb 2002 12:08:28 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "K P-W" Cc: gtk-list@gnome.org Subject: Re: setting the font in a program using gtk 1.3.12 References: From: Havoc Pennington Date: 01 Feb 2002 12:08:28 -0500 In-Reply-To: Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "K P-W" writes: > I have been trying to find out how tp set the font and the fontsize in > my program using gtk version 1.3.12 because the standard font is > unreadable. This really isn't a reason to hardcode the font in your app - that will just result in every app having a different font. What you need to do is fix the default font on your system. You can do this by editing etc/pango/pangox.aliases if using old-style X fonts and etc/X11/XftConfig if using Xft fonts. Change what the "sans" alias points to. If your font is just too small, you have DPI set wrong on your X server. Do "xdpyinfo" to get the current DPI. Measure your monitor with a ruler, and put its correct size in /etc/X11/XF86Config (see "man XF86Config" - search for DisplaySize). Havoc From rsteinke@w-link.net Fri Feb 1 12:11:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 279B818E33 for ; Fri, 1 Feb 2002 12:11:11 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.33 #1 (Debian)) id 16WhDO-0002NH-00; Fri, 01 Feb 2002 09:11:06 -0800 Date: Fri, 01 Feb 2002 09:11:06 -0800 From: rsteinke@w-link.net To: lettere@di.unipi.it, gtk-list@gnome.org Subject: Re: colors in pixmap Message-ID: <3C5ACC2A.nail6X81NWRBW@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Marco Lettere > > hello everyone, > > suppose I've a pixmap with a color which I want to modify with 3 slider > widgets for RGB. > The way I'm performing it now is to destroy the old pixmap, change the xpm > C structure and then recreate the pixmap with the new data. > Isn't there a better way (less expensive) of performing this operation > I'm thinking about something like > > gtk_pixmap_update_color(Gtkpixmap* pix,int colorIndex,GdkColor* newColor); Is this just a solid color pixmap? If so, you could just use gdk_draw_rectangle(), and avoid using the xpm entirely. If not, you probably should create a series of pixmaps, one for each color, and swap them in and out. Ron Steinke From engenharia3@maqplas.com.br Fri Feb 1 12:20:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id 3669018246 for ; Fri, 1 Feb 2002 12:20:43 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11HJxCV021112; Fri, 1 Feb 2002 15:20:00 -0200 (BRST) Subject: Re: GTK without X ??? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Havoc Pennington Cc: zze-coframi balr001 , gtk-list In-Reply-To: References: <1012576326.1122.1.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 15:17:21 -0200 Message-Id: <1012583843.1123.3.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello again Where can I download GTK+2.0 ? Thanks Flavio Alberto Em 01 Feb 2002 11:10:38 -0500, Havoc Pennington escreveu: > > Flávio Alberto Lopes Soares writes: > > Can I compile my application normally (I making my application using > > GTK+ 1.2.10), or I must make some changes ? > > > > You will need to port to 1.3.x/2.0, which is fairly simple and a good > idea anyway. > > There's some information in the reference manual: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-framebuffer.html > > Havoc From sven@gimp.org Fri Feb 1 12:27:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id BCA1A187C6 for ; Fri, 1 Feb 2002 12:27:38 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16WhGL-00008f-00; Fri, 01 Feb 2002 18:14:09 +0100 To: Havoc Pennington Cc: Paul Davis , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011632.LAA15282@renoir.op.net> From: Sven Neumann Date: 01 Feb 2002 18:14:09 +0100 In-Reply-To: Message-ID: Lines: 35 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Havoc Pennington writes: > Paul Davis writes: > > > > > >Paul Davis writes: > > >> i sincerely hope that in a future release of the 1.2 series, > > >> pkg-config gets added. > > >> > > > > > >Note that pkg-config has some dubious "legacy hacks" in it - try > > >"pkg-config --cflags gtk" for example. pkg-config --libs gtk Package gtk was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk' found which pkg-config /usr/local/bin/pkg-config which gtk-config /usr/bin/gtk-config > If you "strace -f" is there any fork/exec of gtk-config going on? I hope you are joking here. Forking gtk-config would be a really evil hack. If that's indeed what pkg-config does, a crash is what you deserve. Salut, Sven From pbd@op.net Fri Feb 1 12:30:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9B5E618E17 for ; Fri, 1 Feb 2002 12:30:27 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA22617; Fri, 1 Feb 2002 12:30:21 -0500 (EST) Message-Id: <200202011730.MAA22617@renoir.op.net> To: Havoc Pennington Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX In-reply-to: Your message of "01 Feb 2002 12:04:52 EST." Date: Fri, 01 Feb 2002 12:27:55 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >0.8 should have this. I'm pretty sure it was there almost from the >start, even before 0.8. > >What error do you get? > >If you "strace -f" is there any fork/exec of gtk-config going on? it doesn't fork/exec it, doesn't open it, stat it, read it or mmap it. --p From hp@redhat.com Fri Feb 1 13:04:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id D836519836 for ; Fri, 1 Feb 2002 13:04:56 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11I4th07499; Fri, 1 Feb 2002 13:04:55 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Sven Neumann Cc: Paul Davis , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011632.LAA15282@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 13:04:54 -0500 In-Reply-To: Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sven Neumann writes: > I hope you are joking here. Forking gtk-config would be a really > evil hack. If that's indeed what pkg-config does, a crash is what > you deserve. > It allows you to use PKG_CHECK_MODULES with the GNOME 1 platform. It's kind of a cheesy special case, but there's nothing broken about it. (Other than it doesn't seem to work for you but does work for me, I don't understand what that could possibly be about.) Havoc From hp@redhat.com Fri Feb 1 13:05:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id A7C8719836 for ; Fri, 1 Feb 2002 13:05:45 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11I5ig07503; Fri, 1 Feb 2002 13:05:44 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: zze-coframi balr001 , gtk-list Subject: Re: GTK without X ??? References: <1012576326.1122.1.camel@flavio.maqplas> <1012583843.1123.3.camel@flavio.maqplas> From: Havoc Pennington Date: 01 Feb 2002 13:05:44 -0500 In-Reply-To: <1012583843.1123.3.camel@flavio.maqplas> Message-ID: Lines: 7 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Fl=E1vio Alberto Lopes Soares writes: > Where can I download GTK+2.0 ? Get 1.3.13 (the unstable version that will become 2.0). It's on ftp.gtk.org. Havoc From pbd@op.net Fri Feb 1 13:17:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id B8E0B18760 for ; Fri, 1 Feb 2002 13:17:11 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA28161; Fri, 1 Feb 2002 13:17:05 -0500 (EST) Message-Id: <200202011817.NAA28161@renoir.op.net> To: Havoc Pennington Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX In-reply-to: Your message of "01 Feb 2002 13:04:54 EST." Date: Fri, 01 Feb 2002 13:14:39 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> I hope you are joking here. Forking gtk-config would be a really >> evil hack. If that's indeed what pkg-config does, a crash is what >> you deserve. >> > >It allows you to use PKG_CHECK_MODULES with the GNOME 1 platform. It's >kind of a cheesy special case, but there's nothing broken about it. ah. thats different. thats an m4 macro that probably calls pkg-config and handles failure. that doesn't mean pkg-config itself can handle it. --p From seberino@dt092n42.san.rr.com Fri Feb 1 14:10:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 7138018772 for ; Fri, 1 Feb 2002 14:10:49 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16Wj5F-00009e-00 for gtk-list@gnome.org; Fri, 01 Feb 2002 11:10:49 -0800 Date: Fri, 1 Feb 2002 11:10:49 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: Is this "thread-safe" in GTK+.... Message-ID: <20020201111049.B527@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I want to use pthreads to have a thread that just generates numbers used by GTK+ in another thread for drawing. (pixmap plot of the numbers) I believe variables are global with pthreads but are there any gotchas to this? Do I need to use semaphores? (I must find out what they are first!) :( Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From scherfa@web.de Fri Feb 1 14:22:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id D6BF3181B8 for ; Fri, 1 Feb 2002 14:22:53 -0500 (EST) Received: from [62.180.24.173] (helo=u-173-24.mannheim.ipdial.viaginterkom.de) by smtp.web.de with asmtp (Exim 4.11 #37) id 16WjFc-0002ML-00; Fri, 01 Feb 2002 20:21:33 +0100 Subject: Re: GNode and GtkCTree From: Andreas Scherf To: Randy Rueckner Cc: Gtk Liste In-Reply-To: <200201311440.g0VEe69198610@pax10e3.mipool.uni-jena.de> References: <200201311440.g0VEe69198610@pax10e3.mipool.uni-jena.de> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 01 Feb 2002 20:21:36 +0100 Message-Id: <1012591297.1591.2.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am Don, 2002-01-31 um 15.40 schrieb Randy Rueckner: > hello there! > > i write a little application to manipulate and filter magnetic resonance > tomographie - images using glib/gtk. > the main part is done - gtk is really great, but now i have a little > problem and hope someone here can help me. > i want to build a GtkCTree which shows the local images, but that is no > easy task. > the images are named as follows: xxxx-yyy-zzz.ima, where xxxx, yyy, zzz > are integers (xxxx ist the patient id, yyy the study no and zzz the image > no in the study yyy). > the GtkCTree should look like this: > > ---local IMA's // the root_item > |-+-3331 // patient_id = 3331 > |-+-4222 > |---4546 > | |-+-2 // study_no = 2 ( for patient_id = 4546) > | |-+-3 > | |---6 > | | |-23 // image_no = 23 (in study_no = 6) > | | |-24 // filename for this entry: 4546-6-24.ima > | | |-25 > | | |-84 > | |-+-8 // study_no = 8 > |-+-5123 // this is the next patient_id > |-+-5423 > > i hope you understand what i mean. > so i read all image names into an array, split them and build an GNode > tree. my GNode - tree is correct. > now i tried to add my GNode_root_item into an empty GtkCTree. > but in my application there is only an empty item shown, like this: > > -+- > > and nothing more... > i can click on plus, but without an effect. where is the rest of my tree. > please help me. > > thanks in advance > randy There are a few things that goes wrong here, but you could send me your code and i will have a look at it. Or you change your app to work with gtk+2.0 the Tree and list functions are now a lot easier to handle and adding pictures or widgets is simpler than in gtk+1.2 i think in long term it was better to choose gtk+2.0 for this task. MfG Scherfy -- Andreas Scherf ICQ: 52910964 scherfa@web.de b.de From hp@redhat.com Fri Feb 1 14:59:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id C533B18923 for ; Fri, 1 Feb 2002 14:59:19 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11JxGc07370; Fri, 1 Feb 2002 14:59:16 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011817.NAA28161@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 14:59:16 -0500 In-Reply-To: <200202011817.NAA28161@renoir.op.net> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > ah. thats different. thats an m4 macro that probably calls pkg-config > and handles failure. that doesn't mean pkg-config itself can handle it. > No, pkg-config itself definitely does ask a set of legacy *-config scripts for results if it can't find .pc files for a module. I wrote the code, so I'm sure it exists. ;-) I think I see the problem now - "pkg-config --cflags gtk" goes via gnome-config, which you probably don't have. Change it to "pkg-config --cflags gtk+" (add the "+") and it will call gtk-config instead. If that still doesn't work, or you do have gnome-config installed, then send me the output if you add the --debug option. Havoc From rwalden@tripos.com Fri Feb 1 16:48:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id 20B94181CC for ; Fri, 1 Feb 2002 16:48:35 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id PAA26482 for <@firewall.tripos.com:gtk-list@gnome.org>; Fri, 1 Feb 2002 15:48:34 -0600 (CST) Received: from elara.tripos.com(172.20.5.15) by gatekeeper.tripos.com via smap (V5.5) id xma026467; Fri, 1 Feb 02 15:48:17 -0600 Received: from ariel.tripos.com (ariel [172.20.5.145]) by tripos.com (980919.SGI.STAND) via ESMTP id PAA04804 for ; Fri, 1 Feb 2002 15:48:16 -0600 (CST) Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id PAA27663 for ; Fri, 1 Feb 2002 15:48:16 -0600 (CST) Message-ID: <3C5B0D1F.54F3BA42@tripos.com> Date: Fri, 01 Feb 2002 15:48:15 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 Cc: gtk-list@gnome.org Subject: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It seems to me that glib innow REQUIRES the use of GNU gettext, which is covered under GPL. If that's true, then GTK2 can no longer be used for commercial software development. Is this intentional? Am I missing something? Is there a way to use glib/GTK2 without GNU gettext? Thanks, Ralph Walden -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Fri Feb 1 17:26:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 967EA183AA for ; Fri, 1 Feb 2002 17:26:34 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11MQXq31536; Fri, 1 Feb 2002 17:26:33 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ralph Walden Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> From: Havoc Pennington Date: 01 Feb 2002 17:26:32 -0500 In-Reply-To: <3C5B0D1F.54F3BA42@tripos.com> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > It seems to me that glib innow REQUIRES the use of > GNU gettext, which is covered under GPL. > > If that's true, then GTK2 can no longer be used > for commercial software development. > > Is this intentional? > > Am I missing something? Is there a way to use glib/GTK2 without > GNU gettext? > GNU gettext is now available under the LGPL, at our request. I think GTK is supposed to still work with other gettext, though. Havoc From rwalden@tripos.com Fri Feb 1 17:32:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id 56D641863B for ; Fri, 1 Feb 2002 17:32:45 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id QAA27608; Fri, 1 Feb 2002 16:32:44 -0600 (CST) Received: from elara.tripos.com(172.20.5.15) by gatekeeper.tripos.com via smap (V5.5) id xma027604; Fri, 1 Feb 02 16:32:01 -0600 Received: from ariel.tripos.com (ariel [172.20.5.145]) by tripos.com (980919.SGI.STAND) via ESMTP id QAA05226; Fri, 1 Feb 2002 16:32:00 -0600 (CST) Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id QAA05357; Fri, 1 Feb 2002 16:31:59 -0600 (CST) Message-ID: <3C5B175F.6CD6F8AD@tripos.com> Date: Fri, 01 Feb 2002 16:31:59 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Where can I obtain the LGPL version of gettext? I downloaded the gettext-0.11 version from gnu.org, and there is no mention of LGPL, only GPL. Thanks, Ralph Walden Havoc Pennington wrote: > > Ralph Walden writes: > > It seems to me that glib innow REQUIRES the use of > > GNU gettext, which is covered under GPL. > > > > If that's true, then GTK2 can no longer be used > > for commercial software development. > > > > Is this intentional? > > > > Am I missing something? Is there a way to use glib/GTK2 without > > GNU gettext? > > > > GNU gettext is now available under the LGPL, at our request. > > I think GTK is supposed to still work with other gettext, though. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From rwalden@tripos.com Fri Feb 1 17:34:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id BED7818C92 for ; Fri, 1 Feb 2002 17:34:45 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id QAA27665; Fri, 1 Feb 2002 16:34:45 -0600 (CST) Received: from elara.tripos.com(172.20.5.15) by gatekeeper.tripos.com via smap (V5.5) id xma027660; Fri, 1 Feb 02 16:34:30 -0600 Received: from ariel.tripos.com (ariel [172.20.5.145]) by tripos.com (980919.SGI.STAND) via ESMTP id QAA05240; Fri, 1 Feb 2002 16:34:29 -0600 (CST) Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id QAA09534; Fri, 1 Feb 2002 16:34:29 -0600 (CST) Message-ID: <3C5B17F5.3F536D54@tripos.com> Date: Fri, 01 Feb 2002 16:34:29 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Oops, sorry. I didn't look closely enough. in the NEWS file with gettext-0.11: Version 0.10.40 - September 2001 * The libintl library is now covered by the GNU LGPL. The tools are still covered by the GNU GPL. Thanks, Ralph Walden Havoc Pennington wrote: > > Ralph Walden writes: > > It seems to me that glib innow REQUIRES the use of > > GNU gettext, which is covered under GPL. > > > > If that's true, then GTK2 can no longer be used > > for commercial software development. > > > > Is this intentional? > > > > Am I missing something? Is there a way to use glib/GTK2 without > > GNU gettext? > > > > GNU gettext is now available under the LGPL, at our request. > > I think GTK is supposed to still work with other gettext, though. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Fri Feb 1 17:47:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 29C2318115 for ; Fri, 1 Feb 2002 17:47:02 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11Ml0s19617; Fri, 1 Feb 2002 17:47:00 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ralph Walden Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> <3C5B175F.6CD6F8AD@tripos.com> From: Havoc Pennington Date: 01 Feb 2002 17:47:00 -0500 In-Reply-To: <3C5B175F.6CD6F8AD@tripos.com> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > Where can I obtain the LGPL version of gettext? > > I downloaded the gettext-0.11 version from > gnu.org, and there is no mention of LGPL, only GPL. > Look at intl/COPYING.LIB-2.1 in the source tree. Only the library part of gettext is LGPL, the command line utilities like msgfmt are still GPL. 0.10.40 and 0.11 both have the LGPL. Havoc From sandmann@daimi.au.dk Fri Feb 1 18:44:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from alex.daimi.au.dk (alex.daimi.au.dk [130.225.16.45]) by mail.gnome.org (Postfix) with ESMTP id C9D6D18FC3 for ; Fri, 1 Feb 2002 18:44:28 -0500 (EST) Received: (from sandmann@localhost) by alex.daimi.au.dk (8.11.6/8.11.6) id g11NiO417319; Sat, 2 Feb 2002 00:44:24 +0100 (MET) To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: Is this "thread-safe" in GTK+.... References: <20020201111049.B527@spawar.navy.mil> From: Soeren Sandmann Date: 02 Feb 2002 00:44:24 +0100 In-Reply-To: <20020201111049.B527@spawar.navy.mil> Message-ID: Lines: 75 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Chris Seberino writes: > I want to use pthreads to have a thread that just generates > numbers used by GTK+ in another thread for drawing. > (pixmap plot of the numbers) >=20 > I believe variables are global with pthreads but > are there any gotchas to this? Do I need to > use semaphores? (I must find out what they are first!) :( There are lots of gotchas with threads. One way to do what you want without using threads is like this: typedef struct MyComputation MyComputation; struct MyComputation { =20=20=20=20 /* put all your computation's state here */; gboolean cancelled_by_user;=20=20=20=20 } gboolean run_my_computation (gpointer data) { MyComputation *my_computation =3D data; /* don't run for more than about 10-20 ms if you can avoid it=20 */ ; if (computation is finished || my_computation->cancelled_by_user) { g_free (my_computation); return FALSE; /* don't call me again */ } else { return TRUE; /* please call me again */ } } and then later do my_computation =3D g_new (MyComputation, 1); my_computation->cancelled_by_user =3D FALSE; my_computation->... =3D ...; g_idle_add (run_my_computation, my_computation); This will make sure your application is responsive and in addition provide these benefits: - the user can stop the computation. In the callback for the click on "cancel", just do=20 my_computation->cancelled_by_user =3D TRUE; - you can easily have a progress/activity bar - you don't have to mess with threads and locking. If you must use threads for some reason, then you will generally want to avoid calling gdk and gtk functions from the thread. Instead use the same trick and=20 g_idle_add (function_that_does_what_do_need_to_do, ...);=20 The function_that_does_what_you_need_to_do() can safely call any gtk and gdk functions it wants to. S=F8ren From scherfa@web.de Fri Feb 1 19:18:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id A0084181CC for ; Fri, 1 Feb 2002 19:18:51 -0500 (EST) Received: from [62.180.25.216] (helo=d-216-25.mannheim.ipdial.viaginterkom.de) by smtp.web.de with asmtp (Exim 4.11 #37) id 16Wnt6-0001Z1-00 for gtk-list@gnome.org; Sat, 02 Feb 2002 01:18:36 +0100 Subject: How to set only ONE Column editable (GTK2) From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 02 Feb 2002 01:18:42 +0100 Message-Id: <1012609123.30197.3.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have another problem, i have 2 columns : Number Name Now i want that the user could edit the name but not want that he could change the number. I have solved this by dont let the changes come trough : column = g_object_get_data (G_OBJECT (cell), "column"); if ((gint) column==NUMBER_COLUMN) { return; } But thats a bad result, could i set the column number 0 to not_EDITABLE ? Thanks Scherfy -- Andreas Scherf ICQ: 52910964 scherfa@web.de From hp@redhat.com Fri Feb 1 20:11:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id D0CE11825D for ; Fri, 1 Feb 2002 20:11:12 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g121BAp22392; Fri, 1 Feb 2002 20:11:10 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Andreas Scherf Cc: Gtk Liste Subject: Re: How to set only ONE Column editable (GTK2) References: <1012609123.30197.3.camel@xerxes> From: Havoc Pennington Date: 01 Feb 2002 20:11:10 -0500 In-Reply-To: <1012609123.30197.3.camel@xerxes> Message-ID: Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Andreas Scherf writes: > I have another problem, > i have 2 columns : > Number Name > Now i want that the user could edit the name but not want that he could > change the number. I have solved this by dont let the changes come > trough : > column = g_object_get_data (G_OBJECT (cell), "column"); > > if ((gint) column==NUMBER_COLUMN) { > return; > } > But thats a bad result, could i set the column number 0 to not_EDITABLE > ? > You can use a different cell renderer for each column, right. Havoc From monkeyiq@gmx.net Sat Feb 2 07:29:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from monkeyiq.dnsalias.org (CPE-203-45-214-174.qld.bigpond.net.au [203.45.214.174]) by mail.gnome.org (Postfix) with ESMTP id A60AF18FA5 for ; Sat, 2 Feb 2002 07:29:41 -0500 (EST) Received: by monkeyiq.dnsalias.org id g12CVhj24647 ; Sat, 2 Feb 2002 22:31:43 +1000 Date: Sat, 2 Feb 2002 22:31:43 +1000 Message-Id: <200202021231.g12CVhj24647@monkeyiq.dnsalias.org> To: GTK Mailing List Subject: GtkTreeView and gtk 1.3.13 From: monkeyiq MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I recently upgraded to the rawhide rpms for gtk 1.3.13 and now I am getting a segv on app startup of Ego: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 24632)] __strtol_internal (nptr=0x8108c30 "\002", endptr=0x0, base=3, group=-1073746544) at eval.c:38 38 eval.c: No such file or directory. in eval.c (gdb) bt #0 __strtol_internal (nptr=0x8108c30 "\002", endptr=0x0, base=3, group=-1073746544) at eval.c:38 #1 0x409cf548 in g_closure_invoke () at eval.c:41 #2 0x409e4358 in signal_emit_unlocked_R () at eval.c:41 #3 0x409e30b6 in g_signal_emit_valist () at eval.c:41 #4 0x409e3403 in g_signal_emit_by_name () at eval.c:41 #5 0x406b04d6 in gtk_tree_model_row_inserted () at eval.c:41 #6 0x406bcf61 in gtk_tree_store_append () at eval.c:41 #7 0x080799c3 in Ego::ContextView::makeDummyView (this=0x80ffa70) at ContextView.cpp:2168 Any thoughts on code that may have changed 1.3.12 -> .13 that I might look at first? -- ----------------------------------------------------- http://witme.sourceforge.net/libferris.web/ From v.j.arkesteijn@utwente.nl Sat Feb 2 09:33:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ken (dyn093252.inbel.utwente.nl [130.89.93.252]) by mail.gnome.org (Postfix) with ESMTP id 2AA8C18B04 for ; Sat, 2 Feb 2002 09:33:53 -0500 (EST) Received: by ken (Postfix, from userid 1000) id 00FA819DF; Sat, 2 Feb 2002 15:35:47 +0100 (CET) Date: Sat, 2 Feb 2002 15:35:46 +0100 From: Vincent Arkesteijn To: gtk-list@gnome.org Subject: scrolled window: scroll in only one direction? Message-ID: <20020202153542.A4579@ken> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I would like to have a scrolled window, in which the child is only scrolled in one direction. In the other direction, the child's size should change when the user changes the size of the window. Is this possible? Background: I have an application that shows some data inside a drawing area in real time. As there may be more data than fits in the window, I want the drawing area inside a scrolled window. Let's assume this scrolls in the vertical direction. When new data is received, it is drawn in the right, and the older data is automatically moved left. Now I want the width of the window to determine how far back in time the data is visible, so no horizontal scrolling by the user. So in the horizontal direction, everything should work like there was no scrolled window, just as in the scribble drawing program in the tutorial. I have tried changing the size of the drawing area whenever a configure event is raised, but this hasn't worked very well yet and to me it sounds more like a hack than a real good solution. I would appreciate your help. Vincent. From hp@redhat.com Sat Feb 2 09:58:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 8AFEF18EDC for ; Sat, 2 Feb 2002 09:58:22 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g12EwKU29258; Sat, 2 Feb 2002 09:58:20 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Vincent Arkesteijn Cc: gtk-list@gnome.org Subject: Re: scrolled window: scroll in only one direction? References: <20020202153542.A4579@ken> From: Havoc Pennington Date: 02 Feb 2002 09:58:20 -0500 In-Reply-To: <20020202153542.A4579@ken> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Vincent Arkesteijn writes: > > I would like to have a scrolled window, in which the child is only > scrolled in one direction. In the other direction, the child's size > should change when the user changes the size of the window. Is this > possible? > I think you just want to set GTK_POLICY_NEVER on one direction? Havoc From neofolk@yahoo.de Sat Feb 2 15:10:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp017.mail.yahoo.com (smtp017.mail.yahoo.com [216.136.174.114]) by mail.gnome.org (Postfix) with SMTP id 33A1918145 for ; Sat, 2 Feb 2002 15:10:47 -0500 (EST) Received: from p3ee37673.dip.t-dialin.net (HELO p3desktop) (62.227.118.115) by smtp.mail.vip.sc5.yahoo.com with SMTP; 2 Feb 2002 20:10:39 -0000 Message-ID: <001e01c1ac25$5ed06e50$6600a8c0@p3desktop> Reply-To: "Oliver Kroll :ALT EUROPA: - Magazin" From: "Oliver Kroll :ALT EUROPA: - Magazin" To: Subject: CList: how to change column-count at runtime Date: Sat, 2 Feb 2002 21:08:20 +0100 Organization: :ALT EUROPA: - Magazin MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001B_01C1AC2D.BE3DEE00" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_001B_01C1AC2D.BE3DEE00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi all, i created a form (clist included) with glade. i filled a ctree with databases and tables from the mysql-server, now i = like to read the data stored in a mysql-table into the clist. this is no problem so far. but how can i change the column-count from the gtk-clist at runtime, so = that it will fit to the column-count of the mysql-resultset? thanks a lot for your help. sincerly oliver k. ------=_NextPart_000_001B_01C1AC2D.BE3DEE00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi all,
 
i created a form (clist included) with=20 glade.
 
i filled a ctree with databases and = tables from the=20 mysql-server, now i like to read the data stored in a mysql-table into = the=20 clist.
this is no problem so far.
 
but how can i change the column-count = from the=20 gtk-clist at runtime, so that it will fit to the column-count of the=20 mysql-resultset?
 
thanks a lot for your = help.
 
sincerly
 
oliver k.
 
 
------=_NextPart_000_001B_01C1AC2D.BE3DEE00-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From pbd@op.net Sat Feb 2 15:55:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 7C2A418E03 for ; Sat, 2 Feb 2002 15:55:10 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-108.fast.net [209.92.60.108]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA26748 for ; Sat, 2 Feb 2002 15:55:09 -0500 (EST) Message-Id: <200202022055.PAA26748@renoir.op.net> To: gtk-list@gnome.org Subject: HTML-formatted mail/attachments Date: Sat, 02 Feb 2002 15:53:00 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: is there any chance that we could get this, like linux-kernel and others, to reject mail containing either only HTML-formatted mail or HTML attachments? i send polite messages to people who send such things, but the incoming flow is growing all the time, and individual filtering by procmail will do little to stem it. --p From shiraz_baig@yahoo.com Sun Feb 3 09:54:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13907.mail.yahoo.com (web13907.mail.yahoo.com [216.136.175.70]) by mail.gnome.org (Postfix) with SMTP id 8921A1810E for ; Sun, 3 Feb 2002 09:54:33 -0500 (EST) Message-ID: <20020203145432.54196.qmail@web13907.mail.yahoo.com> Received: from [203.135.0.66] by web13907.mail.yahoo.com via HTTP; Sun, 03 Feb 2002 06:54:32 PST Date: Sun, 3 Feb 2002 06:54:32 -0800 (PST) From: Shiraz Baig Subject: Re: drawing a line To: Sven Neumann Cc: gtk-list@gnome.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I do understand the advantage of "expose" but I wanted to understand the fundamentals first. Therefore, i wanted to draw the drawline like this. Thanks for all the help. BTW, I have now drawn the line with "expose" event. But I am slightly confused, becuase it calls the expose function three times. This is how I tested it. I just put a statement in the "expose" function call as; int static turn=0 g_print turn++; And I found that when I first draw the line this command prints 0,1 and 2. That means that it has been exposed three times. I thought that it is only being exposed when it is created. Any comments on that? I am now grappling with drawing the line in color. And the tutorial does not talk about color. The "ref" does talk about it but no example is available. I did find some examples from other sources, but they are too complicated. I would first like to understand the basics and then go on to complexities. So, if there is a simple 10 line program to draw a line in color I shall welcome it. Thanks and bye Shiraz --- Sven Neumann wrote: > Hi, > > Shiraz Baig writes: > > > I changed the parameters as suggested by Mr > Neumann > > and viola! I am drawing the lines without "expose" > > event and only with pushing a button. > > now move your mouse over the line you've just drawn > or obscure the window by moving another window over > it. Assuming you are using a drawing_area to draw on > directly, X will clear the area you've just painted > on and since you aren't redrawing in your expose > event handler, the line you've just drawn will be > gone. > > > Salut, Sven __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From sven@gimp.org Sun Feb 3 10:38:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E6BCFE.dip.t-dialin.net [217.230.188.254]) by mail.gnome.org (Postfix) with ESMTP id 71BC8180E2 for ; Sun, 3 Feb 2002 10:38:31 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16XOio-0004nA-00; Sun, 03 Feb 2002 16:38:26 +0100 To: Shiraz Baig Cc: gtk-list@gnome.org Subject: Re: drawing a line References: <20020203145432.54196.qmail@web13907.mail.yahoo.com> From: Sven Neumann Date: 03 Feb 2002 16:38:26 +0100 In-Reply-To: <20020203145432.54196.qmail@web13907.mail.yahoo.com> Message-ID: Lines: 35 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Shiraz Baig writes: > I do understand the advantage of "expose" but I > wanted to understand the fundamentals first. actually I don't think the concept of expose events as exposed by X11 (and thus GDK) has any advantages, but that's a different question... > BTW, I have now drawn the line with "expose" event. > But I am slightly confused, becuase it calls the > expose function three times. This is how I tested it. > I just put a statement in the "expose" function call > as; > int static turn=0 > g_print turn++; > > And I found that when I first draw the line this > command prints 0,1 and 2. That means that it has been > exposed three times. I thought that it is only being > exposed when it is created. Any comments on that? the expose event is called whenever the window (or parts of it) need to be repainted. This is the case if the gtk_widget_queue_draw() or a similar function is called and whenever the X server decides that it needs to happen (for example because the window was obscured by another window and becomes unobscured). You should note that the expose_event carries an expose rectangle (event->area) so you probably see three expose events on different areas of your windows. You will only want to redraw the entire window on every expose event if you are lazy. Salut, Sven From kasonhuang@kinposh.com.cn Sun Feb 3 22:30:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id C2C1D1826A for ; Sun, 3 Feb 2002 22:30:25 -0500 (EST) Subject: about how to create a function named of gtk_button_ellipse_new_with_label()? Date: Mon, 4 Feb 2002 11:30:17 +0800 MIME-Version: 1.0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F821FF2DC@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: about how to create a function named of gtk_button_ellipse_new_with_label()? Thread-Index: AcGtLEHLChfgThlgEda2uQCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: about how to create a function named of = gtk_button_ellipse_new_with_label()?

hello:
could anyone tell me = the inheritence of the gtk.
if i want to create = a function named gtk_button_ellipse_new_with_label(),how to do = that?
for gtk is writed = with c not c++,in c++ you could incapsuate a ellipsebutton class by = rewriting the virtual function in the button class

could any = know?
Thanks in = advance.
kason

From satyajit.kanungo@wipro.com Mon Feb 4 02:17:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 9D56A180E7 for ; Mon, 4 Feb 2002 02:17:53 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g147GrX20099 for ; Mon, 4 Feb 2002 12:46:53 +0530 (IST) Received: from satyajit ([10.114.9.188]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GQZYW600.0EO for ; Mon, 4 Feb 2002 12:46:54 +0530 From: "satyajit kanungo" To: Subject: gtk+1.3 library Date: Mon, 4 Feb 2002 12:54:39 +0530 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I am trying to build gtk+-1.3.12 (from GNOME alpha release) on my Linux machine. and it builds properly on my system. I found the gtk sources still using deprecated features such as GtkTypeInfo,GtkType variables, gtk_signal_new etc. Are there any plans to removed these features in future versions. I am thinking of making the changes to remove the above deprecated features from the library. Any suggestions ?? regards satyajit From coframi.balr001@rd.francetelecom.com Mon Feb 4 03:51:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id A1C99180DD for ; Mon, 4 Feb 2002 03:51:37 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Mon, 4 Feb 2002 09:28:37 +0100 Message-ID: From: zze-coframi balr001 To: "'Oliver Kroll :ALT EUROPA: - Magazin'" , gtk-list@gnome.org Subject: RE: CList: how to change column-count at runtime Date: Mon, 4 Feb 2002 09:28:46 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-48e65877-1946-11d6-ac1e-00508b692753" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-48e65877-1946-11d6-ac1e-00508b692753 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AD55.F6B24C30" ------_=_NextPart_001_01C1AD55.F6B24C30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, =20 I don't know if it's possible to change the number of columns during runtime. Why don't you try to delete your clist and to create a new one = with the right number of columns ??=20 =20 Isabelle -----Message d'origine----- De : Oliver Kroll :ALT EUROPA: - Magazin [mailto:neofolk@yahoo.de] Envoy=E9 : samedi 2 f=E9vrier 2002 21:08 =C0 : gtk-list@gnome.org Objet : CList: how to change column-count at runtime hi all, =20 i created a form (clist included) with glade. =20 i filled a ctree with databases and tables from the mysql-server, now i = like to read the data stored in a mysql-table into the clist. this is no problem so far. =20 but how can i change the column-count from the gtk-clist at runtime, so = that it will fit to the column-count of the mysql-resultset? =20 thanks a lot for your help. =20 sincerly =20 oliver k. =20 =20 ------_=_NextPart_001_01C1AD55.F6B24C30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
I=20 don't know if it's possible to change the number of columns during = runtime. Why=20 don't you try to delete your clist and to create a new one with the = right number=20 of columns ??
 
Isabelle
-----Message d'origine-----
De : Oliver Kroll = :ALT=20 EUROPA: - Magazin [mailto:neofolk@yahoo.de]
Envoy=E9 : = samedi 2=20 f=E9vrier 2002 21:08
=C0 :=20 gtk-list@gnome.org
Objet : CList: how to change = column-count at=20 runtime

hi all,
 
i created a form (clist included) = with=20 glade.
 
i filled a ctree with databases and = tables from=20 the mysql-server, now i like to read the data stored in a mysql-table = into the=20 clist.
this is no problem so = far.
 
but how can i change the = column-count from the=20 gtk-clist at runtime, so that it will fit to the column-count of the=20 mysql-resultset?
 
thanks a lot for your = help.
 
sincerly
 
oliver k.
 
 
------_=_NextPart_001_01C1AD55.F6B24C30-- ------=_NextPartTM-000-48e65877-1946-11d6-ac1e-00508b692753-- From inimss@yahoo.com Mon Feb 4 04:32:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp015.mail.yahoo.com (smtp015.mail.yahoo.com [216.136.173.59]) by mail.gnome.org (Postfix) with SMTP id 02E491821C for ; Mon, 4 Feb 2002 04:32:49 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 Feb 2002 09:32:46 -0000 Message-ID: <3C5E5536.6BDBFC5C@yahoo.com> Date: Mon, 04 Feb 2002 15:02:38 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list Subject: [INIMSS] A Newbie Question Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All Can I depend on the pointer returned by functions like gtk_entry_get_text(entry1). Can I keep it for later processing. Thank You Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From rhfreeman@micron.com Mon Feb 4 05:55:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id 8CF9C181BF for ; Mon, 4 Feb 2002 05:55:06 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g14At5K19246 for ; Mon, 4 Feb 2002 03:55:05 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g14At5219234 for ; Mon, 4 Feb 2002 03:55:05 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Mon, 4 Feb 2002 03:55:03 -0700 Message-ID: From: rhfreeman To: "'gtk-list@gnome.org'" Subject: Paned questions Date: Mon, 4 Feb 2002 03:54:58 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, I'm wanting to use the paned widgets to re-size my current widgets but I'm a bit unsure about how it works. My program is quite simple. It has a window with a vbox in it. It keeps adding hboxes to the vbox like this: (no hboxes) +------------+ | | | | | | | | | | +------------+ +------------+ | | | | | (hbox) | | | | | +------------+ +------------+ | hbox 1 | | | |------------| | hbox 2 | | | +------------+ +------------+ | hbox 1 | |------------| | hbox 2 | |------------| | hbox 3 | +------------+ I want a paned widget on the separator between hboxes. So I want a paned widget controlling hbox1/hbox2 and another one controlling hbox2/hbox3. So my questions are: 1. Can a widget have multiple paned widgets attached to it? 2. Can a paned widget control any widget type? As most example code I've seen seems to be re-sizing a frame. Thanks!!! Rich From liviu@heart.med.upatras.gr Mon Feb 4 06:11:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from heart.med.upatras.gr (unknown [150.140.167.160]) by mail.gnome.org (Postfix) with ESMTP id 39C8418449 for ; Mon, 4 Feb 2002 06:11:13 -0500 (EST) Received: from there (IDENT:i4eXe/KcT2xezAPGrXSLJOV5SyG7/uqz@zakinthos.med.upatras.gr [150.140.167.161]) by heart.med.upatras.gr (8.9.3/8.8.7) with SMTP id OAA09940 for ; Mon, 4 Feb 2002 14:10:56 +0200 Message-Id: <200202041210.OAA09940@heart.med.upatras.gr> Content-Type: text/plain; charset="iso-8859-15" From: Liviu Vladutu Reply-To: LiviuVladutu@ieee.org Organization: Medical Physics Dept., School of Medicine To: gtk-list@gnome.org Subject: gtk+ Date: Mon, 4 Feb 2002 13:12:40 +0200 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi everyone, I'd like to ask you where can Ifind the latest source (rpm preferred) distribution for gtk+ running under Linux (RedHat). Liviu From inimss@yahoo.com Mon Feb 4 06:14:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by mail.gnome.org (Postfix) with SMTP id 1E6C1189A7 for ; Mon, 4 Feb 2002 06:14:29 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 Feb 2002 11:14:15 -0000 Message-ID: <3C5E6CFF.3FC290E0@yahoo.com> Date: Mon, 04 Feb 2002 16:44:07 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list , gtk-app-devel Subject: [INIMSS] How can I change the text of a button. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Any body please help me in finding a way to change the text of a GtkButton. Thanks Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:17:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9906.mail.yahoo.com (web9906.mail.yahoo.com [216.136.129.249]) by mail.gnome.org (Postfix) with SMTP id 5764C18A83 for ; Mon, 4 Feb 2002 06:17:46 -0500 (EST) Message-ID: <20020204111745.25122.qmail@web9906.mail.yahoo.com> Received: from [213.29.206.62] by web9906.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:17:45 PST Date: Mon, 4 Feb 2002 03:17:45 -0800 (PST) From: Vahid Zahiri Subject: Re: gtk+ To: LiviuVladutu@ieee.org Cc: gtk-list@gnome.org In-Reply-To: <200202041210.OAA09940@heart.med.upatras.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi Liviu you can download gtk 1.2 (stable version)from : ftp://ftp.gtk.org/pub/gtk/v1.2/binary/RPMS/RedHat-6.2/ or gtk 1.3 form : ftp://ftp.gtk.org/pub/gtk/v1.3/binary/RedHat-7.1/ Vahid --- Liviu Vladutu wrote: > Hi everyone, > > I'd like to ask you where can Ifind the latest > source (rpm preferred) > distribution for gtk+ running under Linux (RedHat). > Liviu > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:29:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9901.mail.yahoo.com (web9901.mail.yahoo.com [216.136.129.36]) by mail.gnome.org (Postfix) with SMTP id 614221812B for ; Mon, 4 Feb 2002 06:29:21 -0500 (EST) Message-ID: <20020204112920.35954.qmail@web9901.mail.yahoo.com> Received: from [213.29.206.62] by web9901.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:29:20 PST Date: Mon, 4 Feb 2002 03:29:20 -0800 (PST) From: Vahid Zahiri Subject: Re: [INIMSS] How can I change the text of a button. To: gtk-list@gnome.org Cc: gtk-list@gnome.org In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Dino you can add a label to button by : gtk_container_add(GTK_CONTAINER(button),label); and change label by: gtk_label_set_text(label ,"hello ;-)" ); Vahid --- Dino Cherian K wrote: > Hi > > Any body please help me in finding a way to change > the text of a > GtkButton. > > Thanks > Dino CK > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at > http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:29:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9901.mail.yahoo.com (web9901.mail.yahoo.com [216.136.129.36]) by mail.gnome.org (Postfix) with SMTP id 6CDCF18248 for ; Mon, 4 Feb 2002 06:29:21 -0500 (EST) Message-ID: <20020204112920.35954.qmail@web9901.mail.yahoo.com> Received: from [213.29.206.62] by web9901.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:29:20 PST Date: Mon, 4 Feb 2002 03:29:20 -0800 (PST) From: Vahid Zahiri Subject: Re: [INIMSS] How can I change the text of a button. To: gtk-list@gnome.org Cc: gtk-list@gnome.org In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Dino you can add a label to button by : gtk_container_add(GTK_CONTAINER(button),label); and change label by: gtk_label_set_text(label ,"hello ;-)" ); Vahid --- Dino Cherian K wrote: > Hi > > Any body please help me in finding a way to change > the text of a > GtkButton. > > Thanks > Dino CK > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at > http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:29:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9907.mail.yahoo.com (web9907.mail.yahoo.com [216.136.129.250]) by mail.gnome.org (Postfix) with SMTP id E5AF81812B for ; Mon, 4 Feb 2002 06:29:27 -0500 (EST) Message-ID: <20020204112927.28295.qmail@web9907.mail.yahoo.com> Received: from [213.29.206.62] by web9907.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:29:27 PST Date: Mon, 4 Feb 2002 03:29:27 -0800 (PST) From: Vahid Zahiri Subject: Re: [INIMSS] How can I change the text of a button. To: gtk-list@gnome.org In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Dino you can add a label to button by : gtk_container_add(GTK_CONTAINER(button),label); and change label by: gtk_label_set_text(label ,"hello ;-)" ); Vahid --- Dino Cherian K wrote: > Hi > > Any body please help me in finding a way to change > the text of a > GtkButton. > > Thanks > Dino CK > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at > http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:34:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9905.mail.yahoo.com (web9905.mail.yahoo.com [216.136.129.248]) by mail.gnome.org (Postfix) with SMTP id 0269D184C7 for ; Mon, 4 Feb 2002 06:34:48 -0500 (EST) Message-ID: <20020204113448.2698.qmail@web9905.mail.yahoo.com> Received: from [213.29.206.62] by web9905.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:34:48 PST Date: Mon, 4 Feb 2002 03:34:48 -0800 (PST) From: Vahid Zahiri Subject: Sorry :( To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi all sorry if you get 3 mail instead one mail; vahid __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From flavio@maqplas.com.br Mon Feb 4 06:59:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aspdroid.ns1.com.br (aspdroid.ns1.com.br [200.185.44.19]) by mail.gnome.org (Postfix) with ESMTP id 9939018449 for ; Mon, 4 Feb 2002 06:59:19 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by aspdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g14BVodB032946 for ; Mon, 4 Feb 2002 09:31:51 -0200 (BRST) Subject: How to compile in gtk+ 1.3 From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 04 Feb 2002 09:56:05 -0200 Message-Id: <1012823766.1474.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I downloaded the GTK+ 1.3 (rpm packages) and make upgrade, aparently all OK, now I want to compile an aplication that I was making with gtk+1.2.10 (the interface was generated by Glade), but it always compile in gtk+1.2, I see in Makefile that it make many references to gtk+1.2, what I has to change to compile in gtk+1.3 ? Thanks in advance Flavio Alberto From sven@gimp.org Mon Feb 4 07:05:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 6098318259; Mon, 4 Feb 2002 07:05:27 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16XhsA-0002Mk-00; Mon, 04 Feb 2002 13:05:22 +0100 To: Dino Cherian K Cc: gtk-list , gtk-app-devel Subject: Re: [INIMSS] How can I change the text of a button. References: <3C5E6CFF.3FC290E0@yahoo.com> From: Sven Neumann Date: 04 Feb 2002 13:05:22 +0100 In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> Message-ID: Lines: 12 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Dino Cherian K writes: > Any body please help me in finding a way to change the text of a > GtkButton. gtk_label_set_text (GTK_LABEL (GTK_BIN (button)->child), "foo"); Salut, Sven From coframi.balr001@rd.francetelecom.com Mon Feb 4 07:23:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id 66B2B18294 for ; Mon, 4 Feb 2002 07:23:18 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Mon, 4 Feb 2002 13:23:00 +0100 Message-ID: From: zze-coframi balr001 To: "'LiviuVladutu@ieee.org'" , gtk-list@gnome.org Subject: RE: gtk+ Date: Mon, 4 Feb 2002 13:23:09 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: http://www.rpmfind.net -----Message d'origine----- De : Liviu Vladutu [mailto:liviu@heart.med.upatras.gr] Envoy=E9 : lundi 4 f=E9vrier 2002 12:13 =C0 : gtk-list@gnome.org Objet : gtk+ Hi everyone, I'd like to ask you where can Ifind the latest source (rpm preferred)=20 distribution for gtk+ running under Linux (RedHat). Liviu _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From flavio@maqplas.com.br Mon Feb 4 09:39:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pkdroid.ns1.com.br (pkdroid.ns1.com.br [200.185.44.16]) by mail.gnome.org (Postfix) with ESMTP id 51E2C18CDF for ; Mon, 4 Feb 2002 09:39:52 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by pkdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g14EdjVX070038 for ; Mon, 4 Feb 2002 12:39:45 -0200 (BRST) Subject: Run time error in gtk1.3 application From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: multipart/mixed; boundary="=-VE59CUR5uqi/Gdat/QKL" X-Mailer: Evolution/0.10 (Preview Release) Date: 04 Feb 2002 12:36:38 -0200 Message-Id: <1012833399.1475.3.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-VE59CUR5uqi/Gdat/QKL Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello all,=20 I make some modifications in my Makefile (attached in mail) in order to compile my application in gtk+1.3 (gtk+2.0), in compilation I get this messages (was several similar messages to each file of my application, I put only piece of messages) : gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 -c callbacks.c gcc: -lgtk-x11-1.3: linker input file unused since linking not donegcc: -lgdk-x11-1.3: linker input file unused since linking not donegcc: -lXi: linker input file unused since linking not done gcc: -lgdk_pixbuf-1.3: linker input file unused since linking not done gcc: -lm: linker input file unused since linking not done gcc: -lpangox: linker input file unused since linking not done gcc: -lpangoxft: linker input file unused since linking not done gcc: -lXft: linker input file unused since linking not done gcc: -lXrender: linker input file unused since linking not done gcc: -lXext: linker input file unused since linking not done gcc: -lX11: linker input file unused since linking not done gcc: -lfreetype: linker input file unused since linking not done gcc: -lpango: linker input file unused since linking not done gcc: -latk: linker input file unused since linking not done gcc: -lgobject-1.3: linker input file unused since linking not donegcc: -lgmodule-1.3: linker input file unused since linking not donegcc: -ldl: linker input file unused since linking not done gcc: -lglib-1.3: linker input file unused since linking not done And when I ran the compiled program, this crashed and emited these messages: (process:5172): GRuntime-CRITICAL **: gtype.c:1762:g_type_register_static(): initialization assertion failed, use g_type_init() prior to this function (process:5172): GRuntime-CRITICAL **: file gobject.c: line 588 (g_object_new): assertion `G_TYPE_IS_OBJECT (object_type)' failed Falha de segmenta=E7=E3o (core dumped) << Portuguese =3D Segmentation fault (core dumped) Where's the problem ? I must modify my application (made in Gtk1.2.10) to run in gtk1.3 ? ps: please note the line in Makefile (line 139) is original line, and line above is modified by me. Thanks in advance Flavio Alberto --=-VE59CUR5uqi/Gdat/QKL Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile Content-ID: 1012832202.1465.2.camel@flavio.maqplas Content-Transfer-Encoding: 7bit # Generated automatically from Makefile.in by configure. # Makefile.in generated automatically by automake 1.4a from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. SHELL = /bin/sh srcdir = . top_srcdir = .. prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin libexecdir = ${exec_prefix}/libexec datadir = ${prefix}/share sysconfdir = ${prefix}/etc sharedstatedir = ${prefix}/com localstatedir = ${prefix}/var libdir = ${exec_prefix}/lib infodir = ${prefix}/info mandir = ${prefix}/man includedir = ${prefix}/include oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/ihm_princ pkglibdir = $(libdir)/ihm_princ pkgincludedir = $(includedir)/ihm_princ top_builddir = .. ACLOCAL = aclocal -I macros AUTOCONF = autoconf AUTOMAKE = automake AUTOHEADER = autoheader INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL_PROGRAM} INSTALL_STRIP_FLAG = transform = s,x,x, NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_alias = i686-pc-linux host_triplet = i686-pc-linux-gnu BUILD_INCLUDED_LIBINTL = no CATALOGS = CATOBJEXT = .gmo CC = gcc DATADIRNAME = share GENCAT = gencat GLIBC21 = yes GMOFILES = GMSGFMT = /usr/bin/msgfmt GNOMEGNORBA_LIBS = -rdynamic -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOMEUI_LIBS = -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOME_APPLETS_LIBS = GNOME_CAPPLET_LIBS = GNOME_CONFIG = /usr/bin/gnome-config GNOME_DOCKLETS_LIBS = GNOME_INCLUDEDIR = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNOME_LIBDIR = -rdynamic -L/usr/lib -L/usr/X11R6/lib GNOME_LIBS = -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNORBA_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNORBA_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GTKXMHTML_LIBS = -rdynamic -lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm GTK_CFLAGS = -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include GTK_CONFIG = /usr/bin/gtk-config GTK_LIBS = -lSM -lICE -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm INSTOBJEXT = .mo INTLBISON = bison INTLLIBS = INTLOBJS = INTL_LIBTOOL_SUFFIX_PREFIX = LIBICONV = MAKEINFO = makeinfo MKINSTALLDIRS = ./mkinstalldirs MSGFMT = /usr/bin/msgfmt ORBIT_CFLAGS = -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include ORBIT_CONFIG = /usr/bin/orbit-config ORBIT_IDL = /usr/bin/orbit-idl ORBIT_LIBS = -L/usr/lib -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lglib -lnsl -lm PACKAGE = ihm_princ POFILES = POSUB = po PTHREAD_LIB = -lpthread RANLIB = ranlib USE_INCLUDED_LIBINTL = no USE_NLS = yes VERSION = 0.1 XPM_LIBS = -lXpm ZVT_LIBS = -rdynamic -lzvt -lutil -lSM -lICE -lgdk_imlib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm cflags_set = yes cxxflags_set = @cxxflags_set@ INCLUDES = -I$(top_srcdir)/intl $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = main.c support.c support.h interface.c interface.h callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = PROGRAMS = $(bin_PROGRAMS) DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. CPPFLAGS = -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include LDFLAGS = LIBS = ihm_princ_OBJECTS = main.o support.o interface.o callbacks.o auxiliar.o parametro.o ihm_princ_DEPENDENCIES = ihm_princ_LDFLAGS = CFLAGS = -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 #CFLAGS = -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best DEP_FILES = .deps/callbacks.P .deps/interface.P .deps/main.P \ .deps/support.P SOURCES = $(ihm_princ_SOURCES) OBJECTS = $(ihm_princ_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) distclean-binPROGRAMS: maintainer-clean-binPROGRAMS: install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) list='$(bin_PROGRAMS)'; for p in $$list; do \ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: ihm_princ: $(ihm_princ_OBJECTS) $(ihm_princ_DEPENDENCIES) @rm -f ihm_princ $(LINK) $(ihm_princ_LDFLAGS) $(ihm_princ_OBJECTS) $(ihm_princ_LDADD) $(LIBS) tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = src distdir: $(DISTFILES) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(top_distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; \ cd $(top_srcdir) \ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) -include $(DEP_FILES) mostlyclean-depend: clean-depend: distclean-depend: -rm -rf .deps maintainer-clean-depend: %.o: %.c @echo '$(COMPILE) -c $<'; \ $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.lo: %.c @echo '$(LTCOMPILE) -c $<'; \ $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ < .deps/$(*F).pp > .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-binPROGRAMS install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-binPROGRAMS uninstall: uninstall-am all-am: Makefile $(PROGRAMS) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ mostlyclean-tags mostlyclean-depend mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \ distclean-depend distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-tags \ maintainer-clean-depend maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile tags mostlyclean-tags distclean-tags \ clean-tags maintainer-clean-tags distdir mostlyclean-depend \ distclean-depend clean-depend maintainer-clean-depend info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: --=-VE59CUR5uqi/Gdat/QKL-- From leidola@newcon.de Mon Feb 4 09:46:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (mail-1.newcon.de [195.145.56.9]) by mail.gnome.org (Postfix) with ESMTP id 61F9018D2A for ; Mon, 4 Feb 2002 09:46:15 -0500 (EST) Received: from [213.70.108.72] ([213.70.108.72]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id PAA23432; Mon, 4 Feb 2002 15:46:07 +0100 Subject: Re: How to compile in gtk+ 1.3 From: Olaf Leidinger To: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares , GTK Mailing List , FREE PASCAL list In-Reply-To: <1012823766.1474.1.camel@flavio.maqplas> References: <1012823766.1474.1.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <1012834104.899.82.camel@attic> Mime-Version: 1.0 X-Mailer: Evolution/0.12 (Preview Release) Date: 04 Feb 2002 15:48:35 +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 04 Feb 2002 09:56:05 -0200 schrieb Fl=E1vio Alberto Lopes Soares: > Hello all, > I downloaded the GTK+ 1.3 (rpm packages) and make upgrade, aparently all > OK, > now I want to compile an aplication that I was making with gtk+1.2.10 > (the interface was generated by Glade), > but it always compile in gtk+1.2, I see in Makefile that it make many > references to gtk+1.2, what I has to change to compile > in gtk+1.3 ? >=20 > Thanks in advance >=20 > Flavio Alberto >=20 > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list >=20 Hello! You might hack the configure script in the way that it doesn't look for gtk and glib and add `pkg-config gtk+-2.0 --cflags` to the CFLAGS environment variable and 'pkg-config gtk+-2.0 --libs` to LDFLAGS. A (perhaps) more comfortable way is to change the gtk-config and glib-config file for the moment. Look for a line like: echo -L/usr/X11R6/lib -lgtk -lgdk $my_glib_libs -lXi ... comment this line with a # and write the following: echo `pkg-config gtk+-2.0 --libs` Look for the line with the cflags and change it to echo `pkg-config gtk+-2.0 --cflags` And finally look for a line that sais --version) echo 1.2.10 =20 or whatever and note down your version here. Well, this all is just a really dirty hack but it works. I'd love to see a much simpler way (let's say changing to config file that it looks for GTK2 directly - but I'm not famillar with the config-file). Good luck with your work, Ciao Olaf From leidola@newcon.de Mon Feb 4 10:23:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (mail-1.newcon.de [195.145.56.9]) by mail.gnome.org (Postfix) with ESMTP id 8538C189D1 for ; Mon, 4 Feb 2002 10:23:36 -0500 (EST) Received: from [213.70.108.73] ([213.70.108.73]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id QAA24379; Mon, 4 Feb 2002 16:23:31 +0100 Subject: Re: Paned questions From: Olaf Leidinger To: rhfreeman , GTK Mailing List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1012836355.901.104.camel@attic> Mime-Version: 1.0 X-Mailer: Evolution/0.12 (Preview Release) Date: 04 Feb 2002 16:25:58 +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 04 Feb 2002 03:54:58 -0700 schrieb rhfreeman: > Hi folks, > > I'm wanting to use the paned widgets to re-size my current widgets but I'm a > bit unsure about how it works. > > My program is quite simple. It has a window with a vbox in it. It keeps > adding hboxes to the vbox like this: > > (no hboxes) > > +------------+ > | | > | | > | | > | | > | | > +------------+ > > +------------+ > | | > | | > | (hbox) | > | | > | | > +------------+ > > +------------+ > | hbox 1 | > | | > |------------| > | hbox 2 | > | | > +------------+ > > +------------+ > | hbox 1 | > |------------| > | hbox 2 | > |------------| > | hbox 3 | > +------------+ > > I want a paned widget on the separator between hboxes. So I want a paned > widget controlling hbox1/hbox2 and another one controlling hbox2/hbox3. > > So my questions are: > > 1. Can a widget have multiple paned widgets attached to it? > 2. Can a paned widget control any widget type? As most example code I've > seen seems to be re-sizing a frame. > > Thanks!!! > > Rich > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hello! As I understood it a paned widget has two containers where you can add widgets, a left side and a right one (or an upper and a lower). +--------------+ | | | container 1 | | | +=== gutter ===+ | | | container 2 | | | +--------------+ You can surely make a hbox to be child of a container. And I think you don't have to set all the two childs of a paned widget so you might create the following combination: +----vbox----------+ | +- hpaned 1----+ | | | | | | | child 1 | | | | | | | +=== gutter ===+ | | | | | | | child 2 | | | | | | | +--------------+ | | +- hpaned 2 ---+ | | | | | | | empty/not | | | | visible | | | | | | | +=== gutter ===+ | | | | | | | child 2 | | | | | | | +--------------+ | +------------------+ or something similar. Ciao Olaf From lapenta_jm@yahoo.com Mon Feb 4 11:12:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14004.mail.yahoo.com (web14004.mail.yahoo.com [216.136.175.120]) by mail.gnome.org (Postfix) with SMTP id 5AD2F18154 for ; Mon, 4 Feb 2002 11:12:12 -0500 (EST) Message-ID: <20020204161211.13516.qmail@web14004.mail.yahoo.com> Received: from [129.55.200.20] by web14004.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 08:12:11 PST Date: Mon, 4 Feb 2002 08:12:11 -0800 (PST) From: Jason LaPenta Subject: clist : lines truncated using clist_append To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm using gtk_clist_append( (GtkCList *)dsp_message_clist, data ); and my data, which is about 58 chars long, get truncated to about 30 chars when I add it to the list. I've tried making the column wider with gtk_clist_set_column_width( (GtkCList *)dsp_message_clist, 1, width * 2); But now, even thought there's tons of room, the text still get truncated. Do you know what I can do to fix this problem? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From hp@redhat.com Mon Feb 4 11:32:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 9FEDE181BF for ; Mon, 4 Feb 2002 11:32:48 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g14GWYU29668; Mon, 4 Feb 2002 11:32:34 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "satyajit kanungo" Cc: Subject: Re: gtk+1.3 library References: From: Havoc Pennington Date: 04 Feb 2002 11:32:34 -0500 In-Reply-To: Message-ID: Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "satyajit kanungo" writes: > I found the gtk sources still using deprecated features such as > GtkTypeInfo,GtkType variables, gtk_signal_new etc. Are there any > plans to removed these features in future versions. > > I am thinking of making the changes to remove the above deprecated > features from the library. Any suggestions ?? I believe there are outstanding patches in bugzilla related to this. I could be wrong. But you probably want to try to find them before working on it. We do want to remove them eventually, but it isn't as high a priority as other things. Havoc From hp@redhat.com Mon Feb 4 11:36:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id E96E418E6B for ; Mon, 4 Feb 2002 11:35:59 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g14GZxu29673; Mon, 4 Feb 2002 11:35:59 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: gtk-list Subject: Re: Run time error in gtk1.3 application References: <1012833399.1475.3.camel@flavio.maqplas> From: Havoc Pennington Date: 04 Feb 2002 11:35:59 -0500 In-Reply-To: <1012833399.1475.3.camel@flavio.maqplas> Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Fl=E1vio Alberto Lopes Soares writes: >=20 > I make some modifications in my Makefile (attached in mail) in order > to compile my application in gtk+1.3 (gtk+2.0), in compilation I get > this messages (was several similar messages to each file of my > application, I put only piece of messages) : Your Makefile is all screwed up somehow. Note that you're getting GTK 1.2 flags in there, and GNOME 1.x. You need GNOME 2 to use GTK 2. Show us the Makefile.am, rather than the Makefile. Havoc From hummaida@cs.man.ac.uk Mon Feb 4 12:47:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mail.gnome.org (Postfix) with ESMTP id 7E2DF18402 for ; Mon, 4 Feb 2002 12:47:05 -0500 (EST) Received: from cs.man.ac.uk ([62.252.236.59]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020204174703.IWAG7000.mta06-svc.ntlworld.com@cs.man.ac.uk> for ; Mon, 4 Feb 2002 17:47:03 +0000 Message-ID: <3C5EC950.8070501@cs.man.ac.uk> Date: Mon, 04 Feb 2002 17:48:00 +0000 From: A R Hummaida User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: fileselection question Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dear all well this question is kind of related to the file selection widget. i have the following GList *my_selection_list; //global // call back for ok button on file selection void on_file_selection_ok_button_clicked (GtkWidget * w, gpointer user_data) { . . gchar *file_selected ; file_selected = gtk_file_selection_get_filename (GTK_FILE_SELECTION (file_selection_widget)); . . . if (g_list_find(my_selection_list,file_selected)==NULL) { my_selection_list=g_list_append (my_selection_list,file_selected); g_print("file selected is %s\n",file_selected); . . } } so i want a file to be selected only once.this works the first time as the list is empty but next tries don't print the file name even though a different file is selected. i have tried many of these glist functions to no avail. please help Thanks From hunchback@netcabo.pt Mon Feb 4 12:59:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id BCE0D18794 for ; Mon, 4 Feb 2002 12:59:50 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Mon, 4 Feb 2002 17:54:17 +0000 Content-Class: urn:content-classes:message From: To: "gtk-list" , "Flávio Alberto Lopes Soares" Subject: RE: Run time error in gtk1.3 application Date: Mon, 4 Feb 2002 17:54:17 -0000 Message-ID: <21f601c1ada4$f6f88b10$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcGtpPb4SiWHvBmIEdaCdgBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, >gcc: -lgtk-x11-1.3: linker input file unused since linking not donegcc: >-lgdk-x11-1.3: linker input file unused since linking not donegcc: = -lXi: >linker input file unused since linking not done >gcc: -lgdk_pixbuf-1.3: linker input file unused since linking not done >gcc: -lm: linker input file unused since linking not done >gcc: -lpangox: linker input file unused since linking not done >gcc: -lpangoxft: linker input file unused since linking not done >gcc: -lXft: linker input file unused since linking not done >gcc: -lXrender: linker input file unused since linking not done >gcc: -lXext: linker input file unused since linking not done >gcc: -lX11: linker input file unused since linking not done >gcc: -lfreetype: linker input file unused since linking not done >gcc: -lpango: linker input file unused since linking not done >gcc: -latk: linker input file unused since linking not done >gcc: -lgobject-1.3: linker input file unused since linking not donegcc: >-lgmodule-1.3: linker input file unused since linking not donegcc: = -ldl: >linker input file unused since linking not done >gcc: -lglib-1.3: linker input file unused since linking not done this happens because you're trying to link a file with the gtk libs that = doesn't uses them. your Makefile may not be correct... >And when I ran the compiled program, this crashed and emited these >messages: >(process:5172): GRuntime-CRITICAL **: >gtype.c:1762:g_type_register_static(): initialization assertion failed, >use g_type_init() prior to this function >(process:5172): GRuntime-CRITICAL **: file gobject.c: line 588 >(g_object_new): assertion `G_TYPE_IS_OBJECT (object_type)' failed >Falha de segmenta=E7=E3o (core dumped) << Portuguese =3D Segmentation = fault >(core dumped) as for this i don't know... i haven't worked with 1.3 (and i haven't = seen this error on 1.2). Cumprimentos, Nuno Afonso From John.Cupitt@ng-london.org.uk Mon Feb 4 13:03:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 3B104188F8 for ; Mon, 4 Feb 2002 13:03:16 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HKJ9>; Mon, 4 Feb 2002 18:03:15 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HKJ7; Mon, 4 Feb 2002 18:03:03 -0000 Message-ID: <3C5EC997.3030504@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: hummaida@cs.man.ac.uk Cc: gtk-list@gnome.org Subject: Re: fileselection question Date: Mon, 4 Feb 2002 17:49:11 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I think you're comparing pointers when you should be comparing strings. Add the selected filename to your list with my_selection_list = g_list_prepend( my_selection_list, g_strdup( file_selected ) ); (prepend is faster than append, and you need to strdup pointers you get back from _get_filename()) Test for is-filename-there-already by looping along your list and strcmp()ing each element. You can use g_list_find_custom for this: if( g_list_find_custom( my_selection_list, file_selected, strcmp ) ) { HTH, John A R Hummaida wrote: > i have the following > > > GList *my_selection_list; //global > > // call back for ok button on file selection > > void on_file_selection_ok_button_clicked (GtkWidget * w, gpointer > user_data) > { > . > . > gchar *file_selected ; > > file_selected = > gtk_file_selection_get_filename (GTK_FILE_SELECTION > (file_selection_widget)); > . > . > . > if (g_list_find(my_selection_list,file_selected)==NULL) > { my_selection_list=g_list_append > (my_selection_list,file_selected); > g_print("file selected is %s\n",file_selected); > . > . > > } > } > > so i want a file to be selected only once.this works the first time as > the list is empty but next tries don't > print the file name even though a different file is selected. i have > tried many of these glist functions to no avail. please help ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From kasonhuang@kinposh.com.cn Mon Feb 4 19:24:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 0ED63180E3 for ; Mon, 4 Feb 2002 19:24:22 -0500 (EST) Subject: RE: [INIMSS] How can I change the text of a button. Date: Tue, 5 Feb 2002 08:24:08 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F821FF5DB@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: [INIMSS] How can I change the text of a button. Thread-Index: AcGtbT2hiiHrqIWgRQC0AJgLsj1onQAbIgDQ From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: "Dino Cherian K" Cc: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi Dino: you can try gtk_label_set_text();and you must add the label to the = button container. eg: gtk_label_set_text(GTK_LABEL(m_pLabel),m_LabelText); if any question about it ,you could ask me. kason -----Original Message----- From: Dino Cherian K [mailto:inimss@yahoo.com] Sent: Monday, February 04, 2002 7:14 PM To: gtk-list; gtk-app-devel Subject: [INIMSS] How can I change the text of a button. Hi Any body please help me in finding a way to change the text of a GtkButton. Thanks Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From kasonhuang@kinposh.com.cn Mon Feb 4 19:49:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wilber.gimp.org (graft.XCF.Berkeley.EDU [128.32.247.248]) by mail.gnome.org (Postfix) with ESMTP id A100618B60 for ; Mon, 4 Feb 2002 19:49:23 -0500 (EST) Received: from [210.78.17.12] (helo=kes01.kinposh.com.cn) by wilber.gimp.org with esmtp (Exim 3.12 #1 (Debian)) id 16XtnW-0004UT-00 for ; Mon, 04 Feb 2002 16:49:22 -0800 Subject: SOS about gtk xim? MIME-Version: 1.0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable Date: Tue, 5 Feb 2002 08:49:09 +0800 Message-ID: <92CD479384374A439EFA0077E7C50F821FF622@kes01.kinposh.com.cn> content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SOS about gtk xim? Thread-Index: AcGt3unVzctprRoPEda2uQCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SOS about gtk xim?

hi all:
  I have a = problem about gtk xim. Now I start a program with xim by handmake way, = then I can start kinput2; but if I start it using a shell, I can't start = kinput2. I don't know why? please help me!

Thanks a lot!
kason

From Volkan_Arslan@gmx.net Tue Feb 5 04:39:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id AD8AD188FA for ; Tue, 5 Feb 2002 04:39:40 -0500 (EST) Received: (qmail 21704 invoked by uid 0); 5 Feb 2002 09:39:39 -0000 Received: from ru-pc11.inf.ethz.ch (HELO gmx.net) (129.132.12.191) by mail.gmx.net (mp009-rz3) with SMTP; 5 Feb 2002 09:39:39 -0000 Message-ID: <3C5FA856.F49CECF1@gmx.net> Date: Tue, 05 Feb 2002 10:39:34 +0100 From: Volkan Arslan X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Release date of GTK+ 2.0 ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, does someone know, when GTK+ 2.0 will be released ? I have looked at www.gtk.org, but couldn't find anything regarding the release date of GTK+ 2.0. Best regards, Volkan Arslan From root@localhost.localdomain Tue Feb 5 07:28:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.225.173]) by mail.gnome.org (Postfix) with ESMTP id 0FF5D18DF0 for ; Tue, 5 Feb 2002 07:28:02 -0500 (EST) Received: (from root@localhost) by localhost.localdomain (8.11.2/8.11.2) id g15CLpF01961; Tue, 5 Feb 2002 17:51:51 +0530 Date: Tue, 5 Feb 2002 17:51:51 +0530 Message-Id: <200202051221.g15CLpF01961@localhost.localdomain> To: gtk-list@gnome.org From: Dino Subject: [INIMSS] How to avoid focusing on CList column titles. Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, How can I avoid the focusing of the column titles in a CList when i go thru the widgets in a window using the TAB key. Thank You Dino CK From flavio@maqplas.com.br Tue Feb 5 08:22:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id D5A8818180 for ; Tue, 5 Feb 2002 08:22:15 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g15DM7wc031623; Tue, 5 Feb 2002 11:22:08 -0200 (BRST) Subject: Re: Run time error in gtk1.3 application From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Havoc Pennington Cc: gtk-list Content-Type: multipart/mixed; boundary="=-CYk0BJZM1LkgXCEhrsBr" X-Mailer: Evolution/0.10 (Preview Release) Date: 05 Feb 2002 11:18:03 -0200 Message-Id: <1012915087.1142.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello all, I was writing this message bellow when my mail-server crash yesterday, then I attempt to run autogen.sh and my application compileted normally & run normally, I see the Makefile and found some references to gtk-1.2, gtk-2.0, glib-1.2, glib-2.0, I don't know what's the diferences behind this new Makefile (made by autogen.sh) and old (compile but not run), I suspect that my application compiled in gtk-1.2 and not in gtk-2.0, but I don't know to say. If anyone has a clue I thanks very much. Thanks in advance Flavio Alberto=20 ******************************************************** ORIGINAL MAIL ***************************************************************************= ** I made the changes that Olaf sugests and now doesn't show "stranger" messages in compilation, but the resulting program continues with the same crash when I run it. The Makefile has many references to glib-1.2 & gtk-1.2 (old) and I don't know how to change these files, if I change 1.2 to 2.0 the errors are this :=20 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-2.0 -I/usr/lib/glib/include -I/usr/include/gtk-2.0 -I/usr/X11R6/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -Wall -Wunused -c main.c In file included from /usr/include/libgnomeui/libgnomeui.h:19, from /usr/include/gnome.h:17, from main.c:10: /usr/include/libgnomeui/gnome-canvas-image.h:15: gtk/gtkpacker.h: Arquivo ou diret=F3rio n=E3o encontrado In file included from /usr/include/libgnomeui/libgnomeui.h:24, from /usr/include/gnome.h:17, from main.c:10: /usr/include/libgnomeui/gnome-canvas-text.h:15: gtk/gtkpacker.h: Arquivo ou diret=F3rio n=E3o encontrado In file included from /usr/include/libgnomeui/libgnomeui.h:26, from /usr/include/gnome.h:17, from main.c:10: /usr/include/libgnomeui/gnome-canvas-widget.h:15: gtk/gtkpacker.h: File not found make: *** [main.o] Error 1 Really, the file gtkpacker.h doesn't exists inside gtk-2.0, I have to change some thing in my program ? I will send the glib-config & gtk-config that I edited how sugests Olaf and the Makefile.am & Makefile that ./configure script generated; Excuse-me for send so many files but really I don't know what to do. Thanks for all help Flavio Alberto Em 04 Feb 2002 11:35:59 -0500, Havoc Pennington escreveu: >=20 > Fl=E1vio Alberto Lopes Soares writes: > >=20 > > I make some modifications in my Makefile (attached in mail) in order > > to compile my application in gtk+1.3 (gtk+2.0), in compilation I get > > this messages (was several similar messages to each file of my > > application, I put only piece of messages) : >=20 > Your Makefile is all screwed up somehow. Note that you're getting GTK > 1.2 flags in there, and GNOME 1.x. You need GNOME 2 to use GTK 2. >=20 > Show us the Makefile.am, rather than the Makefile. >=20 > Havoc --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-sh Content-Disposition: attachment; filename=glib-config Content-ID: 1012846901.13020.0.camel@flavio.maqplas Content-Transfer-Encoding: 7bit #!/bin/sh prefix=/usr exec_prefix=${prefix} exec_prefix_set=no usage() { cat <&2 fi lib_glib=yes while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg if test $exec_prefix_set = no ; then exec_prefix=$optarg fi ;; --prefix) echo_prefix=yes ;; --exec-prefix=*) exec_prefix=$optarg exec_prefix_set=yes ;; --exec-prefix) echo_exec_prefix=yes ;; --version) echo 1.3.7 exit 0 ;; --cflags) echo_cflags=yes ;; --libs) echo_libs=yes ;; glib) lib_glib=yes ;; gmodule) lib_gmodule=yes ;; gthread) lib_gthread=yes ;; *) usage 1 1>&2 ;; esac shift done if test "$echo_prefix" = "yes"; then echo $prefix fi if test "$echo_exec_prefix" = "yes"; then echo $exec_prefix fi if test "$echo_cflags" = "yes"; then cflags="" if test "$lib_gthread" = "yes"; then cflags="$cflags -D_REENTRANT" fi echo -I${prefix}/include/glib-2.0 -I/usr/lib/glib/include $includes $cflags fi if test "$echo_libs" = "yes"; then libsp="" libsa="" if test "$lib_glib" = "yes"; then libsp="$libsp -lglib" fi if test "$lib_gthread" = "yes"; then libsp="-lgthread $libsp" libsa="$libsa -lpthread" fi if test "$lib_gmodule" = "yes"; then libsp="-rdynamic -lgmodule $libsp" libsa="$libsa -ldl" fi echo -L/usr/lib $libsp $libsa fi --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile Content-ID: 1012846941.13020.2.camel@flavio.maqplas Content-Transfer-Encoding: 7bit # Generated automatically from Makefile.in by configure. # Makefile.in generated automatically by automake 1.4a from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. SHELL = /bin/sh srcdir = . top_srcdir = .. prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin libexecdir = ${exec_prefix}/libexec datadir = ${prefix}/share sysconfdir = ${prefix}/etc sharedstatedir = ${prefix}/com localstatedir = ${prefix}/var libdir = ${exec_prefix}/lib infodir = ${prefix}/info mandir = ${prefix}/man includedir = ${prefix}/include oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/ihm_princ pkglibdir = $(libdir)/ihm_princ pkgincludedir = $(includedir)/ihm_princ top_builddir = .. ACLOCAL = aclocal -I macros AUTOCONF = autoconf AUTOMAKE = automake AUTOHEADER = autoheader INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL_PROGRAM} INSTALL_STRIP_FLAG = transform = s,x,x, NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_alias = i686-pc-linux host_triplet = i686-pc-linux-gnu BUILD_INCLUDED_LIBINTL = no CATALOGS = CATOBJEXT = .gmo CC = gcc DATADIRNAME = share GENCAT = gencat GLIBC21 = yes GMOFILES = GMSGFMT = /usr/bin/msgfmt GNOMEGNORBA_LIBS = -rdynamic -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOMEUI_LIBS = -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOME_APPLETS_LIBS = GNOME_CAPPLET_LIBS = GNOME_CONFIG = /usr/bin/gnome-config GNOME_DOCKLETS_LIBS = GNOME_INCLUDEDIR = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNOME_LIBDIR = -rdynamic -L/usr/lib -L/usr/X11R6/lib GNOME_LIBS = -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNORBA_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNORBA_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GTKXMHTML_LIBS = -rdynamic -lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 GTK_CONFIG = /usr/bin/gtk-config GTK_LIBS = -lSM -lICE -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 INSTOBJEXT = .mo INTLBISON = bison INTLLIBS = INTLOBJS = INTL_LIBTOOL_SUFFIX_PREFIX = LIBICONV = MAKEINFO = makeinfo MKINSTALLDIRS = ./mkinstalldirs MSGFMT = /usr/bin/msgfmt ORBIT_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib/include -I/usr/include ORBIT_CONFIG = /usr/bin/orbit-config ORBIT_IDL = /usr/bin/orbit-idl ORBIT_LIBS = -L/usr/lib -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lglib -lnsl -lm PACKAGE = ihm_princ POFILES = POSUB = po PTHREAD_LIB = -lpthread RANLIB = ranlib USE_INCLUDED_LIBINTL = no USE_NLS = yes VERSION = 0.1 XPM_LIBS = -lXpm ZVT_LIBS = -rdynamic -lzvt -lutil -lSM -lICE -lgdk_imlib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm cflags_set = yes cxxflags_set = @cxxflags_set@ INCLUDES = -I$(top_srcdir)/intl $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = main.c support.c support.h interface.c interface.h callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = PROGRAMS = $(bin_PROGRAMS) DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. CPPFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 LDFLAGS = -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 LIBS = ihm_princ_OBJECTS = main.o support.o interface.o callbacks.o auxiliar.o \ parametro.o ihm_princ_DEPENDENCIES = ihm_princ_LDFLAGS = CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -Wall -Wunused COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best DEP_FILES = .deps/auxiliar.P .deps/callbacks.P .deps/interface.P \ .deps/main.P .deps/parametro.P .deps/support.P SOURCES = $(ihm_princ_SOURCES) OBJECTS = $(ihm_princ_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) distclean-binPROGRAMS: maintainer-clean-binPROGRAMS: install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) list='$(bin_PROGRAMS)'; for p in $$list; do \ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: ihm_princ: $(ihm_princ_OBJECTS) $(ihm_princ_DEPENDENCIES) @rm -f ihm_princ $(LINK) $(ihm_princ_LDFLAGS) $(ihm_princ_OBJECTS) $(ihm_princ_LDADD) $(LIBS) tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = src distdir: $(DISTFILES) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(top_distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; \ cd $(top_srcdir) \ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) -include $(DEP_FILES) mostlyclean-depend: clean-depend: distclean-depend: -rm -rf .deps maintainer-clean-depend: %.o: %.c @echo '$(COMPILE) -c $<'; \ $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.lo: %.c @echo '$(LTCOMPILE) -c $<'; \ $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ < .deps/$(*F).pp > .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-binPROGRAMS install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-binPROGRAMS uninstall: uninstall-am all-am: Makefile $(PROGRAMS) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ mostlyclean-tags mostlyclean-depend mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \ distclean-depend distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-tags \ maintainer-clean-depend maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile tags mostlyclean-tags distclean-tags \ clean-tags maintainer-clean-tags distdir mostlyclean-depend \ distclean-depend clean-depend maintainer-clean-depend info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile.am Content-ID: 1012846945.13020.3.camel@flavio.maqplas Content-Transfer-Encoding: 7bit ## Process this file with automake to produce Makefile.in INCLUDES = \ -I$(top_srcdir)/intl \ $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = \ main.c \ support.c support.h \ interface.c interface.h \ callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-sh Content-Disposition: attachment; filename=gtk-config Content-ID: 1012847026.13020.4.camel@flavio.maqplas Content-Transfer-Encoding: 7bit #!/bin/sh glib_libs="-L/usr/lib -rdynamic -lgmodule -lglib -ldl" glib_cflags="-I/usr/include/glib-2.0 -I/usr/lib/glib/include" glib_thread_libs="-L/usr/lib -rdynamic -lgmodule -lgthread -lglib -lpthread -ldl" glib_thread_cflags="-I/usr/include/glib-2.0 -I/usr/lib/glib/include -D_REENTRANT" prefix=/usr exec_prefix=/usr exec_prefix_set=no usage() { cat <&2 fi lib_gtk=yes while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg if test $exec_prefix_set = no ; then exec_prefix=$optarg fi ;; --prefix) echo_prefix=yes ;; --exec-prefix=*) exec_prefix=$optarg exec_prefix_set=yes ;; --exec-prefix) echo_exec_prefix=yes ;; --version) echo 1.3.7 ;; --cflags) echo_cflags=yes ;; --libs) echo_libs=yes ;; gtk) lib_gtk=yes ;; gthread) lib_gthread=yes ;; *) usage 1 1>&2 ;; esac shift done if test "$echo_prefix" = "yes"; then echo $prefix fi if test "$echo_exec_prefix" = "yes"; then echo $exec_prefix fi if test "$lib_gthread" = "yes"; then glib_cflags="$glib_thread_cflags" glib_libs="$glib_thread_libs" fi if test "$echo_cflags" = "yes"; then # echo -I/usr/include/gtk-1.2 $glib_cflags -I/usr/X11R6/include echo `pkg-config gtk+-2.0 --cflags` fi if test "$echo_libs" = "yes"; then my_glib_libs= libdirs=-L/usr/lib for i in $glib_libs ; do if test $i != -L/usr/lib ; then if test -z "$my_glib_libs" ; then my_glib_libs="$i" else my_glib_libs="$my_glib_libs $i" fi fi done # echo $libdirs -L/usr/X11R6/lib -lgtk -lgdk $my_glib_libs -lXext -lX11 -lm echo `pkg-config gtk+-2.0 --libs` fi --=-CYk0BJZM1LkgXCEhrsBr Content-ID: 1012914763.1129.0.camel@flavio.maqplas Content-Description: Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile_new Content-Transfer-Encoding: 7bit # Generated automatically from Makefile.in by configure. # Makefile.in generated automatically by automake 1.4a from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. SHELL = /bin/sh srcdir = . top_srcdir = .. prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin libexecdir = ${exec_prefix}/libexec datadir = ${prefix}/share sysconfdir = ${prefix}/etc sharedstatedir = ${prefix}/com localstatedir = ${prefix}/var libdir = ${exec_prefix}/lib infodir = ${prefix}/info mandir = ${prefix}/man includedir = ${prefix}/include oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/ihm_princ pkglibdir = $(libdir)/ihm_princ pkgincludedir = $(includedir)/ihm_princ top_builddir = .. ACLOCAL = aclocal -I macros AUTOCONF = autoconf AUTOMAKE = automake AUTOHEADER = autoheader INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL_PROGRAM} INSTALL_STRIP_FLAG = transform = s,x,x, NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_alias = i686-pc-linux host_triplet = i686-pc-linux-gnu BUILD_INCLUDED_LIBINTL = no CATALOGS = CATOBJEXT = .gmo CC = gcc DATADIRNAME = share GENCAT = gencat GLIBC21 = yes GMOFILES = GMSGFMT = /usr/bin/msgfmt GNOMEGNORBA_LIBS = -rdynamic -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOMEUI_LIBS = -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOME_APPLETS_LIBS = GNOME_CAPPLET_LIBS = GNOME_CONFIG = /usr/bin/gnome-config GNOME_DOCKLETS_LIBS = GNOME_INCLUDEDIR = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNOME_LIBDIR = -rdynamic -L/usr/lib -L/usr/X11R6/lib GNOME_LIBS = -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNORBA_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNORBA_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GTKXMHTML_LIBS = -rdynamic -lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 GTK_CONFIG = /usr/bin/gtk-config GTK_LIBS = -lSM -lICE -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 INSTOBJEXT = .mo INTLBISON = bison INTLLIBS = INTLOBJS = INTL_LIBTOOL_SUFFIX_PREFIX = LIBICONV = MAKEINFO = makeinfo MKINSTALLDIRS = ./mkinstalldirs MSGFMT = /usr/bin/msgfmt ORBIT_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib/include -I/usr/include ORBIT_CONFIG = /usr/bin/orbit-config ORBIT_IDL = /usr/bin/orbit-idl ORBIT_LIBS = -L/usr/lib -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lglib -lnsl -lm PACKAGE = ihm_princ POFILES = POSUB = po PTHREAD_LIB = -lpthread RANLIB = ranlib USE_INCLUDED_LIBINTL = no USE_NLS = yes VERSION = 0.1 XPM_LIBS = -lXpm ZVT_LIBS = -rdynamic -lzvt -lutil -lSM -lICE -lgdk_imlib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm cflags_set = yes cxxflags_set = @cxxflags_set@ INCLUDES = -I$(top_srcdir)/intl $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = main.c support.c support.h interface.c interface.h callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = PROGRAMS = $(bin_PROGRAMS) DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. CPPFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 LDFLAGS = LIBS = ihm_princ_OBJECTS = main.o support.o interface.o callbacks.o auxiliar.o \ parametro.o ihm_princ_DEPENDENCIES = ihm_princ_LDFLAGS = CFLAGS = -g -O2 -Wall -Wunused COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best DEP_FILES = .deps/auxiliar.P .deps/callbacks.P .deps/interface.P \ .deps/main.P .deps/parametro.P .deps/support.P SOURCES = $(ihm_princ_SOURCES) OBJECTS = $(ihm_princ_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) distclean-binPROGRAMS: maintainer-clean-binPROGRAMS: install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) list='$(bin_PROGRAMS)'; for p in $$list; do \ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: ihm_princ: $(ihm_princ_OBJECTS) $(ihm_princ_DEPENDENCIES) @rm -f ihm_princ $(LINK) $(ihm_princ_LDFLAGS) $(ihm_princ_OBJECTS) $(ihm_princ_LDADD) $(LIBS) tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = src distdir: $(DISTFILES) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(top_distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; \ cd $(top_srcdir) \ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) -include $(DEP_FILES) mostlyclean-depend: clean-depend: distclean-depend: -rm -rf .deps maintainer-clean-depend: %.o: %.c @echo '$(COMPILE) -c $<'; \ $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.lo: %.c @echo '$(LTCOMPILE) -c $<'; \ $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ < .deps/$(*F).pp > .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-binPROGRAMS install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-binPROGRAMS uninstall: uninstall-am all-am: Makefile $(PROGRAMS) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ mostlyclean-tags mostlyclean-depend mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \ distclean-depend distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-tags \ maintainer-clean-depend maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile tags mostlyclean-tags distclean-tags \ clean-tags maintainer-clean-tags distdir mostlyclean-depend \ distclean-depend clean-depend maintainer-clean-depend info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: --=-CYk0BJZM1LkgXCEhrsBr-- From inimss@yahoo.com Tue Feb 5 09:03:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by mail.gnome.org (Postfix) with SMTP id 61A9918162 for ; Tue, 5 Feb 2002 09:03:38 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 5 Feb 2002 14:03:31 -0000 Message-ID: <3C5FE62B.719F9B40@yahoo.com> Date: Tue, 05 Feb 2002 19:33:24 +0530 From: Dino CK X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: [INIMSS] How to add a pixmap to a toggle button? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Anybody please help me in adding a pixmap to a toggle button. I added it from the glade interface but it is not showing up not when compiled and run, or while editing in glade. Thankyou Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From lnx1138@us.ibm.com Tue Feb 5 09:50:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.129]) by mail.gnome.org (Postfix) with ESMTP id AFDA6182EE for ; Tue, 5 Feb 2002 09:50:04 -0500 (EST) Received: from westrelay01.boulder.ibm.com (westrelay01.boulder.ibm.com [9.99.140.22]) by e31.co.us.ibm.com (8.9.3/8.9.3) with ESMTP id JAA69826 for ; Tue, 5 Feb 2002 09:46:55 -0500 Received: from chavez.austin.ibm.com (chavez.austin.ibm.com [9.53.216.228]) by westrelay01.boulder.ibm.com (8.11.1m3/NCO v5.01) with ESMTP id g15Eo3T64486 for ; Tue, 5 Feb 2002 07:50:03 -0700 Subject: Re: [INIMSS] How to avoid focusing on CList column titles. From: Luciano Chavez To: gtk-list@gnome.org In-Reply-To: <200202051221.g15CLpF01961@localhost.localdomain> References: <200202051221.g15CLpF01961@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 05 Feb 2002 08:49:49 -0600 Message-Id: <1012920590.2358.23.camel@chavez> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, 2002-02-05 at 06:21, Dino wrote: > Hi, > > How can I avoid the focusing of the column titles in a CList when i go thru the widgets in a window using the TAB key. > > Thank You > Dino CK > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list Dino, Try gtk_clist_column_titles_passive (). -- regards, Luciano Chavez lnx1138@us.ibm.com http://sf.net/projects/evms From hp@redhat.com Tue Feb 5 11:12:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 08CD918283 for ; Tue, 5 Feb 2002 11:12:02 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g15GBxY17829; Tue, 5 Feb 2002 11:11:59 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Volkan Arslan Cc: gtk-list@gnome.org Subject: Re: Release date of GTK+ 2.0 ? References: <3C5FA856.F49CECF1@gmx.net> From: Havoc Pennington Date: 05 Feb 2002 11:11:58 -0500 In-Reply-To: <3C5FA856.F49CECF1@gmx.net> Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Volkan Arslan writes: > > does someone know, when GTK+ 2.0 will be released ? I have looked at > www.gtk.org, but couldn't find anything regarding the release date of > GTK+ 2.0. > Look at developer.gnome.org/dotplan, it will be out before GNOME 2 is. Havoc From Volkan_Arslan@gmx.net Tue Feb 5 11:16:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id 5FE861841A for ; Tue, 5 Feb 2002 11:16:13 -0500 (EST) Received: (qmail 11472 invoked by uid 0); 5 Feb 2002 16:16:12 -0000 Received: from ru-pc11.inf.ethz.ch (HELO gmx.net) (129.132.12.191) by mail.gmx.net (mp011-rz3) with SMTP; 5 Feb 2002 16:16:12 -0000 Message-ID: <3C60053D.1BA7880B@gmx.net> Date: Tue, 05 Feb 2002 17:15:57 +0100 From: Volkan Arslan X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: Release date of GTK+ 2.0 ? References: <3C5FA856.F49CECF1@gmx.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Havoc, thanks for the information. Regards, Volkan Havoc Pennington wrote: > Volkan Arslan writes: > > > > does someone know, when GTK+ 2.0 will be released ? I have looked at > > www.gtk.org, but couldn't find anything regarding the release date of > > GTK+ 2.0. > > > > Look at developer.gnome.org/dotplan, it will be out before GNOME 2 is. > > Havoc From leidola@newcon.de Tue Feb 5 16:59:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (mail-1.newcon.de [195.145.56.9]) by mail.gnome.org (Postfix) with ESMTP id 8DA1B186CB for ; Tue, 5 Feb 2002 16:59:38 -0500 (EST) Received: from [213.70.108.83] ([213.70.108.83]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id WAA31184; Tue, 5 Feb 2002 22:59:30 +0100 Subject: Re: Run time error in gtk1.3 application From: Olaf Leidinger To: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares , GTK Mailing List In-Reply-To: <1012927235.1141.4.camel@flavio.maqplas> References: <1012915087.1142.1.camel@flavio.maqplas> <1012919654.791.18.camel@attic> <1012927235.1141.4.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution/0.12 (Preview Release) Date: 05 Feb 2002 23:01:55 +0100 Message-Id: <1012946521.2645.14.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Well, I think you need something like gnome 2.0.=20 Your gnome version (and mine too) uses gtk+-1.2 and when you link your app with the gnome libs it will also use gtk+-1.2 Have a look at=20 gnome-config --libs gnomeui or =09 gnome-config --libs gnome glib+-1.2 and gtk+-1.2 are always linked to your executable. But have a look at this http://developer.gnome.org/dotplan/porting/ it might help you with your work. Ciao, Olaf Am 05 Feb 2002 14:40:34 -0200 schrieb Fl=E1vio Alberto Lopes Soares: > Is true that to compile gtk+2.0 I need Gnome 2.0 ? >=20 > If true I'm crashing my head in wall ! >=20 > I need to install all gnome2.0 to correctly compile my program ????? >=20 > Thanks for all help >=20 > Flavio Alberto=20 >=20 >=20 From doc@deadvirgins.org.uk Tue Feb 5 18:55:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand3.global.net.uk (sand3.global.net.uk [195.147.246.249]) by mail.gnome.org (Postfix) with ESMTP id 81AB918D44 for ; Tue, 5 Feb 2002 18:55:33 -0500 (EST) Received: from p6ds08a06.client.global.net.uk ([195.147.216.110] helo=deadvirgins.org.uk) by sand3.global.net.uk with esmtp (Exim 3.22 #1) id 16YFQx-00073x-00 for gtk-list@gnome.org; Tue, 05 Feb 2002 23:55:32 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g15NtTs00427 for gtk-list@gnome.org; Tue, 5 Feb 2002 23:55:29 GMT Message-Id: <200202052355.g15NtTs00427@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: gtk-list@gnome.org Subject: auto repeat Date: Tue, 5 Feb 2002 23:55:28 +0000 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Can anyone give me some pointers on implementing a form of auto-repeat...? I've looked through the FAQ and the Tutorial, but it's only mentioned as a "things to add later" when talking about designing custom widgets... I don't want to add repeat to buttons or similar type widgets, but instead to a GDK drawing area. I have 'hotspots' in my drawing area that the user can click in to increment a value, and I'd like to have an autorepeat so the user doesn't wear his mouse button out.... Anyone give me any pointers...? -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From pbd@op.net Tue Feb 5 19:01:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id CCB0318D44 for ; Tue, 5 Feb 2002 19:01:08 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-43.phlpa.fast.net [209.92.96.43]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id TAA21564; Tue, 5 Feb 2002 19:01:04 -0500 (EST) Message-Id: <200202060001.TAA21564@renoir.op.net> To: doc@deadvirgins.org.uk Cc: gtk-list@gnome.org Subject: Re: auto repeat In-reply-to: Your message of "Tue, 05 Feb 2002 23:55:28 GMT." <200202052355.g15NtTs00427@deadvirgins.org.uk> Date: Tue, 05 Feb 2002 18:59:41 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > >Hi > >Can anyone give me some pointers on implementing a form of auto-repeat...? >I've looked through the FAQ and the Tutorial, but it's only mentioned as a >"things to add later" when talking about designing custom widgets... > >I don't want to add repeat to buttons or similar type widgets, but instead to >a GDK drawing area. I have 'hotspots' in my drawing area that the user can >click in to increment a value, and I'd like to have an autorepeat so the user >doesn't wear his mouse button out.... > >Anyone give me any pointers...? look at the spinbutton code, which users timers to achieve this. i have a generic C++ class called AutoSpinner which splits the spinbutton code out into a distinct object that can be used for other things besides spinbuttons. let me know if you're interested. --p From inodal@teleline.es Tue Feb 5 20:05:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp5.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 12788182D6 for ; Tue, 5 Feb 2002 20:05:25 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp5.mail.isp (Netscape Messaging Server 4.15 tsmtp5 Jul 26 2001 13:10:38) with ESMTP id GR370E00.89D for ; Wed, 6 Feb 2002 02:05:02 +0100 Message-ID: <3C608153.9050404@teleline.es> Date: Wed, 06 Feb 2002 01:05:23 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: GTK+ equivalent to Motif "XtAppProcessEvent()" Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want my aplication to stop the gtk_main() until the user press a button, which change the value of a variable called "state": while(state == EXIT_WAIT) { ....**stop gtk_main**.... } if (state == EXIT_OK) { [...] } else { [...] } ------ In Motif I used: while (state == EXIT_WAIT) XtAppProcessEvent(GB_context, XtIMAll); if (state == EXIT_OK) { [...] } else { [...] } ----- Which is the GTK+ equivalent? Thanks, Ignacio Nodal From seberino@dt092n42.san.rr.com Wed Feb 6 03:23:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 7B6DE183A4 for ; Wed, 6 Feb 2002 03:23:59 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNMx-00009n-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:23:55 -0800 Date: Wed, 6 Feb 2002 00:23:55 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How initialize pixmap to something besides NULL? Message-ID: <20020206002355.A588@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: For various reasons I want to initialize a pixmap (GdkPixmap*) to something besides NULL. Is there another quick and easy thing I can initialize pixmap object too? (There is a command to return a pointer to a new pixmap object but I did not understand the first arg.) Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 03:25:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 3142E1879A for ; Wed, 6 Feb 2002 03:25:50 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNOo-00009r-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:25:50 -0800 Date: Wed, 6 Feb 2002 00:25:50 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: What's purpose of returned boolean in expose/configure event functions? Message-ID: <20020206002550.B588@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Examples of expose and configure event functions regarding pixmaps seem to return either TRUE or FALSE. What is the meaning of this return value and the purpose? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 03:29:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id B2CCB18170 for ; Wed, 6 Feb 2002 03:29:43 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNSZ-0000AD-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:29:43 -0800 Date: Wed, 6 Feb 2002 00:29:43 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: Please explain 1st arg of configure & expose event functions... Message-ID: <20020206002943.C588@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Examples of configure and expose event functions have a mysterious GtkWidget for the first arg. I cannot seem to discern what it is. Please explain... Here is an example of an expose event function: gint middleMassTimeSeriesPlotPatch(GtkWidget* widget, GdkEventExpose* event) { gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], Pixmaps::middleMassTimeSeriesPlot, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return FALSE; }; Here is an example of a configure event function: gint middleMassTimeSeriesPlotDraw(GtkWidget* widget, GdkEventConfigure* event) { gdk_pixmap_unref(Pixmaps::middleMassTimeSeriesPlot); Pixmaps::middleMassTimeSeriesPlot = gdk_pixmap_new(widget->window, widget->allocation.width, widget->allocation.height, -1); gdk_draw_rectangle(Pixmaps::middleMassTimeSeriesPlot, widget->style->black_gc, TRUE, 0, 0, widget->allocation.width, widget->allocation.height); gdk_draw_line(Pixmaps::middleMassTimeSeriesPlot, widget->style->white_gc, 0, 0, widget->allocation.width, widget->allocation.height); gdk_draw_line(Pixmaps::middleMassTimeSeriesPlot, widget->style->white_gc, 0, widget->allocation.height, widget->allocation.width, 0); return TRUE; }; What is all this widget->allocation.height, widget->window stuff and where did it come from and why is it useful? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 03:32:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 4E82E187D4 for ; Wed, 6 Feb 2002 03:32:38 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNVO-0000Ad-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:32:38 -0800 Date: Wed, 6 Feb 2002 00:32:38 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: vertical or rotated gtk_label_new("TEXT") possible??? Message-ID: <20020206003238.A656@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible to have gtk_label_new("TEXT") be vertical or rotated??? Since one cannot put letters in a pixmap this is my only hope for vertical/sideways letters. Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From blue_pion@hotmail.com Wed Feb 6 03:42:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f62.pav1.hotmail.com [64.4.31.62]) by mail.gnome.org (Postfix) with ESMTP id 62AD518472 for ; Wed, 6 Feb 2002 03:42:53 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 6 Feb 2002 00:42:52 -0800 Received: from 137.132.3.9 by pv1fd.pav1.hotmail.msn.com with HTTP; Wed, 06 Feb 2002 08:42:52 GMT X-Originating-IP: [137.132.3.9] From: "Ricky Foo" To: gtk-list@gnome.org Subject: help! Date: Wed, 06 Feb 2002 08:42:52 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 06 Feb 2002 08:42:52.0495 (UTC) FILETIME=[43BA55F0:01C1AEEA] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I have this graph that is to show the traffic throughput. It updates every 2 secs. What should be the correct way to do this so that the axes can update dynamically, i.e it progress from right to left, showing the time. The diagram below shows the x-axis. now: ---+----+----+----+---- 20 22 24 26 later: ---+----+----+----+---- 22 24 26 28 Ricky _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From root@localhost.localdomain Wed Feb 6 04:09:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.225.173]) by mail.gnome.org (Postfix) with ESMTP id 5CE8C185B0 for ; Wed, 6 Feb 2002 04:09:15 -0500 (EST) Received: (from root@localhost) by localhost.localdomain (8.11.2/8.11.2) id g16997q03907; Wed, 6 Feb 2002 14:39:07 +0530 Date: Wed, 6 Feb 2002 14:39:07 +0530 Message-Id: <200202060909.g16997q03907@localhost.localdomain> To: gtk-list@gnome.org From: inimss@yahoo.com Subject: Problem with select_row signal of CList Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). Please help me to find out a way to make it trigger the signal. ThankYou Dino CK From root@localhost.localdomain Wed Feb 6 04:10:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.225.173]) by mail.gnome.org (Postfix) with ESMTP id 85BEC186D6 for ; Wed, 6 Feb 2002 04:10:26 -0500 (EST) Received: (from root@localhost) by localhost.localdomain (8.11.2/8.11.2) id g169A1g03915; Wed, 6 Feb 2002 14:40:01 +0530 Date: Wed, 6 Feb 2002 14:40:01 +0530 Message-Id: <200202060910.g169A1g03915@localhost.localdomain> To: gtk-list@gnome.org From: inimss@yahoo.com Subject: [INIMSS] Problem with select_row signal of CList Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). Please help me to find out a way to make it trigger the signal. ThankYou Dino CK From coframi.balr001@rd.francetelecom.com Wed Feb 6 04:53:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id 1B47418132 for ; Wed, 6 Feb 2002 04:53:42 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M416640>; Wed, 6 Feb 2002 10:52:54 +0100 Message-ID: From: zze-coframi balr001 To: "'inimss@yahoo.com'" , gtk-list@gnome.org Subject: RE: [INIMSS] Problem with select_row signal of CList Date: Wed, 6 Feb 2002 10:53:08 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-94cab528-1acd-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-94cab528-1acd-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AEF4.146151A0" ------_=_NextPart_001_01C1AEF4.146151A0 Content-Type: text/plain Hello, try GTK_SELECTION_BROWSE Isabelle -----Message d'origine----- De : inimss@yahoo.com [mailto:inimss@yahoo.com] Envoye : mercredi 6 fevrier 2002 10:10 A : gtk-list@gnome.org Objet : [INIMSS] Problem with select_row signal of CList Hi In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). Please help me to find out a way to make it trigger the signal. ThankYou Dino CK _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AEF4.146151A0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] Problem with select_row signal of CList

Hello,

try GTK_SELECTION_BROWSE

Isabelle

-----Message d'origine-----
De : inimss@yahoo.com [mailto:inimss@yahoo.com]
Envoye : mercredi 6 fevrier 2002 10:10
A : gtk-list@gnome.org
Objet : [INIMSS] Problem with select_row signal of = CList


Hi

In my gtk app I tried to handle the select_row signal = of GtkCList. When I changed the row selection with my mouse, it worked = fine, but when I do it with the keyboard's arrow keys, its not working, = ie the signal is not triggered for the keyboard. I had made the CList = Selection Mode to Single (glade term).

Please help me to find out a way to make it trigger = the signal.

ThankYou
Dino CK


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

------_=_NextPart_001_01C1AEF4.146151A0-- ------=_NextPartTM-000-94cab528-1acd-11d6-b1e5-00508b69ab48-- From switk@yahoo.com Wed Feb 6 06:20:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p100.localdomain (24-216-38-22.hsacorp.net [24.216.38.22]) by mail.gnome.org (Postfix) with ESMTP id 0DB6A18130 for ; Wed, 6 Feb 2002 06:20:57 -0500 (EST) Received: from [192.168.1.3] (ada.localdomain [192.168.1.3]) by p100.localdomain (8.9.3/8.9.3) with ESMTP id GAA17474 for ; Wed, 6 Feb 2002 06:28:31 -0500 Subject: Re: [INIMSS] Problem with select_row signal of CList From: Stephen Witkop To: gtk-list In-Reply-To: <200202060910.g169A1g03915@localhost.localdomain> References: <200202060910.g169A1g03915@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 06 Feb 2002 06:20:55 -0500 Message-Id: <1012994456.6610.3.camel@ada.localdomain> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-06 at 04:10, inimss@yahoo.com wrote: > Hi > > In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). > > Please help me to find out a way to make it trigger the signal. > The "select_row" signal is generated when you use the on a row, not just when it is highlighted moving through the list with the arrow keys. Stephen From John.Cupitt@ng-london.org.uk Wed Feb 6 07:13:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 6C10018A17 for ; Wed, 6 Feb 2002 07:13:16 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HN1G>; Wed, 6 Feb 2002 12:13:15 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HN1F; Wed, 6 Feb 2002 12:13:13 -0000 Message-ID: <3C611A9A.7090201@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: inodal@teleline.es Cc: gtk-list@gnome.org Subject: Re: GTK+ equivalent to Motif "XtAppProcessEvent()" Date: Wed, 6 Feb 2002 11:59:22 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal wrote: > I want my aplication to stop the gtk_main() until the user press a > button, which change the value of a variable called "state": Hi Ignacio, there are two gtk equivalents. First, you can call gtk_main() recursively. In your button callback, call gtk_main_quit(), and the enclosing gtk_main() will terminate. Second, you can call gtk_main_iteration() repeatedly, and stop when your button callback sets a flag. http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-MAIN-QUIT HTH, John ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From pbd@op.net Wed Feb 6 10:04:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 0E22F18344 for ; Wed, 6 Feb 2002 10:04:19 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA15617; Wed, 6 Feb 2002 10:04:10 -0500 (EST) Message-Id: <200202061504.KAA15617@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: vertical or rotated gtk_label_new("TEXT") possible??? In-reply-to: Your message of "Wed, 06 Feb 2002 00:32:38 PST." <20020206003238.A656@spawar.navy.mil> Date: Wed, 06 Feb 2002 10:02:55 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Is it possible to have gtk_label_new("TEXT") >be vertical or rotated??? no. X (which GDK relies on in the version of GTK+ that you are almost certainly using) provides no facilities for text rotation. if you want to do this, you have to put each letter into a pixmap using tricks that will be revealed in the file gnome-canvas-text-item.c in the gnome canvas code in GNOME CVS. its ugly, disgusting stuff. then you can pack the pixmaps into boxes or whatever. i don't know if Pango, which GTK+ 1.3/2.0 uses for text can do a better job on this. i have a feeling it can, but i am not sure. From pbd@op.net Wed Feb 6 10:07:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3018C18F78 for ; Wed, 6 Feb 2002 10:07:41 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA16080; Wed, 6 Feb 2002 10:07:38 -0500 (EST) Message-Id: <200202061507.KAA16080@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: Please explain 1st arg of configure & expose event functions... In-reply-to: Your message of "Wed, 06 Feb 2002 00:29:43 PST." <20020206002943.C588@spawar.navy.mil> Date: Wed, 06 Feb 2002 10:06:24 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Examples of configure and expose event functions >have a mysterious GtkWidget for the first arg. >I cannot seem to discern what it is. often, a signal is emitted because of an event occuring in/on the widget. the handler(s) for the signal receive a pointer to the widget as their first argument. this allows them to know which widget they are dealing with (since the same function might be used to handle similar signals for many different widgets). >What is all this widget->allocation.height, widget->window stuff and where >did it come from and why is it useful? if you are going to do "low level" drawing in a widget, you need to know how big the widget is, and you need access to the GdkWindow that is actually the object in which drawing occurs. these are members of all GtkWidgets (though the GdkWindow member is only valid after the widget has been realized - it corresponds (when using XWindow) to an actual X window). --p From pbd@op.net Wed Feb 6 10:10:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D007318CB1 for ; Wed, 6 Feb 2002 10:10:30 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA16411; Wed, 6 Feb 2002 10:10:27 -0500 (EST) Message-Id: <200202061510.KAA16411@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? In-reply-to: Your message of "Wed, 06 Feb 2002 00:25:50 PST." <20020206002550.B588@spawar.navy.mil> Date: Wed, 06 Feb 2002 10:09:12 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Examples of expose and configure event functions >regarding pixmaps seem to return either TRUE or FALSE. > >What is the meaning of this return value and the purpose? *all* signal handlers for signals that have a non-void return type must return TRUE or FALSE to indicate whether or not they have handled the signal. its up to the handler code to decide what "handled" might mean, given the following awareness of what their return value will mean: if they return TRUE, then generally other handlers that were connected later will not be called. if they return FALSE, the other handlers will be called. the way this all works is a bit muddied in GTK+ 1.2; it appears to be much cleaner in GTK+ 1.3/2.0. --p From davidgn@servidor.unam.mx Wed Feb 6 10:23:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id E4C9218CC4 for ; Wed, 6 Feb 2002 10:23:48 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.176]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g16FMXk06370 for ; Wed, 6 Feb 2002 09:22:34 -0600 (CST) Date: Wed, 6 Feb 2002 09:39:19 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: Button press Message-Id: <20020206093919.003da1d9.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times 20 times at once or so. (The button is supossed to increment the content of a label). How can i make it so that if i held the button pressed, the signal will repeat itself, but with a small, but noticeable, delay? or is this in the FAQ? Thank you in advance. -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From sven@gimp.org Wed Feb 6 10:40:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id D759818344 for ; Wed, 6 Feb 2002 10:40:38 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16YUBK-0002zG-00; Wed, 06 Feb 2002 16:40:22 +0100 To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: Button press References: <20020206093919.003da1d9.davidgn@servidor.unam.mx> From: Sven Neumann Date: 06 Feb 2002 16:40:22 +0100 In-Reply-To: <20020206093919.003da1d9.davidgn@servidor.unam.mx> Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, David Eduardo Gomez Noguera writes: > I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. > Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times 20 times at once or so. (The button is supossed to increment the content of a label). > How can i make it so that if i held the button pressed, the signal will repeat itself, but with a small, but noticeable, delay? or is this in the FAQ? > use a timeout: http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-TIMEOUT-ADD Salut, Sven From pbd@op.net Wed Feb 6 10:41:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id EA67019047 for ; Wed, 6 Feb 2002 10:41:09 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA20200; Wed, 6 Feb 2002 10:41:06 -0500 (EST) Message-Id: <200202061541.KAA20200@renoir.op.net> To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: Button press In-reply-to: Your message of "Wed, 06 Feb 2002 09:39:19 CST." <20020206093919.003da1d9.davidgn@servidor.unam.mx> Date: Wed, 06 Feb 2002 10:39:51 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I wanted to make a button behave lika a keyboard key, in that if i leave the k >ey pressed, it will repeat. >Thus i connected a button widget to a pressed signal, but when i press it its >like sometimes it was kust once, and other times 20 times at once or so. (The >button is supossed to increment the content of a label). >How can i make it so that if i held the button pressed, the signal will repea >t itself, but with a small, but noticeable, delay? or is this in the FAQ? search the archives for yesterday. i answered a similar question then. From sven@gimp.org Wed Feb 6 10:51:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 5E0EF18F22 for ; Wed, 6 Feb 2002 10:51:32 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16YU93-0002z6-00; Wed, 06 Feb 2002 16:38:01 +0100 To: Paul Davis Cc: Chris Seberino , gtk-list@gnome.org Subject: Re: vertical or rotated gtk_label_new("TEXT") possible??? References: <200202061504.KAA15617@renoir.op.net> From: Sven Neumann Date: 06 Feb 2002 16:38:01 +0100 In-Reply-To: <200202061504.KAA15617@renoir.op.net> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Paul Davis writes: > >Is it possible to have gtk_label_new("TEXT") > >be vertical or rotated??? > > no. X (which GDK relies on in the version of GTK+ that you are almost > certainly using) provides no facilities for text rotation. this is not the full truth since X11R6 does support rotated glyphs, see http://www.faqs.org/faqs/x-faq/part7/section-45.html > i don't know if Pango, which GTK+ 1.3/2.0 uses for text can do a > better job on this. i have a feeling it can, but i am not sure. while the layers below Pango probably have this feature (at least FreeType2 allows to specify a transformation matrix), Pango itself has no API for rotations or other transformations. Salut, Sven From pbd@op.net Wed Feb 6 10:56:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 29C8418D92 for ; Wed, 6 Feb 2002 10:56:29 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA21863; Wed, 6 Feb 2002 10:56:24 -0500 (EST) Message-Id: <200202061556.KAA21863@renoir.op.net> To: Sven Neumann Cc: Chris Seberino , gtk-list@gnome.org Subject: Re: vertical or rotated gtk_label_new("TEXT") possible??? In-reply-to: Your message of "06 Feb 2002 16:38:01 +0100." Date: Wed, 06 Feb 2002 10:55:10 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> >Is it possible to have gtk_label_new("TEXT") >> >be vertical or rotated??? >> >> no. X (which GDK relies on in the version of GTK+ that you are almost >> certainly using) provides no facilities for text rotation. > >this is not the full truth since X11R6 does support rotated glyphs, see > > http://www.faqs.org/faqs/x-faq/part7/section-45.html rotated glyphs do not make for rotated text :) to get vertical text you still have to place each glyph individually. xvertext can take care of this, i suppose. From davidgn@servidor.unam.mx Wed Feb 6 11:14:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id E879418FA4 for ; Wed, 6 Feb 2002 11:14:10 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.176]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g16GCnk26012 for ; Wed, 6 Feb 2002 10:12:51 -0600 (CST) Date: Wed, 6 Feb 2002 10:29:59 -0600 From: David Eduardo Gomez Noguera To: gtk-list@gnome.org Subject: Re: Button press Message-Id: <20020206102959.1b232283.davidgn@servidor.unam.mx> In-Reply-To: References: <20020206093919.003da1d9.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 06 Feb 2002 16:40:22 +0100 Sven Neumann wrote: > Hi, > > David Eduardo Gomez Noguera writes: > > > I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. > > Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times 20 times at once or so. (The button is supossed to increment the content of a label). > > How can i make it so that if i held the button pressed, the signal will repeat itself, but with a small, but noticeable, delay? or is this in the FAQ? > > > > use a timeout: > http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-TIMEOUT-ADD > > Thank you. I was just thinking what would be the best way of action. Have the function registered on a button pressed event, and removed on a button realeased event? or have a gtlobal static variable set to TRUE, and the function registered on a button press, and have the button release set the var to FALSE? (that variable would be the return fariable. I guess the firstone is better (more secure and less error prone), but would like to hear some advices. Thank you again. > Salut, Sven > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From pbd@op.net Wed Feb 6 11:20:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D0EBA190D0 for ; Wed, 6 Feb 2002 11:20:17 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA24829; Wed, 6 Feb 2002 11:20:14 -0500 (EST) Message-Id: <200202061620.LAA24829@renoir.op.net> To: davidgn@servidor.unam.mx Cc: gtk-list@gnome.org Subject: Re: Button press In-reply-to: Your message of "Wed, 06 Feb 2002 10:29:59 CST." <20020206102959.1b232283.davidgn@servidor.unam.mx> Date: Wed, 06 Feb 2002 11:19:01 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Thank you. >I was just thinking what would be the best way of action. >Have the function registered on a button pressed event, and removed on a butto >n realeased event? >or have a gtlobal static variable set to TRUE, and the function registered on >a button press, and have the button release set the var to FALSE? (that variab >le would be the return fariable. >I guess the firstone is better (more secure and less error prone), but would l >ike to hear some advices. globals are always a bad idea. look at the code in gtkspinbutton.c --p From hp@redhat.com Wed Feb 6 12:11:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 09774182C5 for ; Wed, 6 Feb 2002 12:11:04 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g16HAr624653; Wed, 6 Feb 2002 12:10:53 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "satyajit kanungo" Cc: Subject: Re: gtk+1.3 library References: From: Havoc Pennington Date: 06 Feb 2002 12:10:53 -0500 In-Reply-To: Message-ID: Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "satyajit kanungo" writes: > Well, I see gtk+ using lot of deprecated calls. I also saw many patches submitted > in bugzilla (#52790) but not yet gone into the source. > > I have replaced all the GtkType & GtkTypeInfo to GType & GTypeInfo. > The attached diff contains the changes. I 'm planning to do all signal changes > (replacing gtk_signal_* calls) also in the library. > > Expecting your comments. Thanks! Please be sure your patches are in bugzilla, so they won't be forgotten. Havoc From inodal@teleline.es Wed Feb 6 13:03:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp4.mail.isp (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id A964318761 for ; Wed, 6 Feb 2002 13:03:25 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp4.mail.isp (Netscape Messaging Server 4.15 tsmtp4 Jul 26 2001 13:10:38) with ESMTP id GR4I4Y00.5RB for ; Wed, 6 Feb 2002 19:02:58 +0100 Message-ID: <3C616FE8.4060309@teleline.es> Date: Wed, 06 Feb 2002 18:03:20 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: don't wanna see this CRITICAL Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way to avoid this message from being prompt? ** CRITICAL **: file gtkglarea.c: line 184 (gtk_gl_area_make_current): assertion `GTK_WIDGET_REALIZED(gl_area)' failed. I just want to call glViewport() in my InitGL() function. I know my "gl_area" isn't still realized, but I don't care... Does anybody know if I can call glViewport() without caring of the if (gtk_gl_area_make_current (glarea)) result?? I'm only using one GtkGLArea in my program. Thanks Ignacio Nodal From seberino@dt092n42.san.rr.com Wed Feb 6 13:05:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id DAA4A18F9A for ; Wed, 6 Feb 2002 13:04:59 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YWRE-00004u-00; Wed, 06 Feb 2002 10:04:56 -0800 Date: Wed, 6 Feb 2002 10:04:56 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? Message-ID: <20020206100456.A266@spawar.navy.mil> References: <20020206002550.B588@spawar.navy.mil> <200202061510.KAA16411@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202061510.KAA16411@renoir.op.net>; from pbd@op.net on Wed, Feb 06, 2002 at 10:09:12AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Feb 06, 2002 at 10:09:12AM -0500, Paul Davis wrote: > >Examples of expose and configure event functions > >regarding pixmaps seem to return either TRUE or FALSE. > > > >What is the meaning of this return value and the purpose? > > *all* signal handlers for signals that have a non-void return type > must return TRUE or FALSE to indicate whether or not they have > handled the signal. its up to the handler code to decide what > "handled" might mean, given the following awareness of what their > return value will mean: > > if they return TRUE, then generally other handlers that were connected > later will not be called. if they return FALSE, the other handlers > will be called. > > the way this all works is a bit muddied in GTK+ 1.2; it appears to be > much cleaner in GTK+ 1.3/2.0. > > --p Thanks for reply. So it sounds like some signal handlers are only the first of many functions to handle an event. (Most of which we don't see or deal with?) If our function does ALL work then we return TRUE but if it is only one of many then we return FALSE. How are we to know if there are other functions GTK+ will want to call for an event? Thanks again, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 13:13:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id AF08B18246 for ; Wed, 6 Feb 2002 13:13:31 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA07323; Wed, 6 Feb 2002 13:13:28 -0500 (EST) Message-Id: <200202061813.NAA07323@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? In-reply-to: Your message of "Wed, 06 Feb 2002 10:04:56 PST." <20020206100456.A266@spawar.navy.mil> Date: Wed, 06 Feb 2002 13:12:15 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Thanks for reply. So it sounds like some signal handlers >are only the first of many functions to handle an event. >(Most of which we don't see or deal with?) >If our function does ALL work then we return TRUE >but if it is only one of many then we return FALSE. >How are we to know if there are other functions GTK+ >will want to call for an event? you don't. thats why you have to decide if you think the signal has been handled or not. that will depend hugely on the circumstances of your program. sometimes i know i have to return TRUE, sometimes i know i have to return FALSE and sometimes it really doesn't matter. for GTK+ 1.2, there happens to be a default handler which will be called whether or not yours returns TRUE or FALSE. but my understanding is that in 1.3/2.0, returning TRUE will stop even the default handler from being called. there are also so-called "after" handlers (connected with gtk_signal_connect_after()) which are called after the default handler. its not clear to me if these will still be called in 1.3/2.0 if a "before" handler returns TRUE. owen/havoc and others will know. --p From pbd@op.net Wed Feb 6 13:14:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id EFFDA18E29 for ; Wed, 6 Feb 2002 13:14:34 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA07411; Wed, 6 Feb 2002 13:14:27 -0500 (EST) Message-Id: <200202061814.NAA07411@renoir.op.net> To: Ignacio Nodal Cc: GTK-List Subject: Re: don't wanna see this CRITICAL In-reply-to: Your message of "Wed, 06 Feb 2002 18:03:20 GMT." <3C616FE8.4060309@teleline.es> Date: Wed, 06 Feb 2002 13:13:15 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Is there any way to avoid this message from being prompt? > >** CRITICAL **: file gtkglarea.c: line 184 (gtk_gl_area_make_current): >assertion `GTK_WIDGET_REALIZED(gl_area)' failed. > > >I just want to call glViewport() in my InitGL() function. I know my >"gl_area" isn't still realized, but I don't care... you don't, but gtkglarea.c does. just call gtk_widget_realize() on your glarea before calling InitGL(). --p From seberino@dt092n42.san.rr.com Wed Feb 6 13:22:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F12B91821B for ; Wed, 6 Feb 2002 13:22:08 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YWhL-00005w-00; Wed, 06 Feb 2002 10:21:35 -0800 Date: Wed, 6 Feb 2002 10:21:35 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: Please explain 1st arg of configure & expose event functions... Message-ID: <20020206102135.B266@spawar.navy.mil> References: <20020206002943.C588@spawar.navy.mil> <200202061507.KAA16080@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202061507.KAA16080@renoir.op.net>; from pbd@op.net on Wed, Feb 06, 2002 at 10:06:24AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Feb 06, 2002 at 10:06:24AM -0500, Paul Davis wrote: > >Examples of configure and expose event functions > >have a mysterious GtkWidget for the first arg. > >I cannot seem to discern what it is. > > often, a signal is emitted because of an event occuring in/on the > widget. the handler(s) for the signal receive a pointer to the widget > as their first argument. this allows them to know which widget they > are dealing with (since the same function might be used to handle > similar signals for many different widgets). > > >What is all this widget->allocation.height, widget->window stuff and where > >did it come from and why is it useful? > > if you are going to do "low level" drawing in a widget, you need to > know how big the widget is, and you need access to the GdkWindow that > is actually the object in which drawing occurs. these are members of > all GtkWidgets (though the GdkWindow member is only valid after the > widget has been realized - it corresponds (when using XWindow) to an > actual X window). > > --p P. Thanks again! This widget that is the first argument seems to be the window that _contains_ the pixmap drawing from what you are saying. I'm confused because some elements of this window object are used to give information about the _pixmap_?!?!? Let me explain if you don't mind... I know that following command ends up drawing a rectangle in the pixmap which is NOT the same size as the window it is in. Yet, notice that all dimensions given are the dimensions of the window?!?!? (This is inside a configure event signal handler so widget is the first arg we are talking about.) gdk_draw_rectangle(Pixmaps::middleMassTimeSeriesPlot, widget->style->black_gc, TRUE, 0, 0, widget->allocation.width, widget->allocation.height); And... The following command redraws a pixmap after an expose event. Notice the second argument seems to be saying "Use the style of the widget (window)". Shouldn't we be using the "style" of the pixmap?? (By the way, unrelated: why do we need event->area.x * event->area.y args twice?) gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], Pixmaps::powerSpectralDensityPlot, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 13:47:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 156AB180E8 for ; Wed, 6 Feb 2002 13:47:05 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA11202; Wed, 6 Feb 2002 13:47:00 -0500 (EST) Message-Id: <200202061847.NAA11202@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: Please explain 1st arg of configure & expose event functions... In-reply-to: Your message of "Wed, 06 Feb 2002 10:21:35 PST." <20020206102135.B266@spawar.navy.mil> Date: Wed, 06 Feb 2002 13:45:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >This widget that is the first argument seems to be the window >that _contains_ the pixmap drawing from what you are saying. no. its the widget for which the event took place and for which the signal is being emitted. this mistake has caused you much later confusion. >I'm confused because some elements of this window object >are used to give information about the _pixmap_?!?!? it seems you don't have much of a grounding in XWindow basics, which is leading to your confusion (you could think of them as GDK basics, but GDK's model comes mostly from XWindow). anything that gets drawn on the screen must be drawn on an object called a "window". that includes text, lines, pixmaps, rectangles, whatever. a pixmap itself is really just a set of data containing pixel values. by itself, that won't cause anything to appear on the screen. for it to be visible, it has to be drawn. for it to be drawn, there has to be a window to draw it into. thus, the widget (i.e. a C struct) that is used to display pixmaps contains both info about the pixmap itself, and info about a window (a GdkWindow, specifically) into which it is drawn. now, this window has *nothing* to do with the kind of window you are thinking about. its just a rectangular area of the screen. specifically, it is *not* a GtkWindow (notice the "t" instead of the "d"), it is not a widget, and it is not managed by your window manager. its just a part of the screen where things may be drawn. most widgets have a window associated with them, though a number of them do not, and draw onto their container/parent's window (or their grand-parent's window, or whatever). to repeat: you cannot draw without a GdkWindow. the GdkWindow does not contain the pixmap the way a GtkWindow would, it is where the pixmap is drawn. a pixmap widget contains info about the pixmap and a pointer to the GdkWindow where the data in the pixmap will be drawn. >Shouldn't we be using the "style" of the pixmap?? (By the way, unrelated: >why do we need event->area.x * event->area.y args twice?) > > gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widge >t)], > Pixmaps::powerSpectralDensityPlot, event->area.x, event->area.y, > event->area.x, event->area.y, event->area.width, event->area.height); look at the docs for gdk_draw_pixmap, and it will be clear. --p From seberino@dt092n42.san.rr.com Wed Feb 6 14:08:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 7B21D18761 for ; Wed, 6 Feb 2002 14:08:38 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YXQr-000084-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 11:08:37 -0800 Date: Wed, 6 Feb 2002 11:08:37 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How get NEW value for "value_changed" event? (from GtkAdjustment object?) Message-ID: <20020206110837.A495@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "value_changed" events are when someone changes value with a slider bar. (I think.) This calls a signal handler that gets the GtkAdjustment object as a parameter. How/where can I pull out the value that slider bar value was changed to. I need to do something with the NEW value! Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 14:14:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 379A318761 for ; Wed, 6 Feb 2002 14:14:04 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA14219; Wed, 6 Feb 2002 14:14:00 -0500 (EST) Message-Id: <200202061914.OAA14219@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How get NEW value for "value_changed" event? (from GtkAdjustment object?) In-reply-to: Your message of "Wed, 06 Feb 2002 11:08:37 PST." <20020206110837.A495@spawar.navy.mil> Date: Wed, 06 Feb 2002 14:12:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >"value_changed" events are when someone changes >value with a slider bar. (I think.) > >This calls a signal handler that gets the GtkAdjustment >object as a parameter. How/where can I pull out the value >that slider bar value was changed to. I need to do >something with the NEW value! sorry chris. this one is definitely an RTFM. the tutorial is a good place to start. --p From seberino@dt092n42.san.rr.com Wed Feb 6 14:19:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 508F0180D9 for ; Wed, 6 Feb 2002 14:19:06 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YXaz-00009D-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 11:19:05 -0800 Date: Wed, 6 Feb 2002 11:19:05 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-ID: <20020206111905.A566@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I need to sometimes initialize an object to NULL and get this message. How avoid??? warning: ANSI C++ forbids implicit conversion from `void *' in initialization Here is the pixmap class that causes this (outside of main() ) class Pixmaps { private: public: static GdkPixmap* middleMassTimeSeriesPlot; static GdkPixmap* phaseSpacePlot; static GdkPixmap* totalTimeSeriesPlot; static GdkPixmap* powerSpectralDensityPlot; }; GdkPixmap* Pixmaps::middleMassTimeSeriesPlot = NULL; GdkPixmap* Pixmaps::phaseSpacePlot = NULL; GdkPixmap* Pixmaps::totalTimeSeriesPlot = NULL; GdkPixmap* Pixmaps::powerSpectralDensityPlot = NULL; CS -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 14:24:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id EDAB3182C5 for ; Wed, 6 Feb 2002 14:24:02 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA15372; Wed, 6 Feb 2002 14:24:00 -0500 (EST) Message-Id: <200202061924.OAA15372@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? In-reply-to: Your message of "Wed, 06 Feb 2002 11:19:05 PST." <20020206111905.A566@spawar.navy.mil> Date: Wed, 06 Feb 2002 14:22:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I need to sometimes initialize an object to NULL and get this >message. How avoid??? this is getting too close to generic programming questions for this list. if you don't understand how to fix this yourself, i worry about future progress on your software. SomeObject *someObject = (SomeObject *) 0; you should never use "NULL" in a C++ program. look it up with google to understand why. --p From inodal@teleline.es Wed Feb 6 14:24:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp10.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 96EAE180D9 for ; Wed, 6 Feb 2002 14:24:51 -0500 (EST) Received: from paranoia ([213.97.141.171]) by tsmtp10.mail.isp (Netscape Messaging Server 4.15 tsmtp10 Jul 26 2001 13:10:38) with SMTP id GR4LWS00.4WB; Wed, 6 Feb 2002 20:24:28 +0100 Message-ID: <000f01c1af43$f3fb3200$0a01a8c0@paranoia> From: "Ignacio Nodal" To: "Paul Davis" Cc: "GTK-List" References: <200202061814.NAA07411@renoir.op.net> Subject: Re: don't wanna see this CRITICAL Date: Wed, 6 Feb 2002 19:24:47 -0000 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ----- Original Message ----- From: "Paul Davis" To: "Ignacio Nodal" Cc: "GTK-List" Sent: Wednesday, February 06, 2002 6:13 PM Subject: Re: don't wanna see this CRITICAL > >Is there any way to avoid this message from being prompt? > > > >** CRITICAL **: file gtkglarea.c: line 184 (gtk_gl_area_make_current): > >assertion `GTK_WIDGET_REALIZED(gl_area)' failed. > > > > > >I just want to call glViewport() in my InitGL() function. I know my > >"gl_area" isn't still realized, but I don't care... > > you don't, but gtkglarea.c does. just call gtk_widget_realize() on > your glarea before calling InitGL(). > > --p I know it does, hehehe, but if I call gtk_widget_realize() the glarea will be shown, and I don't want it to be shown so soon.. even if I use gtk_widget_unrealize() inmediatelly after calling glViewport() I can see the glarea.Is there anyway to realize it without been shown? :) Thanks From hp@redhat.com Wed Feb 6 14:41:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 7A4C418307 for ; Wed, 6 Feb 2002 14:41:04 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g16Jf3124717; Wed, 6 Feb 2002 14:41:03 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Chris Seberino , gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? References: <200202061813.NAA07323@renoir.op.net> From: Havoc Pennington Date: 06 Feb 2002 14:41:03 -0500 In-Reply-To: <200202061813.NAA07323@renoir.op.net> Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > there are also so-called "after" handlers (connected with > gtk_signal_connect_after()) which are called after the default > handler. its not clear to me if these will still be called in 1.3/2.0 > if a "before" handler returns TRUE. owen/havoc and others will know. > No, they won't be called. TRUE stops the entire emission in 2.0. Havoc From Dexter.Filmore@gmx.de Wed Feb 6 16:15:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id AC057181A1 for ; Wed, 6 Feb 2002 16:15:28 -0500 (EST) Received: (qmail 17047 invoked by uid 0); 6 Feb 2002 21:15:27 -0000 Received: from pd952d1c4.dip.t-dialin.net (HELO shodan) (217.82.209.196) by mail.gmx.net (mp011-rz3) with SMTP; 6 Feb 2002 21:15:27 -0000 Date: Wed, 6 Feb 2002 22:13:20 +0100 From: Dexter Filmore To: gtklist Subject: wrong location? (n00b question) Message-Id: <20020206221320.07f2dfae.Dexter.Filmore@gmx.de> Organization: SCHWA Corporation X-Mailer: Sylpheed version 0.7.0 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: So I installed gtk on my Slack 8 recently for I thought "whatever was installed, maybe get the latest version". Then I discovered that 1.2.10 is already enclosured in Slack 8 and friend told me it's not too good having 2 packages of it simultaneously installed. So I kicked the one I installed myself out, deleted the package from Slack and reinstalled it. I'm still kinda linux noob, so one may forgive me that. Funny thing is: on a tty "echo $PATH" displays full path with /opt/gnome in it, on X as user as well, but in a terminal in X as root via su command the /opt/gnome path does not apper. How come? Next thing: is this the right location anyway? Tried to compile gtoaster recently, ./configure said "hey u dont have gtk" and other apps, too - they all look for gtk and devel stuff in /usr/local/somewhere as it seems. If someone could please shed some light on this? I'm close to insanity spending days on the simplest things. Dexter Filmore From seberino@dt092n42.san.rr.com Wed Feb 6 18:37:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 1EDE518141 for ; Wed, 6 Feb 2002 18:37:21 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16Ybcw-0000OU-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 15:37:22 -0800 Date: Wed, 6 Feb 2002 15:37:22 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How change color, draw border, change other stylistics of SLIDERS??? Message-ID: <20020206153722.A1515@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a list of sliders that sort of all blend together. * A nice border around each one would be nice to distinguish different slider components. * Different colors would serve same purpose. * Sliders DO NOT have arrows on each side like scroll bars do!!! How get arrow buttons back????? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 18:37:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F260C18141 for ; Wed, 6 Feb 2002 18:37:54 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YbdU-0000OY-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 15:37:56 -0800 Date: Wed, 6 Feb 2002 15:37:56 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How change size/font of gtk_label_new("TEXT")??? Message-ID: <20020206153756.B1515@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How change font or size of text for gtk_label_new("TEXT")??? cs -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 21:32:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id F169F18541 for ; Wed, 6 Feb 2002 21:32:07 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-230.phlpa.fast.net [209.92.227.230]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id VAA28700; Wed, 6 Feb 2002 21:32:04 -0500 (EST) Message-Id: <200202070232.VAA28700@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How change color, draw border, change other stylistics of SLIDERS??? In-reply-to: Your message of "Wed, 06 Feb 2002 15:37:22 PST." <20020206153722.A1515@spawar.navy.mil> Date: Wed, 06 Feb 2002 21:30:57 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: killing two birds with one stone: 1) >How change font or size of text for gtk_label_new("TEXT")??? 2) >* Different colors would serve same purpose. GtkWidget *label = gtk_label_new ("foo"); gtk_widget_set_name (label, "SuperlativeLabel"); GtkWidget *slider = gtk_hslider_new (....); gtk_widget_set_name (slider, "SuperlativeSlider"); then see Havoc's FAQ on colors: http://pobox.com/~hp/gtk-colors.html >I have a list of sliders that sort of all blend together. > >* A nice border around each one would be nice to > distinguish different slider components. put them in a frame in a box having called gtk_container_set_spacing() on the box. >* Sliders DO NOT have arrows on each side like > scroll bars do!!! How get arrow buttons back????? use scrollbars, i guess .... --p From pbd@op.net Wed Feb 6 21:34:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 16DB318FF2 for ; Wed, 6 Feb 2002 21:34:21 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-230.phlpa.fast.net [209.92.227.230]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id VAA28900; Wed, 6 Feb 2002 21:34:18 -0500 (EST) Message-Id: <200202070234.VAA28900@renoir.op.net> To: "Ignacio Nodal" Cc: "GTK-List" Subject: Re: don't wanna see this CRITICAL In-reply-to: Your message of "Wed, 06 Feb 2002 19:24:47 GMT." <000f01c1af43$f3fb3200$0a01a8c0@paranoia> Date: Wed, 06 Feb 2002 21:33:11 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> >I just want to call glViewport() in my InitGL() function. I know my >> >"gl_area" isn't still realized, but I don't care... >> >> you don't, but gtkglarea.c does. just call gtk_widget_realize() on >> your glarea before calling InitGL(). >> >> --p > >I know it does, hehehe, but if I call gtk_widget_realize() the glarea will >be shown, and I don't want it to be shown so soon.. even if I use >gtk_widget_unrealize() inmediatelly after calling glViewport() I can see the >glarea.Is there anyway to realize it without been shown? :) i don't know one. however, you could invert the problem and call InitGL() from a realize signal handler for the glarea. --p From Steph.Fox@btinternet.com Wed Feb 6 21:37:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium.btinternet.com (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id 071B718541 for ; Wed, 6 Feb 2002 21:37:27 -0500 (EST) Received: from host62-7-30-93.dial.btopenworld.com ([62.7.30.93] helo=t2r1o8) by protactinium.btinternet.com with smtp (Exim 3.22 #8) id 16YeR4-0003Hy-00; Thu, 07 Feb 2002 02:37:18 +0000 Message-ID: <017b01c1af80$2aee0080$b54c073e@t2r1o8> From: "Steph" To: "Chris Seberino" , "Paul Davis" Cc: References: <200202070232.VAA28700@renoir.op.net> Subject: Re: How change color, draw border, change other stylistics of SLIDERS??? Date: Thu, 7 Feb 2002 02:35:52 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: can't you use gtk_paint_arrow()? ----- Original Message -----=20 From: "Paul Davis" To: "Chris Seberino" Cc: Sent: Thursday, February 07, 2002 2:30 AM Subject: Re: How change color, draw border, change other stylistics of = SLIDERS???=20 > killing two birds with one stone: >=20 > 1) >How change font or size of text for gtk_label_new("TEXT")??? > 2) >* Different colors would serve same purpose. >=20 > GtkWidget *label =3D gtk_label_new ("foo"); > gtk_widget_set_name (label, "SuperlativeLabel"); >=20 > GtkWidget *slider =3D gtk_hslider_new (....); > gtk_widget_set_name (slider, "SuperlativeSlider"); >=20 > then see Havoc's FAQ on colors: >=20 > http://pobox.com/~hp/gtk-colors.html >=20 > >I have a list of sliders that sort of all blend together. > > > >* A nice border around each one would be nice to > > distinguish different slider components. >=20 > put them in a frame in a box having called > gtk_container_set_spacing() on the box. >=20 > >* Sliders DO NOT have arrows on each side like > > scroll bars do!!! How get arrow buttons back????? >=20 > use scrollbars, i guess .... >=20 > --p > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From rhfreeman@micron.com Thu Feb 7 04:53:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id 34EEB185F2 for ; Thu, 7 Feb 2002 04:53:38 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g179rbu14851 for ; Thu, 7 Feb 2002 02:53:37 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g179raV14846 for ; Thu, 7 Feb 2002 02:53:37 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 02:53:35 -0700 Message-ID: From: rhfreeman To: GTK Mailing List Subject: RE: Paned questions Date: Thu, 7 Feb 2002 02:53:35 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes thanks Olaf (and Thomas) for your input. The solution I used in the end was to have vpaneds in vpaneds to give all the levels I need. So in Olaf's example, hpaned2's pack1 widget was infact hpaned1! I can have as many hboxes as I need now and have some sort of paned control over them. Just one question now. My hboxes have a drawing_area in them which I need to resize. However, I can't tell the difference between the main window being re-sized and the paned widget re-sizing the hbox. I need to handle these differently! Does the paned widget give out a different signal or something similar I can use to tell the two events apart? Thanks!!! Rich > -----Original Message----- > From: Olaf Leidinger [mailto:leidola@newcon.de] > Sent: 04 February 2002 15:26 > To: rhfreeman; GTK Mailing List > Subject: Re: Paned questions > > > Am 04 Feb 2002 03:54:58 -0700 schrieb rhfreeman: > > Hi folks, > > > > I'm wanting to use the paned widgets to re-size my current > widgets but I'm a > > bit unsure about how it works. > > > > My program is quite simple. It has a window with a vbox in > it. It keeps > > adding hboxes to the vbox like this: > > > > (no hboxes) > > > > +------------+ > > | | > > | | > > | | > > | | > > | | > > +------------+ > > > > +------------+ > > | | > > | | > > | (hbox) | > > | | > > | | > > +------------+ > > > > +------------+ > > | hbox 1 | > > | | > > |------------| > > | hbox 2 | > > | | > > +------------+ > > > > +------------+ > > | hbox 1 | > > |------------| > > | hbox 2 | > > |------------| > > | hbox 3 | > > +------------+ > > > > I want a paned widget on the separator between hboxes. So I > want a paned > > widget controlling hbox1/hbox2 and another one controlling > hbox2/hbox3. > > > > So my questions are: > > > > 1. Can a widget have multiple paned widgets attached to it? > > 2. Can a paned widget control any widget type? As most > example code I've > > seen seems to be re-sizing a frame. > > > > Thanks!!! > > > > Rich > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > Hello! > > As I understood it a paned widget has two containers where you can add > widgets, a left side and a right one (or an upper and a lower). > > +--------------+ > | | > | container 1 | > | | > +=== gutter ===+ > | | > | container 2 | > | | > +--------------+ > > You can surely make a hbox to be child of a container. > And I think you don't have to set all the two childs of a paned widget > so you might create the following combination: > > +----vbox----------+ > | +- hpaned 1----+ | > | | | | > | | child 1 | | > | | | | > | +=== gutter ===+ | > | | | | > | | child 2 | | > | | | | > | +--------------+ | > | +- hpaned 2 ---+ | > | | | | > | | empty/not | | > | | visible | | > | | | | > | +=== gutter ===+ | > | | | | > | | child 2 | | > | | | | > | +--------------+ | > +------------------+ > > or something similar. > > Ciao > > Olaf > From rhfreeman@micron.com Thu Feb 7 05:47:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id 837C218319 for ; Thu, 7 Feb 2002 05:47:13 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g17AlCu08143 for ; Thu, 7 Feb 2002 03:47:12 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g17AlCV08139 for ; Thu, 7 Feb 2002 03:47:12 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 03:47:11 -0700 Message-ID: From: rhfreeman To: GTK Mailing List Subject: RE: Paned questions Date: Thu, 7 Feb 2002 03:47:09 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: As much as I hate to follow myself up! I've got the resizing working properly now thanks to using the resize event. A lot easier than I thought it would be. Now the other problem I've got also exists in the paned.c example program that comes with GTK. When you maximise the window, only the bottom widget gets expanded and the top widget remains the same size. I'd like them to be expanded proportionally together! Is there anyway of doing this? Thanks again! Rich > -----Original Message----- > From: rhfreeman [mailto:rhfreeman@micron.com] > Sent: 07 February 2002 09:54 > To: GTK Mailing List > Subject: RE: Paned questions > > > Yes thanks Olaf (and Thomas) for your input. The solution I > used in the end > was to have vpaneds in vpaneds to give all the levels I need. > So in Olaf's > example, hpaned2's pack1 widget was infact hpaned1! I can have as many > hboxes as I need now and have some sort of paned control over them. > > Just one question now. My hboxes have a drawing_area in them > which I need to > resize. However, I can't tell the difference between the main > window being > re-sized and the paned widget re-sizing the hbox. I need to > handle these > differently! Does the paned widget give out a different > signal or something > similar I can use to tell the two events apart? > > Thanks!!! > > Rich > > > -----Original Message----- > > From: Olaf Leidinger [mailto:leidola@newcon.de] > > Sent: 04 February 2002 15:26 > > To: rhfreeman; GTK Mailing List > > Subject: Re: Paned questions > > > > > > Am 04 Feb 2002 03:54:58 -0700 schrieb rhfreeman: > > > Hi folks, > > > > > > I'm wanting to use the paned widgets to re-size my current > > widgets but I'm a > > > bit unsure about how it works. > > > > > > My program is quite simple. It has a window with a vbox in > > it. It keeps > > > adding hboxes to the vbox like this: > > > > > > (no hboxes) > > > > > > +------------+ > > > | | > > > | | > > > | | > > > | | > > > | | > > > +------------+ > > > > > > +------------+ > > > | | > > > | | > > > | (hbox) | > > > | | > > > | | > > > +------------+ > > > > > > +------------+ > > > | hbox 1 | > > > | | > > > |------------| > > > | hbox 2 | > > > | | > > > +------------+ > > > > > > +------------+ > > > | hbox 1 | > > > |------------| > > > | hbox 2 | > > > |------------| > > > | hbox 3 | > > > +------------+ > > > > > > I want a paned widget on the separator between hboxes. So I > > want a paned > > > widget controlling hbox1/hbox2 and another one controlling > > hbox2/hbox3. > > > > > > So my questions are: > > > > > > 1. Can a widget have multiple paned widgets attached to it? > > > 2. Can a paned widget control any widget type? As most > > example code I've > > > seen seems to be re-sizing a frame. > > > > > > Thanks!!! > > > > > > Rich > > > _______________________________________________ > > > gtk-list mailing list > > > gtk-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > > > > Hello! > > > > As I understood it a paned widget has two containers where > you can add > > widgets, a left side and a right one (or an upper and a lower). > > > > +--------------+ > > | | > > | container 1 | > > | | > > +=== gutter ===+ > > | | > > | container 2 | > > | | > > +--------------+ > > > > You can surely make a hbox to be child of a container. > > And I think you don't have to set all the two childs of a > paned widget > > so you might create the following combination: > > > > +----vbox----------+ > > | +- hpaned 1----+ | > > | | | | > > | | child 1 | | > > | | | | > > | +=== gutter ===+ | > > | | | | > > | | child 2 | | > > | | | | > > | +--------------+ | > > | +- hpaned 2 ---+ | > > | | | | > > | | empty/not | | > > | | visible | | > > | | | | > > | +=== gutter ===+ | > > | | | | > > | | child 2 | | > > | | | | > > | +--------------+ | > > +------------------+ > > > > or something similar. > > > > Ciao > > > > Olaf > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From jyothi@ncoretech.com Thu Feb 7 07:25:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id EFD0C180EC for ; Thu, 7 Feb 2002 07:25:39 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CPWY14193 for ; Thu, 7 Feb 2002 17:55:32 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g17CPWM17065 for gtk-list@gnome.org.VIRCHECK; Thu, 7 Feb 2002 17:55:32 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CPTK16974 for ; Thu, 7 Feb 2002 17:55:31 +0530 Message-ID: <3C627D7D.14BCF07F@ncoretech.com> Date: Thu, 07 Feb 2002 18:43:33 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Differentiating between Entry and Text Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 7 17:55:31 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a function for which I am getting Widget reference from some other function. >From this reference, I have to check whether this widget is GtkEntry or GtkText. How can I do it?? Thanks in Advance, Jyothi. From jyothi@ncoretech.com Thu Feb 7 07:28:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id 111FD184BE for ; Thu, 7 Feb 2002 07:28:04 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CRxY14219 for ; Thu, 7 Feb 2002 17:57:59 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g17CRxE17782 for gtk-list@gnome.org.VIRCHECK; Thu, 7 Feb 2002 17:57:59 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CRwK17693 for ; Thu, 7 Feb 2002 17:57:58 +0530 Message-ID: <3C627E13.7BB09226@ncoretech.com> Date: Thu, 07 Feb 2002 18:46:03 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Scribble in gtk tutorial Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 7 17:57:58 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In the scribble-xinput, when I press on Input-dialog, it say no input devices with a close button. How to solve this problem ??? What are these input devices ? Is it the mouse or stylus ??. If so how do I specify it ??.. Thanks in Advance, Jyothi. From jyothi@ncoretech.com Thu Feb 7 07:31:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id 5F52518758 for ; Thu, 7 Feb 2002 07:30:59 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CUsY14246 for ; Thu, 7 Feb 2002 18:00:54 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g17CUsM18212 for gtk-list@gnome.org.VIRCHECK; Thu, 7 Feb 2002 18:00:54 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CUsK18123 for ; Thu, 7 Feb 2002 18:00:54 +0530 Message-ID: <3C627EC3.7D550AF0@ncoretech.com> Date: Thu, 07 Feb 2002 18:48:59 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Regarding Scribble Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 7 18:00:54 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In gtk tutorial , scribble program is written to draw anything on the Drawing area. How do I capture the data written in the scribbling pad as soon as a button-release-event occurs ??..... Thanks in advance, Jyothi. From Padraig.Obriain@Sun.COM Thu Feb 7 07:36:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34]) by mail.gnome.org (Postfix) with ESMTP id E6FED18655 for ; Thu, 7 Feb 2002 07:36:11 -0500 (EST) Received: from dub-mail1.Ireland.Sun.COM ([129.156.220.70]) by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id FAA22891; Thu, 7 Feb 2002 05:35:44 -0700 (MST) Received: from maxfly (maxfly [129.156.238.23]) by dub-mail1.Ireland.Sun.COM (8.10.2+Sun/8.10.2/ENSMAIL,v2.1p1) with SMTP id g17CZZu08973; Thu, 7 Feb 2002 12:35:36 GMT Message-Id: <200202071235.g17CZZu08973@dub-mail1.Ireland.Sun.COM> Date: Thu, 7 Feb 2002 12:35:35 +0000 (GMT) From: "Padraig O'Briain" Reply-To: "Padraig O'Briain" Subject: Re: Differentiating between Entry and Text To: gtk-list@gnome.org, jyothi@ncoretech.com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: zJaRscvW169XYD6ZS0zrDQ== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4 SunOS 5.8 sun4u sparc Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: if (GTK_IS_ENTRY (widget)) { ... } else if (GTK_IS_TEXT (widget)) { ... } Padraig > Hi, > > I have a function for which I am getting Widget reference from some > other function. > >From this reference, I have to check whether this widget is GtkEntry or > GtkText. How can I do it?? > > Thanks in Advance, > Jyothi. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From inimss@yahoo.com Thu Feb 7 09:36:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp016.mail.yahoo.com (smtp016.mail.yahoo.com [216.136.174.113]) by mail.gnome.org (Postfix) with SMTP id 1BA981888C for ; Thu, 7 Feb 2002 09:36:53 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 7 Feb 2002 14:36:50 -0000 Message-ID: <3C61B4BF.2CF01D34@yahoo.com> Date: Thu, 07 Feb 2002 04:27:03 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list Subject: [INIMSS] Which is the best place to initialize widgets in a window. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Which is the best event handler to be used for initializing the widgets in a window, (to load data into it). Thanks Dino Cherian K _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From inimss@yahoo.com Thu Feb 7 10:23:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by mail.gnome.org (Postfix) with SMTP id EBB2D18500 for ; Thu, 7 Feb 2002 10:23:16 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 7 Feb 2002 15:23:15 -0000 Message-ID: <3C61BFA3.C19E3133@yahoo.com> Date: Thu, 07 Feb 2002 05:13:31 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list Subject: [INIMSS] Where can I find help for editing gtkrc? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Anybody please help me in editing a gtkrc file? What is the basic syntax of the file? Where can I find answer for these questions? Thanks Dino _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From coframi.balr001@rd.francetelecom.com Thu Feb 7 10:35:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id CE3EA188C4 for ; Thu, 7 Feb 2002 10:35:54 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M417RQ5>; Thu, 7 Feb 2002 16:29:00 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , gtk-list Subject: RE: [INIMSS] Where can I find help for editing gtkrc? Date: Thu, 7 Feb 2002 16:28:57 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-94cad57a-1acd-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-94cad57a-1acd-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AFEC.28E4A3E0" ------_=_NextPart_001_01C1AFEC.28E4A3E0 Content-Type: text/plain Hello, look at http://developer.gnome.org/doc/API/2.0/gtk/gtk-resource-files.html Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : jeudi 7 fevrier 2002 00:44 A : gtk-list Objet : [INIMSS] Where can I find help for editing gtkrc? Hi Anybody please help me in editing a gtkrc file? What is the basic syntax of the file? Where can I find answer for these questions? Thanks Dino _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AFEC.28E4A3E0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] Where can I find help for editing gtkrc?

Hello,

look at http://developer.gnome.org/doc/API/2.0/gtk/gtk-resourc= e-files.html

Isabelle

-----Message d'origine-----
De : Dino Cherian K [mailto:inimss@yahoo.com]
Envoye : jeudi 7 fevrier 2002 00:44
A : gtk-list
Objet : [INIMSS] Where can I find help for editing = gtkrc?


Hi

Anybody please help me in editing a gtkrc = file?
What is the basic syntax of the file?
Where can I find answer for these questions?

Thanks
Dino

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

------_=_NextPart_001_01C1AFEC.28E4A3E0-- ------=_NextPartTM-000-94cad57a-1acd-11d6-b1e5-00508b69ab48-- From coframi.balr001@rd.francetelecom.com Thu Feb 7 11:18:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id A0B3A185E9 for ; Thu, 7 Feb 2002 11:18:09 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M417R6S>; Thu, 7 Feb 2002 16:42:37 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , gtk-list Subject: RE: [INIMSS] Where can I find help for editing gtkrc? Date: Thu, 7 Feb 2002 16:42:34 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-94cad60f-1acd-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-94cad60f-1acd-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AFEE.0F9ED7F0" ------_=_NextPart_001_01C1AFEE.0F9ED7F0 Content-Type: text/plain Hi again, Look also at http://www106.pair.com/rhp/gtk-colors.html Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : jeudi 7 fevrier 2002 00:44 A : gtk-list Objet : [INIMSS] Where can I find help for editing gtkrc? Hi Anybody please help me in editing a gtkrc file? What is the basic syntax of the file? Where can I find answer for these questions? Thanks Dino _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AFEE.0F9ED7F0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] Where can I find help for editing gtkrc?

Hi again,

Look also at  http://www106.pair.com/rhp/gtk-colors.html

Isabelle

-----Message d'origine-----
De : Dino Cherian K [mailto:inimss@yahoo.com]
Envoye : jeudi 7 fevrier 2002 00:44
A : gtk-list
Objet : [INIMSS] Where can I find help for editing = gtkrc?


Hi

Anybody please help me in editing a gtkrc = file?
What is the basic syntax of the file?
Where can I find answer for these questions?

Thanks
Dino

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

------_=_NextPart_001_01C1AFEE.0F9ED7F0-- ------=_NextPartTM-000-94cad60f-1acd-11d6-b1e5-00508b69ab48-- From stonybrk@ix.netcom.com Thu Feb 7 11:27:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mclean.mail.mindspring.net (mclean.mail.mindspring.net [207.69.200.57]) by mail.gnome.org (Postfix) with ESMTP id E52D1185E9 for ; Thu, 7 Feb 2002 11:27:52 -0500 (EST) Received: from user-2iniv4a.dialup.mindspring.com ([165.121.124.138] helo=norman) by mclean.mail.mindspring.net with smtp (Exim 3.33 #1) id 16YrOU-0005a6-00; Thu, 07 Feb 2002 11:27:30 -0500 Message-ID: <005701c1aff4$5802e3f0$0200a8c0@norman> From: "Norman Black" To: "Chris Seberino" Cc: "gtk-list" References: <20020206153756.B1515@spawar.navy.mil> Subject: Re: How change size/font of gtk_label_new("TEXT")??? Date: Thu, 7 Feb 2002 08:27:31 -0800 Organization: Stony Brook Software 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a Modula-2 code snip, but I think you get the idea. rc_style := gtk_rc_style_new(); rc_style^.font_name := YourFontNameGoesHere; gtk_widget_modify_style(YourWidget, rc_style); gtk_rc_style_unref(rc_style); The font name is just like a Gdk font name used for gdk_font_load Best Regards, Norman Black Stony Brook Software ----- Original Message ----- From: "Chris Seberino" To: Sent: Wednesday, February 06, 2002 3:37 PM Subject: How change size/font of gtk_label_new("TEXT")??? > How change font or size of text for gtk_label_new("TEXT")??? > > cs > -- > ======================================================= > | Dr. Christian Seberino || (619) 553-7940 (office) | > | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | > | 53560 HULL ST || | > | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | > ======================================================= > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From rtk@cmed.com Thu Feb 7 11:32:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.cmed.com (mail.cmed.com [12.147.70.66]) by mail.gnome.org (Postfix) with SMTP id BF75B18B29 for ; Thu, 7 Feb 2002 11:32:41 -0500 (EST) Received: from no.name.available by mail.cmed.com via smtpd (for moniker.gnome.org [209.116.70.73]) with SMTP; 7 Feb 2002 16:32:41 UT Received: by exchange.cmed.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 09:32:40 -0700 Message-ID: From: Ronald Kneusel To: "'gtk-list@gnome.org'" Subject: GtkEntry not accepting keyboard input (GTK+ 1.2)? Date: Thu, 7 Feb 2002 09:32:31 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a GtkEntry which is attached to a fixed widget and that is attached to a frame in another fixed widget. The entry box appears and I can set the text, highlight the text with the mouse, but cannot type in the box. Anything typed appears at the shell prompt. Why? Am I missing a step? I've set the widget to "editable" with no appearant effect. Ron Kneusel rtk@cmed.com From pbd@op.net Thu Feb 7 11:39:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 1C5C618822 for ; Thu, 7 Feb 2002 11:39:49 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-105.phlpa.fast.net [209.92.99.105]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA09652; Thu, 7 Feb 2002 11:39:41 -0500 (EST) Message-Id: <200202071639.LAA09652@renoir.op.net> To: Dino Cherian K Cc: gtk-list Subject: Re: [INIMSS] Which is the best place to initialize widgets in a window. In-reply-to: Your message of "Thu, 07 Feb 2002 04:27:03 +0530." <3C61B4BF.2CF01D34@yahoo.com> Date: Thu, 07 Feb 2002 11:38:41 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Which is the best event handler to be used for initializing the widgets >in a window, (to load data into it). the expose event is where the widget gets drawn, so that would be the obvious place. just do your stuff, and return FALSE. the regular drawing code will then happen as expected, using your data. i sometimes use map_event for widgets that need to be rebuilt every time they are "mapped" (XWindow terminology for the step of taking the X server data structure for a window and making its contents appear on a display). however, in general, i think you should be using the expose event. --p From eg_hyy@stu.ust.hk Thu Feb 7 12:16:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx3.ust.hk (mx3.ust.hk [143.89.13.11]) by mail.gnome.org (Postfix) with ESMTP id 266BE1819C for ; Thu, 7 Feb 2002 12:16:00 -0500 (EST) Received: from webmaild.ust.hk (webmaild.ust.hk [143.89.14.206]) by mx3.ust.hk (8.11.5/8.11.5) with ESMTP id g17HFvB09001 for ; Fri, 8 Feb 2002 01:15:57 +0800 Received: from localhost (localhost [[UNIX: localhost]]) by webmaild.ust.hk (8.9.3/8.9.3) id BAA08796; Fri, 8 Feb 2002 01:15:56 +0800 Message-Id: <200202071715.BAA08796@webmaild.ust.hk> User-Agent: IMHO/0.97.1 (HKUST Webmail 1.0b) MIME-Version: 1.0 X-Originating-IP: [61.15.163.60] To: gtk-list@gnome.org Content-Transfer-Encoding: 8bit Date: Fri, 08 Feb 2002 01:15:56 +0800 Content-Type: text/plain; charset=iso-8859-1 From: Subject: callbacks function of apply in glade Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear all, I am a newbie and I have some question about the callbacks function of "apply" signal in glade. I have a propertybox which have 3 pages with one "apply" button automatically created by glade. I set something in the apply callbacks function, and I find that each time I press the apply button, the program go into the apply callbacks function serveral times!! I afraid that this will slow down my program. Because my apply callbacks function is quite complicated and long...and i afraid that if each time user click "apply" for once, but the program go into the apply callbacks function serveral times, this will really slow down my program. I would be very pleased that u have some suggestion for me. From hp@redhat.com Thu Feb 7 12:40:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id DC21A18306 for ; Thu, 7 Feb 2002 12:40:05 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g17HdtU24886; Thu, 7 Feb 2002 12:39:55 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Kneusel Cc: "'gtk-list@gnome.org'" Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? References: From: Havoc Pennington Date: 07 Feb 2002 12:39:55 -0500 In-Reply-To: Message-ID: Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Kneusel writes: > I have a GtkEntry which is attached to a fixed widget and that is > attached to a frame in another fixed widget. > > The entry box appears and I can set the text, highlight the text > with the mouse, but cannot type in the box. Anything typed appears > at the shell prompt. > > Why? Am I missing a step? I've set the widget to "editable" with > no appearant effect. > Sounds like your window manager still has focus on the terminal console window, instead of your GTK app. Why that is, I don't know. Havoc From rtk@cmed.com Thu Feb 7 12:44:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.cmed.com (mail.cmed.com [12.147.70.66]) by mail.gnome.org (Postfix) with SMTP id 4298318CB2 for ; Thu, 7 Feb 2002 12:44:13 -0500 (EST) Received: from no.name.available by mail.cmed.com via smtpd (for moniker.gnome.org [209.116.70.73]) with SMTP; 7 Feb 2002 17:44:13 UT Received: by exchange.cmed.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 10:44:07 -0700 Message-ID: From: Ronald Kneusel To: Cc: "'gtk-list@gnome.org'" Subject: RE: GtkEntry not accepting keyboard input (GTK+ 1.2)? Date: Thu, 7 Feb 2002 10:44:06 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > -----Original Message----- > From: Havoc Pennington [SMTP:hp@redhat.com] > Sent: Thursday, February 07, 2002 10:40 AM > To: Ronald Kneusel > Cc: 'gtk-list@gnome.org' > Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? > > > Ronald Kneusel writes: > > I have a GtkEntry which is attached to a fixed widget and that is > > attached to a frame in another fixed widget. > > > > The entry box appears and I can set the text, highlight the text > > with the mouse, but cannot type in the box. Anything typed appears > > at the shell prompt. > > > > Why? Am I missing a step? I've set the widget to "editable" with > > no appearant effect. > > > >Sounds like your window manager still has focus on the terminal >console window, instead of your GTK app. Why that is, I don't know. You were correct! I created a full screen window as a POPUP window and it wasn't getting keyboard focus. I made it a TOPLEVEL window without decorations and all it well. Thanks! Ron From flavio@maqplas.com.br Thu Feb 7 13:21:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id 535F218519 for ; Thu, 7 Feb 2002 13:21:41 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g17ILPD1021073; Thu, 7 Feb 2002 16:21:26 -0200 (BRST) Subject: RE: GtkEntry not accepting keyboard input (GTK+ 1.2)? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Ronald Kneusel Cc: "'gtk-list@gnome.org'" In-Reply-To: References: Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 07 Feb 2002 16:17:31 -0200 Message-Id: <1013105854.1178.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I had this same problem! I wanna create a full window popup (modal for my applications) but it didn't have focus... The solution, I don't know if is elegant, but works, I create a window TOPLEVEL with 0x0 dimension and I atached this big popup Window, when I run the program, the focus came in to this little window and my window has focus. Good Lucky Good Work Success Flavio Alberto Em 07 Feb 2002 10:44:06 -0700, Ronald Kneusel escreveu: > > > > -----Original Message----- > > From: Havoc Pennington [SMTP:hp@redhat.com] > > Sent: Thursday, February 07, 2002 10:40 AM > > To: Ronald Kneusel > > Cc: 'gtk-list@gnome.org' > > Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? > > > > > > Ronald Kneusel writes: > > > I have a GtkEntry which is attached to a fixed widget and that is > > > attached to a frame in another fixed widget. > > > > > > The entry box appears and I can set the text, highlight the text > > > with the mouse, but cannot type in the box. Anything typed appears > > > at the shell prompt. > > > > > > Why? Am I missing a step? I've set the widget to "editable" with > > > no appearant effect. > > > > > > >Sounds like your window manager still has focus on the terminal > >console window, instead of your GTK app. Why that is, I don't know. > > You were correct! I created a full screen window as a POPUP window > and it wasn't getting keyboard focus. I made it a TOPLEVEL window > without decorations and all it well. > > Thanks! > > Ron > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From doc@deadvirgins.org.uk Thu Feb 7 14:01:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand3.global.net.uk (sand3.global.net.uk [195.147.246.249]) by mail.gnome.org (Postfix) with ESMTP id 66DF5181AA for ; Thu, 7 Feb 2002 14:01:25 -0500 (EST) Received: from pacs13a06.client.global.net.uk ([195.147.221.173] helo=deadvirgins.org.uk) by sand3.global.net.uk with esmtp (Exim 3.22 #1) id 16YtnO-0000bb-00 for gtk-list@gnome.org; Thu, 07 Feb 2002 19:01:23 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g17J0Sx00202 for gtk-list@gnome.org; Thu, 7 Feb 2002 19:00:28 GMT Message-Id: <200202071900.g17J0Sx00202@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: gtk-list@gnome.org Subject: Creating widgets with auto-repeat Date: Thu, 7 Feb 2002 19:00:28 +0000 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks to the people who pointed me in the right direction regarding my question about auto-repeating buttons. The spinbutton source code did indeed gave me some ideas and I've hacked together the following "code" which I thought others might find useful as a starting point, particularly in light of the fact that someone asked a similar question straight after me. The auto-repeat starts after the button is held for 500ms, then goes through two levels of speedup if the button is still pressed. Perhaps someone with a bit more experience of this sort of thing could point out a neat way to avoid all the globals here, so this code could be reused in a more generic way... Perosnally, I *like* globals... :-) /******** CODE BEGINS *********************************/ #include #include #define REPEAT_STAGE0_DELAY 500 #define REPEAT_STAGE1_DELAY 50 #define REPEAT_STAGE2_DELAY 3 guint32 timer_id = 0; gint timer_state = 0; gint timer_count = 0; gint value = 0; /* Timer callback function! */ static gint timer_func ( void ) { /* Autorepeat state machine */ switch (timer_state) { case 0: /* Enable slow auto-repeat */ gtk_timeout_remove(timer_id); timer_id = gtk_timeout_add( REPEAT_STAGE1_DELAY, (GtkFunction)timer_func, NULL); timer_state = 1; timer_count = 0; break; case 1: /* Check if it's time for fast repeat yet */ if (timer_count++ > 50) timer_state = 2; break; case 2: /* Start fast auto-repeat */ gtk_timeout_remove(timer_id); timer_id = gtk_timeout_add( REPEAT_STAGE2_DELAY, (GtkFunction)timer_func, NULL); timer_state = 3; break; default: break; } /* Increment value */ printf("value: %d\n", value++); return TRUE; } void button_press_proc( GtkWidget *widget, gpointer data ) { /* Increment value */ printf("VALUE: %d\n", value++); /* Remove an existing timer */ if (timer_id) gtk_timeout_remove(timer_id); /* Setup a timer */ timer_id = gtk_timeout_add( REPEAT_STAGE0_DELAY, (GtkFunction)timer_func, NULL); timer_state = 0; } void button_release_proc( GtkWidget *widget, gpointer data ) { /* Remove timer */ gtk_timeout_remove(timer_id); timer_id = 0; timer_state = 0; } int main( int argc, char *argv[] ) { GtkWidget *window; GtkWidget *button; gtk_init(&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_set_border_width (GTK_CONTAINER (window), 10); button = gtk_button_new_with_label (" INCREMENT "); gtk_signal_connect (GTK_OBJECT (button), "button_press_event", GTK_SIGNAL_FUNC (button_press_proc), NULL); gtk_signal_connect (GTK_OBJECT (button), "button_release_event", GTK_SIGNAL_FUNC (button_release_proc), NULL); gtk_container_add (GTK_CONTAINER (window), button); gtk_widget_show (button); gtk_widget_show (window); gtk_main (); return(0); } /***************** END OF CODE *********************************/ -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From pbd@op.net Thu Feb 7 14:22:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 8AE96183E5 for ; Thu, 7 Feb 2002 14:22:19 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-24.phlpa.fast.net [209.92.99.24]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA27978; Thu, 7 Feb 2002 14:22:14 -0500 (EST) Message-Id: <200202071922.OAA27978@renoir.op.net> To: doc@deadvirgins.org.uk Cc: gtk-list@gnome.org Subject: Re: Creating widgets with auto-repeat In-reply-to: Your message of "Thu, 07 Feb 2002 19:00:28 GMT." <200202071900.g17J0Sx00202@deadvirgins.org.uk> Date: Thu, 07 Feb 2002 14:21:16 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Perhaps someone with a bit more experience of this sort of thing could point >out a neat way to avoid all the globals here, so this code could be reused >in a more generic way... > >Perosnally, I *like* globals... :-) you are right about needing a bit more experience :) >guint32 timer_id = 0; >gint timer_state = 0; >gint timer_count = 0; >gint value = 0; typedef struct timer_func_info { guint32 timer_id; gint timer_state; gint timer_count; gint value; } timer_func_info_t; >/* Timer callback function! */ >static gint timer_func (gpointer data ) >{ timer_func_info_t *info = (timer_func_info_t *) data; ... now use info-> instead of the globals. > return TRUE; > >} > >void button_press_proc( GtkWidget *widget, gpointer data ) >{ timer_func_info_t *info = (timer_func_info_t *) data; > /* Increment value */ > printf("VALUE: %d\n", value++); > > /* Setup a timer */ info->value++; info->count = 0; info->state = 0; > info->timer_id = gtk_timeout_add(REPEAT_STAGE0_DELAY, (GtkFunction)timer_func, info); >} > >void button_release_proc( GtkWidget *widget, gpointer data ) >{ > > /* Remove timer */ timer_func_info_t *info = (timer_func_info_t *) data; gtk_timeout_remove(info->timer_id); >} > >int main( int argc, char *argv[] ) >{ > GtkWidget *window; > GtkWidget *button; timer_func_info_t info; > > gtk_init(&argc, &argv); info->value = 0; > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > gtk_container_set_border_width (GTK_CONTAINER (window), 10); > button = gtk_button_new_with_label (" INCREMENT "); gtk_signal_connect (GTK_OBJECT (button), "button_press_event", GTK_SIGNAL_FUNC (button_press_proc), &info); gtk_signal_connect (GTK_OBJECT (button), "button_release_event", GTK_SIGNAL_FUNC (button_release_proc), &info); > gtk_container_add (GTK_CONTAINER (window), button); > gtk_widget_show (button); > gtk_widget_show (window); > gtk_main (); > > return(0); >} all clear? --p From hp@redhat.com Thu Feb 7 15:00:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id A5E5118110 for ; Thu, 7 Feb 2002 15:00:52 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g17K0fS14001; Thu, 7 Feb 2002 15:00:41 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Kneusel Cc: "'gtk-list@gnome.org'" Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? References: From: Havoc Pennington Date: 07 Feb 2002 15:00:41 -0500 In-Reply-To: Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Kneusel writes: > You were correct! I created a full screen window as a POPUP window > and it wasn't getting keyboard focus. I made it a TOPLEVEL window > without decorations and all it well. Right, POPUP windows should never be used if you need to type into the window. POPUP means the window manager does not know about the window, so can't focus it. Havoc From ramses@computer.org Thu Feb 7 22:14:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id 6D49D180E1 for ; Thu, 7 Feb 2002 22:14:11 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020208031430.UJLR480.sv16@adsl50> for ; Thu, 7 Feb 2002 22:14:30 -0500 Subject: A better way to get a widget from a GnomeDialog pointer??? From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 07 Feb 2002 22:21:52 -0500 Message-Id: <1013138513.2696.18.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, check this callback: void on_add_magazine_button_clicked(GtkButton *button, gpointer user_data) { GtkWidget *dialog = create_add_magazine_dialog(); GtkWidget *entry; struct _GtkBoxChild *child; int result; GList *dialog_children = GTK_BOX(GNOME_DIALOG(dialog)->vbox)->children; result = gnome_dialog_run(GNOME_DIALOG(dialog)); if ( result == 0 ) { child = ((struct _GtkBoxChild *)(g_list_nth_data(dialog_children, 3))); entry = child->widget; g_print("%s\n", gtk_entry_get_text(GTK_ENTRY(entry))); child = ((struct _GtkBoxChild *)(g_list_nth_data(dialog_children, 5))); entry = child->widget; g_print("%s\n", gtk_entry_get_text(GTK_ENTRY(entry))); } gtk_widget_destroy(GTK_WIDGET(dialog)); } In short, this callback runs a gnome dialog and gets the data inside the two GtkEntry included on that dialog. Inside this function I only have access to the dialog widget. As you can see, I have harcoded the positions of the GtkEntry widgets inside the GList. If I modify the dialog, adding another widget, then this function will break because the entries won't be at the index 3 and 5. What can I do to have a more elegant, not harcoded way, to reference the GtkEntry widgets?? ALSO: Is it a good idea to mess around directly with struct _GtkBoxChild??? Thanks for your help. From inimss@yahoo.com Fri Feb 8 01:22:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by mail.gnome.org (Postfix) with SMTP id A537F18161 for ; Fri, 8 Feb 2002 01:22:16 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.117) by smtp.mail.vip.sc5.yahoo.com with SMTP; 8 Feb 2002 06:22:14 -0000 Message-ID: <3C621201.4C140F05@yahoo.com> Date: Thu, 07 Feb 2002 11:04:57 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Paul Davis , gtk-list Subject: Re: [INIMSS] Which is the best place to initialize widgets in a window. References: <200202071639.LAA09652@renoir.op.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Will the events, map_event & expose be triggered multiple times in the life of a window? My understanding is that the map event will be triggered only once, during the creation of the window for the first time, but the other one, expose, will be triggered each time the window or widget comes to the foreground (ie, its visible on the screen). Thanks Dino Paul Davis wrote: > > >Which is the best event handler to be used for initializing the widgets > >in a window, (to load data into it). > > the expose event is where the widget gets drawn, so that would be the > obvious place. just do your stuff, and return FALSE. the regular > drawing code will then happen as expected, using your data. > > i sometimes use map_event for widgets that need to be rebuilt every > time they are "mapped" (XWindow terminology for the step of taking the > X server data structure for a window and making its contents appear on > a display). however, in general, i think you should be using the > expose event. > > --p > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From zanac_fake@libero.it Fri Feb 8 02:43:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by mail.gnome.org (Postfix) with ESMTP id 1C088181ED for ; Fri, 8 Feb 2002 02:43:59 -0500 (EST) Received: from libero.it (193.70.192.44) by smtp2.libero.it (6.0.040) id 3C584044005AF09D for gtk-list@gnome.org; Fri, 8 Feb 2002 08:43:57 +0100 Date: Fri, 8 Feb 2002 08:43:56 +0100 Message-Id: Subject: =?iso-8859-1?Q?GTK_2.0_GtkTreeViewColumn_buggy=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?iso-8859-1?Q?zanac=5Ffake?=" To: gtk-list@gnome.org X-XaM3-API-Version: 2.5 X-type:0 X-SenderIP: 193.227.212.161 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SSdtIHRyeWluZyB0byBhZGQgc29tZSB3aWRnZXQgdG8gYSBHdGtUcmVlVmlldyAgdXNpbmcg IHRoZSAgZnVuY3Rpb24NCmd0a190cmVlX3ZpZXdfY29sdW1uX3NldF93aWRnZXQuIElmIGkg YWRkIGEgR3RrTGFiZWwgYWxsIHdvcmsgIGZpbmUsDQpidXQgaWYgYSBhZGQsIGZvciBleGFt cGxlLCBhIEd0a0J1dHRvbiB1c2luZyBndGtfYnV0dG9uX25ld19tbmVtb25pYw0KdGhlIGJ1 dHRvbiBkb2Vzbid0IGNhbGxiYWNrIHRvIHRoZSBjbGlja2VkIHNpZ25hbC4uLiAgYnV0IHIg ZXBseSAgdG8NCnRoZSBtbmVtb25pYyA8YWx0LXM+Lg0KDQpFdmVuIGlmIGEgYWRkIGEgR3Rr RW50cnkgdGhlIHByb2JsZW0gcGVyc2lzdC4uLg0KDQpIb3cgY2FuIGkgc29sdmUgaXQ/ From deepa.chacko@wipro.com Fri Feb 8 04:20:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id BFCA8180D8; Fri, 8 Feb 2002 04:20:49 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g189JjX20626; Fri, 8 Feb 2002 14:49:45 +0530 (IST) Received: from wipro.com ([10.114.9.180]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GR7J9300.4TQ; Fri, 8 Feb 2002 14:49:51 +0530 Message-ID: <3C639AF8.B378AA0@wipro.com> Date: Fri, 08 Feb 2002 15:01:36 +0530 From: Deepa X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org, desktop-devel-list Subject: Equivalents for gdk_input_remove,gdk_input_add etc Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi I am encountering these deprecated calls in libzvt: gdk_input_remove () gdk_input_add () gdk_rgb_init () Could anyone please tell me what is the replacement for these. Thanks in advance Deepa ------=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8 Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ******************************************************************** ------=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8-- From Ulrich.Kerber@faidor.de Fri Feb 8 06:38:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailrelay.faidor.de (mailrelay.faidor.de [195.126.215.15]) by mail.gnome.org (Postfix) with ESMTP id A9815181E3 for ; Fri, 8 Feb 2002 06:38:11 -0500 (EST) Received: from faiopf2005.faidor.de (xmail.faidor.de [195.126.215.2]) by mailrelay.faidor.de (8.9.3/8.9.3) with ESMTP id LAA20355 for ; Fri, 8 Feb 2002 11:29:39 +0100 Received: by faiopf2005.faidor.de with Internet Mail Service (5.5.2653.19) id <1Q3L7PTY>; Fri, 8 Feb 2002 12:38:10 +0100 Received: from dshpc004.opf.debis.de ([53.140.8.78]) by faiopf2005.faidor.de with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1Q3L7PTW; Fri, 8 Feb 2002 12:38:08 +0100 From: "Kerber, Ulrich" To: gtk-list@gnome.org Subject: Memory problems while using a clist Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 08 Feb 2002 12:39:55 +0100 Message-Id: <1013168395.2884.11.camel@dshpc004> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I wrote an app with a clist showing the contents of a log file; the clist is updated every 60 seconds. Although i do a gtk_clist_clear, the memory used is increasing with every run, even if no element is added. After a day of work the amount reaches up to 40 MB! Does anybody know a solution to this problem? Thanks, Uli From nicholas.allen@ireland.sun.com Fri Feb 8 09:24:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36]) by mail.gnome.org (Postfix) with ESMTP id A9419190CB for ; Fri, 8 Feb 2002 09:24:25 -0500 (EST) Received: from ireserver.Ireland.Sun.COM ([129.156.220.7]) by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id HAA06534 for ; Fri, 8 Feb 2002 07:24:24 -0700 (MST) Received: from ireland.sun.com (ledzep [129.156.220.79]) by ireserver.Ireland.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.2) with ESMTP id OAA19986 for ; Fri, 8 Feb 2002 14:24:23 GMT Message-ID: <3C63DF90.1090104@ireland.sun.com> Date: Fri, 08 Feb 2002 14:24:16 +0000 From: nicholas allen Organization: Sun Microsystems User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011226 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Iconify/deioconfy gtk windows Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I can't find any API to iconify and deiconify a GtkWindow. Does anyone know how to do this? How do I listen in for an iconify/deioconify signal as well as there doesn't seem to be a signal to connect to for this event? I can't find anything useful in the Gdk library either. I thought there would be a gtk_window_iconify function or something similar. Thanks in advance for any help anyone can offer. -- Nick Allen Software Engineer Sun Microsystems Ireland Ltd Hamilton House East Point Business Park Dublin 3 email: nicholas.allen@ireland.sun.com From pbd@op.net Fri Feb 8 10:00:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id A848518165 for ; Fri, 8 Feb 2002 10:00:46 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-323.phlpa.fast.net [209.92.228.69]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA28790; Fri, 8 Feb 2002 10:00:43 -0500 (EST) Message-Id: <200202081500.KAA28790@renoir.op.net> To: Dino Cherian K Cc: gtk-list Subject: Re: [INIMSS] Which is the best place to initialize widgets in a window. In-reply-to: Your message of "Thu, 07 Feb 2002 11:04:57 +0530." <3C621201.4C140F05@yahoo.com> Date: Fri, 08 Feb 2002 09:59:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi > >Will the events, map_event & expose be triggered multiple times in the >life of a window? > >My understanding is that the map event will be triggered only once, the map event will occur every time the window is mapped, for example, when it is de-iconfied. >during the creation of the window for the first time, but the other one, >expose, will be triggered each time the window or widget comes to the >foreground (ie, its visible on the screen). the expose event will occur anytime there is an "increase" in the visibility of any part of the widget. this will include de-iconfication, raising above other windows, an occluding window being moved out of the way, etc. to repeat a point thats been several times in the last few days, since many people new to X and GTK+ don't fully grok this: with the XWindow system, the X server does *not* maintain the contents of your window on your behalf. any time visibility increases in some part of your window, *you* must be able to redraw that part from scratch. this is apparently a little different from the situation with win32, but i wouldn't know anything about that. some X servers support "save under", which will handle the redrawing for you under some circumstances, but not all, and my impression is that most people don't use this feature these days. --p From pbd@op.net Fri Feb 8 10:04:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3204A18285 for ; Fri, 8 Feb 2002 10:04:06 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-323.phlpa.fast.net [209.92.228.69]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA29100; Fri, 8 Feb 2002 10:04:03 -0500 (EST) Message-Id: <200202081504.KAA29100@renoir.op.net> To: nicholas allen Cc: gtk-list@gnome.org Subject: Re: Iconify/deioconfy gtk windows In-reply-to: Your message of "Fri, 08 Feb 2002 14:24:16 GMT." <3C63DF90.1090104@ireland.sun.com> Date: Fri, 08 Feb 2002 10:03:18 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I can't find any API to iconify and deiconify a GtkWindow. Does anyone >know how to do this? How do I listen in for an iconify/deioconify signal >as well as there doesn't seem to be a signal to connect to for this >event? I can't find anything useful in the Gdk library either. i would imagine that map_event and unmap event will correspond more or less to these changes. >I thought there would be a gtk_window_iconify function or something similar. i doubt it. under X, (de)iconification is *generally* considered to be a function of the window manager, not the application. --p From sven@gimp.org Fri Feb 8 10:28:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 2DBDD18165 for ; Fri, 8 Feb 2002 10:28:09 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZCjY-00069m-00; Fri, 08 Feb 2002 16:14:40 +0100 To: Paul Davis Cc: nicholas allen , gtk-list@gnome.org Subject: Re: Iconify/deioconfy gtk windows References: <200202081504.KAA29100@renoir.op.net> From: Sven Neumann Date: 08 Feb 2002 16:14:40 +0100 In-Reply-To: <200202081504.KAA29100@renoir.op.net> Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Paul Davis writes: > >I thought there would be a gtk_window_iconify function or something similar. > > i doubt it. under X, (de)iconification is *generally* considered to be > a function of the window manager, not the application. GTK+-2.0 has this function. Basically it calls XIconifyWindow (if using the X11 backend). Salut, Sven From hp@redhat.com Fri Feb 8 11:19:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id F07851810E; Fri, 8 Feb 2002 11:19:27 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18GJIT29439; Fri, 8 Feb 2002 11:19:18 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Deepa Cc: gtk-list@gnome.org, desktop-devel-list Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc References: <3C639AF8.B378AA0@wipro.com> From: Havoc Pennington Date: 08 Feb 2002 11:19:18 -0500 In-Reply-To: <3C639AF8.B378AA0@wipro.com> Message-ID: Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Deepa writes: > gdk_input_remove () g_source_remove() > gdk_input_add () g_io_channel_add_watch () > gdk_rgb_init () No longer required, simply delete all instances of this. Havoc From pbd@op.net Fri Feb 8 11:25:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9481318331; Fri, 8 Feb 2002 11:25:13 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-341.phlpa.fast.net [209.92.231.87]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA08014; Fri, 8 Feb 2002 11:24:52 -0500 (EST) Message-Id: <200202081624.LAA08014@renoir.op.net> To: Havoc Pennington Cc: Deepa , gtk-list@gnome.org, desktop-devel-list Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc In-reply-to: Your message of "08 Feb 2002 11:19:18 EST." Date: Fri, 08 Feb 2002 11:24:07 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> gdk_input_remove () > >g_source_remove() > >> gdk_input_add () > >g_io_channel_add_watch () last time i looked at the replacement functions, their interface was intimidating in the extreme. it required me to understand a *LOT* more about glib than i wanted to. by contrast, gdk_input_*() were pitched at exactly the right level. i spent 10 minutes or so trying to understand g_io_channel_add_watch() and gave up. --p From hp@redhat.com Fri Feb 8 11:45:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 748AA192B6 for ; Fri, 8 Feb 2002 11:45:35 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18GjXf32623; Fri, 8 Feb 2002 11:45:33 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Kerber, Ulrich" Cc: gtk-list@gnome.org Subject: Re: Memory problems while using a clist References: <1013168395.2884.11.camel@dshpc004> From: Havoc Pennington Date: 08 Feb 2002 11:45:33 -0500 In-Reply-To: <1013168395.2884.11.camel@dshpc004> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Kerber, Ulrich" writes: > I wrote an app with a clist showing the contents of a log file; the > clist is updated every 60 seconds. Although i do a gtk_clist_clear, > the memory used is increasing with every run, even if no element is > added. After a day of work the amount reaches up to 40 MB! > Does anybody know a solution to this problem? > You just need to debug it. Use a tool such as "memprof" to see where the memory is leaked. Havoc From hp@redhat.com Fri Feb 8 11:46:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id BB639192CB for ; Fri, 8 Feb 2002 11:46:35 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18GkV132627; Fri, 8 Feb 2002 11:46:31 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: nicholas allen Cc: gtk-list@gnome.org Subject: Re: Iconify/deioconfy gtk windows References: <3C63DF90.1090104@ireland.sun.com> From: Havoc Pennington Date: 08 Feb 2002 11:46:31 -0500 In-Reply-To: <3C63DF90.1090104@ireland.sun.com> Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: nicholas allen writes: > I thought there would be a gtk_window_iconify function or something > similar. GTK 2 has this function. In 1.2, you probably want to look at the GTK 2 source and copy what it does. Check out the ICCCM to understand why it does it. Havoc From hp@redhat.com Fri Feb 8 12:30:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 51D0C180F8; Fri, 8 Feb 2002 12:30:38 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18HUat32647; Fri, 8 Feb 2002 12:30:36 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Deepa , gtk-list@gnome.org, desktop-devel-list Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc References: <200202081624.LAA08014@renoir.op.net> From: Havoc Pennington Date: 08 Feb 2002 12:30:36 -0500 In-Reply-To: <200202081624.LAA08014@renoir.op.net> Message-ID: Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > last time i looked at the replacement functions, their interface was > intimidating in the extreme. it required me to understand a *LOT* more > about glib than i wanted to. by contrast, gdk_input_*() were pitched > at exactly the right level. i spent 10 minutes or so trying to > understand g_io_channel_add_watch() and gave up. > I agree there should be a g_input_add() type of thing. One for bugzilla. It's really not hard though (you just create an IO channel using g_io_channel_unix_new(), g_io_channel_add_watch(), then g_io_channel_unref()). The only difference is having to wrap the file descriptor in the IOChannel deal. Havoc From zanac_fake@libero.it Fri Feb 8 13:18:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by mail.gnome.org (Postfix) with ESMTP id 46E20181E8 for ; Fri, 8 Feb 2002 13:18:59 -0500 (EST) Received: from libero.it (193.70.192.58) by smtp2.libero.it (6.0.040) id 3C5840440061FB84 for gtk-list@gnome.org; Fri, 8 Feb 2002 19:18:57 +0100 Date: Fri, 8 Feb 2002 19:18:49 +0100 Message-Id: Subject: =?iso-8859-1?Q?sample_source_of_buggy_gtk_2.0_function?= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?iso-8859-1?Q?zanac=5Ffake?=" To: gtk-list@gnome.org X-XaM3-API-Version: 2.5 X-type:0 X-SenderIP: 151.25.54.250 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQoNCmFzIGkgbWVudGlvbmVkIGluIGFub3RoZXIgcG9zdCBpIHRoaW5rIHRoYXQgR3Rr VHJlZVZpZXdDb2x1bW4gaXMgYnVnZ3ksDQpidXQgbm8gb25lIGhlbHBlZCBtZS4uLiBzbyBp IGhhdmUganVzdCB3cml0ZSB0aGlzIHNtYWxsIHNhbXBsZSB0aGF0IHlvdQ0KY2FuIHVzZSB0 byB0cnkgdGhpcyBwcm9ibGVtLiBJbiB0aGlzIHNhbXBsZSBpZiB5b3UgcHJlc3MgPGFsdCt1 PiB0aGUNCmJ1dHRvbjIgd29yaywgYnV0IGlmIHlvdSB1c2UgdGhlIG1vdXNlLi4uLi4uLi4u Lg0KDQpieWVaIQ0KDQpfX19fX19fX19fX19fX19fX19jdXQgaGVyZSEhIV9fX19fX19fX19f X19fX19fX19fX19fX19fDQoNCg0KI2luY2x1ZGUgPGd0ay9ndGsuaD4NCg0KdHlwZWRlZiBz dHJ1Y3QNCnsNCiAgZ2ludCAgICAgbnVtYmVyOw0KICBnY2hhciAgICpwcm9kdWN0Ow0KfQ0K SXRlbTsNCg0KZW51bQ0Kew0KICBDT0xVTU5fTlVNQkVSLA0KICBDT0xVTU5fUFJPRFVDVCwN CiAgTlVNX0NPTFVNTlMNCn07DQoNCnN0YXRpYyBHQXJyYXkgKmFydGljbGVzID0gTlVMTDsN Cg0KDQoNCmludCBmbGFnID0gMDsNCmludCBmbGFnMiA9IDE7DQoNCkd0a1dpZGdldCAqYnV0 dG9uMTsNCkd0a1dpZGdldCAqYnV0dG9uMjsNCkd0a1dpZGdldCAqdmlldzsNCg0KLyogT3Vy IG5ldyBpbXByb3ZlZCBjYWxsYmFjay4gIFRoZSBkYXRhIHBhc3NlZCB0byB0aGlzIGZ1bmN0 aW9uDQogKiBpcyBwcmludGVkIHRvIHN0ZG91dC4gKi8NCnZvaWQgY2FsbGJhY2soIEd0a1dp ZGdldCAqd2lkZ2V0LA0KICAgICAgICAgICAgICAgZ3BvaW50ZXIgICBkYXRhICkNCnsNCglp ZiAoc3RyY21wKGRhdGEsICJidXR0b24gMSIpKQ0KCXsNCgkJZmxhZyA9IDEtZmxhZzsNCg0K CQlpZiAoZmxhZykNCgkJCWd0a193aWRnZXRfaGlkZShidXR0b24xKTsNCgkJZWxzZSBndGtf d2lkZ2V0X3Nob3coYnV0dG9uMSk7DQoJCWdfcHJpbnQgKCJIZWxsbyBhZ2FpbiAtICVzIHdh cyBwcmVzc2VkXG4iLCAoY2hhciAqKSBkYXRhKTsNCgl9IGVsc2Ugew0KCQlmbGFnMiA9IDEt ZmxhZzI7DQoJCWd0a193aWRnZXRfc2V0X3NlbnNpdGl2ZShidXR0b24yLCBmbGFnMik7DQoJ fQ0KfQ0KDQpnaW50IGRlbGV0ZV9ldmVudCggR3RrV2lkZ2V0ICp3aWRnZXQsDQogICAgICAg ICAgICAgICAgICAgR2RrRXZlbnQgICpldmVudCwNCiAgICAgICAgICAgICAgICAgICBncG9p bnRlciAgIGRhdGEgKQ0Kew0KICAgIGd0a19tYWluX3F1aXQoKTsNCiAgICByZXR1cm4oRkFM U0UpOw0KfQ0KDQoNCnN0YXRpYyB2b2lkDQphZGRfaXRlbXMgKHZvaWQpDQp7DQogIEl0ZW0g Zm9vOw0KDQogIGdfcmV0dXJuX2lmX2ZhaWwgKGFydGljbGVzICE9IE5VTEwpOw0KDQogIGZv by5udW1iZXIgPSAzOw0KICBmb28ucHJvZHVjdCA9IGdfc3RyZHVwICgiYm90dGxlcyBvZiBj b2tlIik7DQogIGdfYXJyYXlfYXBwZW5kX3ZhbHMgKGFydGljbGVzLCAmZm9vLCAxKTsNCg0K ICBmb28ubnVtYmVyID0gNTsNCiAgZm9vLnByb2R1Y3QgPSBnX3N0cmR1cCAoInBhY2thZ2Vz IG9mIG5vb2RsZXMiKTsNCiAgZ19hcnJheV9hcHBlbmRfdmFscyAoYXJ0aWNsZXMsICZmb28s IDEpOw0KDQogIGZvby5udW1iZXIgPSAyOw0KICBmb28ucHJvZHVjdCA9IGdfc3RyZHVwICgi cGFja2FnZXMgb2YgY2hvY29sYXRlIGNoaXAgY29va2llcyIpOw0KICBnX2FycmF5X2FwcGVu ZF92YWxzIChhcnRpY2xlcywgJmZvbywgMSk7DQoNCiAgZm9vLm51bWJlciA9IDE7DQogIGZv by5wcm9kdWN0ID0gZ19zdHJkdXAgKCJjYW4gdmFuaWxsYSBpY2UgY3JlYW0iKTsNCiAgZ19h cnJheV9hcHBlbmRfdmFscyAoYXJ0aWNsZXMsICZmb28sIDEpOw0KDQogIGZvby5udW1iZXIg PSA2Ow0KICBmb28ucHJvZHVjdCA9IGdfc3RyZHVwICgiZWdncyIpOw0KICBnX2FycmF5X2Fw cGVuZF92YWxzIChhcnRpY2xlcywgJmZvbywgMSk7DQp9DQoNCnN0YXRpYyBHdGtUcmVlTW9k ZWwgKg0KY3JlYXRlX21vZGVsICh2b2lkKQ0Kew0KICBnaW50IGkgPSAwOw0KICBHdGtMaXN0 U3RvcmUgKm1vZGVsOw0KICBHdGtUcmVlSXRlciBpdGVyOw0KDQogIC8qIGNyZWF0ZSBhcnJh eSAqLw0KICBhcnRpY2xlcyA9IGdfYXJyYXlfc2l6ZWRfbmV3IChGQUxTRSwgRkFMU0UsIHNp emVvZiAoSXRlbSksIDEpOw0KDQogIGFkZF9pdGVtcyAoKTsNCg0KICAvKiBjcmVhdGUgbGlz dCBzdG9yZSAqLw0KICBtb2RlbCA9IGd0a19saXN0X3N0b3JlX25ldyAoTlVNX0NPTFVNTlMs IEdfVFlQRV9JTlQsIEdfVFlQRV9TVFJJTkcsDQoJCQkgICAgICBHX1RZUEVfQk9PTEVBTik7 DQoNCiAgLyogYWRkIGl0ZW1zICovDQogIGZvciAoaSA9IDA7IGkgPCBhcnRpY2xlcy0+bGVu OyBpKyspDQogICAgew0KICAgICAgZ3RrX2xpc3Rfc3RvcmVfYXBwZW5kIChtb2RlbCwgJml0 ZXIpOw0KDQogICAgICBndGtfbGlzdF9zdG9yZV9zZXQgKG1vZGVsLCAmaXRlciwNCgkJCSAg Q09MVU1OX05VTUJFUiwNCgkJCSAgZ19hcnJheV9pbmRleCAoYXJ0aWNsZXMsIEl0ZW0sIGkp Lm51bWJlciwNCgkJCSAgQ09MVU1OX1BST0RVQ1QsDQoJCQkgIGdfYXJyYXlfaW5kZXggKGFy dGljbGVzLCBJdGVtLCBpKS5wcm9kdWN0LA0KCQkJICAtMSk7DQogICAgfQ0KDQogIHJldHVy biBHVEtfVFJFRV9NT0RFTCAobW9kZWwpOw0KfQ0KDQoNCnN0YXRpYyB2b2lkDQphZGRfY29s dW1ucyAoR3RrVHJlZVZpZXcgKnRyZWV2aWV3KQ0Kew0KICBHdGtDZWxsUmVuZGVyZXIgKnJl bmRlcmVyOw0KICBHdGtUcmVlTW9kZWwgKm1vZGVsID0gZ3RrX3RyZWVfdmlld19nZXRfbW9k ZWwgKHRyZWV2aWV3KTsNCiAgR3RrVHJlZVZpZXdDb2x1bW4gKmNvbHVtbjsNCg0KICAvKiBu dW1iZXIgY29sdW1uICovDQogIHJlbmRlcmVyID0gZ3RrX2NlbGxfcmVuZGVyZXJfdGV4dF9u ZXcgKCk7DQogIGdfb2JqZWN0X3NldF9kYXRhIChHX09CSkVDVCAocmVuZGVyZXIpLCAiY29s dW1uIiwgKGdpbnQgKilDT0xVTU5fTlVNQkVSKTsNCg0KICBjb2x1bW4gPSBndGtfdHJlZV92 aWV3X2NvbHVtbl9uZXdfd2l0aF9hdHRyaWJ1dGVzICgiRGlyZWN0b3J5IiwNCiAgICAgICAg ICBndGtfY2VsbF9yZW5kZXJlcl90ZXh0X25ldyAoKSwNCiAgICAgICAgICAidGV4dCIsIDAs DQogICAgICAgICAgTlVMTCk7DQoNCiAgZ3RrX3RyZWVfdmlld19jb2x1bW5fc2V0X3dpZGdl dCAoY29sdW1uLCBidXR0b24yKTsNCi8vICBndGtfdHJlZV92aWV3X2NvbHVtbl9zZXRfY2xp Y2thYmxlIChjb2x1bW4sIGJ1dHRvbjIpOw0KICBndGtfdHJlZV92aWV3X2NvbHVtbl9zZXRf c2l6aW5nIChjb2x1bW4sIEdUS19UUkVFX1ZJRVdfQ09MVU1OX0dST1dfT05MWSk7DQogIGd0 a190cmVlX3ZpZXdfYXBwZW5kX2NvbHVtbiAoR1RLX1RSRUVfVklFVyAodmlldyksIGNvbHVt bik7DQoNCiAgLyogcHJvZHVjdCBjb2x1bW4gKi8NCiAgcmVuZGVyZXIgPSBndGtfY2VsbF9y ZW5kZXJlcl90ZXh0X25ldyAoKTsNCiAgZ19vYmplY3Rfc2V0X2RhdGEgKEdfT0JKRUNUIChy ZW5kZXJlciksICJjb2x1bW4iLCAoZ2ludCAqKUNPTFVNTl9QUk9EVUNUKTsNCg0KICBndGtf dHJlZV92aWV3X2luc2VydF9jb2x1bW5fd2l0aF9hdHRyaWJ1dGVzIChHVEtfVFJFRV9WSUVX ICh0cmVldmlldyksDQoJCQkJCSAgICAgICAtMSwgIlByb2R1Y3QiLCByZW5kZXJlciwNCgkJ CQkJICAgICAgICJ0ZXh0IiwgQ09MVU1OX1BST0RVQ1QsDQoJCQkJCSAgICAgICBOVUxMKTsN Cn0NCg0Kdm9pZCBjcmVhKCkNCnsNCiAgICBHdGtUcmVlTW9kZWwgKm1vZGVsOw0KDQogICAg LyogY3JlYXRlIG1vZGVsICovDQogICAgbW9kZWwgPSBjcmVhdGVfbW9kZWwgKCk7DQoNCiAg ICB2aWV3ID0gZ3RrX3RyZWVfdmlld19uZXdfd2l0aF9tb2RlbCAobW9kZWwpOw0KDQogICAg Z19vYmplY3RfdW5yZWYgKEdfT0JKRUNUIChtb2RlbCkpOw0KICAgIGd0a190cmVlX3ZpZXdf c2V0X3J1bGVzX2hpbnQgKEdUS19UUkVFX1ZJRVcgKHZpZXcpLCBUUlVFKTsNCiAgICBndGtf dHJlZV9zZWxlY3Rpb25fc2V0X21vZGUgKGd0a190cmVlX3ZpZXdfZ2V0X3NlbGVjdGlvbg0K KEdUS19UUkVFX1ZJRVcgKHZpZXcpKSwgR1RLX1NFTEVDVElPTl9TSU5HTEUpOw0KDQogICAg YWRkX2NvbHVtbnMgKEdUS19UUkVFX1ZJRVcgKHZpZXcpKTsNCiAgICANCiAgICBndGtfd2lk Z2V0X3Nob3codmlldyk7DQogICAgDQp9DQoNCg0KDQppbnQgbWFpbiggaW50ICAgYXJnYywN CiAgICAgICAgICBjaGFyICphcmd2W10gKQ0Kew0KICAgIEd0a1dpZGdldCAqd2luZG93Ow0K ICAgIEd0a1dpZGdldCAqYm94MTsNCg0KICAgIGd0a19pbml0ICgmYXJnYywgJmFyZ3YpOw0K DQogICAgd2luZG93ID0gZ3RrX3dpbmRvd19uZXcgKEdUS19XSU5ET1dfVE9QTEVWRUwpOw0K DQogICAgZ3RrX3dpbmRvd19zZXRfdGl0bGUgKEdUS19XSU5ET1cgKHdpbmRvdyksICJIZWxs byBCdXR0b25zISIpOw0KDQogICAgZ3RrX3NpZ25hbF9jb25uZWN0IChHVEtfT0JKRUNUICh3 aW5kb3cpLCAiZGVsZXRlX2V2ZW50IiwNCgkJCUdUS19TSUdOQUxfRlVOQyAoZGVsZXRlX2V2 ZW50KSwgTlVMTCk7DQoNCiAgICBndGtfY29udGFpbmVyX3NldF9ib3JkZXJfd2lkdGggKEdU S19DT05UQUlORVIgKHdpbmRvdyksIDEwKTsNCg0KICAgIGJveDEgPSBndGtfdmJveF9uZXco RkFMU0UsIDApOw0KDQogICAgZ3RrX2NvbnRhaW5lcl9hZGQgKEdUS19DT05UQUlORVIgKHdp bmRvdyksIGJveDEpOw0KDQogICAgYnV0dG9uMSA9IGd0a19idXR0b25fbmV3X3dpdGhfbW5l bW9uaWMgKCJfQnV0dG9uIDEiKTsNCg0KICAgIGd0a19zaWduYWxfY29ubmVjdCAoR1RLX09C SkVDVCAoYnV0dG9uMSksICJjbGlja2VkIiwNCgkJCUdUS19TSUdOQUxfRlVOQyAoY2FsbGJh Y2spLCAoZ3BvaW50ZXIpICJidXR0b24gMSIpOw0KDQogICAgZ3RrX2JveF9wYWNrX3N0YXJ0 KEdUS19CT1goYm94MSksIGJ1dHRvbjEsIFRSVUUsIFRSVUUsIDApOw0KDQogICAgZ3RrX3dp ZGdldF9zaG93KGJ1dHRvbjEpOw0KDQogICAgYnV0dG9uMiA9IGd0a19idXR0b25fbmV3X3dp dGhfbW5lbW9uaWMoImJfdXR0b24yIik7DQoNCiAgICBndGtfc2lnbmFsX2Nvbm5lY3QgKEdU S19PQkpFQ1QgKGJ1dHRvbjIpLCAiY2xpY2tlZCIsDQoJCQlHVEtfU0lHTkFMX0ZVTkMgKGNh bGxiYWNrKSwgKGdwb2ludGVyKSAiYnV0dG9uIDIiKTsNCg0KICAgIGd0a193aWRnZXRfc2hv dyhidXR0b24yKTsNCg0KICAgIGNyZWEoKTsNCiAgICBndGtfd2lkZ2V0X3Nob3codmlldyk7 DQogICAgZ3RrX2JveF9wYWNrX3N0YXJ0KEdUS19CT1goYm94MSksIHZpZXcsIFRSVUUsIFRS VUUsIDApOw0KDQogICAgZ3RrX3dpZGdldF9zaG93KGJveDEpOw0KDQogICAgZ3RrX3dpZGdl dF9zaG93ICh3aW5kb3cpOw0KDQogICAgZ3RrX21haW4gKCk7DQoNCiAgICByZXR1cm4oMCk7 DQp9DQoNCg== From eric.thierry@finconsult.fr Fri Feb 8 13:31:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from argyre.fr.uu.net (mail.iway.fr [194.98.0.9]) by mail.gnome.org (Postfix) with ESMTP id 29AA818413 for ; Fri, 8 Feb 2002 13:31:26 -0500 (EST) Received: from finconsult.fr ([212.208.176.166]) by argyre.fr.uu.net (8.9.3/8.8.7) with ESMTP id TAA28095 for ; Fri, 8 Feb 2002 19:38:16 +0100 (MET) Message-ID: <3C641977.5299747B@finconsult.fr> Date: Fri, 08 Feb 2002 19:31:19 +0100 From: Eric THIERRY X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Colored scrolled_window Content-Type: multipart/mixed; boundary="------------F54ED5736F99664E1C8C76A9" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. --------------F54ED5736F99664E1C8C76A9 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I create a scrolled window and a tree that I add in with a viewport. I'd like the background of the viewport to be colored, but it desperately remains white. Could someone help me about it ? Thanks a lot. -- Salutations, Eric THIERRY --------------F54ED5736F99664E1C8C76A9 Content-Type: text/x-vcard; charset=us-ascii; name="eric.thierry.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Eric THIERRY Content-Disposition: attachment; filename="eric.thierry.vcf" begin:vcard n:THIERRY;Eric tel;fax:01-53-45-32-99 tel;work:01-53-45-32-80 x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:eric.thierry@finconsult.fr fn:Eric THIERRY end:vcard --------------F54ED5736F99664E1C8C76A9-- From mmotta@guest.net Fri Feb 8 14:11:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from riccione.guest.net (server.guest.net [80.17.82.2]) by mail.gnome.org (Postfix) with ESMTP id 75B75190C7 for ; Fri, 8 Feb 2002 14:11:19 -0500 (EST) Received: from guest.net (dialup-08.guest.net [80.17.82.200] (may be forged)) by riccione.guest.net (8.8.8/8.8.8) with ESMTP id UAA13743 for ; Fri, 8 Feb 2002 20:18:03 +0100 (CET) (envelope-from mmotta@guest.net) Message-ID: <3C64317A.8030502@guest.net> Date: Fri, 08 Feb 2002 21:13:46 +0100 From: mario motta User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 X-Accept-Language: en-us, it MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: sample source of buggy gtk 2.0 function References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: zanac_fake wrote: > Hi, > > as i mentioned in another post i think that GtkTreeViewColumn is buggy, > but no one helped me... so i have just write this small sample that you > can use to try this problem. In this sample if you press the > button2 work, but if you use the mouse.......... > > byeZ! > $ cat > http://bugzilla.gnome.org/ /mario -- Mario Motta AI Research Group - Rimini http://vdkbuilder.sourceforge.net From emonsler@beamreachnetworks.com Fri Feb 8 17:48:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from newman.BEAMREACHNETWORKS.COM (unknown [209.11.118.10]) by mail.gnome.org (Postfix) with ESMTP id C3ED518189 for ; Fri, 8 Feb 2002 17:48:53 -0500 (EST) Received: from beamreachnetworks.com (e_monsler.beamreachnetworks.com [172.31.40.59]) by newman.BEAMREACHNETWORKS.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 4TNW0W0J; Fri, 8 Feb 2002 14:46:03 -0800 Message-ID: <3C6455BA.11ABCBC0@beamreachnetworks.com> Date: Fri, 08 Feb 2002 14:48:26 -0800 From: "Eric M. Monsler" X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: "Kerber, Ulrich" , gtk-list@gnome.org Subject: Re: Memory problems while using a clist References: <1013168395.2884.11.camel@dshpc004> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > "Kerber, Ulrich" writes: > > I wrote an app with a clist showing the contents of a log file; the > > clist is updated every 60 seconds. Although i do a gtk_clist_clear, > > the memory used is increasing with every run, even if no element is > > added. After a day of work the amount reaches up to 40 MB! > > Does anybody know a solution to this problem? > > > > You just need to debug it. Use a tool such as "memprof" to see where > the memory is leaked. > > Havoc A tool I found very useful was GSK, (GNU Server Kit), which can replace the g_malloc type GLib calls with debug versions, and keeps a record of all outstanding allocations. I used essentially just the gskdebug facility, and it worked great. gsk.sourceforge.net, IIRC Eric From doc@deadvirgins.org.uk Sat Feb 9 10:01:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand7.global.net.uk (sand7.global.net.uk [195.147.246.253]) by mail.gnome.org (Postfix) with ESMTP id 7F72D182C9 for ; Sat, 9 Feb 2002 10:01:20 -0500 (EST) Received: from [195.147.236.28] (helo=deadvirgins.org.uk) by sand7.global.net.uk with esmtp (Exim 3.22 #1) id 16ZZ0K-0003U3-00 for gtk-list@gnome.org; Sat, 09 Feb 2002 15:01:29 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g19F1G600458 for gtk-list@gnome.org; Sat, 9 Feb 2002 15:01:16 GMT Message-Id: <200202091501.g19F1G600458@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: gtk-list@gnome.org Subject: Re: Creating widgets with auto-repeat Date: Sat, 9 Feb 2002 15:01:16 +0000 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks to Pauk for the pointers on how to make my autorepeat code a bit more elegant, but having looked at the suggestions I'm a bit puzzled... info->value++; info->count = 0; info->state = 0; info->timer_id = gtk_timeout_add(REPEAT_STAGE0_DELAY, (GtkFunction)timer_func, info); The "gtk_timeout_add" line doesn't work, becasue you're *passing* the value of info->timer *before* it gets assigned. Hence the timeout function doesn't know the ID of the timer.... This was why I resorted to globals! :-) -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From sven@gimp.org Sat Feb 9 10:23:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E0DDCB.dip.t-dialin.net [217.224.221.203]) by mail.gnome.org (Postfix) with ESMTP id 65C13180E7 for ; Sat, 9 Feb 2002 10:23:00 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZZKh-0004fX-00; Sat, 09 Feb 2002 16:22:31 +0100 To: doc@deadvirgins.org.uk Cc: gtk-list@gnome.org Subject: Re: Creating widgets with auto-repeat References: <200202091501.g19F1G600458@deadvirgins.org.uk> From: Sven Neumann Date: 09 Feb 2002 16:22:31 +0100 In-Reply-To: <200202091501.g19F1G600458@deadvirgins.org.uk> Message-ID: Lines: 26 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "David J. Singer" writes: > Thanks to Pauk for the pointers on how to make my autorepeat > code a bit more elegant, but having looked at the suggestions > I'm a bit puzzled... > > info->value++; > info->count = 0; > info->state = 0; > info->timer_id = gtk_timeout_add(REPEAT_STAGE0_DELAY, > (GtkFunction)timer_func, info); > > The "gtk_timeout_add" line doesn't work, becasue you're *passing* > the value of info->timer *before* it gets assigned. Hence the timeout > function doesn't know the ID of the timer.... I don't see the problem. You are passing a pointer to the info structure and of course you can change it's contents later and the timer_func will get the current value when it accesses info->timer_id. Apart from that, I don't think you need the timer_id since you can remove the timeout by returning FALSE from timer_func. Salut, Sven From davidgn@servidor.unam.mx Sat Feb 9 11:56:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id ECFCF18154 for ; Sat, 9 Feb 2002 11:56:25 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.113.17]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g19GtCk15022 for ; Sat, 9 Feb 2002 10:55:12 -0600 (CST) Date: Sat, 9 Feb 2002 11:12:46 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: sleeping Message-Id: <20020209111246.58756e22.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello again. I am writing a program to control two steppers. To control its speed, i would need to sleep the function that moves them. Is it safe to use sleep/nanosleep? or are there safer functions or a better way to do it than a callback from an Entry widget (where i get the command from)? (I was just thinking a long coulback could hang the app, am i right?) -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From hunchback@netcabo.pt Sat Feb 9 12:16:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 579E618154 for ; Sat, 9 Feb 2002 12:16:44 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 9 Feb 2002 17:11:04 +0000 Content-Class: urn:content-classes:message From: To: , Subject: RE: sleeping Date: Sat, 9 Feb 2002 17:11:04 -0000 Message-ID: <0b6b01c1b18c$c1c6bed0$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcGxjMHEHg2jUh12EdaCdgBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi,=20 >I am writing a program to control two steppers. To control its speed, i = would need to >sleep the function that moves them. i have a similar problem, i'm doing a movement of a pixmap, but i want = to slow it down, so that the image runs move smothly... i made the signal connect for the mouse events and on the handler i made = it sleep with the GTimer (glib), but the problem is that even putting it = to sleep, it remembers the events, so if i go left, then right, then = left, it always does this movements, but not synchronized with the = mouse... is there some way to do this, or do i have to disconnect the = signal while i put it to sleep? Afonso From sven@gimp.org Sat Feb 9 13:12:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E0D9CC.dip.t-dialin.net [217.224.217.204]) by mail.gnome.org (Postfix) with ESMTP id B55AF1811B for ; Sat, 9 Feb 2002 13:12:54 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZbzL-0004hi-00; Sat, 09 Feb 2002 19:12:39 +0100 To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: sleeping References: <20020209111246.58756e22.davidgn@servidor.unam.mx> From: Sven Neumann Date: 09 Feb 2002 19:12:38 +0100 In-Reply-To: <20020209111246.58756e22.davidgn@servidor.unam.mx> Message-ID: Lines: 13 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, David Eduardo Gomez Noguera writes: > I am writing a program to control two steppers. To control its speed, i would need to sleep the function that moves them. > Is it safe to use sleep/nanosleep? or are there safer functions or a better way to do it than a callback from an Entry widget (where i get the command from)? (I was just thinking a long coulback could hang the app, am i right?) I'd suggest you use the GTK+ main loop instead and install a timeout. Have a look at gtk_timeout_add(). Salut, Sven From davidgn@servidor.unam.mx Sat Feb 9 13:30:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id 960C61879C for ; Sat, 9 Feb 2002 13:30:26 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.110]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g19ITDk26269 for ; Sat, 9 Feb 2002 12:29:13 -0600 (CST) Date: Sat, 9 Feb 2002 12:46:46 -0600 From: David Eduardo Gomez Noguera To: gtk-list@gnome.org Subject: Re: sleeping Message-Id: <20020209124646.0bbf4278.davidgn@servidor.unam.mx> In-Reply-To: References: <20020209111246.58756e22.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 09 Feb 2002 19:12:38 +0100 Sven Neumann wrote: > Hi, > > David Eduardo Gomez Noguera writes: > > > I am writing a program to control two steppers. To control its speed, i would need to sleep the function that moves them. > > Is it safe to use sleep/nanosleep? or are there safer functions or a better way to do it than a callback from an Entry widget (where i get the command from)? (I was just thinking a long coulback could hang the app, am i right?) > > I'd suggest you use the GTK+ main loop instead and install a timeout. > Have a look at gtk_timeout_add(). what do you mean with the GTK+ main loop? havent done much with gtk, so my knowledge about gtk_main is limited to think that i run it only once. I have seen gtk_timeout_add. my function needs the two steppers to start and stop moving at the same time, so i use a line algorithm, and would need static variables there. Also, i get the command to move the steppers from a GtkEntry widget, then i would need some way to not enable execution of new commands until the lastone ends (was thinking of gtk_object_set_data on the Entry, and a check each time to see if the timer exists.) Can i "temporary" block signals from other widgets? I also have a few buttons that affect the steppers, and would have to block them while executing a command. Any help or pointer would be very appreciated... (i have a bad bad english) Thank you. > > > Salut, Sven > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From sven@gimp.org Sat Feb 9 14:17:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E0D9CC.dip.t-dialin.net [217.224.217.204]) by mail.gnome.org (Postfix) with ESMTP id 11E9218360 for ; Sat, 9 Feb 2002 14:17:14 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZczF-0005Vj-00; Sat, 09 Feb 2002 20:16:37 +0100 To: davidgn@servidor.unam.mx Cc: gtk-list@gnome.org Subject: Re: sleeping References: <20020209111246.58756e22.davidgn@servidor.unam.mx> <20020209124646.0bbf4278.davidgn@servidor.unam.mx> From: Sven Neumann Date: 09 Feb 2002 20:16:37 +0100 In-Reply-To: <20020209124646.0bbf4278.davidgn@servidor.unam.mx> Message-ID: Lines: 30 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, David Eduardo Gomez Noguera writes: > > I'd suggest you use the GTK+ main loop instead and install a timeout. > > Have a look at gtk_timeout_add(). > > what do you mean with the GTK+ main loop? havent done much with gtk, so my knowledge about gtk_main is limited to think that i run it only once. you start it once and then it's running. You should not sleep since that would block the main loop. Instead you should hook your functionality into the main loop. > I have seen gtk_timeout_add. > my function needs the two steppers to start and stop moving at the same time, so i use a line algorithm, and would need static variables there. > Also, i get the command to move the steppers from a GtkEntry widget, then i would need some way to not enable execution of new commands until the lastone ends (was thinking of gtk_object_set_data on the Entry, and a check each time to see if the timer exists.) > Can i "temporary" block signals from other widgets? gtk_signal_handler_block() gtk_signal_handler_block_by_func() gtk_signal_handler_block_by_data() gtk_signal_handler_unblock() gtk_signal_handler_unblock_by_func() gtk_signal_handler_unblock_by_data() Salut, Sven From toni.moreno.gimenez@wanadoo.es Sun Feb 10 01:49:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.wanadoo.es (unknown [62.37.236.151]) by mail.gnome.org (Postfix) with ESMTP id 1380C180FE for ; Sun, 10 Feb 2002 01:49:49 -0500 (EST) Received: from Telemaco (62-36-160-2.dialup.uni2.es [62.36.160.2]) by smtp.wanadoo.es (8.11.6/8.10.2) with SMTP id g1A6o4Y12164 for ; Sun, 10 Feb 2002 07:50:05 +0100 (MET) Content-Type: text/plain; charset="iso-8859-1" From: Toni Moreno =?iso-8859-1?q?Gim=E9nez?= To: gtk-list@gnome.org Subject: Thread Safe GLib ? object/message Date: Sun, 10 Feb 2002 07:55:13 +0100 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02021007551301.02239@Telemaco> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: A single question: are GObject (Glib2) and (Glib 1-2) message system thread safe ? -- ================= Toni Moreno Giménez ================= Pje de las rosas nº 22 Vilassar de Mar (Barcelona) España CP: 08340 From neofolk@yahoo.de Sat Feb 2 00:23:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by mail.gnome.org (Postfix) with SMTP id 934A7180EC for ; Sat, 2 Feb 2002 00:23:40 -0500 (EST) Received: from pc19f2f41.dip.t-dialin.net (HELO p3desktop) (193.159.47.65) by smtp.mail.vip.sc5.yahoo.com with SMTP; 2 Feb 2002 05:23:38 -0000 Message-ID: <001201c1aba9$756ac9c0$6600a8c0@p3desktop> Reply-To: "Oliver Kroll :ALT EUROPA: - Magazin" From: "Oliver Kroll :ALT EUROPA: - Magazin" To: Subject: CList: how to change column-count at runtime Date: Sat, 2 Feb 2002 06:21:22 +0100 Organization: :ALT EUROPA: - Magazin MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000F_01C1ABB1.D5D12860" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C1ABB1.D5D12860 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi all, i created a form (clist included) with glade. i filled a ctree with databases and tables from the mysql-server, now i = like to read the data stored in a mysql-table into the clist. this is no problem so far. but how can i change the column-count from the gtk-clist at runtime, so = that it will fit to the column-count of the mysql-resultset? thanks a lot for your help. sincerly oliver k. ------=_NextPart_000_000F_01C1ABB1.D5D12860 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi all,
 
i created a form (clist included) with=20 glade.
 
i filled a ctree with databases and = tables from the=20 mysql-server, now i like to read the data stored in a mysql-table into = the=20 clist.
this is no problem so far.
 
but how can i change the column-count = from the=20 gtk-clist at runtime, so that it will fit to the column-count of the=20 mysql-resultset?
 
thanks a lot for your = help.
 
sincerly
 
oliver k.
------=_NextPart_000_000F_01C1ABB1.D5D12860-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From nitin.yewale@wipro.com Mon Feb 4 01:22:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 68B04180E7; Mon, 4 Feb 2002 01:22:39 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g146LYX05552; Mon, 4 Feb 2002 11:51:38 +0530 (IST) Received: from M33COM793 ([10.114.9.178]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GQZWBZ00.5CN; Mon, 4 Feb 2002 11:51:35 +0530 Reply-To: From: "Nitin Madhukar Yewale" To: "Desktop-Devel-List" , Subject: Help required on "GMenu" implementation using Model/View architecture. Date: Mon, 4 Feb 2002 11:57:34 +0530 Message-ID: <002b01c1ad45$0823b0f0$b209720a@M33COM793> 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am going through the source code of "GMenu" application. As per the GTK 2.0, GtkTree and GtkList widgets are deprecated and we have to use GtkTreeView,GtkTreeModel widgets to adopt Model/View architecture. In the above application we will have to use gtktreestore as a model which will store information in terms of GtkTreeIter and at the same time we need to update GtkTreeView to show on the GUI so that both of them will be in sync. As per my understanding to extract information of selected column of GtkTreeView we have to use following steps :- 1> Get selected item using GtkTreeSelection from GtkTreeView. 2> Get selected GtkTreeIter of GtkTreeStore from above GtkTreeSelection. Please suggest better way for extracting data from GtkTreeView. Thanks in Advance, Nitin NOTE: I have not subscribed gtk-list mailing list so please send your suggestions to nitin.yewale@wipro.com . From falconer@falconer.best.vwh.net Wed Feb 6 20:48:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id A2B15181CC for ; Wed, 6 Feb 2002 20:48:30 -0500 (EST) Received: (qmail 27095 invoked by uid 25889); 7 Feb 2002 01:48:29 -0000 Date: 7 Feb 2002 01:48:29 -0000 Message-ID: <20020207014829.27094.qmail@falconer.best.vwh.net> From: falconer@falconer.best.vwh.net To: gtk-list@gnome.org Subject: catching unix signals from Gtk Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all; here's a problem I can't find a solution to in any of the docs nor by searching the email database. How can a Gtk-based application respond to unix signals? In particular, I have an app that may receive a SIGUSR1 from another program which tells my app to re-read some files and update its display. I could write an ordinary unix signal handler and register it with signal(2), but it's not safe to call GTK functions from within such a handler. I could write an ordinary unix signal handler and have it set a flag, and then use a timer callback to poll that flag once a second or so. But I don't want to keep a timer running for an event that happens only rarely. I could open a pipe and have the unix signal handler write a single byte to it when there's an interrupt, and then have GTK attach an input handler to the output side of the pipe. These all seem to be kludges to me; is there a better way to do it? -ed falk From jerryxu@kinposh.com.cn Fri Feb 8 00:06:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 1B87C180E1 for ; Fri, 8 Feb 2002 00:06:50 -0500 (EST) Subject: a problem Date: Fri, 8 Feb 2002 13:06:33 +0800 MIME-Version: 1.0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F82228EAF@kes01.kinposh.com.cn> X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: a problem Thread-Index: AcGwXl+cNgiQdONyQMGCqmuYNjbjJA== X-Priority: 1 Priority: Urgent Importance: high From: =?gb2312?B?0Oy4/SBKZXJyeSBYdQ==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: a problem

 

      Now I have a problem: I want to make the = focus  element  more  obvious .For example, I want to = make the focus-rectangle's edges(line)  wider  and wider. Do I = need to revise the file  "gtkstyle.h"? Can you give me = some advice?

     E.G.: There are four buttons in = the dailog. When the key "tab" is pressed, one of them has the = "focus". And
I want = to make the focus button more distinctness. That is, I want to make the = focus rectangel's frame thicker
than the = default, what can I do? 

From twanger@bluetwanger.de Fri Feb 8 04:52:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from leela.one-2-one.net (leela.one-2-one.net [217.115.142.65]) by mail.gnome.org (Postfix) with ESMTP id 80A12180EA; Fri, 8 Feb 2002 04:52:07 -0500 (EST) Received: from [192.168.0.14] (p3E9EC020.dip.t-dialin.net [62.158.192.32]) by leela.one-2-one.net (8.11.0/8.11.0) with ESMTP id g189sOR23427; Fri, 8 Feb 2002 10:54:24 +0100 Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc From: Markus Bertheau To: Deepa Cc: gtk-list@gnome.org, desktop-devel-list In-Reply-To: <3C639AF8.B378AA0@wipro.com> References: <3C639AF8.B378AA0@wipro.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-R4vu62aHORSrIevoFL+2" X-Mailer: Evolution/1.0.2 Date: 08 Feb 2002 10:51:33 +0100 Message-Id: <1013161894.29366.2.camel@entwicklung01.cenes.de> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-R4vu62aHORSrIevoFL+2 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2002-02-08 at 10:31, Deepa wrote: > Hi >=20 > I am encountering these deprecated calls in libzvt: > gdk_input_remove () > gdk_input_add () > gdk_rgb_init () >=20 > Could anyone please tell me what is the replacement for these. =20 http://cvs.gnome.org/lxr/source/gtk+/gdk/gdkevents.c#852 Markus Bertheau --=-R4vu62aHORSrIevoFL+2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8Y5+lKNEjAb345r4RAo3bAJ44OwYVZunHOsHi5kfmJl5vI+9FmgCaAl7R 61pMNNP2u841np5N2YIwZrg= =SxC5 -----END PGP SIGNATURE----- --=-R4vu62aHORSrIevoFL+2-- From jamesv@galleon.co.uk Tue Feb 5 08:02:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from finch-post-12.mail.demon.net (finch-post-12.mail.demon.net [194.217.242.41]) by mail.gnome.org (Postfix) with ESMTP id 2F47918180 for ; Tue, 5 Feb 2002 08:02:06 -0500 (EST) Received: from gallsubs.demon.co.uk ([158.152.242.244] helo=galmss01.960.local) by finch-post-12.mail.demon.net with esmtp (Exim 2.12 #1) id 16Y5Bo-000Ktn-0C for gtk-list@gnome.org; Tue, 5 Feb 2002 12:59:13 +0000 Received: from james_pc.960.local (Jim@james_pc.960.local [192.168.12.103]) by galmss01.960.local (8.8.5/SCA-6.6) with ESMTP id MAA23544 for ; Tue, 5 Feb 2002 12:57:15 GMT Subject: At the end of my tether with gtk_adjustment_value_changed() From: James Vanns To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 05 Feb 2002 12:52:19 +0000 Message-Id: <1012913539.2024.33.camel@james_pc.960.local> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am getting a little frustrated now: I have a signal handler setup to do stuff when an adjustment receives a value_changed signal. This works except when I want to explicitly want to emit a value_changed signal. I have set the adjustment value two ways: gtk_adjustment_set_value (adjustment, (float) key); /* key was an int originally && >= 0) */ and also adjustment->value = (float) key; and then tried to different ways to send out the signal so my callback would be run: gtk_signal_emit_by_name (GTK_OBJECT (adjustment), "value_changed")); and gtk_adjustment_value_changed (adjustment); none of them seem to emit a value_changed signal cos my callback is not called. What am I doing wrong ?? Am I completely misunderstanding the use of these functions!!??? Cheers for any help James Vanns -- James Vanns BSc (Hons) MCP Software Engineer (UNIX / C) Galleon Ltd. From unicorn@minet.uni-jena.de Sat Feb 9 11:31:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fsuj20.rz.uni-jena.de (fsuj20.rz.uni-jena.de [141.35.1.18]) by mail.gnome.org (Postfix) with ESMTP id 0E2C9181DB for ; Sat, 9 Feb 2002 11:31:54 -0500 (EST) Received: from virusscan.rz.uni-jena.de (virusscan.rz.uni-jena.de [141.35.1.23]) by fsuj20.rz.uni-jena.de (8.12.0.Beta7/8.11.1) with ESMTP id g19GVQ2I027442 for ; Sat, 9 Feb 2002 17:31:42 +0100 (MET) Received: from virusscan.rz.uni-jena.de (localhost [127.0.0.1]) by virusscan.rz.uni-jena.de (8.11.6/8.11.6) with ESMTP id g19GVQl05234 for ; Sat, 9 Feb 2002 17:31:26 +0100 Received: from pax10e3.mipool.uni-jena.de (daemon@pax10e2.mipool.uni-jena.de [141.35.13.142]) by pax08e3.mipool.uni-jena.de (8.11.6/8.11.6) with ESMTP id g19GVNk25838 for ; Sat, 9 Feb 2002 17:31:23 +0100 (CET) From: Randy Rueckner Received: (from unicorn@localhost) by pax10e3.mipool.uni-jena.de (8.11.6/8.11.6) id g19GVHK288465 for gtk-list@gnome.org; Sat, 9 Feb 2002 17:31:17 +0100 (MET) Message-Id: <200202091631.g19GVHK288465@pax10e3.mipool.uni-jena.de> Subject: GtkCTreeNode row_data To: gtk-list@gnome.org Date: Sat, 9 Feb 2002 17:31:17 +0100 (MET) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello there! i have a little question. how can i get the row_data from a node (its a leaf) in a GtkCTree if i only know the label from this node? thanks in advance randy r. From doc@deadvirgins.org.uk Sun Feb 10 12:08:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand7.global.net.uk (sand7.global.net.uk [195.147.246.253]) by mail.gnome.org (Postfix) with ESMTP id DE92C18283 for ; Sun, 10 Feb 2002 12:08:50 -0500 (EST) Received: from [195.147.237.170] (helo=deadvirgins.org.uk) by sand7.global.net.uk with esmtp (Exim 3.22 #1) id 16ZxTH-0006cc-00; Sun, 10 Feb 2002 17:09:00 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g1AH8kn00417; Sun, 10 Feb 2002 17:08:46 GMT Message-Id: <200202101708.g1AH8kn00417@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: Sven Neumann Subject: Re: Creating widgets with auto-repeat Date: Sun, 10 Feb 2002 17:08:46 +0000 X-Mailer: KMail [version 1.3.2] Cc: gtk-list@gnome.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > I don't see the problem. You are passing a pointer to the info > structure and of course you can change it's contents later and the > timer_func will get the current value when it accesses info->timer_id. > Apart from that, I don't think you need the timer_id since you can > remove the timeout by returning FALSE from timer_func. I think I must have been having a "slow" day. You're absolutely right, of course... :-) Oops. -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From hp@redhat.com Sun Feb 10 12:16:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 23BA8180F4 for ; Sun, 10 Feb 2002 12:16:39 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1AHGZ710921; Sun, 10 Feb 2002 12:16:35 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: falconer@falconer.best.vwh.net Cc: gtk-list@gnome.org Subject: Re: catching unix signals from Gtk References: <20020207014829.27094.qmail@falconer.best.vwh.net> From: Havoc Pennington Date: 10 Feb 2002 12:16:35 -0500 In-Reply-To: <20020207014829.27094.qmail@falconer.best.vwh.net> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: falconer@falconer.best.vwh.net writes: > I could open a pipe and have the unix signal handler write a > single byte to it when there's an interrupt, and then have > GTK attach an input handler to the output side of the pipe. This is in general the best way to do it we've come up with. > These all seem to be kludges to me; is there a better way to > do it? Another way to do it is to write a custom main loop source that checks a flag in its prepare/check methods to see whether a dispatch is needed. But this relies on the fact that your signal wakes up the main loop poll() or select() with an EINTR, and there was some issue with that which I don't remember now. If you search the gtk-devel-list archives you can probably find at least a little bit of discussion on the topic. Havoc From hp@redhat.com Sun Feb 10 12:18:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 5D1DE18283 for ; Sun, 10 Feb 2002 12:18:34 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1AHIWY10925; Sun, 10 Feb 2002 12:18:32 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: James Vanns Cc: gtk-list@gnome.org Subject: Re: At the end of my tether with gtk_adjustment_value_changed() References: <1012913539.2024.33.camel@james_pc.960.local> From: Havoc Pennington Date: 10 Feb 2002 12:18:32 -0500 In-Reply-To: <1012913539.2024.33.camel@james_pc.960.local> Message-ID: Lines: 9 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: James Vanns writes: > What am I doing wrong ?? Am I completely misunderstanding the use of > these functions!!??? No, they should work as you described. I'm guessing you're looking at the wrong piece of code for the bug. Havoc From davidgn@servidor.unam.mx Sun Feb 10 13:23:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id 3BB7118183 for ; Sun, 10 Feb 2002 13:23:51 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.137]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g1AIMbk10258 for ; Sun, 10 Feb 2002 12:22:37 -0600 (CST) Date: Sun, 10 Feb 2002 12:40:17 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: threads Message-Id: <20020210124017.52703751.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. I was thining on a program, and gtk_timeout is not the way to go. So i read a bit on the faq and the "api", and i couldn understand well threads on gtk/gdk/glib. I remember some articles on linux magazine about threads, and i though they were created after a function (passing the funcion as an argument), i dont get what gdk_thread_enter/leave work, and if i can start a thread from a user signal callback. (the examples i have seen so far, start threads from the main, aoutside the gtk_main loop, and put gdk_thread_enter/leave around the gtk_main(). Is there any faq or documentation centered on it? on the mails i read, it seemed as if everybody already understand it. Thank you. -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From davidgn@servidor.unam.mx Sun Feb 10 21:02:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id C657C18340 for ; Sun, 10 Feb 2002 21:02:39 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.56]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g1B21Pk03780 for ; Sun, 10 Feb 2002 20:01:25 -0600 (CST) Date: Sun, 10 Feb 2002 20:19:09 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: threads again. Message-Id: <20020210201909.7c263505.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. Its me asking about the use of threads with gtk again. Why is gdk_treads_enter/leave function? to restrict access to some structures? I was writing this, and i get segfaults. All examples i have seen so far, start threads on main(), but i started a thread on a callback. Is that not possible to do? if so, why? The best i could find is a pointer to check the gftp source, which i am about to do... Well, any explanation would be apreciated. Thank you again. -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From scurveedog@yahoo.com Sun Feb 10 22:07:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13701.mail.yahoo.com (web13701.mail.yahoo.com [216.136.175.134]) by mail.gnome.org (Postfix) with SMTP id 3DEEC182D5 for ; Sun, 10 Feb 2002 22:07:51 -0500 (EST) Message-ID: <20020211030750.54810.qmail@web13701.mail.yahoo.com> Received: from [209.253.230.249] by web13701.mail.yahoo.com via HTTP; Sun, 10 Feb 2002 19:07:50 PST Date: Sun, 10 Feb 2002 19:07:50 -0800 (PST) From: Jim Adams Subject: GList in a list box To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I am a beginner who has become very confused. I have a data file and can transfer it to a GList which I can then print out. Can anyone help me display the complete GList in a gtk+ list box? My test program to load a GList and then print it out: #include #include /***** FUNC TO DISPLAY GList *****/ void PrintList( GList *list ) { list = g_list_first( list ); while( list != NULL ) { g_print( "%s", (gchar *)list -> data ); list = g_list_next( list ); } } gint main( ) { GList *list = NULL; FILE *infile; gchar buffer[5][81]; gint i = 0; /***** OPEN DATA FILE *****/ if( ( infile = fopen( "/home/jim/gnome/data.dat", "r" )) == NULL ) { g_print( "\nfopen() failed!\n" ); exit( 0 ); } /***** LOAD BUFFER WITH DATA *****/ while( ( fgets( buffer[i], 81, infile ) ) != NULL ) { i++; } /***** ADD BUFFER DATA TO GList *****/ for( i = 0; i < 5; i++ ) { list = g_list_append( list, buffer[i] ); } PrintList( list ); g_list_free( list ); fclose( infile ); return 0; } thank you, jim, scurveedog@yahoo.com __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com From jgotts@ann-arbor.fmfts.com Mon Feb 11 09:57:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ann-arbor.fmfts.com (fmfts.com [64.9.213.97]) by mail.gnome.org (Postfix) with ESMTP id D568E18E08 for ; Mon, 11 Feb 2002 09:57:36 -0500 (EST) Received: from ann-arbor.fmfts.com (jgotts@localhost) by ann-arbor.fmfts.com (8.11.6/8.11.6) with ESMTP id g1BEuWM27570 for ; Mon, 11 Feb 2002 09:56:32 -0500 Message-Id: <200202111456.g1BEuWM27570@ann-arbor.fmfts.com> To: gtk-list@gnome.org From: jgotts@linuxsavvy.com Reply-To: jgotts@linuxsavvy.com Subject: Repeating mouse button widget Date: Mon, 11 Feb 2002 09:56:32 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there some kind of widget that I can use to report new events or at least trigger some handler repeatedly after some time interval while a mouse button is being held down? John -- John GOTTS http://linuxsavvy.com/staff/jgotts From pbd@op.net Mon Feb 11 10:13:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 043C11812D for ; Mon, 11 Feb 2002 10:13:39 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-203.phlpa.fast.net [209.92.99.203]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA06439; Mon, 11 Feb 2002 10:13:35 -0500 (EST) Message-Id: <200202111513.KAA06439@renoir.op.net> To: jgotts@linuxsavvy.com Cc: gtk-list@gnome.org Subject: Re: Repeating mouse button widget In-reply-to: Your message of "Mon, 11 Feb 2002 09:56:32 EST." <200202111456.g1BEuWM27570@ann-arbor.fmfts.com> Date: Mon, 11 Feb 2002 10:13:33 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Is there some kind of widget that I can use to report new events or at least >trigger some handler repeatedly after some time interval while a mouse button >is being held down? read the list archive for the last 5-6 days. for some reason, 2 other people asked much the same question, and one of them posted code after i gave them some pointers. --p From lynn.lin@boeing.com Mon Feb 11 13:41:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from blv-smtpout-01.boeing.com (blv-smtpout-01.boeing.com [192.161.36.5]) by mail.gnome.org (Postfix) with ESMTP id 795A11915D for ; Mon, 11 Feb 2002 13:41:09 -0500 (EST) Received: from blv-av-02.boeing.com ([192.54.3.92]) by blv-smtpout-01.boeing.com (8.9.2/8.8.5-M2) with ESMTP id KAA15882 for ; Mon, 11 Feb 2002 10:41:08 -0800 (PST) Received: from slb-hub-01.boeing.com (localhost [127.0.0.1]) by blv-av-02.boeing.com (8.9.3/8.9.2/MBS-AV-01) with ESMTP id KAA08288 for ; Mon, 11 Feb 2002 10:41:07 -0800 (PST) Received: from xch-swbh-02.sw.nos.boeing.com (xch-swbh-02.sw.nos.boeing.com [129.172.87.58]) by slb-hub-01.boeing.com (8.11.3/8.11.3/MBS-LDAP-01) with ESMTP id g1BIf6T17552 for ; Mon, 11 Feb 2002 10:41:06 -0800 (PST) Received: by xch-swbh-02.sw.nos.boeing.com with Internet Mail Service (5.5.2650.21) id <1LVJCA6F>; Mon, 11 Feb 2002 10:41:03 -0800 Message-ID: From: "Lin, Lynn" To: gtk-list@gnome.org Subject: Does GTK+ controls the "feel and look theme" ? Date: Mon, 11 Feb 2002 10:40:56 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, Do you know by chance if GTK+ has the "feel and look" choice that can be made at runtime (for example: windows look, Motif look, Swing/Metal look or Macintosh look) Thank you :) Lynn From lynn.lin@boeing.com Mon Feb 11 19:32:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from blv-smtpout-01.boeing.com (blv-smtpout-01.boeing.com [192.161.36.5]) by mail.gnome.org (Postfix) with ESMTP id 06725186EA for ; Mon, 11 Feb 2002 19:32:28 -0500 (EST) Received: from slb-av-01.boeing.com ([129.172.13.4]) by blv-smtpout-01.boeing.com (8.9.2/8.8.5-M2) with ESMTP id QAA24464 for ; Mon, 11 Feb 2002 16:32:26 -0800 (PST) Received: from slb-hub-01.boeing.com (localhost [127.0.0.1]) by slb-av-01.boeing.com (8.9.3/8.9.2/MBS-AV-01) with ESMTP id QAA00729 for ; Mon, 11 Feb 2002 16:32:26 -0800 (PST) Received: from xch-swbh-02.sw.nos.boeing.com (xch-swbh-02.sw.nos.boeing.com [129.172.87.58]) by slb-hub-01.boeing.com (8.11.3/8.11.3/MBS-LDAP-01) with ESMTP id g1C0WPT08182 for ; Mon, 11 Feb 2002 16:32:25 -0800 (PST) Received: by xch-swbh-02.sw.nos.boeing.com with Internet Mail Service (5.5.2650.21) id <1LVJCV9Y>; Mon, 11 Feb 2002 16:32:24 -0800 Message-ID: From: "Lin, Lynn" To: "'gtk-list@gnome.org'" Subject: glib.h ?? Where is it ? Date: Mon, 11 Feb 2002 16:32:22 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, I am compiling GTK+ source code on Win32 and got this compilation error: "Cannot opened include file glib.h". I ran "Find" to search glib.h but not found. What *zip file that contains glib.h I should download in order to use glib.h ? Thanks a lot for your help, Lynn From pbd@op.net Mon Feb 11 19:43:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id AFCA1186EA for ; Mon, 11 Feb 2002 19:43:52 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-341.phlpa.fast.net [209.92.231.87]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id TAA11248; Mon, 11 Feb 2002 19:43:13 -0500 (EST) Message-Id: <200202120043.TAA11248@renoir.op.net> To: "Lin, Lynn" Cc: gtk-list@gnome.org Subject: Re: Does GTK+ controls the "feel and look theme" ? In-reply-to: Your message of "Mon, 11 Feb 2002 10:40:56 PST." Date: Mon, 11 Feb 2002 19:37:54 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi there, > >Do you know by chance if GTK+ has the "feel and look" choice that can be >made at runtime (for example: windows look, Motif look, Swing/Metal look or >Macintosh look) yes. visit www.themes.org/gtk --p From mallum@10.am Mon Feb 11 19:57:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost (pc-62-30-165-220-hw.blueyonder.co.uk [62.30.165.220]) by mail.gnome.org (Postfix) with ESMTP id 5460D18FB3 for ; Mon, 11 Feb 2002 19:57:40 -0500 (EST) Received: from mallum by localhost with local (Exim 3.34 #1 (Debian)) id 16aRGL-0000JZ-00 for ; Tue, 12 Feb 2002 00:57:37 +0000 Date: Tue, 12 Feb 2002 00:57:36 +0000 From: mallum To: gtk-list@gnome.org Subject: synthetic button press event in GTK1.2 Message-ID: <20020212005736.GC486@10.am> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I need to send a 'synthetic' button release event. Im under the impression I can only do this with a call to Xlibs XSendEvent. However Im not having much luck :( My main problem seems to be translating GDK Xlib representations back to actual Xlib ones; My XSendEvent looks something like; XSendEvent((Display*)GDK_DISPLAY(), GDK_WINDOW_XWINDOW(((GdkEventAny*)event)->window) ,False, ButtonReleaseMask, (XEvent *)&syn_event); Does that look right ? Event better does anyone have an example of accomplishing this actual feat with GTK ? -- mallum From sven@gimp.org Mon Feb 11 20:37:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (A0cfa.pppool.de [213.6.12.250]) by mail.gnome.org (Postfix) with ESMTP id 3C096195BB for ; Mon, 11 Feb 2002 20:37:05 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16aRsN-00006A-00; Tue, 12 Feb 2002 02:36:55 +0100 To: mallum Cc: gtk-list@gnome.org Subject: Re: synthetic button press event in GTK1.2 References: <20020212005736.GC486@10.am> From: Sven Neumann Date: 12 Feb 2002 02:36:54 +0100 In-Reply-To: <20020212005736.GC486@10.am> Message-ID: Lines: 11 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, mallum writes: > I need to send a 'synthetic' button release event. Im under the > impression I can only do this with a call to Xlibs XSendEvent. do you really need to do that? What are you trying to acomplish? Salut, Sven From rtriay@avantel.net Mon Feb 11 21:02:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h004.c003.snv.cp.net [209.228.32.218]) by mail.gnome.org (Postfix) with SMTP id 2FE8F18118 for ; Mon, 11 Feb 2002 21:02:21 -0500 (EST) Received: (cpmta 9470 invoked from network); 11 Feb 2002 18:02:14 -0800 Received: from 148.240.116.144 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.218) with SMTP; 11 Feb 2002 18:02:14 -0800 X-Sent: 12 Feb 2002 02:02:14 GMT Received: from galatazarai [10.0.0.2] by Proxy+; Mon, 11 Feb 2002 19:57:37 -0600 for multiple recipients Message-ID: <004701c1b369$9a589880$0200000a@galatazarai> From: =?iso-8859-1?Q?Ram=F3n_Triay_Espinosa?= To: "Jim Adams" , References: <20020211030750.54810.qmail@web13701.mail.yahoo.com> Subject: Re: GList in a list box Date: Mon, 11 Feb 2002 20:04:27 -0600 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 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ----- Original Message ----- From: "Jim Adams" To: Sent: Sunday, February 10, 2002 9:07 PM Subject: GList in a list box > Hello, > > I am a beginner who has become very confused. > > I have a data file and can transfer it to a GList which I can then print > out. Can anyone help me display the complete GList in a gtk+ list box? > > My test program to load a GList and then print it out: > > #include > #include > > /***** FUNC TO DISPLAY GList *****/ > void PrintList( GList *list ) > { > list = g_list_first( list ); > > while( list != NULL ) > { > g_print( "%s", (gchar *)list -> data ); > list = g_list_next( list ); > } > } > > gint main( ) > { > GList *list = NULL; > > FILE *infile; > gchar buffer[5][81]; > gint i = 0; > > /***** OPEN DATA FILE *****/ > if( ( infile = fopen( "/home/jim/gnome/data.dat", "r" )) == NULL ) > { > g_print( "\nfopen() failed!\n" ); > exit( 0 ); > } > > /***** LOAD BUFFER WITH DATA *****/ > while( ( fgets( buffer[i], 81, infile ) ) != NULL ) > { > i++; > } > > /***** ADD BUFFER DATA TO GList *****/ > for( i = 0; i < 5; i++ ) > { > list = g_list_append( list, buffer[i] ); > } > > PrintList( list ); > g_list_free( list ); > fclose( infile ); > > return 0; > } > > thank you, > jim, scurveedog@yahoo.com > Hi Jim: What you have to do to get your values in a Listbox is very similar to what you did to get them in the GList, just declare and make an instance of a GtkWindow and GtkList widgets, then put your values in the GList using the gtk_list_insert_items function. The resulting code should look like this. #include /* gtk.h includes glib.h*/ > #include > > /***** FUNC TO DISPLAY GList *****/ > void PrintList( GList *list ) > { > list = g_list_first( list ); > > while( list != NULL ) > { > g_print( "%s", (gchar *)list -> data ); > list = g_list_next( list ); > } > } > /****This is how the function should look like****/ void GListInWindow (GList *list) { GtkWindow *MyWin; GtkList *MyList; MyWin=gtk_window_new(GTK_WINDOW_TOPLEVEL); MyList=gtk_list_new(); gtk_list_insert_items(MyList, list, 0); gtk_window_add(GTK_CONTAINER(MyWin), GTK_WIDGET(MyList)); gtk_widget_show(MyList); gtk_widget_show(MyWin); } /* In order to use gtk.h is necesary to get the command line parameters */ gint main( &argc, &argv[]) > { > GList *list = NULL; > > FILE *infile; > gchar buffer[5][81]; > gint i = 0; > > /***** OPEN DATA FILE *****/ > if( ( infile = fopen( "/home/jim/gnome/data.dat", "r" )) == NULL ) > { > g_print( "\nfopen() failed!\n" ); > exit( 0 ); > } > > /***** LOAD BUFFER WITH DATA *****/ > while( ( fgets( buffer[i], 81, infile ) ) != NULL ) > { > i++; > } > > /***** ADD BUFFER DATA TO GList *****/ > for( i = 0; i < 5; i++ ) > { > list = g_list_append( list, buffer[i] ); > } > > PrintList( list ); /*You MUST include this line before doing ANYTHNG with GTK*/ gtk_init (argc,argv); /*Start infinite loop*/ GListInWindow ( list ); gtk_main(); g_list_free( list ); > fclose( infile ); > > return 0; > } > Of course, to you'll need to kill this program in order to end it. That's because we haven't implementes any event callback to manage the "delete" signal from our main window so let's use kill-9 PID :o) I hope this helps!!!!! rtriay :) _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From leidola@newcon.de Tue Feb 12 05:00:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 8EE9F18237 for ; Tue, 12 Feb 2002 05:00:13 -0500 (EST) Received: from [213.70.108.94] ([213.70.108.94]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id LAA05144; Tue, 12 Feb 2002 11:00:12 +0100 Subject: Re: glib.h ?? Where is it ? From: Olaf Leidinger To: "Lin, Lynn" , GTK Mailing List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 12 Feb 2002 11:02:54 +0100 Message-Id: <1013508175.782.6.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 11 Feb 2002 16:32:22 -0800 schrieb Lin, Lynn: > Hi there, > > I am compiling GTK+ source code on Win32 and got this compilation error: > "Cannot opened include file glib.h". I ran "Find" to search glib.h but not > found. What *zip file that contains glib.h I should download in order to > use glib.h ? > > Thanks a lot for your help, > > Lynn > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hello!!! Glib.h is in glib-1.x.y.tar.gz or .zip. But why do you wanna compile gtk yourself. You can download precompiled binaries from http://www.gimp.org/~tml/gimp/win32//new-downloads.html There you find the latest win32 developer binaries. I think 1.3.12 is the version. Good luck, Olaf From maa@sparc.spb.su Tue Feb 12 06:10:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from guard.sparc.spb.su (guard.sparc.spb.su [195.19.226.98]) by mail.gnome.org (Postfix) with ESMTP id 2FC611905F for ; Tue, 12 Feb 2002 06:10:58 -0500 (EST) Received: from mail.sparc.spb.su (mail.sparc.spb.su [192.168.205.210]) by guard.sparc.spb.su (8.11.4/8.10.1) with ESMTP id g1CBAuN01207 for ; Tue, 12 Feb 2002 14:10:56 +0300 (MSK) Received: from london.sparc.spb.su (london.sparc.spb.su [192.168.205.229]) by mail.sparc.spb.su (8.11.4/8.11.1) with ESMTP id g1CB5lA87262 for ; Tue, 12 Feb 2002 14:05:47 +0300 (MSK) (envelope-from maa@sparc.spb.su) Date: Tue, 12 Feb 2002 14:14:00 +0300 From: "Aleksey A. Malyshev" X-Mailer: The Bat! (v1.53d) Reply-To: "Aleksey A. Malyshev" X-Priority: 3 (Normal) Message-ID: <1921074525.20020212141400@sparc.spb.su> To: gtk-list@gnome.org Subject: Problem with gtk_im_context_get_surrounding () MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a problem with gtk_im_context_get_surrounding (). Test case: #include int main (int argc, char** argv) { GtkIMContext *context; gint *index; gchar **text; gboolean res; gtk_init (&argc, &argv); context = gtk_im_multicontext_new (); res = gtk_im_context_get_surrounding (GTK_IM_CONTEXT(context),text ,index); if (res) printf ("\nResult True\n"); } Output: Segmentation fault What's wrong in this case? What I am doing wrong? Thanks, Aleksey. From mallum@10.am Tue Feb 12 06:32:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost (lan.ipc.co.uk [193.119.160.10]) by mail.gnome.org (Postfix) with ESMTP id E9E661888B for ; Tue, 12 Feb 2002 06:32:45 -0500 (EST) Received: from mallum by localhost with local (Exim 3.34 #1 (Debian)) id 16abA9-00009Q-00; Tue, 12 Feb 2002 11:31:53 +0000 Date: Tue, 12 Feb 2002 11:31:52 +0000 From: mallum To: Sven Neumann Cc: gtk-list@gnome.org Subject: Re: synthetic button press event in GTK1.2 Message-ID: <20020212113152.GB529@10.am> References: <20020212005736.GC486@10.am> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Via an emmision hook, Im writing a gtk module that catches 'held down' button 1 events and on release tranforms them into a button 3 press event. This works fine, but the app is now missing a button release event which is causing problems. Im trying to create this via XSendEvent . This is for touchscreen devices running gtk. Can suggest a better way of accomplishing this ? -- mallum on Tue, Feb 12, 2002 at 02:36:54AM +0100, Sven Neumann wrote: > Hi, > > mallum writes: > > > I need to send a 'synthetic' button release event. Im under the > > impression I can only do this with a call to Xlibs XSendEvent. > > do you really need to do that? What are you trying to acomplish? > > > Salut, Sven > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From hp@redhat.com Tue Feb 12 10:14:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 77E9E1845C for ; Tue, 12 Feb 2002 10:14:39 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1CFEad12548; Tue, 12 Feb 2002 10:14:36 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Aleksey A. Malyshev" Cc: gtk-list@gnome.org Subject: Re: Problem with gtk_im_context_get_surrounding () References: <1921074525.20020212141400@sparc.spb.su> From: Havoc Pennington Date: 12 Feb 2002 10:14:35 -0500 In-Reply-To: <1921074525.20020212141400@sparc.spb.su> Message-ID: Lines: 37 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Aleksey A. Malyshev" writes: > > I have a problem with gtk_im_context_get_surrounding (). > > Test case: > #include > > int > main (int argc, char** argv) > { > GtkIMContext *context; > gint *index; > gchar **text; > gboolean res; > > gtk_init (&argc, &argv); > > context = gtk_im_multicontext_new (); > > res = gtk_im_context_get_surrounding (GTK_IM_CONTEXT(context),text ,index); > if (res) > printf ("\nResult True\n"); > > } > > Output: > Segmentation fault > > > What's wrong in this case? > What I am doing wrong? "text" and "index" are uninitialized. If you turn on warnings (-Wall flag with gcc) then your compiler will tell you these things. Havoc From jeff@sigmaitsolutions.com Tue Feb 12 16:30:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from webmail.greatbasin.net (webmail.greatbasin.net [207.228.37.201]) by mail.gnome.org (Postfix) with ESMTP id DF22A182D0 for ; Tue, 12 Feb 2002 16:30:22 -0500 (EST) Received: from greatbasin.net (localhost.localdomain [127.0.0.1]) by webmail.greatbasin.net (8.11.6/8.11.6) with SMTP id g1CLULI01863 for ; Tue, 12 Feb 2002 13:30:22 -0800 From: "Jeff Payne" Reply-To: jeff@sigmaitsolutions.com To: gtk-list@gnome.org Date: Tue, 12 Feb 2002 13:30:22 -0800 Subject: problem builduing gtk+2.0 (1.3.13) X-Mailer: CWMail Web to Mail Gateway 2.7t, http://netwinsite.com/top_mail.htm Message-id: <3c69896e.745.0@greatbasin.net> X-User-Info: 216.210.203.32 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Forgive my ignorance as I am new to GTK. I'm attempting to build the latest development release of gtk along with the supporting packages. After building the glib, atk, and pango packages, the gtk+2.0 configure script doesn't find the pango package when pkg-config is called. I've checked the /usr/lib/pkgconfig directory and verified that pango.pc is there and pointing to the correct lib and include dirs, but when I manually check for installed packages with pkg-config only the glib and atk packages come up. Has anyone else had this problem? Any help would be greatly appreciated. Jeff Payne Sigma Solutions, Inc. (775)544-3618 From inodal@teleline.es Tue Feb 12 16:33:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp7.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id C336318CE4 for ; Tue, 12 Feb 2002 16:33:07 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp7.mail.isp (Netscape Messaging Server 4.15 tsmtp7 Jul 26 2001 13:10:38) with ESMTP id GRFVUB01.Q6O for ; Tue, 12 Feb 2002 22:32:35 +0100 Message-ID: <3C698A1F.7080500@teleline.es> Date: Tue, 12 Feb 2002 21:33:19 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: problems with the redraw of widgets and callbacks with long operation time Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In my program I have a window where I select a VRML file to load, press OK and in the button callback, I hide this window and call my function to read the VRML file (I use CyberVRML97 for this). The problem is that my GTK+ application seems to be freezed during the load. The main window doesn't care about my "expose_event" callback until the load ends. I don't like this behaviour, how could I avoid this? Thanks in advance, Ignacio Nodal From rsteinke@w-link.net Tue Feb 12 16:48:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id A115919292 for ; Tue, 12 Feb 2002 16:48:51 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16aknC-0003LK-00; Tue, 12 Feb 2002 13:48:50 -0800 Date: Tue, 12 Feb 2002 13:48:50 -0800 From: rsteinke@w-link.net To: inodal@teleline.es, gtk-list@gnome.org Subject: Re: problems with the redraw of widgets and callbacks with long operation time Message-ID: <3C698DC2.nail9WM1QYQMD@w-link.net> References: <3C698A1F.7080500@teleline.es> In-Reply-To: <3C698A1F.7080500@teleline.es> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Ignacio Nodal > > Hi, > > In my program I have a window where I select a VRML file to load, press > OK and in the button callback, I hide this window and call my function > to read the VRML file (I use CyberVRML97 for this). > > The problem is that my GTK+ application seems to be freezed during the > load. The main window doesn't care about my "expose_event" callback > until the load ends. > > I don't like this behaviour, how could I avoid this? You're probably not giving the mainloop any time to run during the load. Look at the documentation on the gtk mainloop (or, better, the glib mainloop) for instructions on how to do this. Ron Steinke From inodal@teleline.es Tue Feb 12 17:29:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp7.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id C8EA2181D7 for ; Tue, 12 Feb 2002 17:29:16 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp7.mail.isp (Netscape Messaging Server 4.15 tsmtp7 Jul 26 2001 13:10:38) with ESMTP id GRFYFW00.FAD; Tue, 12 Feb 2002 23:28:44 +0100 Message-ID: <3C69973A.2030908@teleline.es> Date: Tue, 12 Feb 2002 22:29:14 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: rsteinke@w-link.net Cc: gtk-list@gnome.org Subject: Re: problems with the redraw of widgets and callbacks with long operation time References: <3C698A1F.7080500@teleline.es> <3C698DC2.nail9WM1QYQMD@w-link.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: rsteinke@w-link.net wrote: > From: Ignacio Nodal > >>Hi, >> >>In my program I have a window where I select a VRML file to load, press >>OK and in the button callback, I hide this window and call my function >>to read the VRML file (I use CyberVRML97 for this). >> >>The problem is that my GTK+ application seems to be freezed during the >>load. The main window doesn't care about my "expose_event" callback >>until the load ends. >> >>I don't like this behaviour, how could I avoid this? >> > > You're probably not giving the mainloop any time to run during the load. > Look at the documentation on the gtk mainloop (or, better, the glib mainloop) > for instructions on how to do this. > > Ron Steinke > > I've tried with: while (gtk_events_pending()) gtk_main_iteration(); before calling my VRML load function, but gtk_events_pending returns 0. I've also asked for gdk_events_pending, since i'm working with GtkGLArea, being a "subclass" of GtkDrawingArea , but this one returns 0 also. I'm a bit lost... Thanks in advance, Ignacio From pfeiffer@viper.cs.nmsu.edu Tue Feb 12 17:37:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viper.cs.nmsu.edu (viper.cs.nmsu.edu [128.123.64.113]) by mail.gnome.org (Postfix) with ESMTP id A9A9F1891C for ; Tue, 12 Feb 2002 17:37:50 -0500 (EST) Received: (from pfeiffer@localhost) by viper.cs.nmsu.edu (8.11.6/8.11.6) id g1CMbmj09967; Tue, 12 Feb 2002 15:37:48 -0700 From: Joe Pfeiffer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15465.39228.317499.779151@cs.nmsu.edu> Date: Tue, 12 Feb 2002 15:37:48 -0700 To: Ignacio Nodal Cc: rsteinke@w-link.net, gtk-list@gnome.org Subject: Re: problems with the redraw of widgets and callbacks with long operation time In-Reply-To: <3C69973A.2030908@teleline.es> References: <3C698A1F.7080500@teleline.es> <3C698DC2.nail9WM1QYQMD@w-link.net> <3C69973A.2030908@teleline.es> X-Mailer: VM 7.00 under Emacs 21.1.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > > I've tried with: > > while (gtk_events_pending()) > gtk_main_iteration(); > > before calling my VRML load function, but gtk_events_pending returns 0. > > I've also asked for gdk_events_pending, since i'm working with > GtkGLArea, being a "subclass" of GtkDrawingArea , but this one returns 0 > also. Not before, during. You need to find a point in your load function that is executed fairly frequently (like once per outer loop iteration or something) and look for events there. What's going on is exactly what you're suspecting: once you get into that loop, it's not looking for expose (or any other) events any more, until the function returns. So that's what you need to fix. -- Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605 Department of Computer Science FAX -- (505) 646-1002 New Mexico State University http://www.cs.nmsu.edu/~pfeiffer Southwestern NM Regional Science and Engr Fair: http://www.nmsu.edu/~scifair From rwan@cs.mu.oz.au Tue Feb 12 18:27:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from vike.cs.mu.OZ.AU (vike.cs.mu.OZ.AU [128.250.36.73]) by mail.gnome.org (Postfix) with ESMTP id 6919C1834A for ; Tue, 12 Feb 2002 18:27:06 -0500 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 5A06075C0; Wed, 13 Feb 2002 10:27:04 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 57F70ACA9; Wed, 13 Feb 2002 10:27:04 +1100 (EST) Date: Wed, 13 Feb 2002 10:27:04 +1100 (EST) From: Raymond Wan Reply-To: Raymond Wan To: Jeff Payne Cc: gtk-list@gnome.org Subject: Re: problem builduing gtk+2.0 (1.3.13) In-Reply-To: <3c69896e.745.0@greatbasin.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Jeff, On Tue, 12 Feb 2002, Jeff Payne wrote: > Forgive my ignorance as I am new to GTK. I'm attempting to build the latest > development release of gtk along with the supporting packages. After building > the glib, atk, and pango packages, the gtk+2.0 configure script doesn't find > the pango package when pkg-config is called. I've checked the /usr/lib/pkgconfig > directory and verified that pango.pc is there and pointing to the correct lib > and include dirs, but when I manually check for installed packages with pkg-config > only the glib and atk packages come up. One warning; I installed GTK+ as a non-root user, so there may be some variations. Before you built anything, did you set these environment variables: export GTK_DIR=/home/rwan export PATH="$PATH":$GTK_DIR/bin export LD_LIBRARY_PATH=$GTK_DIR/lib export PKG_CONFIG_PATH=$GTK_DIR/lib/pkgconfig Of course, GTK_DIR can be anything; and that's what I had to do because I was a non-root [that's my home directory]. When you configured pango, did you add a --prefix like this: ./configure --prefix=$GTK_DIR I don't know if you have to do this, but if you didn't, you can give it a try... Ray From inodal@teleline.es Tue Feb 12 19:37:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp1.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id AA03318426 for ; Tue, 12 Feb 2002 19:37:55 -0500 (EST) Received: from paranoia ([213.97.141.171]) by tsmtp1.mail.isp (Netscape Messaging Server 4.15 tsmtp1 Jul 26 2001 13:10:38) with SMTP id GRG4EA01.6MR; Wed, 13 Feb 2002 01:37:22 +0100 Message-ID: <000b01c1b426$aceb8e40$0a01a8c0@paranoia> From: "Ignacio Nodal" To: "Joe Pfeiffer" Cc: References: <3C698A1F.7080500@teleline.es><3C698DC2.nail9WM1QYQMD@w-link.net><3C69973A.2030908@teleline.es> <15465.39228.317499.779151@cs.nmsu.edu> Subject: Re: problems with the redraw of widgets and callbacks with long operation time Date: Wed, 13 Feb 2002 00:37:51 -0000 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Oh, I see... well, then I'll have to be patient and wait for my VRML to end loading. The main computation time takes place in functions from the CyberVRML97 library. It's not my source, and I don't think I want to modify/hack it hehehe :-) Thanks for all, Ignacio Nodal ----- Original Message ----- From: "Joe Pfeiffer" To: "Ignacio Nodal" Cc: ; Sent: Tuesday, February 12, 2002 10:37 PM Subject: Re: problems with the redraw of widgets and callbacks with long operation time > > > > before calling my VRML load function, but gtk_events_pending returns 0. > Not before, during. You need to find a point in your load function > that is executed fairly frequently (like once per outer loop iteration > or something) and look for events there. What's going on is exactly > what you're suspecting: once you get into that loop, it's not looking > for expose (or any other) events any more, until the function > returns. So that's what you need to fix. > > Ignacio Nodal writes: > > > > I've tried with: > > > > while (gtk_events_pending()) > > gtk_main_iteration(); From yogeeshappa.mathighatta@wipro.com Wed Feb 13 01:43:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 5002B180E1 for ; Wed, 13 Feb 2002 01:43:47 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g1D6gCX06172 for ; Wed, 13 Feb 2002 12:12:14 +0530 (IST) Received: from m2foe301975 ([10.114.9.182]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GRGLAO00.926; Wed, 13 Feb 2002 12:12:24 +0530 Message-ID: <030d01c1b459$59695990$b609720a@m2foe301975> Reply-To: "Yogeesh MB" From: "Yogeesh MB" To: "Yogeesh M B" Cc: References: <3C4D5E3B.5010904@ng-london.org.uk> Subject: GtkObject in gnome-utils/Gnome-Calculator Date: Wed, 13 Feb 2002 12:10:38 +0530 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit Hi, In gnome-utils/Gnome-calculator has both GTK_OBJECT_CLASS destroy call :gnome_calc_destroy(GtkObject * gobject), and G_OBJECT_CLASS finalize :gnome_calc_finalize(GObject * gobject). GTK_OBJECT_CLASS is deprecated and there is no destroy call in G_OBJECT_CLASS. I would like to know why the destroy call is still retained. Isn't finalize a substitute for destroy? Regards, Yogeesh MB. Kevin wrote: Hi Yogeesh. I hate to do this, but you should probably ask on the gtk-list mailing list since this is a very general porting question. I'm not familiar with the changes needed to port from GtkObject to GObject so the gtk list will give a better answer. Regards, Kevin ----- Original Message ----- From: Yogeesh MB To: kfv101@psu.edu Sent: Saturday, February 09, 2002 1:47 AM Subject: GtkObject in Gnome-Calculator Hi Kevin, I was testing the ported gnome-utils/gnome-calculator, I found there is GtkObject function call gnome_calc_destroy(GtkObject * gobject) used. In GTK_OBJECT_CALSS there is a destroy call. but in (deprecated) G_OBJECT_CLASS as such there is no destroy call (except finalize) I have build the gnome-calulator by commenting destroy call, Its working fine. Let me know the reason why still GTK_OBJECT_CLASS(destroy) exists. I mailed Bastien Nocera in this regard, below is the mail from him. Awaiting for ur reply, Regards, Yogeesh MB. ****************************************** Hi, Kevin Vandersloot is responsible for the gnome-utils port these days. Mail him. Cheers On Fri, 2002-02-08 at 14:54, Yogeesh MB wrote: > Hi George, > > I was testing the ported gnome-utils/gnome-calculator, > I found there is GtkObject function call gnome_calc_destroy(GtkObject * gobject) used. > In GTK_OBJECT_CALSS there is a destroy call. but in (deprecated) > G_OBJECT_CLASS as such there is no destroy call (except finalize) > I have build the gnome-calulator by commenting destroy call, Its working fine. > > Let me know the reason why still GTK_OBJECT_CLASS(destroy) exists. > > awaiting for ur reply, > Regards, > > Yogeesh MB. > Sr. Software Engineer, > Wipro Technologies, > #53/1, Ganapa Complex, > Madivala(M3), Hosur Road, > Bangalore-68. > Ph:5502001-8, X 5127 > Res:6728996. > > > /Bastien Nocera http://hadess.net Bangalore-68. Ph:5502001-8, X 5127 Res:6728996. ------=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8 Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ******************************************************************** ------=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8-- From db@zigo.dhs.org Wed Feb 13 02:46:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cosmo.zigo.dhs.org (as2-4-3.an.g.bonet.se [194.236.34.191]) by mail.gnome.org (Postfix) with ESMTP id 2102518108 for ; Wed, 13 Feb 2002 02:46:18 -0500 (EST) Received: from localhost (db@localhost) by cosmo.zigo.dhs.org (8.11.6/8.11.6) with ESMTP id g1D7k3t09662 for ; Wed, 13 Feb 2002 08:46:03 +0100 X-Authentication-Warning: cosmo.zigo.dhs.org: db owned process doing -bs Date: Wed, 13 Feb 2002 08:46:02 +0100 (CET) From: Dennis Bjorklund To: Subject: scrolling gtktextview Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I add lines at the end of the textview and would like it to scroll down to the bottom so I can see the new lines. But I can't get it to work. I tried: gtk_text_buffer_get_end_iter (buf, &iter); gtk_text_view_scroll_to_iter (view, &iter, 0.0, FALSE, 0.0, 0.0); but the does not scroll all the way, it can leave 5-6 lines that are not visible after scroll. Next attempt is to have a mark in the very end of the buffer and doing gtk_text_view_scroll_mark_onscreen (view, mark); but this have similar problems as the first try. The last thing I tried was to get the GtkAdjustment out of the GtkScrolledWindow. When I set this, then it works. But if flickers so badly that it's not usable. I don't understand why I can't get the gtk_text_view_scroll_xxxxxx to work. -- /Dennis From morten@rh-data.com Wed Feb 13 05:15:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.pc-cons.no (mail.pc-cons.no [193.69.57.47]) by mail.gnome.org (Postfix) with ESMTP id C31E2183AC for ; Wed, 13 Feb 2002 05:15:57 -0500 (EST) Received: from www.rh-data.com (rh-data-gw.online.no [194.143.84.10]) by mail.pc-cons.no (8.9.3/8.9.3) with ESMTP id LAA14096 for ; Wed, 13 Feb 2002 11:23:55 +0100 Received: from whitestar.kontor.rh-data.com (whitestar.kontor.rh-data.com [192.168.1.58]) by www.rh-data.com (8.8.7/8.8.7) with ESMTP id LAA05964 for ; Wed, 13 Feb 2002 11:11:41 +0100 Subject: How do I change the default language in GTK / GNOME? From: Morten Andersen To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary="=-eut4Defdr0g8zcD3SnW5" X-Mailer: Evolution/1.0.2 Date: 13 Feb 2002 11:15:44 +0100 Message-Id: <1013595344.8972.18.camel@whitestar.kontor.rh-data.com> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-eut4Defdr0g8zcD3SnW5 Content-Type: text/plain Content-Transfer-Encoding: 7bit Somehow my default language changed from english to polish or something on almost all of my gnome apps and all GTK apps. Does anyone know how to change it back to english?? ------------------------------------------------------------------------------- With best regards from Morten Andersen System Consultant RH-Data AS email: morten@rh-data.com tlf: 32770906 fax: 32770901 mobil: 41600026 web: http://www.rh-data.com Also take a look at these web sites: http://www.redhat.com http://www.ximian.com ------------------------------------------------------------------------------- --=-eut4Defdr0g8zcD3SnW5 Content-Type: text/html; charset=utf-8
Somehow my default language changed from english to polish or something on almost all of my gnome apps and all GTK apps.
Does anyone know how to change it back to english??
-------------------------------------------------------------------------------
With best regards from
Morten Andersen
System Consultant RH-Data AS
email: morten@rh-data.com
tlf: 32770906
fax: 32770901
mobil: 41600026
web: http://www.rh-data.com


Also take a look at these web sites:
http://www.redhat.com
http://www.ximian.com
-------------------------------------------------------------------------------
--=-eut4Defdr0g8zcD3SnW5-- From hp@redhat.com Wed Feb 13 11:36:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 141A81810E for ; Wed, 13 Feb 2002 11:36:00 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1DGZpI00939; Wed, 13 Feb 2002 11:35:51 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Yogeesh MB" Cc: Subject: Re: GtkObject in gnome-utils/Gnome-Calculator References: <3C4D5E3B.5010904@ng-london.org.uk> <030d01c1b459$59695990$b609720a@m2foe301975> From: Havoc Pennington Date: 13 Feb 2002 11:35:51 -0500 In-Reply-To: <030d01c1b459$59695990$b609720a@m2foe301975> Message-ID: Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Yogeesh MB" writes: > > In gnome-utils/Gnome-calculator has both GTK_OBJECT_CLASS destroy call > :gnome_calc_destroy(GtkObject * gobject), and G_OBJECT_CLASS finalize > :gnome_calc_finalize(GObject * gobject). > GTK_OBJECT_CLASS is deprecated and there is no destroy call in > G_OBJECT_CLASS. I would like to know why the destroy call is still > retained. Isn't finalize a substitute for destroy? > GtkObject and gtk_object_destroy aren't marked deprecated in my copy of GTK. These are still needed in many cases. finalize means free memory; destroy means return the widget to an uninitialized state, e.g. removing any container-child relationships. Havoc From hp@redhat.com Wed Feb 13 11:37:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id A29D618B97 for ; Wed, 13 Feb 2002 11:37:45 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1DGbhU00943; Wed, 13 Feb 2002 11:37:43 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Morten Andersen Cc: gtk-list@gnome.org Subject: Re: How do I change the default language in GTK / GNOME? References: <1013595344.8972.18.camel@whitestar.kontor.rh-data.com> From: Havoc Pennington Date: 13 Feb 2002 11:37:43 -0500 In-Reply-To: <1013595344.8972.18.camel@whitestar.kontor.rh-data.com> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Morten Andersen writes: > Somehow my default language changed from english to polish or something > on almost all of my gnome apps and all GTK apps. > Does anyone know how to change it back to english?? > This is a function of the desktop or operating system, not GTK. Maybe the login screen has an option to choose a language? Havoc From hp@redhat.com Wed Feb 13 11:38:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id C37BA190C6 for ; Wed, 13 Feb 2002 11:38:48 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1DGcjB00948; Wed, 13 Feb 2002 11:38:45 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Dennis Bjorklund Cc: Subject: Re: scrolling gtktextview References: From: Havoc Pennington Date: 13 Feb 2002 11:38:45 -0500 In-Reply-To: Message-ID: Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dennis Bjorklund writes: > I add lines at the end of the textview and would like it to scroll down to > the bottom so I can see the new lines. But I can't get it to work. I > tried: > > gtk_text_buffer_get_end_iter (buf, &iter); > > gtk_text_view_scroll_to_iter (view, &iter, 0.0, > FALSE, 0.0, 0.0); > > but the does not scroll all the way, it can leave 5-6 lines that are not > visible after scroll. Next attempt is to have a mark in the very end of > the buffer and doing > > gtk_text_view_scroll_mark_onscreen (view, mark); > > but this have similar problems as the first try. It's supposed to work, can you write out a small test program that fails, and file the bug on bugzilla.gnome.org? I will investigate. Havoc From vmail@excite.com Wed Feb 13 14:36:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.10]) by mail.gnome.org (Postfix) with ESMTP id 4188319010 for ; Wed, 13 Feb 2002 14:36:26 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id 74885F661; Wed, 13 Feb 2002 14:36:18 -0500 (EST) To: gtk-list@gnome.org Subject: Removing elements from a gtkTree Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: wdulyea@qualcomm.com Message-Id: <20020213193618.74885F661@xprdmailfe.excite.com> Date: Wed, 13 Feb 2002 14:36:18 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How do remove elements from a gtkTree obj?

tree
|--item
|--subtree
|--subitem

I wish to actually remove/add subitems on the fly, How do I accomplish this?

Thanks in advance,

-W


From seberino@dt092n42.san.rr.com Wed Feb 13 16:28:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 9F7B818232 for ; Wed, 13 Feb 2002 16:28:12 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16b6xG-0001F3-00; Wed, 13 Feb 2002 13:28:42 -0800 Date: Wed, 13 Feb 2002 13:28:42 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: How put text in pixmap? How put vertical (rotate 90 degrees) text? Message-ID: <20020213132842.A4746@spawar.navy.mil> References: <20020131135557.A12603@spawar.navy.mil> <200201312200.RAA18251@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200201312200.RAA18251@renoir.op.net>; from pbd@op.net on Thu, Jan 31, 2002 at 04:57:48PM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul This comment broke my heart for the last 2 weeks. :) But, then I stumbled upon something.... What about gdk_draw_text and gdk_draw_string? Chris On Thu, Jan 31, 2002 at 04:57:48PM -0500, Paul Davis wrote: > >How put text in pixmap, horizontal and vertical text??? > > you have no choice but to draw the text 1 character at a time. XWindow > has no primitives for drawing anything except horizontally arranged > text. > > --p -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 13 16:36:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 31ED31862F for ; Wed, 13 Feb 2002 16:36:07 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16b74w-0001FK-00; Wed, 13 Feb 2002 13:36:38 -0800 Date: Wed, 13 Feb 2002 13:36:38 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-ID: <20020213133638.B4746@spawar.navy.mil> References: <20020206111905.A566@spawar.navy.mil> <200202061924.OAA15372@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202061924.OAA15372@renoir.op.net>; from pbd@op.net on Wed, Feb 06, 2002 at 02:22:48PM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul I may sometimes give impression I'm smart but looks can be deceiving. :) (Ph.D. in physics not computing) I have ZERO X experience! I looked for NULL explanation about why "= NULL" bad but could not anything. Can you give me a 1-2 sentence explanation? Is it a security risk somehow or something? By the way, someone should tell the GTK+ tutorial author that "= NULL" is bad since it has this in scribble.c and apparently he hasn't learned it either. :) I'm glad I have input by all these great experts on this mailing list. Thanks for everything! Chris On Wed, Feb 06, 2002 at 02:22:48PM -0500, Paul Davis wrote: > >I need to sometimes initialize an object to NULL and get this > >message. How avoid??? > > this is getting too close to generic programming questions for this > list. if you don't understand how to fix this yourself, i worry about > future progress on your software. > > SomeObject *someObject = (SomeObject *) 0; > > you should never use "NULL" in a C++ program. look it up with google > to understand why. > > --p -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From rsteinke@w-link.net Wed Feb 13 16:42:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id C702118764 for ; Wed, 13 Feb 2002 16:42:09 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16b7A8-0002uE-00; Wed, 13 Feb 2002 13:42:00 -0800 Date: Wed, 13 Feb 2002 13:42:00 -0800 From: rsteinke@w-link.net To: seberino@spawar.navy.mil, pbd@op.net Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Cc: gtk-list@gnome.org Message-ID: <3C6ADDA8.nail8M311ICGL@w-link.net> References: <20020206111905.A566@spawar.navy.mil> <200202061924.OAA15372@renoir.op.net> <20020213133638.B4746@spawar.navy.mil> In-Reply-To: <20020213133638.B4746@spawar.navy.mil> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Chris Seberino > > Paul > > I may sometimes give impression I'm smart but looks can > be deceiving. :) (Ph.D. in physics not computing) > I have ZERO X experience! > > I looked for NULL explanation about why "= NULL" bad > but could not anything. Can you give me a 1-2 sentence > explanation? Is it a security risk somehow or something? It's got something to do with the stronger typecasting in C++, relative to C. > By the way, someone should tell the GTK+ tutorial author > that "= NULL" is bad since it has this in scribble.c and > apparently he hasn't learned it either. :) That's because it's C and not C++. NULL is completely appropriate in C. > I'm glad I have input by all these great experts on this mailing list. > > Thanks for everything! > > Chris > > On Wed, Feb 06, 2002 at 02:22:48PM -0500, Paul Davis wrote: > > >I need to sometimes initialize an object to NULL and get this > > >message. How avoid??? > > > > this is getting too close to generic programming questions for this > > list. if you don't understand how to fix this yourself, i worry about > > future progress on your software. > > > > SomeObject *someObject = (SomeObject *) 0; > > > > you should never use "NULL" in a C++ program. look it up with google > > to understand why. > > > > --p From pbd@op.net Wed Feb 13 18:02:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 4680A180F2 for ; Wed, 13 Feb 2002 18:02:02 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-71.phlpa.fast.net [209.92.96.71]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id SAA16775; Wed, 13 Feb 2002 18:01:53 -0500 (EST) Message-Id: <200202132301.SAA16775@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? In-reply-to: Your message of "Wed, 13 Feb 2002 13:36:38 PST." <20020213133638.B4746@spawar.navy.mil> Date: Wed, 13 Feb 2002 17:57:11 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I looked for NULL explanation about why "= NULL" bad >but could not anything. Can you give me a 1-2 sentence >explanation? Is it a security risk somehow or something? no, not a security problem. consider how you'd define NULL. #define NULL ((void *)0) now try to use this: SomeObject *ptr = NULL; because C++ is much stricter about types, the compiler will/may complain that it cannot perform an implicit cast of void * to SomeObject *. So in fact, the only acceptable definitions of NULL are 0 or 0L or 0UL or 0U, with no type casting. Since the definitions in a C header file nearly always include the type cast, and since no type cast is acceptable, using NULL is a bad idea. [ quote from a message i found with google]: the C++ standard guarantees that if you use 0 in a pointer context, it will be converted to whatever that platform uses for the "null pointer", even if it happens not to have a bit pattern of all zeroes. (Section 4.10) Therefore, it's safe to use 0 to mean "the null pointer". so, just stick to 0. --p From pfeiffer@viper.cs.nmsu.edu Wed Feb 13 18:21:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viper.cs.nmsu.edu (viper.cs.nmsu.edu [128.123.64.113]) by mail.gnome.org (Postfix) with ESMTP id 97842184CB for ; Wed, 13 Feb 2002 18:21:20 -0500 (EST) Received: (from pfeiffer@localhost) by viper.cs.nmsu.edu (8.11.6/8.11.6) id g1DNLIj15466; Wed, 13 Feb 2002 16:21:18 -0700 From: Joe Pfeiffer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15466.62702.466412.964873@cs.nmsu.edu> Date: Wed, 13 Feb 2002 16:21:18 -0700 To: Chris Seberino , gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? In-Reply-To: <200202132301.SAA16775@renoir.op.net> References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> X-Mailer: VM 7.00 under Emacs 21.1.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It's because the C standard contains an error (I'm sure somebody out there is going to disagree with me as to whether it's an error or not!), and has defined NULL as an integer instead of as a pointer. While it can be cast to a null pointer, if you have an overloaded function that will accept either a null pointer or an int, it'll call the int version. A good description of the problem can be found at http://groups.google.com/groups?q=null+group:comp.lang.c%2B%2B&hl=en&selm=36ca3f75.517359233%40nntp.ix.netcom.com&rnum=5 You can almost always get away with using NULL, and using it does a better job of conveying what your code is trying to do (IMHO). But when you do run into this subtlty, it will take weeks to find the bug... Using 0 has some remote hope of reminding you... -- Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605 Department of Computer Science FAX -- (505) 646-1002 New Mexico State University http://www.cs.nmsu.edu/~pfeiffer Southwestern NM Regional Science and Engr Fair: http://www.nmsu.edu/~scifair From britten@caris.com Wed Feb 13 18:26:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from caris.universal.ca (universal.ca [198.164.13.1]) by mail.gnome.org (Postfix) with ESMTP id 60C31184CB for ; Wed, 13 Feb 2002 18:26:07 -0500 (EST) Received: from dilbert.uslnet.com (proxy.caris.com [198.164.13.3]) by caris.universal.ca (8.11.0/8.11.0) with SMTP id g1DNQ4R03840 for ; Wed, 13 Feb 2002 19:26:04 -0400 Date: Wed, 13 Feb 2002 19:25:55 -0400 From: Ian Britten To: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-Id: <20020213192555.79184ba5.britten@caris.com> In-Reply-To: <200202132301.SAA16775@renoir.op.net> References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> Organization: USL X-Mailer: Sylpheed version 0.6.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 13 Feb 2002 17:57:11 -0500 Paul Davis wrote: > no, not a security problem. consider how you'd define NULL. > > #define NULL ((void *)0) Although this form is allowed, it is *only* valid for C (not C++), and is not how most compilers define NULL. > now try to use this: > > SomeObject *ptr = NULL; > > because C++ is much stricter about types, the compiler will/may > complain that it cannot perform an implicit cast of void * to > SomeObject *. Correct. It's because of this (questionable) NULL #define in the GTK code that C++ developers have problems using GTK... (I've tried to point this out before, but it doesn't seem like anyone wants to fix the problem... (sigh)) > So in fact, the only acceptable definitions of NULL are > 0 or 0L or 0UL or 0U, with no type casting. Correct. This is how every compiler I've seen defines it. [ Granted, I only have access to 6 distinct compilers, from 6 different vendors.... :-/ ] > Since the definitions in a > C header file nearly always include the type cast, and since no type ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This may have been the case years ago, but any compiler doing that now is pretty rare... > cast is acceptable, using NULL is a bad idea. [ quote from a message > found with google]: > > the C++ standard guarantees that if you use 0 in a pointer context, > it will be converted to whatever that platform uses for the "null > pointer", even if it happens not to have a bit pattern of all > zeroes. (Section 4.10) Therefore, it's safe to use 0 to mean "the > null pointer". > > so, just stick to 0. Using NULL is perfectably acceptable, as long as NULL is correctly defined. It is a notational form that adds clarity to the intent of the code (and is easy to search for!). There is absolutely nothing wrong with using NULL in code. Please review the comp.lang.c FAQ, section 5 http://www.eskimo.com/~scs/C-faq/s5.html Summary: GTK has an poor/incorrect definition of NULL that breaks C++ code. At a minimum, the definition should be fixed. However, the better fix would be to simply remove the definition, and use the one provided by the compiler. Ian From rbultje@ronald.bitfreak.net Wed Feb 13 18:38:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id D101B180F2 for ; Wed, 13 Feb 2002 18:38:41 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1DNTp4K008039 for ; Thu, 14 Feb 2002 00:29:51 +0100 (CET) Subject: highlighted button with image gives warning From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 14 Feb 2002 00:38:39 +0100 Message-Id: <1013643520.3834.36.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm trying to get some things done using gtk2. If I create a button (gtk_button_new()) and I put a GtkImage inside it with gtk_container_add() (Gtkmage was created using gtk_image_new_from_pixbuf()) and I go over the button with my mouse (to click it), I get a warning and the image disappears: lt-gst-record (pid:16438): Gtk-WARNING **: gtkstyle.c:1905:gtk_default_render_icon(): invalid icon size `-1' lt-gst-record (pid:16438): Gtk-CRITICAL **: file gtkstyle.c: line 1790 (gtk_style_render_icon): assertion `pixbuf != NULL' failed When leaving the button with my mouse, the image re-appears. It seems as if I need to specify a separate image for the 'highlight' state or tell it to use the same image for that state, so my question: how do I do that? Or is this a bug? In gtk1.2, this worked automagically. Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From markrubn@pacbell.net Wed Feb 13 20:24:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id AF0D51815C for ; Wed, 13 Feb 2002 20:24:27 -0500 (EST) Received: from pacbell.net ([63.201.208.99]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRI007QO18QUA@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Wed, 13 Feb 2002 17:24:27 -0800 (PST) Date: Wed, 13 Feb 2002 17:24:01 -0800 From: "Mark R. Rubin" Subject: Forcing update of widgets To: GTK mailing list Message-id: <3C6B11B1.1AC9DD52@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: o I am attempting to force GTK to update all widgets in a realtime display application using the following code fragment (which I first read about on this mailing list): while (g_main_iteration(FALSE)) ; o There are two problems. First, some widgets, in some cases, do not update. The example I have is a label which is updated from an overloaded motion_notify_event_impl() method in a class derived from Gtk::DrawingArea. (Yes, this is in GTK--, which may or may not be the problem.) o Second problem is that I have a TCP socket connected to the GTK main loop (again GTK--, using Gtk::Main.input.connect()) and doing the above g_main_iteration() loop exposes me to an unwanted re-entrancy. In the middle of processing a user or TCP input and updating the widgets, I can "signal" back to the same or another handler before finishing the current input. o Is there any other/better way to force an update of widgets? I've tried gdk_flush(), by itself and in addition to g_main_iteration(), without success. -- MARK markrubn@pacbell.net From pbd@op.net Wed Feb 13 20:44:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BC9A71856A for ; Wed, 13 Feb 2002 20:44:46 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-157.phlpa.fast.net [209.92.99.157]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA00718; Wed, 13 Feb 2002 20:44:43 -0500 (EST) Message-Id: <200202140144.UAA00718@renoir.op.net> To: "Mark R. Rubin" Cc: GTK mailing list Subject: Re: Forcing update of widgets In-reply-to: Your message of "Wed, 13 Feb 2002 17:24:01 PST." <3C6B11B1.1AC9DD52@pacbell.net> Date: Wed, 13 Feb 2002 20:40:02 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >o I am attempting to force GTK to update all widgets in a realtime > display application using the following code fragment (which I > first read about on this mailing list): > > while (g_main_iteration(FALSE)) > ; this is the wrong design for "realtime display applications". if you want the GUI to update while other activity is happening, you should be using either idle handlers or threads. idle handlers work if the "other activity" is short lived. threads are necessary for other situations. with threads come some extra complications, as well as better performance. >o Second problem is that I have a TCP socket connected to the GTK > main loop (again GTK--, using Gtk::Main.input.connect()) and doing > the above g_main_iteration() loop exposes me to an unwanted > re-entrancy. In the middle of processing a user or TCP input and > updating the widgets, I can "signal" back to the same or another > handler before finishing the current input. this will go away when you correct your design. >o Is there any other/better way to force an update of widgets? I've > tried gdk_flush(), by itself and in addition to g_main_iteration(), > without success. widget->queue_draw() will mark a widget as needing an expose_event to be synthesized for it. the expose_event will be delivered during the next iteration of the GTK main loop. --p From pbd@op.net Wed Feb 13 20:46:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id B01D918501 for ; Wed, 13 Feb 2002 20:46:07 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-157.phlpa.fast.net [209.92.99.157]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA00853; Wed, 13 Feb 2002 20:46:04 -0500 (EST) Message-Id: <200202140146.UAA00853@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How put text in pixmap? How put vertical (rotate 90 degrees) text? In-reply-to: Your message of "Wed, 13 Feb 2002 13:28:42 PST." <20020213132842.A4746@spawar.navy.mil> Date: Wed, 13 Feb 2002 20:41:24 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Paul > >This comment broke my heart for the last 2 weeks. :) > >But, then I stumbled upon something.... > >What about gdk_draw_text and gdk_draw_string? these draw horizontal text. its valentines day tomorrow (perhaps today, depending on where you are); the heartbreak continues :) --p From markrubn@pacbell.net Wed Feb 13 22:55:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by mail.gnome.org (Postfix) with ESMTP id A47461897B for ; Wed, 13 Feb 2002 22:55:38 -0500 (EST) Received: from pacbell.net ([63.201.208.99]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRI00GWN88P5T@mta6.snfc21.pbi.net> for gtk-list@gnome.org; Wed, 13 Feb 2002 19:55:38 -0800 (PST) Date: Wed, 13 Feb 2002 19:55:11 -0800 From: "Mark R. Rubin" Subject: Re: Forcing update of widgets To: Paul Davis Cc: GTK mailing list Message-id: <3C6B351F.5B64540@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202140144.UAA00718@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > while (g_main_iteration(FALSE)) > > ; > > this is the wrong design for "realtime display applications". if you > want the GUI to update while other activity is happening, you should > be using either idle handlers or threads. idle handlers work if the > "other activity" is short lived. threads are necessary for other > situations. with threads come some extra complications, as well as > better performance. o Thanks, Paul. But I *don't* want "the GUI to update while other activity is happening". I want to call something that will update the widgets all the way down to an XFlush() before returning control to the caller (me), all without accepting any input. o BTW, the application has many independent flows of control (at the process, not Posix thread, level). > widget->queue_draw() will mark a widget as needing an expose_event to > be synthesized for it. the expose_event will be delivered during the > next iteration of the GTK main loop. o widget->queue_draw() sounds good if in fact an expose_event, synthetic or otherwise, is needed in additon to a widget state change to force a real redraw. Re-entering the main loop (and risking asynchonous input) is the problem. o Is there an API-exposed call for just that portion of the GTK main loop that does drawing? I seem to recall that the old XtMainLoop() could be manually coded with a while loop calling a half-dozen lower-level functions. -- MARK markrubn@pacbell.net From knishida@sky.sannet.ne.jp Thu Feb 14 02:31:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from svan18.sannet.ne.jp (svan18.sannet.ne.jp [134.180.49.18]) by mail.gnome.org (Postfix) with ESMTP id 1BC1F1856C for ; Thu, 14 Feb 2002 02:31:33 -0500 (EST) Received: from xp.netlab.jp (eaa1-ppp2138.tokyo.sannet.ne.jp [211.133.188.75]) by svan18.sannet.ne.jp (Postfix) with ESMTP id 3E2322BE69 for ; Thu, 14 Feb 2002 16:31:31 +0900 (JST) Date: Thu, 14 Feb 2002 16:32:58 +0900 Message-ID: From: Keisuke Nishida To: gtk-list@gnome.org Subject: problem with grab_focus User-Agent: Wanderlust/2.6.0 (Twist And Shout) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.1 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: multipart/mixed; boundary="Multipart_Thu_Feb_14_16:32:58_2002-1" Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --Multipart_Thu_Feb_14_16:32:58_2002-1 Content-Type: text/plain; charset=US-ASCII Hi there, I have a problem with using gtk_widget_grab_focus in a focus_out_event hander, using gtk+-1.2.10. The attached program has three GtkEntry's, vertically aligned, and tries to grab focus on entry1 when I leave entry2. If I press key `GDK_Down' in the second entry (i.e., entry2), the default action of GTK+ moves cursor to entry3, while my handler moves cursor to entry1. Thus, two cursors appear simultaneously. How could I have only entry1 focused? Thanks in advance. Keisuke Nishida --Multipart_Thu_Feb_14_16:32:58_2002-1 Content-Type: text/plain; charset=US-ASCII #include guint handler; GtkWidget *entry1; GtkWidget *entry2; GtkWidget *entry3; static void on_focus_out (GtkEntry *entry) { gtk_signal_handler_block (GTK_OBJECT (entry), handler); gtk_widget_grab_focus (entry1); gtk_signal_handler_unblock (GTK_OBJECT (entry), handler); } static GtkWidget * create_window1 () { GtkWidget *window1; GtkWidget *vbox1; entry1 = gtk_entry_new (); entry2 = gtk_entry_new (); entry3 = gtk_entry_new (); handler = gtk_signal_connect (GTK_OBJECT (entry2), "focus_out_event", GTK_SIGNAL_FUNC (on_focus_out), NULL); vbox1 = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry1, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry2, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry3, FALSE, FALSE, 0); window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_add (GTK_CONTAINER (window1), vbox1); return window1; } int main (int argc, char **argv) { gtk_init (&argc, &argv); gtk_widget_show_all (create_window1 ()); gtk_main (); return 0; } --Multipart_Thu_Feb_14_16:32:58_2002-1-- From bursted@iam.uni-bonn.de Thu Feb 14 04:21:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ovid.iam.uni-bonn.de (ovid.iam.uni-bonn.de [131.220.32.59]) by mail.gnome.org (Postfix) with ESMTP id 9CC34181AB for ; Thu, 14 Feb 2002 04:21:48 -0500 (EST) Received: from iam.uni-bonn.de (sisyphos.iam.uni-bonn.de [131.220.223.38]) by ovid.iam.uni-bonn.de (980427.SGI.8.8.8/8.6.9) with ESMTP id KAA10514 for ; Thu, 14 Feb 2002 10:21:40 +0100 (CET) Message-ID: <3C6B819D.D732F54D@iam.uni-bonn.de> Date: Thu, 14 Feb 2002 10:21:33 +0100 From: Carsten Burstedde X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.3 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Null Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, what would be wrong with #define null (0) and using that (Java-style)? Then people got their readibility, the c++ standard is saved, and peace. Carsten (I do c and java, so don't kill me if this is junk.) From eg_hyy@stu.ust.hk Thu Feb 14 05:00:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx3.ust.hk (mx3.ust.hk [143.89.13.11]) by mail.gnome.org (Postfix) with ESMTP id 534681824F for ; Thu, 14 Feb 2002 05:00:34 -0500 (EST) Received: from webmaild.ust.hk (webmaild.ust.hk [143.89.14.206]) by mx3.ust.hk (8.11.5/8.11.5) with ESMTP id g1EA0V016090; Thu, 14 Feb 2002 18:00:31 +0800 Received: from localhost (localhost [[UNIX: localhost]]) by webmaild.ust.hk (8.9.3/8.9.3) id SAA23820; Thu, 14 Feb 2002 18:00:31 +0800 Message-Id: <200202141000.SAA23820@webmaild.ust.hk> Date: Thu, 14 Feb 2002 18:00:31 +0800 User-Agent: IMHO/0.97.1 (HKUST Webmail 1.0b) MIME-Version: 1.0 To: gtk-list@gnome.org Content-Transfer-Encoding: 8bit X-Originating-IP: [61.15.163.60] Content-Type: text/plain; charset=iso-8859-1 From: Subject: program organization Cc: eg_hyy@stu.ust.hk Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear all, I would like to ask which organization is better. Thx a lot~ Method 1: GtkWidget widget0; //entry A GtkWidget widget1; //entry B GtkWidget widget2; //entry C widget0=lookup_widget(...); widget1=lookup_widget(...); widget2=lookup_widget(...); gtk_entry_set_text(widget0,...); gtk_entry_set_text(widget1,...); gtk_entry_set_text(widget2,...); Method 2: GtkWidget widget; widget=lookup_widget(...); //entry A gtk_..._set(widget,...); widget=lookup_widget(...); //entry B gtk_..._set(widget,...); widget=lookup_widget(...); //entry C gtk_..._set(widget,...); From sven@gimp.org Thu Feb 14 08:49:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id CA03B182C2 for ; Thu, 14 Feb 2002 08:49:48 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16bMGO-0006UG-00; Thu, 14 Feb 2002 14:49:28 +0100 To: Ian Britten Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> <20020213192555.79184ba5.britten@caris.com> From: Sven Neumann Date: 14 Feb 2002 14:49:28 +0100 In-Reply-To: <20020213192555.79184ba5.britten@caris.com> Message-ID: Lines: 34 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, > Summary: > GTK has an poor/incorrect definition of NULL that breaks C++ code. At a > minimum, the definition should be fixed. However, the better fix would be > to simply remove the definition, and use the one provided by the compiler. here's how glib-2.0 defines NULL: /* We include stddef.h to get the system's definition of NULL */ #include #ifndef NULL # ifdef __cplusplus # define NULL (0L) # else /* !__cplusplus */ # define NULL ((void*) 0) # endif /* !__cplusplus */ #endif this looks much better, doesn't it? BTW, glib-1.2 does not redefine NULL neither: #ifndef NULL #define NULL ((void*) 0) #endif so if you run into problems because of this definition, you should probably define NULL before you include glib.h (or even include an appropriate header that defines NULL more correctly). Salut, Sven From mallum@10.am Thu Feb 14 08:50:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost (lan.ipc.co.uk [193.119.160.10]) by mail.gnome.org (Postfix) with ESMTP id C4A06186E6 for ; Thu, 14 Feb 2002 08:50:46 -0500 (EST) Received: from mallum by localhost with local (Exim 3.34 #1 (Debian)) id 16bMGj-0000H1-00; Thu, 14 Feb 2002 13:49:49 +0000 Date: Thu, 14 Feb 2002 13:49:48 +0000 From: mallum To: Sven Neumann Cc: gtk-list@gnome.org Subject: Re: synthetic button press event in GTK1.2 Message-ID: <20020214134948.GE478@10.am> References: <20020212005736.GC486@10.am> <20020212113152.GB529@10.am> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020212113152.GB529@10.am> User-Agent: Mutt/1.3.27i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I figured it out now, XTest to the resuce :) -- mallum on Tue, Feb 12, 2002 at 11:31:52AM +0000, mallum wrote: > Via an emmision hook, Im writing a gtk module that catches 'held down' > button 1 events and on release tranforms them into a button 3 press event. > > This works fine, but the app is now missing a button release event > which is causing problems. Im trying to create this via XSendEvent . > > This is for touchscreen devices running gtk. > > Can suggest a better way of accomplishing this ? > > -- mallum > > > on Tue, Feb 12, 2002 at 02:36:54AM +0100, Sven Neumann wrote: > > Hi, > > > > mallum writes: > > > > > I need to send a 'synthetic' button release event. Im under the > > > impression I can only do this with a call to Xlibs XSendEvent. > > > > do you really need to do that? What are you trying to acomplish? > > > > > > Salut, Sven > > _______________________________________________ > > 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 britten@caris.com Thu Feb 14 09:10:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from caris.universal.ca (universal.ca [198.164.13.1]) by mail.gnome.org (Postfix) with ESMTP id CB82918834 for ; Thu, 14 Feb 2002 09:10:07 -0500 (EST) Received: from dilbert.uslnet.com (proxy.caris.com [198.164.13.3]) by caris.universal.ca (8.11.0/8.11.0) with SMTP id g1EEA5R04001 for ; Thu, 14 Feb 2002 10:10:05 -0400 Date: Thu, 14 Feb 2002 10:10:02 -0400 From: Ian Britten To: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-Id: <20020214101002.66778e05.britten@caris.com> In-Reply-To: References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> <20020213192555.79184ba5.britten@caris.com> Organization: USL X-Mailer: Sylpheed version 0.6.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 14 Feb 2002 14:49:28 +0100 Sven Neumann wrote: > > Summary: > > GTK has an poor/incorrect definition of NULL that breaks C++ code. At a > > minimum, the definition should be fixed. However, the better fix would be > > to simply remove the definition, and use the one provided by the compiler. > > here's how glib-2.0 defines NULL: > > /* We include stddef.h to get the system's definition of NULL > */ > #include [ snip ] That looks better! That (critical) #include isn't in v1.2, meaning that (C++) must ensure they #include explicitely themselves before #including any GTK header files (Very tedious and error prone...) [ Sorry, I guess I should have clarified that I was referring to GTK 1.2. I haven't had time to look at 1.3/2.0 yet... ] If that little change could be back-ported to v1.2 (hint, hint!), I think (C++) users might be happier... ;-) (After all, v1.2 is still the defacto, stable, standard version. v2.0 may be coming Real Soon, but I suspect v1.2 will still be around for awhile...) Ian From cosminb@saguaro.ro Thu Feb 14 09:30:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from terminus.dnttm.ro (terminus.dnttm.ro [193.226.98.11]) by mail.gnome.org (Postfix) with ESMTP id 8A51118111 for ; Thu, 14 Feb 2002 09:30:08 -0500 (EST) Received: from main.saguaro.ro (main.saguaro.ro [193.226.88.117]) by terminus.dnttm.ro (8.9.3/8.9.3) with ESMTP id QAA15476 for ; Thu, 14 Feb 2002 16:30:06 +0200 Received: from saguaro.ro (samba.spr [192.168.1.100]) by main.saguaro.ro (8.11.2/8.11.2) with ESMTP id g1EEDEH17913 for ; Thu, 14 Feb 2002 16:13:14 +0200 Received: from saguaro.ro (IDENT:cosmin@cosminb.spr [192.168.1.154]) by saguaro.ro (8.11.2/8.11.2) with ESMTP id g1EEPxW32264 for ; Thu, 14 Feb 2002 16:25:59 +0200 X-RAV-AntiVirus: This e-mail has been scanned for viruses on host: saguaro.ro Message-ID: <3C6BCB26.39E5B75D@saguaro.ro> Date: Thu, 14 Feb 2002 16:35:18 +0200 From: cosminb X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: destroy-event ??? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I don't know what signal is emited in the following situation. Right-click in the upper-right corner on a X window. A menu appears. There is a destroy option. Selecting this option will emit a "destroy-event" to that window? If yes, I want to catch it(from my gtk app., if posible), but I don't know how. Thanks in advance Cosmin Bonea From John.Cupitt@ng-london.org.uk Thu Feb 14 09:54:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 0D3EC18111 for ; Thu, 14 Feb 2002 09:54:29 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXLYTX>; Thu, 14 Feb 2002 14:54:22 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXLYTW; Thu, 14 Feb 2002 14:54:18 -0000 Message-ID: <3C6BCC53.1020906@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: cosminb@saguaro.ro Cc: gtk-list@gnome.org Subject: Re: destroy-event ??? Date: Thu, 14 Feb 2002 14:40:19 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: cosminb wrote: > Right-click in the upper-right corner on a X window. A menu appears. > There is a destroy option. Selecting this option will emit a > "destroy-event" to that window? If yes, I want to catch it(from my gtk > app., if posible), but I don't know how. Hi, connect to "delete-event" and return TRUE to block the destroy. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From pbd@op.net Thu Feb 14 09:56:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 81C3E186DB for ; Thu, 14 Feb 2002 09:56:04 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-22.phlpa.fast.net [209.92.227.22]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA04261; Thu, 14 Feb 2002 09:55:56 -0500 (EST) Message-Id: <200202141455.JAA04261@renoir.op.net> To: cosminb Cc: gtk-list@gnome.org Subject: Re: destroy-event ??? In-reply-to: Your message of "Thu, 14 Feb 2002 16:35:18 +0200." <3C6BCB26.39E5B75D@saguaro.ro> Date: Thu, 14 Feb 2002 09:51:24 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi all, > >I don't know what signal is emited in the following situation. > >Right-click in the upper-right corner on a X window. A menu appears. >There is a destroy option. Selecting this option will emit a >"destroy-event" to that window? If yes, I want to catch it(from my gtk >app., if posible), but I don't know how. it will generate a "delete_event" first, which is what actually corresponds to the window manager's "destroy" operation. if that is not handled by a handler that returns TRUE, then the widget in question will more or less immediately be "destroyed" in the GTK+ sense, which involves returning it to an uninitialized state. this is accompanied by a "destroy_event" for the window. --p From Esteban.Quijano@artinsoft.com Thu Feb 14 10:02:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id B6A3518111 for ; Thu, 14 Feb 2002 10:02:35 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id <1L3Q0YHC>; Wed, 13 Feb 2002 17:30:02 -0600 Message-ID: From: Esteban Quijano To: gtk-list@gnome.org Subject: RE: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? Date: Wed, 13 Feb 2002 16:31:30 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It is not true that NULL cannot be used in C++. I don't have to google anything to understand basic things about stricter type casting. I have tons of C++ lines of code running perfectly on Windows and Linux without any trouble. NULL is just a macro you can define as you want in your project: /* Define NULL pointer value */ #ifndef NULL #ifdef __cplusplus #define NULL 0 #else #define NULL ((void *)0) #endif #endif Esteban Quijano QA dept. Artinsoft corp. > -----Original Message----- > From: Chris Seberino [mailto:seberino@spawar.navy.mil] > Sent: Wednesday, February 13, 2002 3:37 PM > To: Paul Davis > Cc: gtk-list@gnome.org > Subject: Re: ?? warning: ANSI C++ forbids implicit conversion > from `void > *' in initialization ??? > > > Paul > > I may sometimes give impression I'm smart but looks can > be deceiving. :) (Ph.D. in physics not computing) > I have ZERO X experience! > > I looked for NULL explanation about why "= NULL" bad > but could not anything. Can you give me a 1-2 sentence > explanation? Is it a security risk somehow or something? > > By the way, someone should tell the GTK+ tutorial author > that "= NULL" is bad since it has this in scribble.c and > apparently he hasn't learned it either. :) > > I'm glad I have input by all these great experts on this mailing list. > > Thanks for everything! > > Chris > > On Wed, Feb 06, 2002 at 02:22:48PM -0500, Paul Davis wrote: > > >I need to sometimes initialize an object to NULL and get this > > >message. How avoid??? > > > > this is getting too close to generic programming questions for this > > list. if you don't understand how to fix this yourself, i > worry about > > future progress on your software. > > > > SomeObject *someObject = (SomeObject *) 0; > > > > you should never use "NULL" in a C++ program. look it up with google > > to understand why. > > > > --p > > -- > ======================================================= > | Dr. Christian Seberino || (619) 553-7940 (office) | > | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | > | 53560 HULL ST || | > | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | > ======================================================= > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From Esteban.Quijano@artinsoft.com Thu Feb 14 10:02:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id BA500189EF for ; Thu, 14 Feb 2002 10:02:36 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id <1L3Q0YJL>; Wed, 13 Feb 2002 19:15:15 -0600 Message-ID: From: Esteban Quijano To: Paul Davis Cc: gtk-list@gnome.org Subject: RE: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? Date: Wed, 13 Feb 2002 18:17:43 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If you see the ANSI ISO/IEC C++ International Standard(14882) at page 699 it says: C.2.2.3 Macro NULL The macro NULL, defined in any of , , , , , , or , is an implementation-defined C++ null pointer constant in this International Standard(18.1). And if you see section 18.1: 4. The macro NULL is an implementation-deined C++ null pointer constant in this International Standard (4.10).180 -> This footnote says: Possible definitions include 0 and OL, but not (void*)0. - I admit I was wrong about "(void *)0". However, the stdio.h microsoft version uses it. It seems that it is left to each compiler (with its .h files) which #define to select. And 4.10 Pointer Convertion says: 1. A null pointer constant is an integral constant expression (5.19) rvalue of integer type that evaluates to zero. A null pointer constant can be converted to a pointer type; the result is the null pointer value of that type and is distinguishable from every other value of pointer to object or pointer to function type. Two null pointer values of the same type shall compare equal. The conversion of a null pointer constant to a pointer to cv-qualified type is a single conversion, and not the sequence of a pointer conversion followed by a qualification conversion (4.4). It is always better to use macros for portability reasons. A single #define line is easier to change than thousands of 0 or 0L in a complex project. You can even #undefine and #define again NULL if needed. Esteban Quijano Artinsoft corp. > -----Original Message----- > From: Paul Davis [mailto:pbd@Op.Net] > Sent: Wednesday, February 13, 2002 4:57 PM > To: Chris Seberino > Cc: gtk-list@gnome.org > Subject: Re: ?? warning: ANSI C++ forbids implicit conversion > from `void > *' in initialization ??? > > > >I looked for NULL explanation about why "= NULL" bad > >but could not anything. Can you give me a 1-2 sentence > >explanation? Is it a security risk somehow or something? > > no, not a security problem. consider how you'd define NULL. > > #define NULL ((void *)0) > > now try to use this: > > SomeObject *ptr = NULL; > > because C++ is much stricter about types, the compiler will/may > complain that it cannot perform an implicit cast of void * to > SomeObject *. So in fact, the only acceptable definitions of NULL are > 0 or 0L or 0UL or 0U, with no type casting. Since the definitions in a > C header file nearly always include the type cast, and since no type > cast is acceptable, using NULL is a bad idea. [ quote from a message i > found with google]: > > the C++ standard guarantees that if you use 0 in a pointer context, > it will be converted to whatever that platform uses for the "null > pointer", even if it happens not to have a bit pattern of all > zeroes. (Section 4.10) Therefore, it's safe to use 0 to mean "the > null pointer". > > so, just stick to 0. > > --p > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From pbd@op.net Thu Feb 14 10:16:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 7B27018111 for ; Thu, 14 Feb 2002 10:16:33 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-22.phlpa.fast.net [209.92.227.22]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA06755; Thu, 14 Feb 2002 10:16:30 -0500 (EST) Message-Id: <200202141516.KAA06755@renoir.op.net> To: Esteban Quijano Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? In-reply-to: Your message of "Wed, 13 Feb 2002 18:17:43 CST." Date: Thu, 14 Feb 2002 10:11:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >It is always better to use macros for portability reasons. A single #define this is nonsense. there has only ever been one meaning of a null pointer. the fact that certain projects have mis-defined it from the perspective of a C++ programmer doesn't change that. assuming that the macro is correctly defined, there is absolutely no difference in any way between writing ptr = NULL; and ptr = 0; if the compiler does not support the standard for null pointer conversion (i.e. an integer value of 0 will converted to a null pointer), there is no possible definition of NULL that will work, so the macro isn't buying you anything. if you happen to be a person who likes to look for "NULL" in code because you think it provides some kind of semantic guidance, feel free to use "NULL". i'm not one of those people. --p From mark@mark.mielke.cc Thu Feb 14 10:26:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mark.mielke.cc (mark.mielke.cc [216.209.85.42]) by mail.gnome.org (Postfix) with ESMTP id D0C2C180E9 for ; Thu, 14 Feb 2002 10:26:20 -0500 (EST) Received: (from mark@localhost) by mark.mielke.cc (8.11.6/linuxconf) id g1EFMOv04787; Thu, 14 Feb 2002 10:22:24 -0500 Date: Thu, 14 Feb 2002 10:22:24 -0500 From: Mark Mielke To: Paul Davis Cc: Esteban Quijano , gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? Message-ID: <20020214102224.A4715@mark.mielke.cc> Mail-Followup-To: Mark Mielke , Paul Davis , Esteban Quijano , gtk-list@gnome.org References: <200202141516.KAA06755@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200202141516.KAA06755@renoir.op.net>; from pbd@Op.Net on Thu, Feb 14, 2002 at 10:11:58AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Feb 14, 2002 at 10:11:58AM -0500, Paul Davis wrote: > >It is always better to use macros for portability reasons. A single #define > this is nonsense. there has only ever been one meaning of a null > pointer. the fact that certain projects have mis-defined it from the > perspective of a C++ programmer doesn't change that. "There has only ever been one meaning of a null pointer on known sensible systems." Just like, one should be able to assume that "p++" and "--p" should always work, although very strictly one cannot. The following code: char s[100]; char *p = &s[-2]; p[2]; May not actually work on some systems. Why? Because C only guarantees that s[-1] will work. I've never stumbled on one of these machines, but I suspect these limitations may apply to systems without a real OS underneath them, such as the Palm Pilot. The C/C++ standards define NULL such that the onus is left to the implementation to define NULL as something that "works". Therefore, unless you plan on stating that "our tools only work on 'sensible' systems", for your own definition of sensible, "NULL" actually is more portable than "0". (perhaps not by very much at all... but is it really worth fighting over?) mark -- mark@mielke.cc/markm@ncf.ca/markm@nortelnetworks.com __________________________ . . _ ._ . . .__ . . ._. .__ . . . .__ | Neighbourhood Coder |\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ | | | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, Ontario, Canada One ring to rule them all, one ring to find them, one ring to bring them all and in the darkness bind them... http://mark.mielke.cc/ From Valdis.Kletnieks@vt.edu Thu Feb 14 10:52:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 44287193A2 for ; Thu, 14 Feb 2002 10:52:14 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1EFqDVj026110; Thu, 14 Feb 2002 10:52:13 -0500 Message-Id: <200202141552.g1EFqDVj026110@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Mark Mielke Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? In-Reply-To: Your message of "Thu, 14 Feb 2002 10:22:24 EST." <20020214102224.A4715@mark.mielke.cc> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ <200202141516.KAA06755@renoir.op.net> <20020214102224.A4715@mark.mielke.cc> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1869010785P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 14 Feb 2002 10:52:13 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_1869010785P Content-Type: text/plain; charset=us-ascii On Thu, 14 Feb 2002 10:22:24 EST, Mark Mielke said: > Just like, one should be able to assume that "p++" and "--p" should > always work, although very strictly one cannot. The following code: > > char s[100]; > char *p = &s[-2]; > > p[2]; > > May not actually work on some systems. Why? Because C only guarantees that > s[-1] will work. > > I've never stumbled on one of these machines, but I suspect these > limitations may apply to systems without a real OS underneath them, > such as the Palm Pilot. Actually, it's not necessarily "without a real OS". There have existed weird architectures that have strange views on memory access (see the Intel 432, or IBM's S/38-AS/400 series, for example), where memory is referenced in an object-oriented manner enforced by the hardware. On these types of machines, dereferencing p[2] is safe *only* if p is referenced through a pointer that accesses a descriptor that says "yes, this is an array of at least 3 in size". And of course, trying to assign p a value of &s[-2] gets you a SIGSEGV or moral equivalent, because s is a pointer to a descriptor that limits the array to indices 0 through 99. And I believe everybody's favorite CISC system, the DEC VAX, had a BOUNDS instruction that checked if a pointer was within limits - and there's no reason why a compiler couldn't/shouldn't have included a BOUNDS opcode in the computation of &s[-2]. I believe the Intel x86 series has a similar opcode, but I am *NOT* positive of that.... -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_1869010785P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8a90tcC3lWbTT17ARAu7eAJ4sjXxdkdlmP4y9I6K2HLQqD2Kp4QCfRPHW t1iIoi45mqXqgRTtc6OrXxA= =hDxm -----END PGP SIGNATURE----- --==_Exmh_1869010785P-- From pfeiffer@viper.cs.nmsu.edu Thu Feb 14 12:48:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viper.cs.nmsu.edu (viper.cs.nmsu.edu [128.123.64.113]) by mail.gnome.org (Postfix) with ESMTP id 72697189D1 for ; Thu, 14 Feb 2002 12:48:44 -0500 (EST) Received: (from pfeiffer@localhost) by viper.cs.nmsu.edu (8.11.6/8.11.6) id g1EHmIS18590; Thu, 14 Feb 2002 10:48:18 -0700 From: Joe Pfeiffer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15467.63585.827662.889816@cs.nmsu.edu> Date: Thu, 14 Feb 2002 10:48:17 -0700 To: Carsten Burstedde Cc: gtk-list@gnome.org Subject: Null In-Reply-To: <3C6B819D.D732F54D@iam.uni-bonn.de> References: <3C6B819D.D732F54D@iam.uni-bonn.de> X-Mailer: VM 7.00 under Emacs 21.1.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Carsten Burstedde writes: > > what would be wrong with > #define null (0) > and using that (Java-style)? It's got the same problem as the definition of NULL in the standard (after all, it is the definition of NULL from the standard!). -- Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605 Department of Computer Science FAX -- (505) 646-1002 New Mexico State University http://www.cs.nmsu.edu/~pfeiffer Southwestern NM Regional Science and Engr Fair: http://www.nmsu.edu/~scifair From maldonado@ibiquity.com Thu Feb 14 14:58:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from radioflyer.ibocradio.com (unknown [208.33.57.98]) by mail.gnome.org (Postfix) with ESMTP id EB106180DD for ; Thu, 14 Feb 2002 14:58:16 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message Subject: pixmap "shadow" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1B591.F143D9AE" Date: Thu, 14 Feb 2002 14:58:16 -0500 Message-ID: <6AC325EB1D98F84B986D83F985121C1F16FDB7@radioflyer.ibocradio.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: pixmap "shadow" Thread-Index: AcG1kfE9SsRDGOiNTh6obLAh7goSmw== From: "Lourdes Maldonado" To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1B591.F143D9AE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 Using Glade I insert a pixmap widget into a container (the pixmap widget is not pointing to a file). Then at runtime I create a GdkPixmap with some xpm_data local to the code and use gtk_pixmap_set to set my Glade pixmap widget to the locally created pixmap. =20 static const char * myXpmData[] =3D (data not include in e-mail) =20 GdkPixmap *pixmap; GdkBitmap *mask; GtkStyle *style; =20 style =3D gtk_widget_get_style(myWindow); =20 pixmap =3D gdk_pixmap_create_from_xpm_d(myWindow, &mask, =20 &style->bg[GTK_STATE_NORMAL], (gchar **)myXmpData); =20 gtk_pixmap-set(GTK_PIXMAP(myPixmapWidgetFromGlade), pixmap, mask); =20 The first time the pixmap is displayed it has a shadow (it looks like another pixmap (same image) is behind it and offset to one side). If I cover the pixmap with a window and then remove the window it looks fine. =20 Thanks for any help, =20 Lourdes T. Maldonado ------_=_NextPart_001_01C1B591.F143D9AE Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

Using Glade I insert a pixmap widget into a container = (the pixmap widget is not pointing to a file).  Then at runtime I create a = GdkPixmap with some xpm_data local

to the code and use gtk_pixmap_set to set my Glade = pixmap widget to the locally created pixmap.

 

static const char * myXpmData[] =3D (data not include = in e-mail)

 

GdkPixmap *pixmap;

GdkBitmap *mask;

GtkStyle *style;

 

style =3D = gtk_widget_get_style(myWindow);

 

pixmap =3D gdk_pixmap_create_from_xpm_d(myWindow, = &mask,

         =             &= nbsp;           &n= bsp;              =             &= nbsp;   &style->bg[GTK_STATE_NORMAL],=

         =             &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;     (gchar **)myXmpData);

 

gtk_pixmap-set(GTK_PIXMAP(myPixmapWidgetFromGlade),

         =             &= nbsp;  pixmap,

         =             &= nbsp;  mask);

 

The first time the pixmap is displayed it has a = shadow (it looks like another pixmap (same image) is behind it and offset to one side).  If I cover the pixmap with a window and then remove the = window it looks fine.

 

Thanks for any help,

 

Lourdes T. = Maldonado

=00 ------_=_NextPart_001_01C1B591.F143D9AE-- From pbd@op.net Thu Feb 14 15:36:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id E1D62181A5 for ; Thu, 14 Feb 2002 15:36:49 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-402.phlpa.fast.net [209.92.100.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA15289; Thu, 14 Feb 2002 15:36:43 -0500 (EST) Message-Id: <200202142036.PAA15289@renoir.op.net> To: Mark Mielke Cc: Esteban Quijano , gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? In-reply-to: Your message of "Thu, 14 Feb 2002 10:22:24 EST." <20020214102224.A4715@mark.mielke.cc> Date: Thu, 14 Feb 2002 15:32:14 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >The C/C++ standards define NULL such that the onus is left to the >implementation to define NULL as something that "works". That may be true. However, the C++ standard, such as it is, is quite specific about what it means to assign an integral value of zero to a pointer lvalue, or when testing a pointer value against an integer value of zero. This is precisely why many C++ programmers, myself included, prefer to use 0 rather than NULL. NULL may or may not be the right thing, whereas 0 almost certainly is. >Therefore, unless you plan on stating that "our tools only work on >'sensible' systems", for your own definition of sensible, "NULL" actually >is more portable than "0". (perhaps not by very much at all... Its the other way around. The standards do not pin down a definition of NULL because there is no standard definition that can be guaranteed to work. Thus, using 0 is actually much more portable because its operation/semantics are defined by the standard. Actually, as Joseph pointed out here yesterday, even 0 has problems for cases where there is an overloaded function with both pointer and integer variants. > but is it >really worth fighting over?) No. Just worth getting right. --p From crazycrusoe@yahoo.com Thu Feb 14 17:02:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11505.mail.yahoo.com (web11505.mail.yahoo.com [216.136.172.37]) by mail.gnome.org (Postfix) with SMTP id 51C9018766 for ; Thu, 14 Feb 2002 17:02:24 -0500 (EST) Message-ID: <20020214220223.27386.qmail@web11505.mail.yahoo.com> Received: from [202.180.83.6] by web11505.mail.yahoo.com via HTTP; Thu, 14 Feb 2002 14:02:23 PST Date: Thu, 14 Feb 2002 14:02:23 -0800 (PST) From: Syed Irfan Subject: need help with some queries To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi i need some help understanding some things, i am through to chapter 6 in the gtk tutorial :-) /* my program 5, button.button */ #include //#define INFO /usr/share/doc/gtk+-devel-1.2.10/examples/buttons/info.xpm why cant i define the above and use INFO in the program ? instead of giving the whole path to the file ? gint my_delete_cb(GtkWidget *widget, GdkEvent *event, gpointer data) { g_print("\nyou pressed the %s \n", (char*) data); gtk_main_quit(); return (TRUE); } gint my_clicked_button_cb(GtkWidget *widget, gpointer data) { g_print("\n pressed the %s\n", (char *) data); return (FALSE); } //gint my_leave_button_cb(GtkWidget *widget, GdkEvent *event, gpointer data) //gives output " uhooo this ones good; Ã) " //i mean the strange character "Ã" instead of "pointer moved away from button" ? //bugger, but removing GdkEvent *event from the function declaration //does da trick, dunno why ? any explanation here ? gint my_leave_button_cb(GtkWidget *widget, gpointer data) { g_print("\nuhooo this ones good; %s\n",(char*) data); return (TRUE); } GtkWidget *my_xpm_label_box(GtkWidget *parent, gchar *xpm_filename, gchar *label_text) { GtkWidget *box_1; GtkWidget *label; GtkWidget *pixmapwid; GdkPixmap *pixmap; GdkBitmap *mask; GtkStyle *style; //create box for xpm and label box_1=gtk_hbox_new(FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(box_1), 2); //setting style of the button style = gtk_widget_get_style(parent); //the display of the pixmap pixmap = gdk_pixmap_create_from_xpm(parent->window, &mask, &style->bg[GTK_STATE_NORMAL], xpm_filename); pixmapwid = gtk_pixmap_new(pixmap, mask); //create label for the button label = gtk_label_new(label_text); //packing the pixmap into box gtk_box_pack_start(GTK_BOX(box_1), pixmapwid, FALSE, FALSE, 3); //packing the label into the box gtk_box_pack_start(GTK_BOX(box_1), label, FALSE, FALSE, 3); gtk_widget_show(pixmapwid); gtk_widget_show(label); return (box_1); } int main(int argc, char *argv[]) { //gtk widgets first GtkWidget *window; GtkWidget *button; GtkWidget *box_1; //dont forget to initialize gtk_init(&argc, &argv); //create the window window = gtk_window_new(GTK_WINDOW_TOPLEVEL); //connect the x with close gtk_signal_connect(GTK_OBJECT(window), "delete_event", GTK_SIGNAL_FUNC(my_delete_cb), (gpointer) "x button on the top right corner"); gtk_container_set_border_width(GTK_CONTAINER(window), 20); //what the heck is that realize thingy ? below //whats the diff between gtk_widget_show() and //gtk_widget_realize() ?? gtk_widget_realize(window); // gtk_widget_show(window); // now creating the button button = gtk_button_new(); //connecting the button to an event, basically the button callback gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(my_clicked_button_cb), (gpointer) "cool button"); gtk_signal_connect(GTK_OBJECT(button), "leave", GTK_SIGNAL_FUNC(my_leave_button_cb), (gpointer) "pointer moved away from button"); //the strange thing about, when the mouse pointer clicks the //button, this is the output i get uhooo this ones good; pointer moved away from button pressed the cool button but shouldnt i get only "pressed the cool button" why am i getting the uhooo this ones good as well ? box_1 = my_xpm_label_box(window, "/usr/lib/kde1-compat/share/icons/large/info.xpm", "cool button"); gtk_widget_show(box_1); gtk_container_add(GTK_CONTAINER(button), box_1); gtk_widget_show(button); gtk_container_add(GTK_CONTAINER(window), button); gtk_widget_show(window); gtk_main(); return(0); } thankyou verymuch guys ===== ===================================== CrazyCrusoe Hackerd00d http://members.linuxstart.com/openweb ===================================== __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com From lynn.lin@boeing.com Thu Feb 14 18:25:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from slb-smtpout-01.boeing.com (slb-smtpout-01.boeing.com [12.13.237.21]) by mail.gnome.org (Postfix) with ESMTP id 3855C186BF for ; Thu, 14 Feb 2002 18:25:22 -0500 (EST) Received: from stl-av-02.boeing.com ([192.76.190.7]) by slb-smtpout-01.boeing.com (8.9.2/8.8.5-M2) with ESMTP id PAA07564 for ; Thu, 14 Feb 2002 15:23:31 -0800 (PST) Received: from slb-hub-01.boeing.com (localhost [127.0.0.1]) by stl-av-02.boeing.com (8.9.3/8.9.2/MBS-AV-01) with ESMTP id RAA29281 for ; Thu, 14 Feb 2002 17:25:20 -0600 (CST) Received: from xch-swbh-02.sw.nos.boeing.com (xch-swbh-02.sw.nos.boeing.com [129.172.87.58]) by slb-hub-01.boeing.com (8.11.3/8.11.3/MBS-LDAP-01) with ESMTP id g1ENPIT04857 for ; Thu, 14 Feb 2002 15:25:18 -0800 (PST) Received: by xch-swbh-02.sw.nos.boeing.com with Internet Mail Service (5.5.2650.21) id <169NBMLJ>; Thu, 14 Feb 2002 15:25:18 -0800 Message-ID: From: "Lin, Lynn" To: "'gtk-list@gnome.org'" Subject: gui builder Date: Thu, 14 Feb 2002 15:25:12 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, Does GTK+ has a GUI builder ? If yes, what is the name of it ? Thank you :) Lynn From dreed@capital.edu Thu Feb 14 18:51:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by mail.gnome.org (Postfix) with ESMTP id 113211847B for ; Thu, 14 Feb 2002 18:51:12 -0500 (EST) Received: from localhost.localdomain (dhcp065-024-120-162.columbus.rr.com [65.24.120.162]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id g1ENkDb14143; Thu, 14 Feb 2002 18:46:13 -0500 (EST) Received: (from dreed@localhost) by localhost.localdomain (8.11.6/8.11.6) id g1ENoLn18340; Thu, 14 Feb 2002 18:50:21 -0500 Date: Thu, 14 Feb 2002 18:50:21 -0500 Message-Id: <200202142350.g1ENoLn18340@localhost.localdomain> X-Authentication-Warning: localhost.localdomain: dreed set sender to dreed@capital.edu using -f From: Dave Reed To: lynn.lin@boeing.com Cc: gtk-list@gnome.org In-reply-to: (lynn.lin@boeing.com) Subject: Re: gui builder References: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > From: "Lin, Lynn" > > Hi there, > > Does GTK+ has a GUI builder ? If yes, what is the name of it ? > > Thank you :) > > Lynn Yes, glade. If you're running Linux, you probably already have it. If not, see: http://glade.pn.org Dave From caspar@cbothmer.org Thu Feb 14 18:58:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cbothmer.org (pD95199DF.dip.t-dialin.net [217.81.153.223]) by mail.gnome.org (Postfix) with SMTP id 49786181D2 for ; Thu, 14 Feb 2002 18:58:53 -0500 (EST) Received: (qmail 25263 invoked from network); 14 Feb 2002 23:58:50 -0000 Received: from marvin.cbothmer.org (HELO cbothmer.org) () by trillian.cbothmer.org with SMTP; 14 Feb 2002 23:58:50 -0000 Message-ID: <3C6C4F8B.B4EA2826@cbothmer.org> Date: Fri, 15 Feb 2002 01:00:11 +0100 From: Caspar Bothmer X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: gui builder References: <200202142350.g1ENoLn18340@localhost.localdomain> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dave Reed wrote: > > Yes, glade. > If you're running Linux, you probably already have it. If not, see: > http://glade.pn.org New address: http://glade.gnome.org. You can find it from http://www.gtk.org, topic "Applications". Is a nice tool. Check the tutorial from Jan, 18th. bye caspar From vmail@excite.com Thu Feb 14 20:33:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.9]) by mail.gnome.org (Postfix) with ESMTP id 96A65181F8 for ; Thu, 14 Feb 2002 20:33:18 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id 8EF5B29A19; Thu, 14 Feb 2002 20:33:13 -0500 (EST) To: gtk-list@gnome.org Subject: memory leaks Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Message-Id: <20020215013313.8EF5B29A19@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 20:33:13 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am using a notebook with several pages, each page is packed with n_ widgets, each time I switch between pages I want the container of pages I am switch from and all its children to be destroyed or un referenced if you prefer. Simply destroying the widget parent does not accomplish this as I thought by propagation, oops. In the mean time I watch my application consume more and more memory:(

Any ideas on how to resolve this issue?

-William



From konno@hkd.esc.east.ntt.co.jp Thu Feb 14 21:37:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail3.noc.ntt.co.jp (mail3.noc.ntt.co.jp [210.163.32.58]) by mail.gnome.org (Postfix) with ESMTP id D1B131816C for ; Thu, 14 Feb 2002 21:37:00 -0500 (EST) Received: from vscan2.noc.east.ntt.co.jp (vscan2.noc.east.ntt.co.jp) by mail3.noc.ntt.co.jp (8.9.3/NOC-MAIL3) id LAA04084 for ; Fri, 15 Feb 2002 11:36:58 +0900 (JST) Received: from mail2.noc.east.ntt.co.jp by vscan2.noc.east.ntt.co.jp (3.7W/vscan2_v01) id LAA26081; Fri, 15 Feb 2002 11:36:58 +0900 (JST) Received: from hkd.esc.east.ntt.co.jp by mail2.noc.east.ntt.co.jp (8.9.3/3.7W/mail2_v01) id LAA07925; Fri, 15 Feb 2002 11:36:59 +0900 (JST) Received: by hkd.esc.east.ntt.co.jp (8.8.8/3.6W/99120320) with SMTP id LAA20224; Fri, 15 Feb 2002 11:36:57 +0900 (JST) From: "tadashi konno" To: "gtk-list" Subject: =?iso-2022-jp?B?R1RLGyRCJEc0SkMxJEolPSUxJUMlSCVXJW0lMCVpJWAkcjpuJGobKEI=?= =?iso-2022-jp?B?GyRCJD8kJBsoQg==?= Date: Fri, 15 Feb 2002 11:34:37 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: $B=i$a$F$NEj9F$G$9!#:#Ln$H?=$7$^$9!#(B GTK$B$d(BX$B$r;O$a$?$P$+$j$G!"$h$/J,$+$j$^$;$s!#(B $BA0$K$b!";w$?l9g$O!"$4$a$s$J$5$$!#(B GTK$B$G4JC1$J%=%1%C%H%W%m%0%i%`$r:n$C$F8+$?$N$G$9$,!"(B socket$B$N(Bconnect$B$H(Bgtk_input_add_full$B$N;H$$J}$,$o$+$j$^$;$s!#(B $BAw?.It$He Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 846191816C for ; Thu, 14 Feb 2002 22:14:35 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-31.fast.net [209.92.60.31]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id WAA25803; Thu, 14 Feb 2002 22:14:33 -0500 (EST) Message-Id: <200202150314.WAA25803@renoir.op.net> To: wdulyea1@excite.com Cc: gtk-list@gnome.org Subject: Re: memory leaks In-reply-to: Your message of "Thu, 14 Feb 2002 20:33:13 EST." <20020215013313.8EF5B29A19@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 22:10:09 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > >I am using a notebook with several pages, each page is packed with n_ widgets, > each time I switch between pages I want the container of pages I am switch f >rom and all its children to be destroyed or un referenced if you prefer. then you'll have to do this explicitly by removing it from the notebook, which should reduce its reference count to zero and thus destroy it. just switching pages won't accomplish this. --p From vmail@excite.com Thu Feb 14 23:06:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.5]) by mail.gnome.org (Postfix) with ESMTP id E1CA4188CE for ; Thu, 14 Feb 2002 23:06:40 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id CCE1C3E0E; Thu, 14 Feb 2002 23:06:36 -0500 (EST) To: Paul Davis , Subject: Re: memory leaks Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Message-Id: <20020215040636.CCE1C3E0E@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 23:06:36 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Aahh ...but this is my problem. I should have detailed a little more with the original mail.

The routine that handles switching pages is also getting the widget in the current page prior to switching, once I have the widget I implicitly call gtk_?_destroy(), this should do as stated and destroy the object. However I am still seeing my application grow in size as I continually switch from one notebook page to another.

Any Ideas?

-William


From pbd@op.net Thu Feb 14 23:10:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D9FF0181E9 for ; Thu, 14 Feb 2002 23:10:39 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-31.fast.net [209.92.60.31]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id XAA00771; Thu, 14 Feb 2002 23:10:29 -0500 (EST) Message-Id: <200202150410.XAA00771@renoir.op.net> To: wdulyea1@excite.com Cc: gtk-list@gnome.org Subject: Re: memory leaks In-reply-to: Your message of "Thu, 14 Feb 2002 23:06:36 EST." <20020215040636.CCE1C3E0E@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 23:06:05 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: just a quick note to point out that whether you know it or not, the email program you are using is sending out copies of your mail in both plain text and HTML formats. increasingly on the net, there are filters being put in place that silently dump HTML-formatted email. some mailing lists will not ever accept such posts. as long as you do this, you are (1) wasting network bandwidth by sending messages that are typically more than twice as long as they could be (2) making it harder for people using traditional email readers to read them (3) risking the chance that people will never see your mail because its filtered before reaching their email inbox. >Aahh ...but this is my problem. I should have detailed a little more with the > original mail.
>
>The routine that handles switching pages is also getting the widget in the cur >rent page prior to switching, once I have the widget I implicitly call gtk_?_d >estroy(), this should do as stated and destroy the object. However I am still > seeing my application grow in size as I continually switch from one notebook >page to another.
>
>Any Ideas?
you cannot just destroy an object that is held by a container and expect the destroy to work. GTK objects are reference counted, and unless you remove it from the container, it will continue to exist until the refcnt drops to zero. --p From kh_naba@yahoo.com Thu Feb 14 23:45:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by mail.gnome.org (Postfix) with SMTP id 1A684186FD for ; Thu, 14 Feb 2002 23:45:35 -0500 (EST) Received: from unknown (HELO ?192.168.1.3?) (61.11.30.46) by smtp.mail.vip.sc5.yahoo.com with SMTP; 15 Feb 2002 04:45:33 -0000 Subject: Anjuta 0.1.9 released! From: Naba Kumar To: anjuta-announce@lists.sourceforge.net Cc: linux-india-help@lists.sourceforge.net, linux-india-general@lists.sourceforge.net, gnome-devel-list@gnome.org, gtk-devel@gnome.org, gnome-list@gnme.org, gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 15 Feb 2002 10:15:50 +0530 Message-Id: <1013748360.1318.4.camel@Dragon> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Announcing the latest stable release of Anjuta, 0.1.9. The Anjuta website can be found at: http://anjuta.sourceforge.net What is Anjuta? Anjuta is a versatile Integrated Development Environment (IDE). It has been written for GTK+/GNOME, and features a number of advanced programming facilities. These include project management, application wizards, an interactive debugger and a powerful source code editor, with source browsing and syntax highlighting. What is new / changed in this release? * rewritten symbol and tag browsing support, * new message manager, * embedded terminal (using zvt), * Project Import Wizard, making it easier to migrate existing projects to Anjuta (experimental), * new look Application Wizard, * libglade project support, * Class Creator plugin, * UI enhancements, * many, many bug fixes. Requirements * libxml, * scrollkeeper, * standard GNU development tools, * gdb (for debugging sessions) * autoconf/automake. Optional tools * gnome-help-browser (or Nautilus), to display the included documentation, * grep, for research in files, * ctags, in order to have class browsing, * indent, for automatic source code indenting, * DevHelp, for context sensitive API browser support (http://devhelp.codefactory.se). Availability * http://prdownloads.sourceforge.net/anjuta/anjuta-0.1.9.tar.gz * http://prdownloads.sourceforge.net/anjuta/anjuta-0.1.9-1.src.rpm * http://prdownloads.sourceforge.net/anjuta/anjuta-0.1.9-1.i386.rpm (.deb and other formats coming soon) Feedback Although much of the development effort is going into the new version of Anjuta, we'd really like to continue to hear your comments on the 0.1.x series - remember that forums, mailing lists, bug reporting and feature request facilities may be found at the Anjuta project page: http://www.sourceforge.net/projects/anjuta -- Regards, -naba Forgive him, for he believes that the customs of his tribe are the laws of nature! -- G.B. Shaw _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From podd@prodigy.net Sun Feb 10 18:43:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pimout3-int.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102]) by mail.gnome.org (Postfix) with ESMTP id 26AD31823C for ; Sun, 10 Feb 2002 18:43:07 -0500 (EST) Received: from default (A020-0842.SKT3.splitrock.net [209.253.233.80]) by pimout3-int.prodigy.net (8.11.0/8.11.0) with SMTP id g1ANh59202946 for ; Sun, 10 Feb 2002 18:43:06 -0500 Message-ID: <000701c1b283$bbbd74a0$50e9fdd1@default> From: "SCOTT D ADAMS" To: Subject: GList Date: Sun, 10 Feb 2002 14:38:58 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01C1B240.AC6D9B80" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0004_01C1B240.AC6D9B80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all; How can you open a data file and add the contents to a GList and then = show the=20 complete list in a gtk+ listbox? I've been able to do everything except = display the=20 items in a listbox. thanks, jim scurveedog@yahoo.com ------=_NextPart_000_0004_01C1B240.AC6D9B80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all;
 
How can you open a data file and add the contents to = a GList=20 and then show the
complete list in a gtk+ listbox?  I've been = able to do=20 everything except display the
items in a listbox.
 
thanks,
jim scurveedog@yahoo.com
 
 
 
------=_NextPart_000_0004_01C1B240.AC6D9B80-- From knishida@sky.sannet.ne.jp Thu Feb 14 02:26:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from svan18.sannet.ne.jp (svan18.sannet.ne.jp [134.180.49.18]) by mail.gnome.org (Postfix) with ESMTP id DE6CE1856C for ; Thu, 14 Feb 2002 02:26:38 -0500 (EST) Received: from xp.netlab.jp (eaa1-ppp2138.tokyo.sannet.ne.jp [211.133.188.75]) by svan18.sannet.ne.jp (Postfix) with ESMTP id 0D9C52BE69 for ; Thu, 14 Feb 2002 16:26:37 +0900 (JST) Date: Thu, 14 Feb 2002 16:28:04 +0900 Message-ID: From: Keisuke Nishida To: gtk-list@gnome.org Subject: problem with grab_focus User-Agent: Wanderlust/2.6.0 (Twist And Shout) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.1 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: multipart/mixed; boundary="Multipart_Thu_Feb_14_16:28:04_2002-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --Multipart_Thu_Feb_14_16:28:04_2002-1 Content-Type: text/plain; charset=US-ASCII Hi there, I have a problem with using gtk_widget_grab_focus in a focus_out_event hander, using gtk+-1.2.10. The attached program has three GtkEntry's, vertically aligned, and tries to grab focus on entry1 when I leave entry2. If I press key `GDK_Down' in the second entry (i.e., entry2), the default action of GTK+ moves cursor to entry3, while my handler moves cursor to entry1. Thus, two cursors appear simultaneously. How could I have only entry1 focused? Thanks in advance. Keisuke Nishida --Multipart_Thu_Feb_14_16:28:04_2002-1 Content-Type: text/plain; charset=US-ASCII #include guint handler; GtkWidget *entry1; GtkWidget *entry2; GtkWidget *entry3; static void on_focus_out (GtkEntry *entry) { gtk_signal_handler_block (GTK_OBJECT (entry), handler); gtk_widget_grab_focus (entry1); gtk_signal_handler_unblock (GTK_OBJECT (entry), handler); } static GtkWidget * create_window1 () { GtkWidget *window1; GtkWidget *vbox1; entry1 = gtk_entry_new (); entry2 = gtk_entry_new (); entry3 = gtk_entry_new (); handler = gtk_signal_connect (GTK_OBJECT (entry2), "focus_out_event", GTK_SIGNAL_FUNC (on_focus_out), NULL); vbox1 = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry1, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry2, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry3, FALSE, FALSE, 0); window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_add (GTK_CONTAINER (window1), vbox1); return window1; } int main (int argc, char **argv) { gtk_init (&argc, &argv); gtk_widget_show_all (create_window1 ()); gtk_main (); return 0; } --Multipart_Thu_Feb_14_16:28:04_2002-1-- From wdulyea@qualcomm.com Thu Feb 14 18:23:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from numenor.qualcomm.com (numenor.qualcomm.com [129.46.51.58]) by mail.gnome.org (Postfix) with ESMTP id BC6FB18272 for ; Thu, 14 Feb 2002 18:23:48 -0500 (EST) Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149]) by numenor.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1ENNWkQ027548 for ; Thu, 14 Feb 2002 15:23:32 -0800 (PST) Received: from wdulyea.qualcomm.com (wdulyea.qualcomm.com [129.46.73.119]) by neophyte.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1ENNUu4012923 for ; Thu, 14 Feb 2002 15:23:31 -0800 (PST) Message-Id: <5.1.0.14.2.20020214151555.02464940@jittlov.qualcomm.com> X-Sender: wdulyea@jittlov.qualcomm.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 14 Feb 2002 15:23:26 -0800 To: gtk-list@gnome.org From: William Dulyea Subject: memory leaks Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am using a notebook with several pages, each page is backed with n_ widgets, each time I switch between pages I want the container of pages I am switch from and all its children to be destroyed or un referenced if you prefer. Simply destroying the widget parent does not accomplish this as I thought by propagation, oops. In the mean time I watch my application consume more and more memory:( -William From pbd@op.net Fri Feb 15 00:12:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3BA44183C4 for ; Fri, 15 Feb 2002 00:12:26 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-31.fast.net [209.92.60.31]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id AAA06390; Fri, 15 Feb 2002 00:12:21 -0500 (EST) Message-Id: <200202150512.AAA06390@renoir.op.net> To: Keisuke Nishida Cc: gtk-list@gnome.org Subject: Re: problem with grab_focus In-reply-to: Your message of "Thu, 14 Feb 2002 16:28:04 +0900." Date: Fri, 15 Feb 2002 00:07:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I have a problem with using gtk_widget_grab_focus in a >focus_out_event hander, using gtk+-1.2.10. > >The attached program has three GtkEntry's, vertically aligned, >and tries to grab focus on entry1 when I leave entry2. > >If I press key `GDK_Down' in the second entry (i.e., entry2), >the default action of GTK+ moves cursor to entry3, while my >handler moves cursor to entry1. Thus, two cursors appear >simultaneously. > >How could I have only entry1 focused? its a kludge, but you can catch keypress events in entry{1,2,3}, and gtk_signal_emit_stop_by_name() for GDK_{Down,Up,Left,Right} etc. this will block the default (and often silly) GTK focus mechanism from being driven by keystrokes in those widgets. --p From cosminb@saguaro.ro Fri Feb 15 06:03:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from terminus.dnttm.ro (terminus.dnttm.ro [193.226.98.11]) by mail.gnome.org (Postfix) with ESMTP id 1A177180FE for ; Fri, 15 Feb 2002 06:03:07 -0500 (EST) Received: from main.saguaro.ro (main.saguaro.ro [193.226.88.117]) by terminus.dnttm.ro (8.9.3/8.9.3) with ESMTP id NAA30224 for ; Fri, 15 Feb 2002 13:03:05 +0200 Received: from saguaro.ro (samba.spr [192.168.1.100]) by main.saguaro.ro (8.11.2/8.11.2) with ESMTP id g1FAk7H21174 for ; Fri, 15 Feb 2002 12:46:07 +0200 Received: from saguaro.ro (IDENT:cosmin@cosminb.spr [192.168.1.154]) by saguaro.ro (8.11.2/8.11.2) with ESMTP id g1FAwfW17154 for ; Fri, 15 Feb 2002 12:58:41 +0200 X-RAV-AntiVirus: This e-mail has been scanned for viruses on host: saguaro.ro Message-ID: <3C6CEC14.816DE09D@saguaro.ro> Date: Fri, 15 Feb 2002 13:08:04 +0200 From: cosminb X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: destroy-event ??? References: <200202141455.JAA04261@renoir.op.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis wrote: > > >Hi all, > > > >I don't know what signal is emited in the following situation. > > > >Right-click in the upper-right corner on a X window. A menu appears. > >There is a destroy option. Selecting this option will emit a > >"destroy-event" to that window? If yes, I want to catch it(from my gtk > >app., if posible), but I don't know how. > > it will generate a "delete_event" first, which is what actually > corresponds to the window manager's "destroy" operation. > > if that is not handled by a handler that returns TRUE, then the widget > in question will more or less immediately be "destroyed" in the GTK+ > sense, which involves returning it to an uninitialized state. this is > accompanied by a "destroy_event" for the window. > > --p Hi, It works for delete option but not for destroy. Here is my code. Am I doing something wrong? void main() { ... AddWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (AddWindow), "AddWindow", AddWindow); gtk_widget_set_usize (AddWindow, 427, 371); gtk_window_set_modal (GTK_WINDOW (AddWindow), TRUE); gtk_window_set_policy (GTK_WINDOW (AddWindow), FALSE, FALSE, FALSE); /* catch the delete event */ gtk_signal_connect(GTK_OBJECT (AddWindow), "delete_event", GTK_SIGNAL_FUNC (DestroyEventHandler), NULL); ... return; } int DestroyEventHandler(GtkWidget * widget, GdkEvent *event, gpointer data) { return TRUE; } Thanks again > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From yogeeshappa.mathighatta@wipro.com Fri Feb 15 06:09:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 5AFB5180FE for ; Fri, 15 Feb 2002 06:09:16 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g1FB7YX29564 for ; Fri, 15 Feb 2002 16:37:34 +0530 (IST) Received: from m2foe301975 ([10.114.9.182]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GRKMX000.GPP; Fri, 15 Feb 2002 16:37:48 +0530 Message-ID: <06f701c1b610$bfe8c6c0$b609720a@m2foe301975> Reply-To: "Yogeesh MB" From: "Yogeesh MB" To: , Cc: Subject: Required info on Bug#60132 Date: Fri, 15 Feb 2002 16:35:58 +0530 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8 Content-Type: multipart/alternative; boundary="----=_NextPart_000_06F4_01C1B63E.D91C1B50" ------=_NextPart_000_06F4_01C1B63E.D91C1B50 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I would like to know about Bug# 60132, from where it is originating. under which appication this bug lies.=20 This will help me in fixing this at the earliest. If any one knows about this bug in detail please let me know. thanks in advance, Yogeesh MB ------=_NextPart_000_06F4_01C1B63E.D91C1B50 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
I would like to know about Bug#=20 60132,  from where it is=20 originating.
under which appication this bug lies. =
This will help me in fixing = this at the=20 earliest.
If any one knows about this bug in = detail please=20 let me know.
 
thanks in advance,
 
Yogeesh MB
------=_NextPart_000_06F4_01C1B63E.D91C1B50-- ------=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8 Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ******************************************************************** ------=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8-- From inodal@teleline.es Fri Feb 15 07:26:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp4.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id C0EB718153 for ; Fri, 15 Feb 2002 07:26:39 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp4.mail.isp (Netscape Messaging Server 4.15 tsmtp4 Jul 26 2001 13:10:38) with ESMTP id GRKQHM01.D51 for ; Fri, 15 Feb 2002 13:24:58 +0100 Message-ID: <3C6CFE41.9080500@teleline.es> Date: Fri, 15 Feb 2002 12:25:37 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: Update of GtkRadioMenuItems wihtout emitting any signal Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a set of 3D Objects defined in my application, but I only show one of it. Let's call it the CURRENT_GLOBJECT. I can change the CURRENT_GLOBJECT by code or selecting it from a Menu of GtkRadioMenuItems, one GtkRadioMenuItem for each object. When I select a different CURRENT_GLOBJECT I want to update the selected active GtkRadioMenuItem, but without emitting the "activate" signal, so the menuitems callback isn't call. I use a function which returns me the widget I have to activate: GtkWidget *GetMenuItemWidget(GtkWidget* widget,gint num_object) (in my function, "widget" can be any of the GtkRadioMenuItems since they belong all to the same group) How can I activate the widget returned by GtkMenuItemWidget() without emitting the activate signal? may I use something like: gtk_menu_item_activate(GTK_MENU_ITEM(act_widget)); gtk_signal_emit_stop_by_name(GTKOBJECT(act_widget), "activate"); or which is the correct way? Thanks in advance, Ignacio Nodal From coframi.balr001@rd.francetelecom.com Fri Feb 15 07:41:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id D9D2B18153 for ; Fri, 15 Feb 2002 07:41:11 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M410QY0>; Fri, 15 Feb 2002 13:40:56 +0100 Message-ID: From: zze-coframi balr001 To: 'Havoc Pennington' Cc: "'otaylor@redhat.com'" , gtk-list@gnome.org Subject: Memprof Date: Fri, 15 Feb 2002 13:40:45 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-70b42653-215f-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-70b42653-215f-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1B61D.FCFE8510" ------_=_NextPart_001_01C1B61D.FCFE8510 Content-Type: text/plain Hello, Is there a memprof version using GTK 1.3.X ?? Isabelle -----Message d'origine----- De : Havoc Pennington [mailto:hp@redhat.com] Envoye : vendredi 8 fevrier 2002 17:46 A : Kerber, Ulrich Cc : gtk-list@gnome.org Objet : Re: Memory problems while using a clist "Kerber, Ulrich" writes: > I wrote an app with a clist showing the contents of a log file; the > clist is updated every 60 seconds. Although i do a gtk_clist_clear, > the memory used is increasing with every run, even if no element is > added. After a day of work the amount reaches up to 40 MB! > Does anybody know a solution to this problem? > You just need to debug it. Use a tool such as "memprof" to see where the memory is leaked. Havoc _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1B61D.FCFE8510 Content-Type: text/html Content-Transfer-Encoding: quoted-printable Memprof

Hello,

Is there a memprof version using  GTK 1.3.X = ??

Isabelle



-----Message d'origine-----
De : Havoc Pennington [mailto:hp@redhat.com]
Envoye : vendredi 8 fevrier 2002 17:46
A : Kerber, Ulrich
Cc : gtk-list@gnome.org
Objet : Re: Memory problems while using a = clist



"Kerber, Ulrich" = <Ulrich.Kerber@faidor.de> writes:
> I wrote an app with a clist showing the = contents of a log file; the
> clist is updated every 60 seconds. Although i = do a gtk_clist_clear,
> the memory used is increasing with every run, = even if no element is
> added. After a day of work the amount reaches = up to 40 MB!
> Does anybody know a solution to this = problem?
>

You just need to debug it. Use a tool such as = "memprof" to see where
the memory is leaked.

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

------_=_NextPart_001_01C1B61D.FCFE8510-- ------=_NextPartTM-000-70b42653-215f-11d6-b1e5-00508b69ab48-- From leidola@newcon.de Fri Feb 15 09:04:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 2BE1D184BB for ; Fri, 15 Feb 2002 09:04:53 -0500 (EST) Received: from [213.70.108.88] ([213.70.108.88]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id PAA17776; Fri, 15 Feb 2002 15:04:50 +0100 Subject: Re: gui builder From: Olaf Leidinger To: "Lin, Lynn" , GTK Mailing List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 15 Feb 2002 15:07:39 +0100 Message-Id: <1013782060.784.3.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 14 Feb 2002 15:25:12 -0800 schrieb Lin, Lynn: > Hi there, > > Does GTK+ has a GUI builder ? If yes, what is the name of it ? > > Thank you :) > > Lynn > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hi Lynn, Glade might be what you're looking for. You can get it from http://glade.gnome.org Ciao, Olaf From otaylor@redhat.com Fri Feb 15 09:14:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 3BDBC1837D for ; Fri, 15 Feb 2002 09:14:30 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 7A87A241BE2; Fri, 15 Feb 2002 09:14:16 -0500 (EST) To: zze-coframi balr001 Cc: "'Havoc Pennington'" , gtk-list@gnome.org Subject: Re: Memprof References: From: Owen Taylor In-Reply-To: zze-coframi balr001's message of "Fri, 15 Feb 2002 13:40:45 +0100" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 12 Message-Id: <20020215141416.7A87A241BE2@fresnel.labs.redhat.com> Date: Fri, 15 Feb 2002 09:14:16 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: zze-coframi balr001 writes: > Hello, > > Is there a memprof version using GTK 1.3.X ?? The version in GNOME CVS (http://cvs.gnome.org/tools/cvs.html) is ported to GTK+-1.3.x. There hasn't been a release yet. Regards, Owen From ramses@computer.org Fri Feb 15 11:31:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id ADC4F1834E; Fri, 15 Feb 2002 11:31:09 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020215163130.VJBD480.sv16@adsl50>; Fri, 15 Feb 2002 11:31:30 -0500 Subject: strange pop up menu behaviour from a clist From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-list@gnome.org, gtk-app-devel-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 15 Feb 2002 11:38:56 -0500 Message-Id: <1013791136.1176.12.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi. I set up the third mouse button as GTK_BUTTON_SELECTS on a clist. I connect "select_row" to a callback that displays a pop up menu when the third mouse button is pressed: void select_row_callback(GtkWidget *widget, gint row, gint column, GdkEventButton *bevent, gpointer menu) { if ( bevent->button == 3 ) { gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, bevent->time); } } if I click the third mouse button on that menu, it works immediately, but if I press the first mouse button, I have to do it twice to activate a menu option. I have to do this to make it work as expected, but it contradicts the purpose of the button parameter on gtk_menu_popup: void select_row_callback(GtkWidget *widget, gint row, gint column, GdkEventButton *bevent, gpointer menu) { if ( bevent->button == 3 ) { gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, bevent->time); } } Is this a bug, a feature, or am I misunderstanding something???? Thanks for your help. From pbd@op.net Fri Feb 15 12:35:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9E6BC18C8E; Fri, 15 Feb 2002 12:35:11 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-188.phlpa.fast.net [209.92.99.188]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA28338; Fri, 15 Feb 2002 12:35:09 -0500 (EST) Message-Id: <200202151735.MAA28338@renoir.op.net> To: Rams s Morales Cc: gtk-list@gnome.org, gtk-app-devel-list@gnome.org Subject: Re: strange pop up menu behaviour from a clist In-reply-to: Your message of "15 Feb 2002 11:38:56 EST." <1013791136.1176.12.camel@adsl50> Date: Fri, 15 Feb 2002 12:30:53 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, > 0, bevent->time); pass in the correct button ID of the button you want to drive the menu. 1 should do it. --p From markrubn@pacbell.net Fri Feb 15 12:58:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id 85A95181A0 for ; Fri, 15 Feb 2002 12:58:28 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRL004555XFM6@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Fri, 15 Feb 2002 09:58:27 -0800 (PST) Date: Fri, 15 Feb 2002 09:57:49 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Ignacio Nodal Cc: GTK-List Message-id: <3C6D4C1D.27A3FAF6@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <3C6CFE41.9080500@teleline.es> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > When I select a different CURRENT_GLOBJECT I want to update the selected > active GtkRadioMenuItem, but without emitting the "activate" signal, so > the menuitems callback isn't call. and: > How can I activate the widget returned by GtkMenuItemWidget() without > emitting the activate signal? > > may I use something like: > > gtk_menu_item_activate(GTK_MENU_ITEM(act_widget)); > gtk_signal_emit_stop_by_name(GTKOBJECT(act_widget), "activate"); o I have had the same question for over a year now. I've tried searching the list archives, but never found the right keyword to use. o The problem isn't limited to menus. It happens any time you use the same widget for both input (the user is supplying information to the program) and output (the program is displaying information to the user). o In the "input" case, I obviously want the signal to be emitted. For "output", I don't because the program already knows it's changing the widget's value. o At minimum, the unwanted signal causes unnecessary/redundant computation to take place. At worst, it can cause an infinite loop. Last year I wrote, but never posted, a simple example program to illustrate this. It's my own "hello world" test program for GUI toolkits: A fahrenheit-to-celcius temperature converter. It has two spinputtons, one for F and one for C. The user changes either one, and the other displays the correct matching temperature. For example, when the user inputs a C temperature, a signal is emitted, the program calculates F and displays it in the other spinbutton ... which then emits a signal causing a conversion back to F, and an update of the F spinputton. (In this case, because the conversion is invertible, the F value is the same as what the user inputted, so the F spinbutton doesn't emit a signal. No infinite loop, just redundant calculation.) o My workaround -- for real-world programs, not toy F-to-C converters -- is to set a flag when changing a widget. Then, in the signal handler: if (flag) { flag = FALSE ; return ; } else // really handle the signal o In C and Gtk this gets ugly very fast (global variables). I use C++ and Gtk--, so I wrap (for example) Gtk::Adjustment in my own class which handles the flag internally. It's still pretty ugly. o Someone (Havoc??) must know the right solution to this problem. -- MARK markrubn@pacbell.net From hp@redhat.com Fri Feb 15 14:24:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 8838818153 for ; Fri, 15 Feb 2002 14:24:27 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1FJOKp17164; Fri, 15 Feb 2002 14:24:20 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Mark R. Rubin" Cc: Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal References: <3C6CFE41.9080500@teleline.es> <3C6D4C1D.27A3FAF6@pacbell.net> From: Havoc Pennington Date: 15 Feb 2002 14:24:20 -0500 In-Reply-To: <3C6D4C1D.27A3FAF6@pacbell.net> Message-ID: Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Mark R. Rubin" writes: > o Someone (Havoc??) must know the right solution to this problem. > It depends on the situation. Some approaches are: - gtk_signal_handler_block (g_signal_handlers_block, and by_func variants) - don't do anything in the callback if the value hasn't changed: if (current_state == gtk_toggle_button_get_active (toggle)) return; - fill in the default state of controls before you connect the callbacks to them You can also use a global flag or a flag specific to a class/object, but I don't like that approach much personally. Most signals indicate that the state of an object has changed, not that it has changed due to some specific cause (e.g. user input). This is the right thing IMO for reasons of conceptual cleanliness; there would be lots of subtle tricky bugs otherwise. In any case it's too late to change this aspect of GTK. Havoc From vmail@excite.com Fri Feb 15 15:57:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.8]) by mail.gnome.org (Postfix) with ESMTP id 34AE7180E4 for ; Fri, 15 Feb 2002 15:57:40 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id 8412E109EB9; Fri, 15 Feb 2002 15:57:35 -0500 (EST) To: gtk-list@gnome.org Subject: memory leaks (continued) Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: wdulyea@qualcomm.com Message-Id: <20020215205735.8412E109EB9@xprdmailfe.excite.com> Date: Fri, 15 Feb 2002 15:57:35 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: An expansion to an earlier mail I sent... In this code snippet below I can observ that removing(destroying) container widgets does not have the desired effect. Please comment:>

Code snippet...........................................
cur_page = gtk_notebook_get_current_page( notebook );
fprintf( stderr, "on_notebook_switch_page,
switching from:%i to:%i\n", cur_page, page_n );

child = gtk_container_children(
GTK_CONTAINER(notebookpage[cur_page].widget));
while( child ) {
GtkWidget *widget;

widget = GTK_WIDGET(child->data);
gtk_container_remove(
GTK_CONTAINER(notebookpages[cur_page].widget),widget );

fprintf( stderr, "on_notebook_switch_page,
destroy widget:%p", widget);
gtk_widget_destroy( widget );

if( widget )
fprintf( stderr, " widget still referenced:%p\n", widget);
else
fprintf( stderr, "\n" );

child = child->next;
}
create_page_item( notebook, page_n );


example page item created..................................
case HDWR_CONF:
page_item = create_hardware_config();
gtk_container_add(GTK_CONTAINER(notebookpages[page_n].widget),
page_item);


To further enlighten, the widget returded by this routine as with all others does have reference count of at least 1 and sig connect is set for destroy_event on the top-level widget or this one returned.


From seberino@dt092n42.san.rr.com Fri Feb 15 16:10:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 9D758180E4 for ; Fri, 15 Feb 2002 16:10:05 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16bpdA-0003TA-00 for gtk-list@gnome.org; Fri, 15 Feb 2002 13:10:56 -0800 Date: Fri, 15 Feb 2002 13:10:55 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: What means "callback function" and "signal handler" - are they DIFFERENT? Message-ID: <20020215131055.A13335@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I know that signals are tied to functions. These are called "signal handlers" I believe. Is this also called a "callback function" or does that mean something else? Callback seems like a strange name since nothing is being called back to anywhere. chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From Valdis.Kletnieks@vt.edu Fri Feb 15 16:16:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 63CD6180E4 for ; Fri, 15 Feb 2002 16:16:17 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1FLGEVj024456; Fri, 15 Feb 2002 16:16:15 -0500 Message-Id: <200202152116.g1FLGEVj024456@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What means "callback function" and "signal handler" - are they DIFFERENT? In-Reply-To: Your message of "Fri, 15 Feb 2002 13:10:55 PST." <20020215131055.A13335@spawar.navy.mil> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-1993187116P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 15 Feb 2002 16:16:14 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-1993187116P Content-Type: text/plain; charset=us-ascii On Fri, 15 Feb 2002 13:10:55 PST, Chris Seberino said: > Callback seems like a strange name since > nothing is being called back to anywhere. It makes more sense if you think of it like this: 1) Registering your callback is like calling your boss on the phone and saying "Give me a call back if the package from Smith Inc shows up". 2) When the package shows up, you get a call back..... -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_-1993187116P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8bXqecC3lWbTT17ARAmkQAJwMfYsm4oLCo6gyWoxdCLbh6ohLvQCbB6/Z Goxw1r4BLUS1aQx3lVa7pyA= =W6HR -----END PGP SIGNATURE----- --==_Exmh_-1993187116P-- From seberino@dt092n42.san.rr.com Fri Feb 15 16:16:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 040DF180E4 for ; Fri, 15 Feb 2002 16:16:48 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16bpjd-0003UA-00 for gtk-list@gnome.org; Fri, 15 Feb 2002 13:17:37 -0800 Date: Fri, 15 Feb 2002 13:17:32 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing Message-ID: <20020215131731.B13335@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: pthread_t thread; pthread_create(&thread, NULL, (void*) &doSimulation, NULL); Help! I trying to assign a function to a thread in my amateur PThread calls above. Without (void*) before function name I get an error and WITH (void*) I get following warning: warning: ANSI C++ forbids implicit conversion from `void *' in argument passing This would all be harmless except I believe newer GTK+ or something in my Linux distro upgrade causes BOTH (with and without (void*)) to return an error!!! NEITHER WORKS!! Is there someway to fix this to avoid errors and warnings?? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Fri Feb 15 16:27:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9525A1876C for ; Fri, 15 Feb 2002 16:27:24 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-228.fast.net [209.92.60.228]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA23968; Fri, 15 Feb 2002 16:27:18 -0500 (EST) Message-Id: <200202152127.QAA23968@renoir.op.net> To: wdulyea1@excite.com Cc: gtk-list@gnome.org, wdulyea@qualcomm.com Subject: Re: memory leaks (continued) In-reply-to: Your message of "Fri, 15 Feb 2002 15:57:35 EST." <20020215205735.8412E109EB9@xprdmailfe.excite.com> Date: Fri, 15 Feb 2002 16:23:05 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: generic note------- just a quick note to point out that whether you know it or not, the email program you are using is sending out copies of your mail in both plain text and HTML formats. increasingly on the net, there are filters being put in place that silently dump HTML-formatted email. some mailing lists will not ever accept such posts. as long as you do this, you are (1) wasting network bandwidth by sending messages that are typically more than twice as long as they could be (2) making it harder for people using traditional email readers to read them (3) risking the chance that people will never see your mail because its filtered before reaching their email inbox. specific note-------- i cannot even bear to look at your email. if it was plain text, i would have tried to read the code and come up with an answer. --p From pbd@op.net Fri Feb 15 16:30:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BC86E1890D for ; Fri, 15 Feb 2002 16:30:15 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-228.fast.net [209.92.60.228]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA24306; Fri, 15 Feb 2002 16:30:11 -0500 (EST) Message-Id: <200202152130.QAA24306@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing In-reply-to: Your message of "Fri, 15 Feb 2002 13:17:32 PST." <20020215131731.B13335@spawar.navy.mil> Date: Fri, 15 Feb 2002 16:25:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > > pthread_t thread; > > pthread_create(&thread, NULL, (void*) &doSimulation, NULL); the correct declaration for a thread function is: void *the_function_name (void *); if your function is not declared like that, you will need to cast it: pthread_create (&thread, NULL, (void *()(void*)) the_function, NULL); but its generally a bad idea to be calling functions which have the wrong prototype. in ANSI C and C++, you do NOT need to dereference the name of a function object to use it as a pointer: pthread_create(&thread, NULL, doSimulation, NULL); --p From pbd@op.net Fri Feb 15 16:34:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 73F5818A10 for ; Fri, 15 Feb 2002 16:34:36 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-228.fast.net [209.92.60.228]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA24778; Fri, 15 Feb 2002 16:34:33 -0500 (EST) Message-Id: <200202152134.QAA24778@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What means "callback function" and "signal handler" - are they DIFFERENT? In-reply-to: Your message of "Fri, 15 Feb 2002 13:10:55 PST." <20020215131055.A13335@spawar.navy.mil> Date: Fri, 15 Feb 2002 16:30:20 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I know that signals are tied to functions. >These are called "signal handlers" I believe. > >Is this also called a "callback function" or >does that mean something else? > >Callback seems like a strange name since >nothing is being called back to anywhere. "callback" is a somewhat older term that comes from the idea of registering a function (by passing the address of the function) with some object/system; later, when certain conditions arise, the object/system will "call you back" by calling the function you registered, passing (variously) its own arguments and/or any that you supplied when registering it. GTK+ signal handlers are just one example of a callback system; because the GTK+ design adds some additional semantics to the simplest model of a callback system, and for other reasons, they decided to call it something else. BTW, if you're working in C++, I don't know why you're not using gtkmm instead of straight GTK+. its a thin wrapper that provides a much more C++-style idiom for programming in, plus it comes with one of the most awesome and useful callback systems ever written (libsigc++) that uses the power of C++'s template programming to make things possible that have always been (and continue to be) an annoyance in C. --p From sven@gimp.org Fri Feb 15 16:45:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E6B03D.dip.t-dialin.net [217.230.176.61]) by mail.gnome.org (Postfix) with ESMTP id 9B44518CCD for ; Fri, 15 Feb 2002 16:45:45 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16bqAX-00060E-00; Fri, 15 Feb 2002 22:45:25 +0100 To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing References: <20020215131731.B13335@spawar.navy.mil> From: Sven Neumann Date: 15 Feb 2002 22:45:24 +0100 In-Reply-To: <20020215131731.B13335@spawar.navy.mil> Message-ID: Lines: 32 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Chris Seberino writes: > pthread_t thread; > > pthread_create(&thread, NULL, (void*) &doSimulation, NULL); > > Help! I trying to assign a function to a thread in my amateur > PThread calls above. Without (void*) before function name I get > an error and WITH (void*) I get following warning: > > warning: ANSI C++ forbids implicit conversion from `void *' in argument passing > > This would all be harmless except I believe newer GTK+ > or something in my Linux distro upgrade causes BOTH > (with and without (void*)) to return an error!!! > > NEITHER WORKS!! > > Is there someway to fix this to avoid errors and warnings?? yes, make doSimulation a void * function that takes a void * parameter: static void * doSimulation (void *data); or the equivalent glib-style static gpointer doSimulation (gpointer data); Salut, Sven From markrubn@pacbell.net Fri Feb 15 18:31:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by mail.gnome.org (Postfix) with ESMTP id 980EF18C58 for ; Fri, 15 Feb 2002 18:31:17 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRL00MUDLC3C4@mta7.pltn13.pbi.net> for gtk-list@gnome.org; Fri, 15 Feb 2002 15:31:16 -0800 (PST) Date: Fri, 15 Feb 2002 15:30:35 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Havoc Pennington Cc: Ignacio Nodal , GTK-List Message-id: <3C6D9A1B.3DEACEF9@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <3C6CFE41.9080500@teleline.es> <3C6D4C1D.27A3FAF6@pacbell.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington writes: > It depends on the situation. Some approaches are: > > - gtk_signal_handler_block (g_signal_handlers_block, and by_func variants) > - don't do anything in the callback if the value hasn't changed: > if (current_state == gtk_toggle_button_get_active (toggle)) > return; > - fill in the default state of controls before you connect the > callbacks to them > > You can also use a global flag or a flag specific to a class/object, > but I don't like that approach much personally. o I don't like it much, either. (That's why I wrote "it's [still] pretty ugly".) o Thanks for weighing in on this. I didn't know about gtk_signal_handler_block(), etc., and will look into them. Unfortunately, a quick check seems to say they're not exposed in GTK-- (gtkmm), which is what I mostly use. o I need to test the performance of various solutions. Amongst: 1) Set a flag, change the widget, let the signal happen, test the flag. 2) Check current state in callback, do nothing if unchanged. (Requires maintaining a separate copy of the widget state -- isn't the XXX_get_YYY() or the adjustment value already changed by the time you're in the callback?) 3) gtk_signal_handler_block(), change the widget, gtk_signal_handler_unblock() 4) disconnect the signal, change the widget, re-connect the signal my guess is that #1 or #2 are still the most efficient. I do have cases where performance is important. Example: CAD program where user can set the current object's position by inputting x,y in spinbuttons, but can also drag the object around in its drawing area while the spinbuttons display x,y. > Most signals indicate that the state of an object has changed, not > that it has changed due to some specific cause (e.g. user input). > This is the right thing IMO for reasons of conceptual cleanliness; > there would be lots of subtle tricky bugs otherwise. In any case it's > too late to change this aspect of GTK. o I agree on conceptual cleanliness and that it's "too late" (would break huge number of programs). I do wonder what it would take to add a widget specific (and/or global-affect-all-widgets) command to optionally change the behavior to "emit signal only on user input". Default stays the way it is now; no programs break. Someday I'll look through the source and see. o I also have trouble believing that Ignacio Nodal and myself are the only ones who've ever been bitten by this. Screen real estate is always precious, and re-using a widget for input and output always helps (and is easier on the user than "click this togglebutton to change from "input values" to "display values" mode). -- MARK markrubn@pacbell.net From pbd@op.net Fri Feb 15 19:52:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 4BE0B1823C for ; Fri, 15 Feb 2002 19:52:53 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-219.fast.net [209.92.60.219]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id TAA13523; Fri, 15 Feb 2002 19:52:13 -0500 (EST) Message-Id: <200202160052.TAA13523@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Fri, 15 Feb 2002 15:30:35 PST." <3C6D9A1B.3DEACEF9@pacbell.net> Date: Fri, 15 Feb 2002 19:48:02 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >o I also have trouble believing that Ignacio Nodal and myself are the > only ones who've ever been bitten by this. Screen real estate is > always precious, and re-using a widget for input and output always > helps (and is easier on the user than "click this togglebutton to > change from "input values" to "display values" mode). you're not the only ones; i've discussed this issue several times on this list in the past. however, if you're really doing Model-View-Controller style programming, which is highly desirable and it sounds as if you are, then Havoc's suggestion of: handle_widget_state_change () { if (widget->representation_of_object_state() != object->state()) widget->set_state (object->state()); } is the *only* correct route to take here. in my C++ code, i tend to use a void * (aka gpointer) as an extra arg to all functions that change the state of my objects ("models"), an arg i call "src". when the objects emit signals as a result of the change, they include the "src" argument. as a result, widgets ("views" and/or "controllers") can do things like: handle_widget_state_change (void *src) { if (src == this) { /* ignore */ return; } .... } this lets a widget set the state of its underlying object (when acting as a controller), supplying "itself" as the src pointer, and thus ignore any notifications from the object when they are sent following the object's state change. however ... despite the fact that i found this to be a rather elegant solution, i think that there are hardly any places in my code where i make this check, and that number is going down all the time. the explicit comparison of widget state and object state now dominates my code, and it generally feels "right". your suggestion for "emit only on user input" will break proper MVC programming as soon as there are non-X-based methods of changing object or widget state. most of my programs accept MIDI input, for example, that can be used to change object states, and i expect my widgets to follow those changes. unless you provide a way to say "change this GtkAdjustment as if i were a user" and "change this GtkAdjustment as if i were not a user", which is deeply cumbersome, somewhere down the line, there has to be a call to "change this GtkAdjustment", and that *must* emit a signal that can be caught. anything less will, as Havoc intimated, and as i now emphasize, break a good MVC design in many subtle and not so subtle ways. --p From hunchback@netcabo.pt Fri Feb 15 20:30:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id CB05A18106 for ; Fri, 15 Feb 2002 20:30:16 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 01:27:02 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 01:26:52 +0000 Content-Class: urn:content-classes:message From: To: Subject: Signal when window is shown Date: Sat, 16 Feb 2002 01:26:51 -0000 Message-ID: <0c2b01c1b689$02f37910$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2iQLx3to8GCJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 01:27:02.0667 (UTC) FILETIME=[0958BDB0:01C1B689] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, does anyone know what signal is triggered when a window appears? Afonso From pbd@op.net Fri Feb 15 20:43:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 7C2BE1815F for ; Fri, 15 Feb 2002 20:43:07 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-219.fast.net [209.92.60.219]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA17501; Fri, 15 Feb 2002 20:43:04 -0500 (EST) Message-Id: <200202160143.UAA17501@renoir.op.net> To: hunchback@netcabo.pt Cc: gtk-list@gnome.org Subject: Re: Signal when window is shown In-reply-to: Your message of "Sat, 16 Feb 2002 01:26:51 GMT." <0c2b01c1b689$02f37910$0814a8c0@netcabo.net> Date: Fri, 15 Feb 2002 20:38:53 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >does anyone know what signal is triggered when a window appears? realize show map the first one is only emitted when the window is first shown; the second is emitted for any call to gtk_widget_show() on the window; the third is called any time the window has been unmapped (e.g. minimized or the WM switched workspaces) and its now displayed again. --p From iain@ximian.com Fri Feb 15 20:52:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from peabody.ximian.com (peabody.ximian.com [141.154.95.10]) by mail.gnome.org (Postfix) with ESMTP id C7B5D1823B for ; Fri, 15 Feb 2002 20:52:24 -0500 (EST) Received: (qmail 7143 invoked from network); 16 Feb 2002 01:52:24 -0000 Received: from peabody.ximian.com (HELO localhost.localdomain) (141.154.95.10) by peabody.ximian.com with SMTP; 16 Feb 2002 01:52:24 -0000 Subject: Re: memory leaks (continued) From: iain To: wdulyea1@excite.com Cc: gtk-list@gnome.org, wdulyea@qualcomm.com In-Reply-To: <20020215205735.8412E109EB9@xprdmailfe.excite.com> References: <20020215205735.8412E109EB9@xprdmailfe.excite.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Ximian, Inc X-Mailer: Evolution/1.1.0.99 (Preview Release) Date: 16 Feb 2002 02:53:25 +0000 Message-Id: <1013828006.2185.0.camel@discomachinegun.prettypeople.org> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Fri, 2002-02-15 at 20:57, wdulyea1@excite.com wrote: An expansion to an earlier mail I sent... In this code snippet below I can observ that removing(destroying) container widgets does not have the desired effect. Please comment:> What specific reason do you need to delete the widgets on a page when the page is changed? iain -- "All men of conscience or prudence ply to windward, to maintain their wars to be defensive." -- Roger Williams From hunchback@netcabo.pt Fri Feb 15 21:00:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id D6CDA1879F for ; Fri, 15 Feb 2002 21:00:30 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 01:57:12 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 01:57:01 +0000 Content-Class: urn:content-classes:message From: To: "Paul Davis" Cc: Subject: RE: Signal when window is shown Date: Sat, 16 Feb 2002 01:57:01 -0000 Message-ID: <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2jTmq3to+YCJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 01:57:12.0550 (UTC) FILETIME=[401EF860:01C1B68D] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >realize i tried it but it never happens! >show i tried it but nothing happened again... >map i tried the map_event and it worked, but not on the first time.. i have a drawing area and i want to draw somethings on it when the = window appears, but nothing is working! the only one that entered the = signal handler was the map_event, but the first time it entered the = signal handler it didn't paint, only on the second time. From pbd@op.net Fri Feb 15 21:03:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 4023C18D24 for ; Fri, 15 Feb 2002 21:03:58 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-219.fast.net [209.92.60.219]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id VAA19158; Fri, 15 Feb 2002 21:03:55 -0500 (EST) Message-Id: <200202160203.VAA19158@renoir.op.net> To: hunchback@netcabo.pt Cc: gtk-list@gnome.org Subject: Re: Signal when window is shown In-reply-to: Your message of "Sat, 16 Feb 2002 01:57:01 GMT." <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> Date: Fri, 15 Feb 2002 20:59:44 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>realize > >i tried it but it never happens! > >>show > >i tried it but nothing happened again... > >>map > >i tried the map_event and it worked, but not on the first time.. > >i have a drawing area and i want to draw somethings on it when the window appe >ars, but nothing is working! the only one that entered the signal handler was >the map_event, but the first time it entered the signal handler it didn't pain >t, only on the second time. you must be making a mistake at a different level. realize is always emitted for every widget with a GdkWindow (e.g. a GtkWindow) - nothing can be drawn unless the widget is realized, and being realized emits that signal. are you sure you connected to the correct signals at the correct time? --p From rsteinke@w-link.net Fri Feb 15 21:09:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id F064E18759 for ; Fri, 15 Feb 2002 21:09:19 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16buHu-0008PS-00; Fri, 15 Feb 2002 18:09:18 -0800 Date: Fri, 15 Feb 2002 18:09:18 -0800 From: rsteinke@w-link.net To: hunchback@netcabo.pt, pbd@Op.Net Subject: Re: Signal when window is shown Cc: gtk-list@gnome.org Message-ID: <3C6DBF4E.nailOUA11K7IM@w-link.net> References: <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> In-Reply-To: <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: > > >realize > > i tried it but it never happens! > > >show > > i tried it but nothing happened again... > > >map > > i tried the map_event and it worked, but not on the first time.. > > i have a drawing area and i want to draw somethings on it when the > window appears, but nothing is working! the only one that entered > the signal handler was the map_event, but the first time it > entered the signal handler it didn't paint, only on the second time. You need to do your drawing in the expose handler. All drawing comes after the window has been mapped to the screen. Ron Steinke From hunchback@netcabo.pt Fri Feb 15 21:19:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 0657118D2C for ; Fri, 15 Feb 2002 21:19:03 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 02:15:49 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 02:15:38 +0000 Content-Class: urn:content-classes:message From: To: Cc: Subject: RE: Signal when window is shown Date: Sat, 16 Feb 2002 02:15:38 -0000 Message-ID: <0f9201c1b68f$d35fbd10$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2j9Nd3to/niJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 02:15:49.0599 (UTC) FILETIME=[D9EF1EF0:01C1B68F] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >You need to do your drawing in the expose handler. All drawing comes = after >the window has been mapped to the screen. when i tried the expose_event the program occurs segmentation fault when = it tries to paint... From hunchback@netcabo.pt Fri Feb 15 21:24:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id CAF2418D4A for ; Fri, 15 Feb 2002 21:24:02 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 02:20:49 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 02:20:38 +0000 Content-Class: urn:content-classes:message From: To: Cc: Subject: RE: Signal when window is shown Date: Sat, 16 Feb 2002 02:20:38 -0000 Message-ID: <0fd601c1b690$86112160$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2kIYR3to/1yJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 02:20:49.0267 (UTC) FILETIME=[8C8CD430:01C1B690] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >You need to do your drawing in the expose handler. All drawing comes = after >the window has been mapped to the screen. >when i tried the expose_event the program occurs segmentation fault = when it tries >to paint... ups.. sorry, my mistake, it doesn't crash anymore, but it stell doesn't = paint... the window is all grey like if it was a new window with nothing = in... Afonso From rsteinke@w-link.net Fri Feb 15 21:27:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id A98BE18D87 for ; Fri, 15 Feb 2002 21:27:38 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16buZd-0008TS-00; Fri, 15 Feb 2002 18:27:37 -0800 Date: Fri, 15 Feb 2002 18:27:37 -0800 From: rsteinke@w-link.net To: hunchback@netcabo.pt Subject: Re: Signal when window is shown Cc: gtk-list@gnome.org Message-ID: <3C6DC399.nailP4K1548Z3@w-link.net> References: <0f9201c1b68f$d35fbd10$0814a8c0@netcabo.net> In-Reply-To: <0f9201c1b68f$d35fbd10$0814a8c0@netcabo.net> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: hunchback@netcabo.pt > > >You need to do your drawing in the expose handler. All drawing comes after > >the window has been mapped to the screen. > > when i tried the expose_event the program occurs segmentation fault > when it tries to paint... That's probably an error with your code. Try commenting out everything except for the "return" statement at the end of the function, and it shouldn't seg fault. (Of course, it won't draw either). Then go back and add your code a piece at a time until you find the error. Ron Steinke P.S. Please try to stick line breaks in your messages every 60-70 characters. From scherfa@web.de Sat Feb 16 04:44:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id F367F18137 for ; Sat, 16 Feb 2002 04:44:40 -0500 (EST) Received: from [143.93.58.13] (helo=rmpc11.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.25 #15) id 16c1OL-0001Ti-00 for gtk-list@gnome.org; Sat, 16 Feb 2002 10:44:26 +0100 Subject: GIOChannel + GtkTreeModel length From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 16 Feb 2002 10:43:33 +0100 Message-Id: <1013852614.1080.4.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, i want to transfer some printing datas via a giochannel to the lpr system command. Today i'm doing that via pipes and closed stdout ... How could i do that via the giochannel support ? Any hints ? 2. Is there a method for getting the number of lines from a GtkTreeModel like the clist->rows element in gtk1.2 ?? Thats because i want to get the number of lines before catching all row datas via gtk_tree_model_iter_next(GTK_TREE_MODEL(p_obj->main_list),&iter) So how could i get the number of rows before ?? Thanks Andreas -- Andreas Scherf ICQ: 52910964 scherfa@web.de From leidola@newcon.de Sat Feb 16 05:36:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 7354A1819E for ; Sat, 16 Feb 2002 05:36:35 -0500 (EST) Received: from [213.70.108.66] ([213.70.108.66]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id LAA09228 for ; Sat, 16 Feb 2002 11:36:36 +0100 Subject: Re: GIOChannel + GtkTreeModel length From: Olaf Leidinger To: GTK Mailing List Content-Type: multipart/mixed; boundary="=-s+xrUELm2124OVdCIE+9" X-Mailer: Evolution/0.12 (Preview Release) Date: 16 Feb 2002 11:39:26 +0100 Message-Id: <1013855967.880.50.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-s+xrUELm2124OVdCIE+9 Content-Type: text/plain Content-Transfer-Encoding: 7bit --=-s+xrUELm2124OVdCIE+9 Content-Disposition: inline Content-Description: Weitergeleitete Nachricht - Re: GIOChannel + GtkTreeModel length Content-Type: message/rfc822 Subject: Re: GIOChannel + GtkTreeModel length From: Olaf Leidinger To: Andreas Scherf In-Reply-To: <1013852614.1080.4.camel@xerxes> References: <1013852614.1080.4.camel@xerxes> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 16 Feb 2002 11:37:41 +0100 Message-Id: <1013855861.880.48.camel@attic> Mime-Version: 1.0 X-Evolution-Account: leidola@newcon.de X-Evolution-Source: X-Evolution: 00000063-0010 Am 16 Feb 2002 10:43:33 +0100 schrieb Andreas Scherf: > Hello, > i want to transfer some printing datas via a giochannel to the lpr > system command. Today i'm doing that via pipes and closed stdout ... > How could i do that via the giochannel support ? Any hints ? > 2. Is there a method for getting the number of lines from a GtkTreeModel > like the clist->rows element in gtk1.2 ?? Thats because i want to get > the number of lines before catching all row datas via > gtk_tree_model_iter_next(GTK_TREE_MODEL(p_obj->main_list),&iter) > So how could i get the number of rows before ?? > > Thanks > Andreas > -- > Andreas Scherf > ICQ: 52910964 > scherfa@web.de > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > 1. GIOChannel You can run lpr using something like this bRunning = g_spawn_async_with_pipes (NULL, /* workingdir*/ gargv, /* arguments*/ NULL, /* enviroment*/ G_SPAWN_SEARCH_PATH | /* options */ G_SPAWN_LEAVE_DESCRIPTORS_OPEN, NULL, /* creationfunc*/ NULL, /* daten */ &pid, /* pid */ &in_desc, /* stdin*/ &out_desc, /* stdo*/ &err_desc, /* stderr*/ NULL); /* error*/ Your gargv sould be something like gchar *gargv[2] = {"lpr", NULL}; or similar. You can also use the g_spawn_sync_with_pipes function. It depends on what you need. Now you can create the io_channels. if (in_desc) { io_in = g_io_channel_unix_new (in_desc); event_id1 = g_io_add_watch (io_in, G_IO_OUT, write_func, data); event_id2 = g_io_add_watch (io_in, G_IO_HUP, hup_func, data); } These watches are callbacks for the io_channels. You don't have to createe them. Again, it depends on what you need. But keep one thing in mind. When you use g_io_add_watch you have to remove this watch from the main event loop (or however it is called) again using the g_source_remove function. Otherwise there will be some problems when you close the channel again. That's why you have to store the event_ids somewhere. You might create a structure or an array where you save them and pass it to the hup_func as data. Oh yes, some variables you might need gboolean brunning = FALSE; GIOChannel *io_in = NULL; gint pid = 0, in_desc = 0, out_desc = 0, /*don't know whether you need them*/ err_desc = 0; /*don't know whether you need them*/ 2. Tree Don't know, sorry *g* Ciao Olaf --=-s+xrUELm2124OVdCIE+9-- From inodal@teleline.es Sat Feb 16 06:09:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp3.ldap.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 4F25718324 for ; Sat, 16 Feb 2002 06:09:25 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp3.ldap.isp (Netscape Messaging Server 4.15 tsmtp3 Jul 26 2001 13:10:38) with ESMTP id GRMHMT02.547 for ; Sat, 16 Feb 2002 12:08:53 +0100 Message-ID: <3C6E3DE7.8090404@teleline.es> Date: Sat, 16 Feb 2002 11:09:27 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: Dialog Window Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sometime ago someone told how to make a "dialog window" to get the control of the application.. I mean the dialog window being the only one to have the focus until it's closed/hided... I just can't find that mail anymore.. could anyone remind me how to do this? :) Thanks, Ignacio From npravin@servihoo.com Sat Feb 16 08:29:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servihoo.com (mail.servihoo.com [202.123.2.125]) by mail.gnome.org (Postfix) with ESMTP id 3AE0018173 for ; Sat, 16 Feb 2002 08:29:34 -0500 (EST) Received: from [202.123.10.104] (account ) by servihoo.com (CommuniGate Pro WebUser 3.3) with HTTP id 2806414 for ; Sat, 16 Feb 2002 17:26:56 +0400 From: "Pravin Nowbuth" Subject: compiling rpc and gtk To: X-Mailer: CommuniGate Pro Web Mailer v.3.3 Date: Sat, 16 Feb 2002 17:26:56 +0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi guys, Could anyone tell me how to compile a gtk C program making use of RPC. In fact, I'm using RPC in a client-server based application. I've an interface file named "file.x", and obtained the follwing files file_client.c file_server.c and so on. The client makes RPC calls to the server I'm thinking of providing a GUI to the client. therfore, i have added gtk codes to the client file. But the problem is how to compile the client file. Will it work? can I provide a GUI using gtk at all !! -------------------------------------------------- Get your free email address from Servihoo.com! http://www.servihoo.com The Portal of Mauritius From pbd@op.net Sat Feb 16 09:16:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BA6E1181C5 for ; Sat, 16 Feb 2002 09:16:22 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-149.phlpa.fast.net [209.92.99.149]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA03714; Sat, 16 Feb 2002 09:16:20 -0500 (EST) Message-Id: <200202161416.JAA03714@renoir.op.net> To: Ignacio Nodal Cc: GTK-List Subject: Re: Dialog Window In-reply-to: Your message of "Sat, 16 Feb 2002 11:09:27 GMT." <3C6E3DE7.8090404@teleline.es> Date: Sat, 16 Feb 2002 09:12:16 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Sometime ago someone told how to make a "dialog window" to get the >control of the application.. gtk_window_set_modal From inodal@teleline.es Sat Feb 16 11:11:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp2.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 7B6AC18A83 for ; Sat, 16 Feb 2002 11:11:43 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp2.mail.isp (Netscape Messaging Server 4.15 tsmtp2 Jul 26 2001 13:10:38) with ESMTP id GRMVMF00.LED for ; Sat, 16 Feb 2002 17:11:03 +0100 Message-ID: <3C6E84C5.1050706@teleline.es> Date: Sat, 16 Feb 2002 16:11:49 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 Cc: GTK-List Subject: Re: Dialog Window References: <200202161416.JAA03714@renoir.op.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis wrote: >>Sometime ago someone told how to make a "dialog window" to get the >>control of the application.. >> > > gtk_window_set_modal Mmmm, I didn't explain myself very good... My program has a main window with a GtkGLArea waiting impatiently for events to occur on it... Then I have a window (I call it file_name_window) to select the file I want to load into my GtkGLArea.. This window has just a GtkEntry, an "OK" and a "CANCEL" button, and a "BROWSE" button that being clicked opens a GtkFileSelection Window. When the file is selected (in the GtkFileSelection) it updates my file_name_window's entry. If I use gtk_window_set_modal() I cannot interact with the GtkFileSelection Window... What I want to avoid is my GtkGLArea catchin' events while I select a file. I thought it would have to do with gtk_window_set_transitent_for, but this function just keeps my "file_name_window" on top of the main window, which continues receiving events.. How should I proceed? Thanks again.. From inimss@yahoo.com Sat Feb 16 12:00:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ekm.asianetonline.net (unknown [202.88.231.2]) by mail.gnome.org (Postfix) with ESMTP id 0709118C6C for ; Sat, 16 Feb 2002 12:00:06 -0500 (EST) Received: from dino ([202.88.225.117]) by ekm.asianetonline.net (Netscape Messaging Server 4.15) with SMTP id GRMWB000.770; Sat, 16 Feb 2002 11:25:48 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: Paul Davis , Ignacio Nodal Subject: Re: Dialog Window Date: Sat, 16 Feb 2002 21:51:10 +0530 X-Mailer: KMail [version 1.2] Cc: GTK-List References: <200202161416.JAA03714@renoir.op.net> In-Reply-To: <200202161416.JAA03714@renoir.op.net> MIME-Version: 1.0 Message-Id: <02021621511000.16869@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi But it doesn't make the dialog window to stay on top of the parent window. I agree that it has the full input focus, but we can click on the parent window, even when the dialog window is visible. How can we fix that too? Will gtk_window_set_transient_for help? Thanks Dino CK On Saturday 16 February 2002 19:42, Paul Davis wrote: > >Sometime ago someone told how to make a "dialog window" to get the > >control of the application.. > > gtk_window_set_modal > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From inodal@teleline.es Sat Feb 16 12:09:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp8.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id AE95718C23 for ; Sat, 16 Feb 2002 12:09:23 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp8.mail.isp (Netscape Messaging Server 4.15 tsmtp8 Jul 26 2001 13:10:38) with ESMTP id GRMYAJ01.LPN; Sat, 16 Feb 2002 18:08:43 +0100 Message-ID: <3C6E9249.2070508@teleline.es> Date: Sat, 16 Feb 2002 17:09:29 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: Dino Cherian K Cc: GTK-List Subject: Re: Dialog Window References: <200202161416.JAA03714@renoir.op.net> <02021621511000.16869@dino> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes, I think gtk_window_set_transient_for is what you are looking for... In addition to gtk_window_set_modal your dialog window will stay on top and have the main control... The pity is, what I'm looking for is something a bit different... :( (already sent in a diferent mail) Ciao Dino Cherian K wrote: > Hi > > But it doesn't make the dialog window to stay on top of the parent window. I > agree that it has the full input focus, but we can click on the parent > window, even when the dialog window is visible. > > How can we fix that too? Will gtk_window_set_transient_for help? > > Thanks > Dino CK > > On Saturday 16 February 2002 19:42, Paul Davis wrote: > >> >Sometime ago someone told how to make a "dialog window" to get the >> >control of the application.. >> >> gtk_window_set_modal From azra_chauhdary@yahoo.com Sat Feb 16 13:59:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14801.mail.yahoo.com (web14801.mail.yahoo.com [216.136.224.217]) by mail.gnome.org (Postfix) with SMTP id BB08818221 for ; Sat, 16 Feb 2002 13:59:25 -0500 (EST) Message-ID: <20020216185924.69106.qmail@web14801.mail.yahoo.com> Received: from [202.179.146.4] by web14801.mail.yahoo.com via HTTP; Sat, 16 Feb 2002 10:59:24 PST Date: Sat, 16 Feb 2002 10:59:24 -0800 (PST) From: azra yasin Subject: how to open terminal To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: wat is the command to open ther command line terminal from gtk program __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From pbd@op.net Sat Feb 16 14:12:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BC4401829F for ; Sat, 16 Feb 2002 14:12:42 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-149.phlpa.fast.net [209.92.99.149]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA22481; Sat, 16 Feb 2002 14:12:39 -0500 (EST) Message-Id: <200202161912.OAA22481@renoir.op.net> To: azra yasin Cc: gtk-list@gnome.org Subject: Re: how to open terminal In-reply-to: Your message of "Sat, 16 Feb 2002 10:59:24 PST." <20020216185924.69106.qmail@web14801.mail.yahoo.com> Date: Sat, 16 Feb 2002 14:08:38 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >wat is the command to open ther command line terminal >from gtk program there is no such command. there is no single program that is a command line terminal. "xterm", "rxvt", "eterm" are just 3 of the possibilities. you should probably read up on the fork(2), exec(2) and/or system(3) calls. this has nothing to do with GTK, so i suggest you find a general unix programming mailing list or forum to ask your question. --p From markrubn@pacbell.net Sat Feb 16 14:31:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by mail.gnome.org (Postfix) with ESMTP id B85C018D9F for ; Sat, 16 Feb 2002 14:31:59 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRN00JW14X5WN@mta6.snfc21.pbi.net> for gtk-list@gnome.org; Sat, 16 Feb 2002 11:31:54 -0800 (PST) Date: Sat, 16 Feb 2002 11:31:08 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Paul Davis Cc: Havoc Pennington , Ignacio Nodal , GTK-List Message-id: <3C6EB37C.91043A41@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202160052.TAA13523@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > you're not the only ones; i've discussed this issue several times on > this list in the past. o Thanks for your analyses (below). As I said originally, I've searched the archives for this, but never found the right keywords. Could you provide some "Subject:" lines? Searching for your name doesn't help -- you post too much to the lists. (This is a compliment, not a complaint.) > however, if you're really doing > Model-View-Controller style programming, which is highly desirable and > it sounds as if you are, then Havoc's suggestion of: > > handle_widget_state_change () { > if (widget->representation_of_object_state() != object->state()) > widget->set_state (object->state()); > } > > is the *only* correct route to take here. o I (possibly mis-) read Havoc's: > if (current_state == gtk_toggle_button_get_active (toggle)) > return; a little differently. If his "current_state" is your "object->state()" (which makes more sense than my interpretation of "widget->previous_state()"), and if "handle_widget_state_change()" is a GTK signal-handler/callback, I would think it should be: handle_widget_state_change () { if (widget->representation_of_object_state() != object->state()) object->set_state (widget->state()); } in order to break the feedback loop that causes me problems: 1) object ("Model") state changes 2) object changes widget X ("View") state 3) widget X is also a "Controller", thus emits a signal which is caught by a signal handler which changes object's state 4) loop back to 1) > in my C++ code, i tend to use a void * (aka gpointer) as an extra arg > to all functions that change the state of my objects ("models"), an > arg i call "src". when the objects emit signals as a result of the > change, they include the "src" argument. as a result, widgets ("views" > and/or "controllers") can do things like: > > handle_widget_state_change (void *src) { > if (src == this) { > /* ignore */ > return; > } > .... > } > > this lets a widget set the state of its underlying object (when acting > as a controller), supplying "itself" as the src pointer, and thus > ignore any notifications from the object when they are sent following > the object's state change. o Is the "this" in the above code fragment the object (Model) or the widget (View/Controller)? If object/Model, I don't understand because mine don't emit signals (widgets/Controllers emit signals; objects/Models do things like gtk_toggle_button_set_active()). If "this" is the widget/Controller, when "src==this" is exactly when the action should take place. -- MARK markrubn@pacbell.net From pbd@op.net Sat Feb 16 14:58:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D437818109 for ; Sat, 16 Feb 2002 14:58:42 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-38.phlpa.fast.net [209.92.99.38]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA25474; Sat, 16 Feb 2002 14:56:41 -0500 (EST) Message-Id: <200202161956.OAA25474@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Sat, 16 Feb 2002 11:31:08 PST." <3C6EB37C.91043A41@pacbell.net> Date: Sat, 16 Feb 2002 14:52:41 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: one other comment. its worth being very careful to make sure that the Model does not emit "my state changed" signals just because "set_state()" was called upon it. i.e. actually check to make sure that the new state really is different from the old before emitting the changed signal. this may seem obvious to you - it wasn't to me. --p From pbd@op.net Sat Feb 16 15:03:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id AB2CD1858C for ; Sat, 16 Feb 2002 15:03:12 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-38.phlpa.fast.net [209.92.99.38]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA25307; Sat, 16 Feb 2002 14:52:32 -0500 (EST) Message-Id: <200202161952.OAA25307@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Sat, 16 Feb 2002 11:31:08 PST." <3C6EB37C.91043A41@pacbell.net> Date: Sat, 16 Feb 2002 14:48:32 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > searched the archives for this, but never found the right > keywords. Could you provide some "Subject:" lines? Searching for try "MVC" in the body, since i usually use that acronym when discussing this. > a little differently. If his "current_state" is your > "object->state()" (which makes more sense than my interpretation of > "widget->previous_state()"), and if "handle_widget_state_change()" > is a GTK signal-handler/callback, I would think it should be: > > handle_widget_state_change () { > if (widget->representation_of_object_state() != object->state()) > object->set_state (widget->state()); > } yes, thats right. i wasn't being careful enough as i tuped that in. sorry about that. >> handle_widget_state_change (void *src) { >> if (src == this) { >> /* ignore */ >> return; >> } >> .... >> } >> >> this lets a widget set the state of its underlying object (when acting >> as a controller), supplying "itself" as the src pointer, and thus >> ignore any notifications from the object when they are sent following >> the object's state change. > >o Is the "this" in the above code fragment the object (Model) or the > widget (View/Controller)? If object/Model, I don't understand > because mine don't emit signals (widgets/Controllers emit signals; > objects/Models do things like gtk_toggle_button_set_active()). If > "this" is the widget/Controller, when "src==this" is exactly when > the action should take place. sorry. i work in C++ and i use libsigc++ which offers me a superb system for writing MVC programs. the "this" i used above refers to the thing "on whose behalf" a member function is beind called. its an "implicit" argument in all C++ member functions.my objects all attempt to remain anonymous and ignorant of who has registered an interest in their state changes, which libsigc++ makes *phenomenally* easy to do. so, suppose we have a true MVC system that includes: Controller::do_something_to_model (Model *model) { model->set_state (foo, this); } this causes "object" to emits its "StateChanged" signal. Now, suppose that we have a view hooked up to the signal, with a handler: View::handle_model_state_change (void *src) { if (src == this) { /* we initiated the state change in the model, so presumably our visual appearance is up- to-date. relax. */ return; } ... something else changed the model's state ... ... make our appearance reflect the model's state ... } now, as you have noted, its common to use a single widget as both a "controller" and a "view". in that case, you'd have ControllerView::do_something_to_model (Model *model) { model->set_state (foo, this); ... change visual appearance if appropriate ... } this would presumably be called because of some GUI event (e.g. a button click). We will still have: ControllerView::handle_model_state_change (void *src) { } but this time, we will find out that the "src" of the change is ourselves. Presumably, our appearance is already correct (we responded to that in do_something_to_model(), so we can just return. Does this make this style any clearer? As I say, I've found that I've managed to avoid this by comparing model state to view state, but its still useful occasionally. There are other ways of tackling what ControllerView::do_something_to_model() does - its worth reading up on MVC programming and/or "Design Patterns" to get a handle on some of them. --p From pbd@op.net Sat Feb 16 15:16:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from op.net (maxtnt05-38.phlpa.fast.net [209.92.99.38]) by mail.gnome.org (Postfix) with ESMTP id 0E6B418250 for ; Sat, 16 Feb 2002 15:16:42 -0500 (EST) Received: (from pbd@localhost) by op.net (8.10.1/8.10.1) id g1GKCfV07425; Sat, 16 Feb 2002 15:12:41 -0500 Date: Sat, 16 Feb 2002 15:12:41 -0500 Message-Id: <200202162012.g1GKCfV07425@op.net> From: Paul Davis To: gtk-list@gnome.org Subject: can someone remove this chinese spammer? Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: i'm not clear on where else to send this - its admin related, but gtk-list-request doesn't seem right. most times i write to gtk-list, i get the message shown below. could someone arrange to remove what is subscribed at sina.com that is generating this? --p Received: from mail.op.net by localhost with POP3 (fetchmail-5.1.0) for pbd@localhost (single-drop); Sat, 16 Feb 2002 15:08:19 -0500 (EST) Received: from sina.com ([202.106.187.189]) by renoir.op.net (o1/$Revision: 1.18 $) with SMTP id PAA25933 for ; Sat, 16 Feb 2002 15:04:30 -0500 (EST ) Received: (qmail 16372 invoked by uid 99); 16 Feb 2002 20:11:17 -0000 Date: 16 Feb 2002 20:11:17 -0000 Message-ID: <20020216201117.16371.qmail@sina.com> From: gtk-list@gnome.org To: pbd@op.net Subject: gtk-list@gnome.orgµÄ×Ô¶¯»ØÐÅ ÒÑÊÕµ½£¬ÇëÄúÄÍÐĵȺò»ØÒô¡£ heface =================================================================== Ãâ·Ñµç×ÓÓÊÏä http://home.sina.com.cn From markrubn@pacbell.net Sat Feb 16 17:52:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id 48C32181A1 for ; Sat, 16 Feb 2002 17:52:48 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRN00AVGE7YXS@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Sat, 16 Feb 2002 14:52:47 -0800 (PST) Date: Sat, 16 Feb 2002 14:52:00 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Paul Davis Cc: Havoc Pennington , Ignacio Nodal , GTK-List Message-id: <3C6EE290.E0C54F64@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202161952.OAA25307@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > try "MVC" in the body, since i usually use that acronym when > discussing this. o 84 hits. I'll read them. Thanks. > > handle_widget_state_change () { > > if (widget->representation_of_object_state() != object->state()) > > object->set_state (widget->state()); > > } > > yes, thats right. i wasn't being careful enough as i tuped that > in. sorry about that. o No problem. Glad I'm not (totally) crazy. o This is obviously one of the workable solutions. The two relatively minor things I don't like about it are: 1) object->state() is an additional requirement on the Model object's public interface. Conceptually, what business does a View widget have knowing about the Model? It should just be told what to display. 2) Potential mismatch between Model object's internal state and View widget's represention of same. Example: Model keeps double values, GtkAdjustment uses gfloats. Or: Model keeps HTML/RTF/internationalized text, GtkText uses GtkText(??), some HTML widget uses HTML, so Model has to export multiple types of state (or maybe multiple overloads of operator!=()). > >> handle_widget_state_change (void *src) { > >> if (src == this) { > >> /* ignore */ > >> return; > >> } > >> .... > >> } > >> > ... > >o Is the "this" in the above code fragment the object (Model) or the > > widget (View/Controller)? If object/Model, I don't understand > > because mine don't emit signals (widgets/Controllers emit signals; > > objects/Models do things like gtk_toggle_button_set_active()). If > > "this" is the widget/Controller, when "src==this" is exactly when > > the action should take place. > > sorry. i work in C++ and i use libsigc++ which offers me a superb > system for writing MVC programs. the "this" i used above refers to the > thing "on whose behalf" a member function is beind called. its an > "implicit" argument in all C++ member functions. o I also use gtk++(gtkmm) and libsigc++. I think some of the nomenclature confusion here is because we're all translating back and forth between C/GTK and C++/GTK--. o In C++ terms, my question was really "is the above handle_widget_state_change() a method of the object/Model class, or of the widget/View/Controller class"? o In any case, I'm going to switch to the nomenclature you're using below. > my objects all attempt > to remain anonymous and ignorant of who has registered an interest in > their state changes, which libsigc++ makes *phenomenally* easy to > do. so, suppose we have a true MVC system that includes: > > Controller::do_something_to_model (Model *model) > { > model->set_state (foo, this); > } > > this causes "object" to emits its "StateChanged" signal. o Is "object" the Controller, or the Model? o Bigger question: Do you use libsigc++ signals for *all* your MVC communication (both Controller-to-Model and Model-to-View)? o I don't. I use it for Controller-to-Model: Model::Model() : _state1(false) { _togglebutton1 .toggled .connect(bind(slot(*this, &Model::button1_toggled), &_togglebutton1)) ; } Model::button1_toggled( const Gtk::ToggleButton *togglebutton) { _state1 = togglebutton->get_active() ; } o But for Model-to-View I just directly call the gtkmm methods: Model::some_method() { _state1 = some_computation() ; _togglebutton1.set_active(_state1) ; } o I don't write my own methods for Views and Controllers -- they're just gtkmm widgets, used as-is. I don't derive from them and extend/override (except for Gtk::DrawingArea). o So my Model objects never emit signals (they just receive them) and my View/Controller objects never receive signals (just emit). If yours go "both ways" it would explain my confusion over your (otherwise clear) descriptions. o I'm going to table further questions pending an understanding of this, and a review of the list archives and the Gang Of Four book. -- MARK markrubn@pacbell.net From pbd@op.net Sat Feb 16 18:02:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 28A3C1829B for ; Sat, 16 Feb 2002 18:02:13 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-163.phlpa.fast.net [209.92.96.163]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id SAA07624; Sat, 16 Feb 2002 18:00:12 -0500 (EST) Message-Id: <200202162300.SAA07624@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Sat, 16 Feb 2002 14:52:00 PST." <3C6EE290.E0C54F64@pacbell.net> Date: Sat, 16 Feb 2002 17:56:14 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > 1) object->state() is an additional requirement on the Model > object's public interface. Conceptually, what business does a > View widget have knowing about the Model? It should just be > told what to display. well, it has to have access to whatever parts of the state are required to display the state. > 2) Potential mismatch between Model object's internal state and > View widget's represention of same. Example: Model keeps > double values, GtkAdjustment uses gfloats. Or: Model keeps > HTML/RTF/internationalized text, GtkText uses GtkText(??), some > HTML widget uses HTML, so Model has to export multiple types of > state (or maybe multiple overloads of operator!=()). this can certainly become a problem. >> Controller::do_something_to_model (Model *model) >> { >> model->set_state (foo, this); >> } >> >> this causes "object" to emits its "StateChanged" signal. > >o Is "object" the Controller, or the Model? its the Model. >o Bigger question: Do you use libsigc++ signals for *all* your MVC > communication (both Controller-to-Model and Model-to-View)? yes, for everything. >o But for Model-to-View I just directly call the gtkmm methods: > > Model::some_method() > { > _state1 = some_computation() ; > _togglebutton1.set_active(_state1) ; > } that breaks the anonymity principle. a Model should have *zero* knowledge of the View or Controllers. if you don't do this, you cannot have multiple Views, for example, and you can't reimplement the View without reimplementing the Model. having the Model drive the View directly is not really MVC, and in my experience, not very good OOP either. >o I don't write my own methods for Views and Controllers -- they're > just gtkmm widgets, used as-is. I don't derive from them and > extend/override (except for Gtk::DrawingArea). I generally find that I have to connect to to button press/release and keypress signals and so forth, but i rarely override them. the main hack i have to do is to call gtk_signal_emit_stop_by_name() because a button press on a widget drives a change of visual appearance in the widget that cannot happen until the Model state change actually takes place (and it may never take place for reasons that the Controller doesn't know about). --p From markrubn@pacbell.net Sat Feb 16 19:53:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id 5D1B8188F7 for ; Sat, 16 Feb 2002 19:53:49 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRN00AJDJTOXR@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Sat, 16 Feb 2002 16:53:48 -0800 (PST) Date: Sat, 16 Feb 2002 16:53:01 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Paul Davis Cc: Havoc Pennington , Ignacio Nodal , GTK-List Message-id: <3C6EFEED.46F2F542@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202162300.SAA07624@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > 1) object->state() is an additional requirement on the Model > > object's public interface. Conceptually, what business does a > > View widget have knowing about the Model? It should just be > > told what to display. > > well, it has to have access to whatever parts of the state are > required to display the state. o Or, in my case, not. I have a Model which knows about and tells a View what to display. (I think) you have a View which knows about a Model and queries it for a value. Either way there's a binding. o From http://www.ootips.org/mvc-pattern.html (which I found via an archived thread of yours from over a year ago): > The model, viewport and controller are intimately related and in > constant contact. Therefore, they must reference each other. o The discussion goes on about the strongly- and weakly-typed knowledge the classes have of each other. See below. > >o But for Model-to-View I just directly call the gtkmm methods: > > > > Model::some_method() > > { > > _state1 = some_computation() ; > > _togglebutton1.set_active(_state1) ; > > } > > that breaks the anonymity principle. a Model should have *zero* > knowledge of the View or Controllers. if you don't do this, you cannot > have multiple Views, Model::some_method() { _state1 = some_computation() ; _togglebutton1.set_active(_state1) ; _reverse_togglebutton2.set_active(!_state1) ; } > for example, and you can't reimplement the View > without reimplementing the Model. having the Model drive the View > directly is not really MVC, and in my experience, not very good OOP either. o Nomenclature, nomenclature. I thought a Gtk::ToggleButton was a View (also a Controller). My "Model::some_method()" above is really called "Gui::some_method()", so maybe what I've been calling Model is really a (composite) View. o If not -- if Views are solely gtkmm widgets, not some class which contains them as member objects -- and: > >o Bigger question: Do you use libsigc++ signals for *all* your MVC > > communication (both Controller-to-Model and Model-to-View)? > > yes, for everything. o And: > I generally find that I have to connect to to button press/release > and keypress signals and so forth, but i rarely override them. o Then how do you change a togglebutton other than using Gtk::ToggleButton::set_active()? o From "ootips": > By contrast, the viewport knows > exactly what kind of model it observes. o How could a (stock, compiled-into-a-library, non-derived-from) Gtk::ToggleButton know anything about your Model? -- MARK markrubn@pacbell.net From Alain.Valleton@bigfoot.com Sun Feb 17 06:16:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto1.wanadoo.fr (smtp-out-1.wanadoo.fr [193.252.19.188]) by mail.gnome.org (Postfix) with ESMTP id BD56B180DE for ; Sun, 17 Feb 2002 06:16:01 -0500 (EST) Received: from mel-rta2.wanadoo.fr (193.252.19.152) by mel-rto1.wanadoo.fr; 17 Feb 2002 12:16:00 +0100 Received: from bigfoot.com (80.11.136.16) by mel-rta2.wanadoo.fr; 17 Feb 2002 12:15:40 +0100 Message-ID: <3C6F9117.3080006@bigfoot.com> Date: Sun, 17 Feb 2002 12:16:39 +0100 From: Alain VALLETON User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: fr-fr, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Static libraries using glib-config Content-Type: multipart/mixed; boundary="------------020908050805050305000603" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. --------------020908050805050305000603 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello, I have a simple suggestion for the (much talented ;o) developers of glib. (gtk+ developers may also be interested) By default, both static and dynamic libraries are built during glib installation: this is fine for me. At work, we want to link statically an application against glib. So I tried to use the elegant way to do that, that is to use "glib-config". But with "glib-config", there is no way to get the static libraries instead of the dynamic libraries (option "--libs"). So I suggest the little patch attached to this post, that add an option "--staticlibs" to "glib-config" in order to get something like "/usr/local/lib/libglib.a" instead of "-L/usr/local/lib -lglib". This problem had already been noticed back in 1998, but seemingly never addressed: http://mail.gnome.org/archives/gtk-list/1998-November/msg00701.html Have a nice day. --------------020908050805050305000603 Content-Type: text/plain; name="patch_glib-1.2.10_static" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch_glib-1.2.10_static" --- glib-1.2.10.old/glib-config.in Sat Oct 28 06:35:30 2000 +++ glib-1.2.10/glib-config.in Thu Feb 14 10:27:41 2002 @@ -12,7 +12,7 @@ [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] - [--libs] + [--[static]libs] [--cflags] Libraries: glib @@ -61,6 +61,9 @@ --libs) echo_libs=yes ;; + --staticlibs) + echo_staticlibs=yes + ;; glib) lib_glib=yes ;; @@ -105,4 +108,20 @@ libsa="$libsa @G_MODULE_LIBS@" fi echo -L@libdir@ $libsp $libsa +fi +if test "$echo_staticlibs" = "yes"; then + libsp="" + libsa="" + if test "$lib_glib" = "yes"; then + libsp="@libdir@/libglib.a" + fi + if test "$lib_gthread" = "yes"; then + libsp="@libdir@/libgthread.a $libsp" + libsa="$libsa -lpthread" + fi + if test "$lib_gmodule" = "yes"; then + libsp="@libdir@/libgmodule.a $libsp" + libsa="$libsa @G_MODULE_LIBS@" + fi + echo $libsp $libsa fi --------------020908050805050305000603-- From inodal@teleline.es Sun Feb 17 08:35:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp10.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 773D6180DC for ; Sun, 17 Feb 2002 08:35:01 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp10.mail.isp (Netscape Messaging Server 4.15 tsmtp10 Jul 26 2001 13:10:38) with ESMTP id GROJ1701.G6L for ; Sun, 17 Feb 2002 14:34:19 +0100 Message-ID: <3C6FB18A.40305@teleline.es> Date: Sun, 17 Feb 2002 13:35:06 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: GTK+ problems using functions I used in Motif before Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm experimenting some problems with events on my GtkGlArea. The problem occurs when I pressed my mouse button and released it very fast, moving the mouse around ONLY THE FIRST TIME. This made me think about initilization problems, but it doesn't seem to be the point. Let's see: -First of all, I have a UpdateRotation() function which uses the initial mouse position (button pressed) and the current mouse position (get by motion or released) to update my objetct in the scene. -I have one callback for the "button_press_event" where I get the initial mouse position and my initial rotation matrix. -Another one for the "motion_notify_event" where I call UpdateRotation() and update my rotation matrix in function of the initial rotation matrix get from the previous callback. -And the last one for "button_released_event" where I only call UpdateRotation. The problem is: when I press and relase the button to fast moving the mouse from it's initial position, I don't understand why, but the function which returns me my rotation matrix, sends me a matrix full of zeros (the first time, it should return the identity matrix). This doesn't happen if I don't move the mouse around. It doesn't happen neither if I repeat the same operation after rotating the object correctly for the first time... If I "g_print" the rotation matrix when I paint the scene at the beginning of my application, it seems to be ok (identity matrix). But if I "g_print" it again in my "button_press_event" callback, it seems to be full of zeros (when using the mouse as mentined above). I have solve the problem calling the function which get the initial rotation matrix in my InitGL() function, which I used at the beginning of my program... but I don't really understand why didn't it work before.. In fact.. I'm using the same functions I used in Motif before, and they worked pretty fine with Motif. What it's happening? Does it have something to do with GTK+ or am I just getting more and more crazy? Thanks in advance, Ignacio Nodal From hunchback@netcabo.pt Sun Feb 17 17:53:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 2923A181A7 for ; Sun, 17 Feb 2002 17:53:57 -0500 (EST) Received: from a213-22-1-192.netcabo.pt ([213.22.1.192]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sun, 17 Feb 2002 22:50:39 +0000 Subject: Signals... From: Nuno Afonso To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 17 Feb 2002 22:53:59 +0000 Message-Id: <1013986440.2814.9.camel@a213-22-1-192> Mime-Version: 1.0 X-OriginalArrivalTime: 17 Feb 2002 22:50:39.0830 (UTC) FILETIME=[8590EF60:01C1B805] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, i have a button that is connected to a function called restartApp(GtkWidget *widget, Tabuleiro *tabuleiro) . (Tabuleiro is a static cast of a drawing area). When the button is clicked the restartApp is called and executes the following line tabuleiro->paint(); the function paint() has the following content: void Tabuleiro::paint(){ gdk_draw_rectangle(this->window, this->style->white_gc, true, 0, 0, 100, 100); ... } when i click the button i get segmentation fault when it tries to do the gdk_draw_rectangle. It gets in Tabuleiro::paint(), but it doesn't do the gdk_draw_rectangle. Does anyone know what is the problem with this signal? i use Tabuleiro::paint on other ocasions and it works... Afonso From inimss@yahoo.com Mon Feb 18 01:35:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ekm.asianetonline.net (unknown [202.88.231.2]) by mail.gnome.org (Postfix) with ESMTP id 3B0E11812E for ; Mon, 18 Feb 2002 01:35:22 -0500 (EST) Received: from dino ([202.88.224.172]) by ekm.asianetonline.net (Netscape Messaging Server 4.15) with SMTP id GRPUIA00.IAD; Mon, 18 Feb 2002 01:39:46 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: Ignacio Nodal Subject: Re: Dialog Window Date: Mon, 18 Feb 2002 00:51:38 +0530 X-Mailer: KMail [version 1.2] Cc: GTK-List References: <200202161416.JAA03714@renoir.op.net> <02021621511000.16869@dino> <3C6E9249.2070508@teleline.es> In-Reply-To: <3C6E9249.2070508@teleline.es> MIME-Version: 1.0 Message-Id: <02021800513800.03021@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I didnt tried this out but I have a doubt regarding modal windows. In an application with more than one window having modality are present at a moment, for example window1 is the main window, window2 is created as a modal child window of window1, window3 is created as a modal child window of window2. In such a situation will it be necessary to reset the modality of window2, in order to work with window3. I know that this is not the right thread to discuss it further, but please help me. Thanks Dino CK On Saturday 16 February 2002 22:39, Ignacio Nodal wrote: > Yes, I think gtk_window_set_transient_for is what you are looking for... > > In addition to gtk_window_set_modal your dialog window will stay on top > and have the main control... > > The pity is, what I'm looking for is something a bit different... :( > (already sent in a diferent mail) > > Ciao > > Dino Cherian K wrote: > > Hi > > > > But it doesn't make the dialog window to stay on top of the parent > > window. I agree that it has the full input focus, but we can click on > > the parent window, even when the dialog window is visible. > > > > How can we fix that too? Will gtk_window_set_transient_for help? > > > > Thanks > > Dino CK > > > > On Saturday 16 February 2002 19:42, Paul Davis wrote: > >> >Sometime ago someone told how to make a "dialog window" to get the > >> >control of the application.. > >> > >> gtk_window_set_modal From bent@vsnl.net Mon Feb 18 03:25:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail01.vsnl.net (mail01.vsnl.net [203.197.12.4]) by mail.gnome.org (Postfix) with ESMTP id AAF88180F0 for ; Mon, 18 Feb 2002 03:25:51 -0500 (EST) Received: from vsnl.net ([203.197.82.202]) by mail01.vsnl.net (Netscape Messaging Server 4.15) with ESMTP id GRPZF002.E2V for ; Mon, 18 Feb 2002 13:55:48 +0530 Message-ID: <3C70C226.D09468B6@vsnl.net> Date: Mon, 18 Feb 2002 14:28:14 +0530 From: Javed X-Mailer: Mozilla 4.79 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: problem while configuring Content-Type: multipart/alternative; boundary="------------AAAAB76659545C0074B6613E" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --------------AAAAB76659545C0074B6613E Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hi, I'm unable to configure the gtk+1.2.0 as it gives an error saying: checking host system type...configure:error:cannot guess host type;you must specify one How can I solve this problem? thanks, Javed --------------AAAAB76659545C0074B6613E Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit hi,
I'm unable to configure the gtk+1.2.0 as it gives an error saying:
checking host system type...configure:error:cannot guess host type;you must specify one

How can I solve this problem?

thanks,

Javed --------------AAAAB76659545C0074B6613E-- From sven@gimp.org Mon Feb 18 05:56:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E6BB15.dip.t-dialin.net [217.230.187.21]) by mail.gnome.org (Postfix) with ESMTP id 16879180EA for ; Mon, 18 Feb 2002 05:56:45 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16clSy-0005Jo-00; Mon, 18 Feb 2002 11:56:16 +0100 To: Javed Cc: gtk-list@gnome.org Subject: Re: problem while configuring References: <3C70C226.D09468B6@vsnl.net> From: Sven Neumann Date: 18 Feb 2002 11:56:15 +0100 In-Reply-To: <3C70C226.D09468B6@vsnl.net> Message-ID: Lines: 17 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Javed writes: > I'm unable to configure the gtk+1.2.0 as it gives an error saying: > checking host system type...configure:error:cannot guess host type;you > must specify one > > How can I solve this problem? first of all: update to glib-1.2.10 and gtk+-1.2.10. If you still have problems to compile those, get back here. But please give us a little bit more information about your system (OS, CPU, compiler) next time. Salut, Sven From jean-christophe.berthon@cgey.com Mon Feb 18 06:19:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from door.cgey.com (rpapar2.cgey.com [194.3.224.26]) by mail.gnome.org (Postfix) with ESMTP id D49E318204 for ; Mon, 18 Feb 2002 06:19:04 -0500 (EST) Received: from prenoms.capgemini.fr (sdcnt1.cgey.com [194.2.91.200]) by door.cgey.com (8.12.1/8.12.1) with ESMTP id g1IBIxvo029965; Mon, 18 Feb 2002 12:18:59 +0100 (MET) Received: from prenoms.capgemini.fr (localhost [127.0.0.1]) by prenoms.capgemini.fr (8.9.3/8.9.3) with ESMTP id MAA04906; Mon, 18 Feb 2002 12:18:58 +0100 (MET) Received: from spatio1 ([10.67.211.175]) by prenoms.capgemini.fr (8.9.3/8.9.3) with SMTP id MAA04786; Mon, 18 Feb 2002 12:18:56 +0100 (MET) Message-ID: <00b001c1b86d$cb9d1520$afd3430a@sudouest.capgemini.fr> From: "Jean-Christophe Berthon" To: "Javed" , "Gtk List" References: <3C70C226.D09468B6@vsnl.net> Subject: Re: problem while configuring Date: Mon, 18 Feb 2002 12:17:01 +0100 Organization: Cap Gemini -- Ernst & Young MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00AD_01C1B876.2B6B7980" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_00AD_01C1B876.2B6B7980 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, Maybe I can help you, but I'm really new to the worl of automake and = autoconf. But I had this problem with the automake I build when porting = the package under another system : I build my package under Linux and = was testing it under Solaris. As I didn't know what was the file config.guess and ltconfig (that's the = files which are used to guess the host type, so your problem), I just = run in this problem. So to fixed it, I would advise you to copy the 'ltmain.sh', 'ltconfig', = 'config.guess' and 'config.sub' files, that you can found in = /usr/share/libtool (or maybe /usr/local/share/libtool depending on where = you installed libtool), in the installation directory of gtk and to run = again ./configure. For me it solved the problem... Sorry for my english, if I'm not clear enough write me back, I'll try to = make myself more understandable Best regards, --- Jean-Christophe Berthon Cap Gemini -- Ernst & Young France Skill IS -- Image Quality Email: Jean-Christophe.Berthon@cgey.com Tel: (+33) 561 31 6671 ----- Original Message -----=20 From: Javed=20 To: gtk-list@gnome.org=20 Sent: Monday, February 18, 2002 9:58 AM Subject: problem while configuring hi,=20 I'm unable to configure the gtk+1.2.0 as it gives an error saying:=20 checking host system type...configure:error:cannot guess host type;you = must specify one=20 How can I solve this problem?=20 thanks,=20 Javed=20 ------=_NextPart_000_00AD_01C1B876.2B6B7980 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello,
 
Maybe I can help you, but I'm really new to the worl = of=20 automake and autoconf. But I had this problem with the automake I build = when=20 porting the package under another system : I build my package under = Linux and=20 was testing it under Solaris.
As I didn't know what was the file config.guess and = ltconfig=20 (that's the files which are used to guess the host type, so your = problem), I=20 just run in this problem.
So to fixed it, I would advise you to copy the = 'ltmain.sh',=20 'ltconfig', 'config.guess' and 'config.sub' files, that you can = found in=20 /usr/share/libtool (or maybe /usr/local/share/libtool depending on where = you=20 installed libtool), in the installation directory of gtk and to run = again=20 ./configure.
For me it solved the problem...
 
Sorry for my english, if I'm not clear enough write = me back,=20 I'll try to make myself more understandable
 
Best regards,
---
Jean-Christophe Berthon
 
Cap Gemini -- Ernst & Young
France
Skill IS -- Image=20 Quality
Email: Jean-Christophe.Berthon@= cgey.com
Tel:=20 (+33) 561 31 6671
 
 
----- Original Message -----
From:=20 Javed =
Sent: Monday, February 18, 2002 = 9:58=20 AM
Subject: problem while = configuring

hi,
I'm unable to configure the gtk+1.2.0 as it = gives an=20 error saying:
checking host=20 system type...configure:error:cannot guess host type;you must specify=20 one
=20

How can I solve this=20 problem?=20

thanks,=20

Javed=20

------=_NextPart_000_00AD_01C1B876.2B6B7980-- From hp@redhat.com Mon Feb 18 08:13:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (unknown [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 879C018339 for ; Mon, 18 Feb 2002 08:13:52 -0500 (EST) Received: (from Unknown UID 2379@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1IDDdf09622; Mon, 18 Feb 2002 08:13:39 -0500 X-Authentication-Warning: icon.devel.redhat.com: Unknown UID 2379 set sender to hp@redhat.com using -f To: "Mark R. Rubin" Cc: Paul Davis , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal References: <200202160052.TAA13523@renoir.op.net> <3C6EB37C.91043A41@pacbell.net> From: Havoc Pennington Date: 18 Feb 2002 08:13:37 -0500 In-Reply-To: <3C6EB37C.91043A41@pacbell.net> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Mark R. Rubin" writes: > o I (possibly mis-) read Havoc's: > > > if (current_state == gtk_toggle_button_get_active (toggle)) > > return; > FWIW I think I did mean what Paul said, i.e. current_state is the state of the object the toggle button affects. Havoc From otaylor@redhat.com Mon Feb 18 10:23:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (unknown [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id DEBC518F56; Mon, 18 Feb 2002 10:23:41 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 62D13241BE2; Mon, 18 Feb 2002 10:23:41 -0500 (EST) To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-list@gnome.org Subject: New release of GTK+ libraries (1.3.14) Reply-To: gtk-devel-list@gnome.org, gtk-list@gnome.org From: Owen Taylor User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 155 Message-Id: <20020218152341.62D13241BE2@fresnel.labs.redhat.com> Date: Mon, 18 Feb 2002 10:23:41 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: New releases of the development versions of GTK+ and associated libraries (GLib, Pango, Atk) are available at: ftp://ftp.gtk.org/pub/gtk/v1.3/ The JPEG/PNG/TIFF libraries and pkg-config 0.8 are needed to compile this release. These are available at: ftp://ftp.gtk.org/pub/gtk/v1.3/dependencies/ (pkg-config latest canonical upstream location is at http://www.freedesktop.org/software/pkgconfig/ - note that it has moved from sourceforge. But gtk.org mirrors the 0.8 version you need to build GTK 1.3.10) You will also need "libiconv" on systems with C libraries that lack the iconv() function: http://www.gnu.org/software/libiconv/ And the libintl library from the GNU "gettext" package if your C library doesn't have gettext() functionality: http://www.gnu.org/software/gettext/ Overview of Changes in GLib 1.3.14: =================================== * Register value transformations for gint64, guint64 [Andy Wingo] * Build with large-file support [Sven Neumann, Owen Taylor] * Fix handling of hostnames in URI's [Darin Adler] * Main loop bug fixes [Havoc Pennington, Owen] * Doc fixes and improvements [Manish Singh, Tim Janik] * Support ' as attribute delimiters in GMarkup [Matthias Clasen] * Win32 fixes [Hans Breuer, Tor Lillqvist] * Threading bug and build fixes [Sebastian Wilhelmi, Miroslaw Dobrzanski-Neumann] * Miscellaneous bug fixes Other contributors: Matthias Clasen, Mitch Natterer, James Henstridge Overview of Changes in Pango 0.25 ================================= * Win32 fixes [Tor Lillqvist, Hans Breuer] * Cleanup of [Darin Adler] * Bug and build fixes [Anders Carlsson, Sven Neumann, Havoc Pennington, Morten Welinder] Overview of Changes in GTK+ 1.3.14 ================================== * Keyboard focus improvements [Owen Taylor] * Code cleanup [Matthias Clasen, Manish Singh, Darin Adler] * Fix accidentally exported variables [Mark McLoughlin] * GtkTreeView fixes [Jonathan Blandford, Kristian Rietveld, John Harper, Darin] * Default to yellow tooltips [Owen] * RC file fixes for reloading, priorities [Owen, Matthias] * GtkMenu behavior improvements and bug fixes [Owen, Arnaud Charlet] * GtkTextView fixes [Havoc Pennington, Daniel Elstner, Dennis Bjorklund] * Improve keynav for paned widgets, tooltips, spin buttons, notebooks, scrolled windows [Soeren Sandmann, Padraig, Owen] * Add Emacs/Default key themes [Owen] * Win32 fixes [Hans Breuer, Tor Lillqvist] * Ethiopic input methods [Daniel Yacob] * Opaque paned window resizing [Soeren] * Tweak table expansion behavior [Tim Janik] * Fix GtkCalendar focus drawing [Bill Haneman] * Allow themeable cursor thickness [Bill] * Start of fixing of tutorial for GTK+-2.0 [Matthias] * Add a ::adjust-bounds signal to GtkRange to allow spreadsheat style scrollbars. [Jody Goldberg] (*) * Add the ability to turn on multiple selection for GtkFileSel [Manish] (*) * Bug fixes Other contributors: Jacob Berkman, Padraig O'Briain, Anders Carlsson, Johan Dahlin, Richard Hult, Stefan Kost, Alex Larsson, Thomas Leonard, Paolo Maggi, Alexey Malyshev, Federico Mena Quintero, Skip Montaro, Sven Neumann, Havoc Pennington, Laszlo Peter, Christian Rose, Joe Shaw, Kevin Vandersloot, Morten Welinder, Peter Williams Library Descriptions ==================== GLib 1.3.14 (http://www.gtk.org) GLib is the low-level core library that forms the basis of 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. Pango 0.25 (http://www.pango.org) Pango is a library for layout and rendering of text, with an emphasis on internationalization. It forms the core of text and font handling for GTK+-2.0. Atk 0.12 (http://developer.gnome.org/projects/gap) The ATK library provides a set of interfaces for accessibility. By supporting the ATK interfaces, an application or toolkit can be used such as tools such as screen readers, magnifiers, and alternative input devices. [ The Atk-0.12 release was made independently and is mentioned here for completeness ] GTK+ 1.3.14 (http://www.gtk.org) GTK+ is a widget toolkit for X and other windowing systems. It is used in such projects as the GIMP and GNOME. Notes ===== This release is meant for people working on ports of applications to the upcoming GTK+-2.0 release of GTK+. While these libraries have been in extensive use for several months, there are considerable numbers of known bugs that still need to be fixed, and presumably more that have not yet been found. This release is incompatible with GTK+ and GLib 1.2.x. Software that has not been explicitly ported will not compile with this version. Do not send bug reports about such compilation problems to either us or maintainers of software that uses GLib and GTK+ 1.2.x; The currently supported version of GLib and GTK+ is version 1.2.10. If you install these libraries, do NOT replace your current GLib and GTK+ packages with them; these libraries are designed so they can be installed in parallel with a GTK+ install without affecting it. The API is frozen at this point. No additional API changes are anticipated before GTK+-2.0 is released. A couple of small API additions were found to be necessary between GTK+-1.3.13 and GTK+-1.3.14; these are marked with (*) in the above list. These additions will not cause compatibility problems with existing programs. Binary interfaces for these libraries are not yet frozen; applications built against these libraries will need to be rebuilt when the final GTK+-2.0.0 is released. Comments should be sent to: GLib, GTK+: gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list Pango: gtk-i18n-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-i18n-list ATK: gnome-accessibility-list@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list Bug reports should be filed in the GNOME bug tracker at: http://bugzilla.gnome.org From db@zigo.dhs.org Mon Feb 18 12:17:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cosmo.zigo.dhs.org (as2-4-3.an.g.bonet.se [194.236.34.191]) by mail.gnome.org (Postfix) with ESMTP id A00F5181D5 for ; Mon, 18 Feb 2002 12:17:25 -0500 (EST) Received: from localhost (db@localhost) by cosmo.zigo.dhs.org (8.11.6/8.11.6) with ESMTP id g1IHHJ206581 for ; Mon, 18 Feb 2002 18:17:19 +0100 X-Authentication-Warning: cosmo.zigo.dhs.org: db owned process doing -bs Date: Mon, 18 Feb 2002 18:17:19 +0100 (CET) From: Dennis Bjorklund To: Subject: grab focus Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a notebookpage with a entrybox in it. When I change to that page I want the entry to get focus so I can write directly. Where is an appropriate place to do this? I've tried "map" on the entry and "select-page" on the notebook. But it does not seem to be the right places. -- /Dennis From jeremy@chaos.org.uk Mon Feb 18 14:25:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ganglion.demon.co.uk (ganglion.demon.co.uk [212.228.142.92]) by mail.gnome.org (Postfix) with ESMTP id D3582180F8 for ; Mon, 18 Feb 2002 14:25:44 -0500 (EST) Received: from chaos.org.uk (jeremy@localhost) by ganglion.demon.co.uk (8.11.6/8.11.6) with ESMTP id g1IJHRE17743; Mon, 18 Feb 2002 19:17:27 GMT Message-Id: <200202181917.g1IJHRE17743@ganglion.demon.co.uk> X-Authentication-Warning: ganglion.demon.co.uk: jeremy owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Javed Cc: gtk-list@gnome.org, jeremy@ganglion.demon.co.uk Subject: Re: problem while configuring In-Reply-To: Message from Javed of "Mon, 18 Feb 2002 14:28:14 +0530." <3C70C226.D09468B6@vsnl.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 18 Feb 2002 19:17:27 +0000 From: Jeremy Henty Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Javed writes: > I'm unable to configure the gtk+1.2.0 as it gives an error saying: > checking host system type...configure:error:cannot guess host type;you > must specify one Possibly a red herring, but IIRC I got something like this when my system had no "cc" command. Once I linked cc -> gcc everything went OK. (This presumes you're on some kind of Unix, of course.) I'm a little hazy on the details, but I am sure I did *not* get a useful "cc does not work on your system" sort of message: it was something much more obscure that required some investigation to get at the real problem. Regards, Jeremy Henty From setton@act-europe.fr Fri Feb 15 06:23:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (grenoble.act-europe.fr [212.157.227.138]) by mail.gnome.org (Postfix) with ESMTP id C24AA18BC8 for ; Fri, 15 Feb 2002 06:23:36 -0500 (EST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id g1FBM0x02444; Fri, 15 Feb 2002 12:22:00 +0100 Subject: Re: Required info on Bug#60132 From: Nicolas Setton To: Yogeesh MB Cc: gtk-bugs@gtk.org, gtk-list@gnome.org In-Reply-To: <06f701c1b610$bfe8c6c0$b609720a@m2foe301975> References: <06f701c1b610$bfe8c6c0$b609720a@m2foe301975> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.0.99+cvs.2001.12.13.08.57 (Preview Release) Date: 15 Feb 2002 12:22:00 +0100 Message-Id: <1013772120.2158.0.camel@localhost.localdomain> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I originally spotted this bug when developping a widget using GtkAda. But it can be reproduced with any C program. What other details would you like to know ? Nico, for the GtkAda team. On Fri, 2002-02-15 at 12:05, Yogeesh MB wrote: > Hi, > I would like to know about Bug# 60132, from where it is originating. > under which appication this bug lies. > This will help me in fixing this at the earliest. > If any one knows about this bug in detail please let me know. > > thanks in advance, > > Yogeesh MB > ---- > > **************************Disclaimer************************************ > > > > Information contained in this E-MAIL being proprietary to Wipro Limited > is 'privileged' and 'confidential' and intended for use only by the > individual or entity to which it is addressed. You are notified that any > use, copying or dissemination of the information contained in the E-MAIL > in any manner whatsoever is strictly prohibited. > > > > ******************************************************************** From michael@cs.millersville.edu Fri Feb 15 16:31:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.millersville.edu (unknown [166.66.64.14]) by mail.gnome.org (Postfix) with ESMTP id F35A91890D for ; Fri, 15 Feb 2002 16:31:02 -0500 (EST) Received: from cs.millersville.edu (localhost.0.0.127.in-addr.arpa [127.0.0.1] (may be forged)) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1FLV2IQ021527; Fri, 15 Feb 2002 16:31:02 -0500 Received: from localhost (michael@localhost) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1FLV2A2021523; Fri, 15 Feb 2002 16:31:02 -0500 Date: Fri, 15 Feb 2002 16:31:02 -0500 (EST) From: Michael Mitton To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing In-Reply-To: <20020215131731.B13335@spawar.navy.mil> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: The & in front of your function name is the problem. Try { pthread_t thread; pthread_create(&thread, NULL, (void *) doSimulation, NULL); } if you declare doSimulation as a void * (ie void *doSimulation(...)) you can even drop the type cast. -Michael On Fri, 15 Feb 2002, Chris Seberino wrote: > > pthread_t thread; > > pthread_create(&thread, NULL, (void*) &doSimulation, NULL); > > Help! I trying to assign a function to a thread in my amateur > PThread calls above. Without (void*) before function name I get > an error and WITH (void*) I get following warning: > > warning: ANSI C++ forbids implicit conversion from `void *' in argument passing > > This would all be harmless except I believe newer GTK+ > or something in my Linux distro upgrade causes BOTH > (with and without (void*)) to return an error!!! > > NEITHER WORKS!! > > Is there someway to fix this to avoid errors and warnings?? > > Chris > > -- > ======================================================= > | Dr. Christian Seberino || (619) 553-7940 (office) | > | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | > | 53560 HULL ST || | > | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | > ======================================================= > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From wdulyea@qualcomm.com Fri Feb 15 17:56:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from numenor.qualcomm.com (numenor.qualcomm.com [129.46.51.58]) by mail.gnome.org (Postfix) with ESMTP id 5E0B11816B for ; Fri, 15 Feb 2002 17:56:32 -0500 (EST) Received: from crowley.qualcomm.com (crowley.qualcomm.com [129.46.61.151]) by numenor.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1FMuNkQ013304; Fri, 15 Feb 2002 14:56:23 -0800 (PST) Received: from wdulyea.qualcomm.com (wdulyea.qualcomm.com [129.46.73.119]) by crowley.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1FMuL2F017424; Fri, 15 Feb 2002 14:56:22 -0800 (PST) Message-Id: <5.1.0.14.2.20020215144559.0249f618@jittlov.qualcomm.com> X-Sender: wdulyea@jittlov.qualcomm.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 15 Feb 2002 14:56:17 -0800 To: gtk-list@gnome.org From: William Dulyea Subject: memory leak (continuation) Cc: wdulyea1@excite.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: An expansion to an earlier mail I sent... In this code snippet below I can observ that removing(destroying) container widgets does not have the desired effect. Please comment:> Code snippet........................................... cur_page = gtk_notebook_get_current_page( notebook ); fprintf( stderr, "on_notebook_switch_page,switching from:%i to:%i\n", cur_page, page_n ); child = gtk_container_children(GTK_CONTAINER(notebookpage[cur_page].widget)); while( child ) { GtkWidget *widget; widget = GTK_WIDGET(child->data); gtk_container_remove( GTK_CONTAINER(notebookpages[cur_page].widget),widget ); fprintf( stderr, "on_notebook_switch_page,destroy widget:%p", widget); gtk_widget_destroy( widget ); if( widget ) fprintf( stderr, " widget still referenced:%p\n", widget); else fprintf( stderr, "\n" ); child = child->next; } create_page_item( notebook, page_n ); example page item created.................................. case HDWR_CONF: page_item = create_hardware_config(); gtk_container_add(GTK_CONTAINER(notebookpages[page_n].widget),page_item); To further enlighten, the widget returned by (create_hardware_config) routine, as with all others, does have reference count of at least 1 and (signal_connect) is set for destroy_event on the top-level widget or this widget. William P. Dulyea _______________ Phone: 651-5206 Office: L-423 From wdulyea@qualcomm.com Fri Feb 15 21:19:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ithilien.qualcomm.com (ithilien.qualcomm.com [129.46.51.59]) by mail.gnome.org (Postfix) with ESMTP id 17E1218D2C for ; Fri, 15 Feb 2002 21:19:19 -0500 (EST) Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149]) by ithilien.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1G2JCrP020482; Fri, 15 Feb 2002 18:19:12 -0800 (PST) Received: from wdulyea.qualcomm.com (wdulyea.qualcomm.com [129.46.73.119]) by neophyte.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1G2JAu4025173; Fri, 15 Feb 2002 18:19:10 -0800 (PST) Message-Id: <5.1.0.14.2.20020215180207.024a3288@jittlov.qualcomm.com> X-Sender: wdulyea@jittlov.qualcomm.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 15 Feb 2002 18:19:05 -0800 To: iain From: William Dulyea Subject: Re: memory leaks (continued) Cc: gtk-list@gnome.org In-Reply-To: <1013828006.2185.0.camel@discomachinegun.prettypeople.org> References: <20020215205735.8412E109EB9@xprdmailfe.excite.com> <20020215205735.8412E109EB9@xprdmailfe.excite.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello iain, For the simple reason that the data contained therein is dynamic. Going from one page to another and changing any settings effects what and how information is displayed on any other page. I'm sure I could setup and event handler for this, but it would be very complicated and would possibly interfere with settings as I change them, and because I'm lazy. So in order to deal with this situation my design had to destroy and recreate moving from one page to another. Actually ...for this particular problem I found out what I was doing wrong! Or because I am not intimate enough with the design of GTK+ and since documentation is not that good, I did not realize that I should not manually set the reference count for each widget every time it is created unless I have a good reason to do so. This apparently keeps the object from cleaning itself out if this count is not down to zero, possibly a design inheritance from OOP smart pointers. Once I removed my calls to gtk_widget_ref(), destroying them actually makes them go away:) Now I'm happy -William At 02:53 AM 2/16/2002 +0000, you wrote: >On Fri, 2002-02-15 at 20:57, wdulyea1@excite.com wrote: An expansion to >an earlier mail I sent... In this code snippet below I can observ that >removing(destroying) container widgets does not have the desired effect. >Please comment:> > >What specific reason do you need to delete the widgets on a page when >the page is changed? > >iain >-- >"All men of conscience or prudence ply to windward, to maintain their >wars to be defensive." -- Roger Williams From s_lekha@mailcity.com Sat Feb 16 03:43:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailcity.com (fes-qout.whowhere.com [209.185.123.96]) by mail.gnome.org (Postfix) with SMTP id 21CC618138 for ; Sat, 16 Feb 2002 03:43:47 -0500 (EST) Received: from Unknown/Local ([?.?.?.?]) by mailcity.com; Sat Feb 16 00:43:34 2002 To: gtk-list@gnome.org Date: Sat, 16 Feb 2002 00:43:34 -0800 From: "srilekha c shekar" Message-ID: Mime-Version: 1.0 X-Sent-Mail: off Reply-To: s_lekha@lycos.com X-Mailer: MailCity Service X-Priority: 3 Subject: Problem with Pop up messages X-Sender-Ip: 202.144.29.115 Organization: Lycos Mail (http://mail.lycos.com:80) Content-Type: text/plain; charset=us-ascii Content-Language: en Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Everybody, I've got this problem wherein i've created a gtk window and i'm trying to pop up a message dialog after a particular interval of time using a thread.The message pops up ONLY after i press a key or move a mouse over the window.why does this happen? I'm facing the same problem in the application i'm working on.I would be pleased if anybody could help me to find a solution to this problem. Regards, srilekha Check out Cupid School where you will learn from Matchmaker's best and brightest. Good Luck! http://ecard.matchmaker.com/cupid0202/cupid0202.html From Nuno.Afonso@bigfoot.com Sun Feb 17 17:42:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 753E7181A7 for ; Sun, 17 Feb 2002 17:42:21 -0500 (EST) Received: from a213-22-1-192.netcabo.pt ([213.22.1.192]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sun, 17 Feb 2002 22:38:57 +0000 Subject: Signals... From: Nuno Afonso To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 17 Feb 2002 22:42:18 +0000 Message-Id: <1013985738.2813.7.camel@a213-22-1-192> Mime-Version: 1.0 X-OriginalArrivalTime: 17 Feb 2002 22:38:58.0077 (UTC) FILETIME=[E349ECD0:01C1B803] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, i have a button that is connected to a function called restartApp(GtkWidget *widget, Tabuleiro *tabuleiro) . (Tabuleiro is a static cast of a drawing area). When the button is clicked the restartApp is called and executes the following line tabuleiro->paint(); the function paint() has the following content: void Tabuleiro::paint(){ gdk_draw_rectangle(this->window, this->style->white_gc, true, 0, 0, 100, 100); ... } when i click the button i get segmentation fault when it tries to do the gdk_draw_rectangle. It gets in Tabuleiro::paint(), but it doesn't do the gdk_draw_rectangle. Does anyone know what is the problem with this signal? i use Tabuleiro::paint on other ocasions and it works... Afonso From sven@gimp.org Mon Feb 18 15:44:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id E00FA1830D for ; Mon, 18 Feb 2002 15:44:52 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16cueW-0001ad-00; Mon, 18 Feb 2002 21:44:48 +0100 To: William Dulyea Cc: gtk-list@gnome.org, wdulyea1@excite.com Subject: Re: memory leak (continuation) References: <5.1.0.14.2.20020215144559.0249f618@jittlov.qualcomm.com> From: Sven Neumann Date: 18 Feb 2002 21:44:48 +0100 In-Reply-To: <5.1.0.14.2.20020215144559.0249f618@jittlov.qualcomm.com> Message-ID: Lines: 60 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, William Dulyea writes: > An expansion to an earlier mail I sent... In this code snippet below I > can observ that removing(destroying) container widgets does not have > the desired effect. Please comment:> > > Code snippet........................................... > cur_page = gtk_notebook_get_current_page( notebook ); > fprintf( stderr, "on_notebook_switch_page,switching from:%i to:%i\n", > cur_page, page_n ); > > child = gtk_container_children(GTK_CONTAINER(notebookpage[cur_page].widget)); > while( child ) { > GtkWidget *widget; > > widget = GTK_WIDGET(child->data); > gtk_container_remove( > GTK_CONTAINER(notebookpages[cur_page].widget),widget ); whoahh, this is cruel, you are removing the widget from the container while iterating over the list of container children. > > fprintf( stderr, "on_notebook_switch_page,destroy widget:%p", widget); > gtk_widget_destroy( widget ); > if( widget ) > fprintf( stderr, " widget still referenced:%p\n", widget); > else > fprintf( stderr, "\n" ); what are you tring to proof here? You called gtk_widget_destroy() on the widget. What makes you think the widget pointer gets nullified? gtk_widget_destroy() does not even know the location of the memory you use to hold a pointer on the widget. How should it nullify it? Your pointer will keep its value, it only points to invalid memory now. You could of course set up a signal handler to nullify the pointer on widget destruction: gtk_signal_connect_data (GTK_WIDGET (widget), "destroy", GTK_SIGNAL_FUNC (g_nullify_pointer), &widget); Hmm, g_nullify_pointer is glib-2.0, but I think you can imagine what it does. To make things worse, you now dereference the child you have removed above. With a little luck this works since GList structures are allocated from a pool and won't be freed. Perhaps that's the memleak you observe (I didn't check your previous mails)? > child = child->next; > } > create_page_item( notebook, page_n ); Salut, Sven From sven@gimp.org Mon Feb 18 15:52:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id BAABF185E6 for ; Mon, 18 Feb 2002 15:52:54 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16cum6-0001bA-00; Mon, 18 Feb 2002 21:52:38 +0100 To: Nuno Afonso Cc: gtk-list@gnome.org Subject: Re: Signals... References: <1013985738.2813.7.camel@a213-22-1-192> From: Sven Neumann Date: 18 Feb 2002 21:52:38 +0100 In-Reply-To: <1013985738.2813.7.camel@a213-22-1-192> Message-ID: Lines: 38 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Nuno Afonso writes: > i have a button that is connected to a function called > restartApp(GtkWidget *widget, Tabuleiro *tabuleiro) . > > (Tabuleiro is a static cast of a drawing area). > > When the button is clicked the restartApp is called > and executes the following line > > tabuleiro->paint(); > > the function paint() has the following content: > void Tabuleiro::paint(){ > gdk_draw_rectangle(this->window, this->style->white_gc, true, 0, 0, > 100, 100); > > ... > } > > when i click the button i get segmentation fault when it tries to do the > gdk_draw_rectangle. It gets in Tabuleiro::paint(), but it doesn't do the > gdk_draw_rectangle. Have you checked that your widget is realized when paint gets called? this->window is NULL until the widget is realized. Try to add if (!GTK_WIDGET_DRAWABLE (widget)) return; at the beginning of paint() to assure that the drawing code is only executed if the widget is drawable. Salut, Sven From bent@vsnl.net Mon Feb 18 23:32:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail02.vsnl.net (mail02.vsnl.net [203.197.12.5]) by mail.gnome.org (Postfix) with ESMTP id 56E24180EA for ; Mon, 18 Feb 2002 23:32:49 -0500 (EST) Received: from vsnl.net ([203.197.82.162]) by mail02.vsnl.net (Netscape Messaging Server 4.15) with ESMTP id GRRJAL02.VYZ for ; Tue, 19 Feb 2002 10:02:46 +0530 Message-ID: <3C71DD15.F9A01CAE@vsnl.net> Date: Tue, 19 Feb 2002 10:35:25 +0530 From: Javed X-Mailer: Mozilla 4.79 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: new problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi, i tried to configure using your instuctions & the host problem is solved...but now I've got a new error, something like configure: error: C compiler cannot create executables. After which I tried compiling a C program, and it did not execute. I'm working with a RedHat Linux 7.0 OS and have Cyrix 233 Mhz CPU. Please help! Regards, Javed From dchiod@inwind.it Tue Feb 19 01:46:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailweb5.inwind.it (mailweb5.inwind.it [212.141.54.115]) by mail.gnome.org (Postfix) with ESMTP id 7AC7118136 for ; Tue, 19 Feb 2002 01:46:02 -0500 (EST) Received: from inwind.it (127.0.0.1) by mailweb5.inwind.it (5.5.053) id 3C5BAB13000163EF for gtk-list@gnome.org; Tue, 19 Feb 2002 07:45:53 +0100 Date: Tue, 19 Feb 2002 08:45:53 +0200 Message-Id: Subject: variable newbie problem MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable From: "dchiod@inwind.it" To: gtk-list@gnome.org X-XaM3-API-Version: 1.1.9.1.36 X-SenderIP: 217.56.227.2 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, someone can help me? I have a global variable used to store a filename got from a gtk_file_selection; now, when the gtk_file_selection object is destroyed, the memory allocated to the variable is corrupted, changing its value. This only in Linux, it behaves correctly in win32 (mingw 32 gcc). Thanks for any idea. Davide. From maa@sparc.spb.su Tue Feb 19 06:32:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from guardian.sparc.spb.su (guardian.sparc.spb.su [195.19.226.186]) by mail.gnome.org (Postfix) with ESMTP id AAE3A181D6 for ; Tue, 19 Feb 2002 06:32:46 -0500 (EST) Received: from guard.sparc.spb.su (guard.sparc.spb.su [195.19.226.98]) by guardian.sparc.spb.su (8.11.3/8.11.3) with ESMTP id g1JBjPl02103 for ; Tue, 19 Feb 2002 14:45:25 +0300 (MSK) Received: from mail.sparc.spb.su (mail.sparc.spb.su [192.168.205.210]) by guard.sparc.spb.su (8.11.4/8.10.1) with ESMTP id g1JBWeu06053 for ; Tue, 19 Feb 2002 14:32:40 +0300 (MSK) Received: from london.sparc.spb.su (london.sparc.spb.su [192.168.205.229]) by mail.sparc.spb.su (8.11.4/8.11.1) with ESMTP id g1JBWOI37354 for ; Tue, 19 Feb 2002 14:32:25 +0300 (MSK) (envelope-from maa@sparc.spb.su) Date: Tue, 19 Feb 2002 14:37:16 +0300 From: "Aleksey A. Malyshev" X-Mailer: The Bat! (v1.53d) Reply-To: "Aleksey A. Malyshev" X-Priority: 3 (Normal) Message-ID: <16993091808.20020219143716@sparc.spb.su> To: gtk-list@gnome.org Subject: gtk_im_context_get_preedit_string () MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a question. Docs for gtk_im_context_get_preedit_string () says: "Retrieve the current preedit string for the input context, and a list of attributes to apply to the string." but if you look sources you can see: gtk_im_context_real_get_preedit_string (GtkIMContext *context, gchar **str, PangoAttrList **attrs, gint *cursor_pos) //---------------- { if (str) *str = g_strdup (""); if (attrs) *attrs = pango_attr_list_new (); if (cursor_pos) *cursor_pos = 0; } //---------------- And str always equal "". What for this function needed? -- SY, Alek mailto:maa@sparc.spb.su From John.Cupitt@ng-london.org.uk Tue Feb 19 06:39:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 9611618F23 for ; Tue, 19 Feb 2002 06:39:19 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXL9G3>; Tue, 19 Feb 2002 11:39:18 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXL9GN; Tue, 19 Feb 2002 11:39:15 -0000 Message-ID: <3C723614.3020800@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: dchiod@inwind.it Cc: gtk-list@gnome.org Subject: Re: variable newbie problem Date: Tue, 19 Feb 2002 11:25:08 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dchiod@inwind.it wrote: > I have a global variable used to store a filename got from a gtk_file_selection; > now, when the gtk_file_selection object is destroyed, the memory allocated to the variable > is corrupted, changing its value. Hi, the gtk_file_selection gives you a pointer to its internal data for the filename. If you want to keep the filename after you've destroyed the widget, you need to take a copy with g_strdup(). John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From otaylor@redhat.com Tue Feb 19 07:22:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (unknown [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 15AFB181D6 for ; Tue, 19 Feb 2002 07:22:02 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 52EE3241BE2; Tue, 19 Feb 2002 07:22:01 -0500 (EST) To: "Aleksey A. Malyshev" Cc: gtk-list@gnome.org Subject: Re: gtk_im_context_get_preedit_string () References: <16993091808.20020219143716@sparc.spb.su> From: Owen Taylor In-Reply-To: "Aleksey A. Malyshev"'s message of "Tue, 19 Feb 2002 14:37:16 +0300" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 36 Message-Id: <20020219122201.52EE3241BE2@fresnel.labs.redhat.com> Date: Tue, 19 Feb 2002 07:22:01 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Aleksey A. Malyshev" writes: > Hi, > > I have a question. > Docs for gtk_im_context_get_preedit_string () says: > "Retrieve the current preedit string for the input context, > and a list of attributes to apply to the string." > but if you look sources you can see: > > gtk_im_context_real_get_preedit_string (GtkIMContext *context, > gchar **str, > PangoAttrList **attrs, > gint *cursor_pos) > //---------------- > { > if (str) > *str = g_strdup (""); > if (attrs) > *attrs = pango_attr_list_new (); > if (cursor_pos) > *cursor_pos = 0; > } > //---------------- > > And str always equal "". > > What for this function needed? You are looking at the fallback implementation. It needs to be overriden (look at, for instance, gtkimcontextxim.c) to be useful. Regards, Owen From pvosta@unionbio-eu.com Tue Feb 19 08:01:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 57C4718367 for ; Tue, 19 Feb 2002 08:01:20 -0500 (EST) Received: (qmail 4788 invoked from network); 19 Feb 2002 12:57:43 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 19 Feb 2002 12:57:43 -0000 Message-ID: <3C724C65.3DBA2A42@unionbio-eu.com> Date: Tue, 19 Feb 2002 14:00:21 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: signal_connect depreciated ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I apologize for this newbie question, but I have just started studying GTK and I want to try to compile the simple "helloworld.c" example on the gtk.org website http://www.gtk.org/tutorial/ch-gettingstarted.html#SEC-HELLOWORLD I saved the source code into a C-file and tried to compile it as indicated. However I got the following error message: helloworld.c: In function `main': helloworld.c:55: warning: implicit declaration of function `signal_connect' helloworld.c:79: warning: implicit declaration of function `g_signal_connect_swapped' I read somewhere that "g_signal_connect" is depreciated, but I have no clue what should be replacing it ? Best regards, Peter -- Dr. Peter Van Osta Union Biometrica N.V./S.A. European Scientific Operations Cipalstraat 3 B-2440 Geel Belgium tel.: +32 (0)14 570 619 fax.: +32 (0)14 570 621 From sven@gimp.org Tue Feb 19 08:18:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id E30E0182AA for ; Tue, 19 Feb 2002 08:18:28 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16dAA2-0007jK-00; Tue, 19 Feb 2002 14:18:22 +0100 To: pvosta@unionbio-eu.com Cc: gtk-list@gnome.org Subject: Re: signal_connect depreciated ? References: <3C724C65.3DBA2A42@unionbio-eu.com> From: Sven Neumann Date: 19 Feb 2002 14:18:21 +0100 In-Reply-To: <3C724C65.3DBA2A42@unionbio-eu.com> Message-ID: Lines: 45 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Peter Van Osta writes: > I apologize for this newbie question, but I have just started studying > GTK and I want to try to compile the simple "helloworld.c" example on > the gtk.org website > > http://www.gtk.org/tutorial/ch-gettingstarted.html#SEC-HELLOWORLD > > I saved the source code into a C-file and tried to compile it as > indicated. However I got the following error message: > > helloworld.c: In function `main': > helloworld.c:55: warning: implicit declaration of function > `signal_connect' > helloworld.c:79: warning: implicit declaration of function > `g_signal_connect_swapped' you are most probably following a GTK+-2.0 tutorial and link against GTK+-1.2. Actually the tutorial is in a strange state. It mixes GTK+-2.0 and GTK+-1.2 API: g_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (destroy), NULL); that should be (for GTK+-2.0): g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (destroy), NULL); IIRC, the tutorial is not fully converted to the new API yet and I don't think the tutorial found on the web-site is supposed to be the new one yet. > I read somewhere that "g_signal_connect" is depreciated, but I have no > clue what should be replacing it ? g_signal_connect() and friends is the new GObject signal API. The deprecated functions are gtk_signal_connect() and friends. Salut, Sven From jeremy@chaos.org.uk Tue Feb 19 14:08:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ganglion.demon.co.uk (ganglion.demon.co.uk [212.228.142.92]) by mail.gnome.org (Postfix) with ESMTP id 9EE1C18154 for ; Tue, 19 Feb 2002 14:08:37 -0500 (EST) Received: from chaos.org.uk (jeremy@localhost) by ganglion.demon.co.uk (8.11.6/8.11.6) with ESMTP id g1JJ0Ph27279 for ; Tue, 19 Feb 2002 19:00:26 GMT Message-Id: <200202191900.g1JJ0Ph27279@ganglion.demon.co.uk> X-Authentication-Warning: ganglion.demon.co.uk: jeremy owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: Re: new problem In-Reply-To: Message from Javed of "Tue, 19 Feb 2002 10:35:25 +0530." <3C71DD15.F9A01CAE@vsnl.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 19 Feb 2002 19:00:23 +0000 From: Jeremy Henty Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Javed writes: > configure: error: C compiler cannot create executables. > After which I tried compiling a C program, and it did not > execute. What were the error messages? It's hard to offer useful help without the details. Regards, Jeremy Henty -- Here's the secret that every successful software company is based on: You can domesticate programmers the way beekeepers tame bees. You can't exactly communicate with them, but you can get them to swarm in one place and when they're not looking, you can carry off the honey. -- Orson Scott Card, http://carolyn.org/osc.html From inodal@teleline.es Tue Feb 19 14:15:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp2.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 4FB4F18196 for ; Tue, 19 Feb 2002 14:15:45 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp2.mail.isp (Netscape Messaging Server 4.15 tsmtp2 Jul 26 2001 13:10:38) with ESMTP id GRSO6401.RUA for ; Tue, 19 Feb 2002 20:15:40 +0100 Message-ID: <3C72A469.8090807@teleline.es> Date: Tue, 19 Feb 2002 19:15:53 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: which child of my box is the one currently "activate"? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I've a class (written in C++) whith a GtkGLArea and several callbacks connected to button_press_event, button_release_event, etc... I call it GGLSurf. Now I want to use this class in another one to insert two GtkGLArea widgets in my Application. This new class is not a subclass of GGLSurf, it only has GGLSurf* as members of it. I've created an horizontal box and pack the to widgets in it. I also have several dialog windows to change values in the scene (lights, camera, fog, etc). The problem comes when I try to use the dialogs windows for both GtkGLAreas. _GGLSurfs is an array pointing to all my objects of the GGLSurf class, in this case just two: GGLSurf* _GGLSurfs[MAX_GGLSURFS]; guint _current_gglsurf; guint _num_gglsurfs; And all the elements in these windows are relative to _gglsurf, which is declared as: #define _gglsurf _GGLSurfs[_current_gglsurf] The problem is I don't know how to update "_current_gglsurf" since the callbacks for button_press_event, etc. are all in GGLSurf.hpp. How can I updat my "_current_gglsurf" from outside this class? Is there any way to ask, for example, which one of the childs inserted in the box is "activate"?? Thanks From seberino@dt092n42.san.rr.com Tue Feb 19 16:32:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 3106318DDD for ; Tue, 19 Feb 2002 16:32:35 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16dHsJ-0000CW-00 for gtk-list@gnome.org; Tue, 19 Feb 2002 13:32:35 -0800 Date: Tue, 19 Feb 2002 13:32:35 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: Linux->Win32 GTK+ porting question Message-ID: <20020219133235.A772@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes I know Cygwin rules and VMWare rules. Both would allow painless running of Linux GTK+ code on Windoze. I want to make an executable that ANYONE can run on Windoze without having to install anything like Cygwin or VMWARE. Has anyone taken the painful path of using the Win32 GTK+ libraries and getting even toy GTK+ code to generate a working .exe file?? I'm stuck on this and could use some help. I did the RTFM thing already but there are lots of gotchas and it would be really be nice to find someone who got this working successfully. Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From cooperdl@worldnet.att.net Tue Feb 19 22:46:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by mail.gnome.org (Postfix) with ESMTP id 9CE6D180E3 for ; Tue, 19 Feb 2002 22:46:45 -0500 (EST) Received: from athlon ([209.195.176.164]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020220034645.FBJE11818.mtiwmhc22.worldnet.att.net@athlon> for ; Wed, 20 Feb 2002 03:46:45 +0000 From: "David L. Cooper II" To: Subject: RE: Linux->Win32 GTK+ porting question Date: Tue, 19 Feb 2002 22:46:57 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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) In-Reply-To: <20020219133235.A772@spawar.navy.mil> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Chris, Yes, I've been down that road. I'm actually happy to say that I was able to take an application that I developed using Glade and recompile it to run natively on Windows. Check out: http://www.gimp.org/~tml/gimp/win32//new-downloads.html for more information on the libraries for windows. Regards, David -----Original Message----- From: gtk-list-admin@gnome.org [mailto:gtk-list-admin@gnome.org]On Behalf Of Chris Seberino Sent: Tuesday, February 19, 2002 4:33 PM To: gtk-list@gnome.org Subject: Linux->Win32 GTK+ porting question Yes I know Cygwin rules and VMWare rules. Both would allow painless running of Linux GTK+ code on Windoze. I want to make an executable that ANYONE can run on Windoze without having to install anything like Cygwin or VMWARE. Has anyone taken the painful path of using the Win32 GTK+ libraries and getting even toy GTK+ code to generate a working .exe file?? I'm stuck on this and could use some help. I did the RTFM thing already but there are lots of gotchas and it would be really be nice to find someone who got this working successfully. Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From blue_pion@hotmail.com Wed Feb 20 02:48:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f50.pav1.hotmail.com [64.4.31.50]) by mail.gnome.org (Postfix) with ESMTP id 7ECE9181E9 for ; Wed, 20 Feb 2002 02:48:54 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 19 Feb 2002 23:48:53 -0800 Received: from 137.132.3.9 by pv1fd.pav1.hotmail.msn.com with HTTP; Wed, 20 Feb 2002 07:48:52 GMT X-Originating-IP: [137.132.3.9] From: "Ricky Foo" To: gtk-list@gnome.org Subject: Gtk drawing Date: Wed, 20 Feb 2002 07:48:52 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 20 Feb 2002 07:48:53.0608 (UTC) FILETIME=[0AFBE680:01C1B9E3] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Question about gtk_drawing_area. I created this dialog window with 3 drawing areas inside. However, no matter how I tried, I couldn't get the graphics to appear. There is nothing wrong with my callback. I have already cross-checked it. Does GTK+ forbid multiple drawing areas within 1 window? Where could the problem be? Ricky _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From seberino@dt092n42.san.rr.com Wed Feb 20 03:50:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id B3452181CF for ; Wed, 20 Feb 2002 03:50:52 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16dSSn-0000c8-00; Wed, 20 Feb 2002 00:50:57 -0800 Date: Wed, 20 Feb 2002 00:50:57 -0800 From: Chris Seberino To: gtk-list@gnome.org Cc: pbd@Op.Net Subject: How access pixmap info like width&height? (1st arg of configure/expose callback nice...) Message-ID: <20020220005057.A2332@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Configure and Expose events will use a callback with the first argument being a widget that has nice info about pixmap to be redrawn like width, height, style & "window". How can I access this widget on my own??? Or, how can I get at this info for a pixmap some other way??? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pvosta@unionbio-eu.com Wed Feb 20 04:24:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 13A91183C4 for ; Wed, 20 Feb 2002 04:24:26 -0500 (EST) Received: (qmail 7136 invoked from network); 20 Feb 2002 09:20:46 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 20 Feb 2002 09:20:46 -0000 Message-ID: <3C736B0B.BF995AC1@unionbio-eu.com> Date: Wed, 20 Feb 2002 10:23:23 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: upgrading GTK1.2 to GTK2.0 and displaying images Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am currently running a RedHat 7.2 system with GTK1.2 installed. How do I upgrade from GTK1.2 to GTK2.0 without breaking the system ? I am using GNOME for my desktop and I do not want to crash the system by changing libraries the system might depend on. When compiling a GTK-based program I use "gtk-config --cflags --libs", I suppose I have to redirect the settings of gtk-config to the updated GTK2.0 if I want to use GTK2.0 instead of GTK1.2 ? I intend to use the GTK for "modernising" an imaging system, where do I find information/examples of how to "send" image data (bitmaps) to a GTK-window. Although the focus in my application is on automated image acquisition and analysis, I now and then wan to display an image on the screen. The focus of my work is to "extract" numerical data out of images, not displaying them or interactive work. For an example of what I intend to "modernise", you can have a look at my persoanl website: http://ourworld.compuserve.com/homepages/pvosta/cvwww.htm Best regards and lots of thanks in advance, Peter -------------------- Dr. Peter Van Osta Union Biometrica N.V./S.A. European Scientific Operations Cipalstraat 3 B-2440 Geel Belgium tel.: +32 (0)14 570 619 fax.: +32 (0)14 570 621 From sven@gimp.org Wed Feb 20 04:58:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 0D936181DA for ; Wed, 20 Feb 2002 04:58:41 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16dTWJ-00032V-00; Wed, 20 Feb 2002 10:58:39 +0100 To: pvosta@unionbio-eu.com Cc: GTK-list Subject: Re: upgrading GTK1.2 to GTK2.0 and displaying images References: <3C736B0B.BF995AC1@unionbio-eu.com> From: Sven Neumann Date: 20 Feb 2002 10:58:39 +0100 In-Reply-To: <3C736B0B.BF995AC1@unionbio-eu.com> Message-ID: Lines: 20 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Peter Van Osta writes: > I am currently running a RedHat 7.2 system with GTK1.2 installed. How do > I upgrade from GTK1.2 to GTK2.0 without breaking the system ? I am using > GNOME for my desktop and I do not want to crash the system by changing > libraries the system might depend on. no too old versions of gtk+-1.2 live peacefully with gtk+-2.0 on the same system or even in the same prefix. > When compiling a GTK-based program I use "gtk-config --cflags --libs", I > suppose I have to redirect the settings of gtk-config to the updated > GTK2.0 if I want to use GTK2.0 instead of GTK1.2 ? pkg-config --cflags --libs gtk+-2.0 Salut, Sven From John.Cupitt@ng-london.org.uk Wed Feb 20 06:25:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 9619918198 for ; Wed, 20 Feb 2002 06:25:34 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXL099>; Wed, 20 Feb 2002 11:25:33 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXL098; Wed, 20 Feb 2002 11:25:31 -0000 Message-ID: <3C73845B.40902@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: blue_pion@hotmail.com Cc: gtk-list@gnome.org Subject: Re: Gtk drawing Date: Wed, 20 Feb 2002 11:11:23 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ricky Foo wrote: > Question about gtk_drawing_area. I created this dialog window with 3 > drawing areas inside. However, no matter how I tried, I couldn't get the > graphics to appear. There is nothing wrong with my callback. I have > already cross-checked it. > > Does GTK+ forbid multiple drawing areas within 1 window? Where could the > problem be? No, this should be fine. I'm afraid there's probably a problem in your code somewhere. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From castor.fou@wanadoo.fr Wed Feb 20 06:30:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto2.wanadoo.fr (smtp-out-2.wanadoo.fr [193.252.19.254]) by mail.gnome.org (Postfix) with ESMTP id 2DCF21819F for ; Wed, 20 Feb 2002 06:30:56 -0500 (EST) Received: from mel-rta1.wanadoo.fr (193.252.19.150) by mel-rto2.wanadoo.fr; 20 Feb 2002 12:30:55 +0100 Received: from pentium (193.249.83.45) by mel-rta1.wanadoo.fr; 20 Feb 2002 12:30:43 +0100 Message-ID: <003501c1ba02$095a5360$2d53f9c1@pentium> From: "Castor Fou" To: Subject: [GTK help] Date: Wed, 20 Feb 2002 12:30:43 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0032_01C1BA0A.6A0730E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0032_01C1BA0A.6A0730E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi! How I can superpose two GtkText in the same window (in a notebook for = example)? In a background, a gtktext where you can't modify the text and = in the foreground, a gtktext where you can modify the text. Result, you = have the background and the foreground in the same window with the = superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------=_NextPart_000_0032_01C1BA0A.6A0730E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi!
How I can superpose two GtkText in the = same window=20 (in a notebook for example)? In a background, a gtktext where you can't = modify=20 the text and in the foreground, a gtktext where you can modify the text. = Result,=20 you have the background and the foreground in the same window with = the=20 superposed texts.
Thanks,
 
Excuse me for my 'english' but I don't = speak it=20 very well.
------=_NextPart_000_0032_01C1BA0A.6A0730E0-- From bruces@mail.petech.ac.za Wed Feb 20 06:36:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ed.petech.ac.za (smtpgate.petech.ac.za [196.21.192.4]) by mail.gnome.org (Postfix) with ESMTP id A6C2418853 for ; Wed, 20 Feb 2002 06:36:06 -0500 (EST) Received: from what (what.petech.ac.za [10.11.2.27]) by ed.petech.ac.za (8.9.3/8.8.7) with SMTP id NAA22670 for ; Wed, 20 Feb 2002 13:36:00 +0200 Message-ID: <00e701c1ba03$d00a78e0$1b020b0a@petech.ac.za> From: "Bruce A. Smith" To: References: <003501c1ba02$095a5360$2d53f9c1@pentium> Subject: Re: [GTK help] Date: Wed, 20 Feb 2002 13:43:27 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00E4_01C1BA14.9371B720" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_00E4_01C1BA14.9371B720 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Nope, can't be done. ----- Original Message -----=20 From: Castor Fou=20 To: gtk-list@gnome.org=20 Sent: Wednesday, February 20, 2002 1:30 PM Subject: [GTK help] Hi! How I can superpose two GtkText in the same window (in a notebook for = example)? In a background, a gtktext where you can't modify the text and = in the foreground, a gtktext where you can modify the text. Result, you = have the background and the foreground in the same window with the = superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------=_NextPart_000_00E4_01C1BA14.9371B720 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Nope, can't be done.
 
----- Original Message -----
From:=20 Castor=20 Fou
Sent: Wednesday, February 20, = 2002 1:30=20 PM
Subject: [GTK help]

Hi!
How I can superpose two GtkText in = the same=20 window (in a notebook for example)? In a background, a gtktext where = you can't=20 modify the text and in the foreground, a gtktext where you can modify = the=20 text. Result, you have the background and the foreground in the = same=20 window with the superposed texts.
Thanks,
 
Excuse me for my 'english' but I = don't speak it=20 very well.
------=_NextPart_000_00E4_01C1BA14.9371B720-- From inimss@yahoo.com Wed Feb 20 08:02:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ekm.asianetonline.net (unknown [202.88.231.2]) by mail.gnome.org (Postfix) with ESMTP id 2B5D11814F; Wed, 20 Feb 2002 08:02:02 -0500 (EST) Received: from dino ([202.88.224.172]) by ekm.asianetonline.net (Netscape Messaging Server 4.15) with SMTP id GRTZK100.I4I; Wed, 20 Feb 2002 07:19:13 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: [INIMSS] Problem with CList, may be a bug in GTK+. Date: Tue, 19 Feb 2002 06:10:13 +0530 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02021906101300.01257@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi In my application I had a CList with the selection mode set to Browse (Glade term, hope you will understand). When I tried to add a row using gtk_clist_append the application crashed (segmentation fault). Then I changed the selection mode to Single and the application worked fine. Why is this happening? Is it my fault or the fault of the GTK? Thanks Dino From inodal@teleline.es Wed Feb 20 08:23:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp7.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 8160E1814B for ; Wed, 20 Feb 2002 08:23:06 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp7.mail.isp (Netscape Messaging Server 4.15 tsmtp7 Jul 26 2001 13:10:38) with ESMTP id GRU2IH01.NKM for ; Wed, 20 Feb 2002 14:23:05 +0100 Message-ID: <3C73A33C.2020504@teleline.es> Date: Wed, 20 Feb 2002 13:23:08 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: g_strdup() Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm using the g_strdup() function provided by glib, which is suppose to duplicate a string, to update a file name string stored in a gchar* from a GtkEntry. In fact, it's a member of a my class, so I pass it in the constructor: ParameterFile::ParameterFile(GtkWidget* parent, gchar* param) { _file_name = param; _File_entry = 0; //It's created later _value_changed = 0; .... } I've connected the "activate" signal of the GtkEntry used show/enter the file name. In my callback I call a member function Update(): ParameterFile::Update() { gchar *ch; ch = g_strdup(gtk_entry_get_text(GTK_ENTRY(_File_entry))); _value_changed = (strcmp(_file_name, ch) != 0); if (_value_changed) { if (_file_name != 0) g_free(_file_name); _file_name = g_strdup(ch); } } If I call g_print("post-g_strdup %s\n",_filename); it shows me the correct value. If I call it in my main.cpp the value passed to the constructor, where the strign should be stored, points whereever it my be, but not where I want.. In my main.cpp, just testing, I use: gchar* _wrl_name = g_strdup("default.wrl"); ParameterFile* entry_param = new ParameterFile(parent, _wrl_name); [...] And a button that prints _wrl_name if clicked. What's going wrong? Can I pass _wrl_name to my constructor or do I have to pass gchar**? Thanks.. Someday I'll beat pointers... From John.Cupitt@ng-london.org.uk Wed Feb 20 09:21:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 4507A181A9 for ; Wed, 20 Feb 2002 09:21:39 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMA3G>; Wed, 20 Feb 2002 14:21:38 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMA3F; Wed, 20 Feb 2002 14:21:31 -0000 Message-ID: <3C73AD9B.9000500@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: inodal@teleline.es Cc: gtk-list@gnome.org Subject: Re: g_strdup() Date: Wed, 20 Feb 2002 14:07:23 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Ignacio, you need to be more careful about where you strdup, and you need to look at entry_param->_file_name, not at _wrl_name. The rule is that each instance of ParameterFile must own the pointer to the _file_name string. So: strdup() when you set _file_name, free when you unset, and absolutely NO free/strdup anywhere else. I have a couple of macros I use to make this safer: #define STRFREE( S ) \ { if( S ) { g_free( S ); (S) = 0; } } #define STRSET( S, V ) \ { STRFREE( S ); if( V ) { (S) = g_strdup( V ); } } so your functions become: > ParameterFile::ParameterFile(GtkWidget* parent, gchar* param) > { > > _file_name = 0; > STRSET( _file_name, param ); > _File_entry = 0; //It's created later > > _value_changed = 0; > .... > > } > ParameterFile::Update() > { > gchar *ch; > > ch = gtk_entry_get_text(GTK_ENTRY(_File_entry)); > > _value_changed = (strcmp(_file_name, ch) != 0); > > if (_value_changed) > STRSET( _file_name, ch ); > > } and in main.cpp: > gchar *_wrl_name = "default.wrl"; > ParameterFile* entry_param = new ParameterFile(parent, _wrl_name); You also need to make sure you have STRFREE( _file_name ) in your destructor for ParameterFile. Finally, in your button callback, don't print _wrl_name ... that will always be the start value. Instead, print entry_param->_file_name John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From Esteban.Quijano@artinsoft.com Wed Feb 20 10:29:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id 9188518AF8 for ; Wed, 20 Feb 2002 10:29:16 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id ; Wed, 20 Feb 2002 10:21:45 -0600 Message-ID: From: Esteban Quijano To: Castor Fou Cc: gtk-list@gnome.org Subject: RE: [GTK help] Date: Wed, 20 Feb 2002 09:23:04 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1BA22.7DEE2CE0" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C1BA22.7DEE2CE0 Content-Type: text/plain; charset="iso-8859-1" Let's see. As I understand you want a gtktext over a bigger gtktext, both in the same window, don't you? You can do that with a GtkFixed widget. You can position widgets at fixed coordinates, no matter if one widget is in front of another one. Esteban Quijano V. Artinsoft corp -----Original Message----- From: Castor Fou [mailto:castor.fou@wanadoo.fr] Sent: Wednesday, February 20, 2002 5:31 AM To: gtk-list@gnome.org Subject: [GTK help] Hi! How I can superpose two GtkText in the same window (in a notebook for example)? In a background, a gtktext where you can't modify the text and in the foreground, a gtktext where you can modify the text. Result, you have the background and the foreground in the same window with the superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------_=_NextPart_001_01C1BA22.7DEE2CE0 Content-Type: text/html; charset="iso-8859-1"
Let's see. As I understand you want a gtktext over a bigger gtktext, both in the same window, don't you?
You can do that with a GtkFixed widget. You can position widgets at fixed coordinates, no matter if one widget is in front of another one.
 
Esteban Quijano V.
Artinsoft corp
-----Original Message-----
From: Castor Fou [mailto:castor.fou@wanadoo.fr]
Sent: Wednesday, February 20, 2002 5:31 AM
To: gtk-list@gnome.org
Subject: [GTK help]

Hi!
How I can superpose two GtkText in the same window (in a notebook for example)? In a background, a gtktext where you can't modify the text and in the foreground, a gtktext where you can modify the text. Result, you have the background and the foreground in the same window with the superposed texts.
Thanks,
 
Excuse me for my 'english' but I don't speak it very well.
------_=_NextPart_001_01C1BA22.7DEE2CE0-- From jimmycllin@hotmail.com Wed Feb 20 11:39:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (oe64.law11.hotmail.com [64.4.16.199]) by mail.gnome.org (Postfix) with ESMTP id D89231814C for ; Wed, 20 Feb 2002 11:39:55 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 20 Feb 2002 08:39:55 -0800 X-Originating-IP: [61.10.172.12] From: "Jimmy Lin" To: Subject: When will GTK+2.0 be released? Date: Thu, 21 Feb 2002 00:41:35 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0061_01C1BA70.83EC4ED0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 20 Feb 2002 16:39:55.0176 (UTC) FILETIME=[39F55A80:01C1BA2D] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0061_01C1BA70.83EC4ED0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Hello, I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and GTK+2.0 = is incompatible. So should I learn GTK+2.0 is much better now? Please = give me some advices. Thanks!!! Jimmy ------=_NextPart_000_0061_01C1BA70.83EC4ED0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Hello,
 
I'm a new comer of GTK+, I noticed that the api = of GTK+1.2=20 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much=20 better now? Please give me some advices. = Thanks!!!
 
Jimmy
------=_NextPart_000_0061_01C1BA70.83EC4ED0-- From josebagar@euskalnet.net Wed Feb 20 16:45:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from eui3smtp.euskaltel.es (eui3smtp.euskaltel.es [212.55.8.58]) by mail.gnome.org (Postfix) with ESMTP id A8005181DD for ; Wed, 20 Feb 2002 16:45:36 -0500 (EST) Received: from localhost ([193.153.232.47]) by eui3smtp.euskaltel.es (Netscape Messaging Server 4.15) with ESMTP id GRUPRJ02.SEP for ; Wed, 20 Feb 2002 22:45:19 +0100 Content-Type: text/plain; charset="us-ascii" From: Joseba Garcia Etxebarria To: gtk-list@gnome.org Subject: gtk on win32 Date: Wed, 20 Feb 2002 22:44:47 +0100 X-Mailer: KMail [version 1.3.9] MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200202202244.47712.josebagar@euskalnet.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, maybe you have discussed this many times before, but the thing is that i = got a=20 project in linux that uses gtk that i want to port to windows (either MSV= C5=20 or cygwin) i'm quite newby to this kind of things, so i don't know where = to=20 start from. I've been to gimp.org/win32 but it seems quite confusing to m= e in=20 relation to porting my own applications to win32 (although it's a great p= age=20 for other purposes, like geting gimp :-) So, where should i start from? i think it would be of a great help if any= one=20 could send me a "standard" win32+gtk project with only the headers and=20 libraries linked to it, i don't thinks i physically need this headers and= =20 libraries emailed to me as i have already downloaded them from the gimp p= age. thanks a lot in advance, joseba PD: my code compiles cleanly in linux From castor.fou@wanadoo.fr Wed Feb 20 17:27:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto1.wanadoo.fr (smtp-out-1.wanadoo.fr [193.252.19.188]) by mail.gnome.org (Postfix) with ESMTP id 7B9871889A for ; Wed, 20 Feb 2002 17:27:00 -0500 (EST) Received: from mel-rta2.wanadoo.fr (193.252.19.152) by mel-rto1.wanadoo.fr; 20 Feb 2002 23:26:58 +0100 Received: from pentium (193.248.63.221) by mel-rta2.wanadoo.fr; 20 Feb 2002 23:26:48 +0100 Message-ID: <001d01c1ba5d$b0116760$dd3ff8c1@pentium> From: "Castor Fou" To: References: Subject: [GTK help] Date: Wed, 20 Feb 2002 23:25:20 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0014_01C1BA65.DD288CD0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0014_01C1BA65.DD288CD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks for the tips. But, my foreground must be diaphanously because the text on the = background must be visible. I think I'm not clear. I have a notebook. In the notebook, I add a GtKFixed with two GtkText = which coordonates must be the same. The first GtkText include, for = example, a head, the legs, the armes, the foot and two hands. The second = include the body. It is possible to see the body completely ? With a = second text's foreground diaphanously ? I hope that you understand me, Thanks, C@stor ------=_NextPart_000_0014_01C1BA65.DD288CD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Thanks for the tips.
But, my foreground must be diaphanously because the text on the background must be = visible. I think=20 I'm not clear.
I have a notebook. In the notebook, I = add a=20 GtKFixed with two GtkText which coordonates must be the same. = The=20 first GtkText include, for example, a head, the legs, the armes, the=20 foot and two hands. The second include the body. It is = possible to see=20 the body completely ? With a second text's foreground diaphanously=20 ?
I hope that you understand = me,
Thanks,
 
------=_NextPart_000_0014_01C1BA65.DD288CD0-- From cooperdl@worldnet.att.net Wed Feb 20 17:53:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by mail.gnome.org (Postfix) with ESMTP id 5ECFC18201 for ; Wed, 20 Feb 2002 17:53:25 -0500 (EST) Received: from athlon ([209.195.176.164]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020220225324.DMK5745.mtiwmhc22.worldnet.att.net@athlon>; Wed, 20 Feb 2002 22:53:24 +0000 From: "David L. Cooper II" To: "Joseba Garcia Etxebarria" , Subject: RE: gtk on win32 Date: Wed, 20 Feb 2002 17:53:39 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" 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) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <200202202244.47712.josebagar@euskalnet.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Check out: http://www.gimp.org/~tml/gimp/win32//new-downloads.html for more information on the libraries for windows. Regards, David -----Original Message----- From: gtk-list-admin@gnome.org [mailto:gtk-list-admin@gnome.org]On Behalf Of Joseba Garcia Etxebarria Sent: Wednesday, February 20, 2002 4:45 PM To: gtk-list@gnome.org Subject: gtk on win32 Hi, maybe you have discussed this many times before, but the thing is that i got a project in linux that uses gtk that i want to port to windows (either MSVC5 or cygwin) i'm quite newby to this kind of things, so i don't know where to start from. I've been to gimp.org/win32 but it seems quite confusing to me in relation to porting my own applications to win32 (although it's a great page for other purposes, like geting gimp :-) So, where should i start from? i think it would be of a great help if anyone could send me a "standard" win32+gtk project with only the headers and libraries linked to it, i don't thinks i physically need this headers and libraries emailed to me as i have already downloaded them from the gimp page. thanks a lot in advance, joseba PD: my code compiles cleanly in linux _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From cooperdl@worldnet.att.net Wed Feb 20 17:59:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by mail.gnome.org (Postfix) with ESMTP id 7677018201 for ; Wed, 20 Feb 2002 17:59:20 -0500 (EST) Received: from athlon ([209.195.176.164]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020220225920.DRU5745.mtiwmhc22.worldnet.att.net@athlon>; Wed, 20 Feb 2002 22:59:20 +0000 From: "David L. Cooper II" To: "Jimmy Lin" , Subject: RE: When will GTK+2.0 be released? Date: Wed, 20 Feb 2002 17:59:35 -0500 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0016_01C1BA38.5B047C00" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0016_01C1BA38.5B047C00 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit Check the mailing list archive at: http://mail.gnome.org/archives/gtk-devel-list/2002-February/thread.html David -----Original Message----- From: gtk-list-admin@gnome.org [mailto:gtk-list-admin@gnome.org]On Behalf Of Jimmy Lin Sent: Wednesday, February 20, 2002 11:42 AM To: gtk-list@gnome.org Subject: When will GTK+2.0 be released? Hello, I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much better now? Please give me some advices. Thanks!!! Jimmy ------=_NextPart_000_0016_01C1BA38.5B047C00 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Check=20 the mailing list archive at:
http://mail.gnome.org/archives/gtk-devel-list/2002-February/threa= d.html
 
David
-----Original Message-----
From: = gtk-list-admin@gnome.org=20 [mailto:gtk-list-admin@gnome.org]On Behalf Of Jimmy = Lin
Sent:=20 Wednesday, February 20, 2002 11:42 AM
To:=20 gtk-list@gnome.org
Subject: When will GTK+2.0 be=20 released?

Hello,
 
I'm a new comer of GTK+, I noticed that the = api of=20 GTK+1.2 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much = better now? Please give me some advices. = Thanks!!!
 
Jimmy
------=_NextPart_000_0016_01C1BA38.5B047C00-- From cpollock@vvm.com Wed Feb 20 18:25:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ns.vvm.com (ns.vvm.com [66.196.0.1]) by mail.gnome.org (Postfix) with ESMTP id C8E3618201 for ; Wed, 20 Feb 2002 18:25:24 -0500 (EST) Received: from there (ka02-66.vvm.com [66.196.2.66]) by ns.vvm.com (8.12.1/8.12.1) with SMTP id g1KNPNVh005874 for ; Wed, 20 Feb 2002 17:25:23 -0600 Message-Id: <200202202325.g1KNPNVh005874@ns.vvm.com> Content-Type: text/plain; charset="iso-8859-1" From: Chris Pollock Reply-To: cpollock@vvm.com To: gtk-list@gnome.org Subject: gtk config Date: Wed, 20 Feb 2002 17:30:07 -0600 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Linux newbie here. I'm trying to install a program named BookBase. During the installation I get 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: error: Cannot find GTK: Is gtk-config in path? As far as I know GTK was installed when I installed Mandrake. I'm running Mandrake 8.1 Any help for this lost newbie would be appreciated. Chris From rbultje@ronald.bitfreak.net Wed Feb 20 18:29:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id 0160D18201 for ; Wed, 20 Feb 2002 18:29:53 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1KNKH4K025870 for ; Thu, 21 Feb 2002 00:20:17 +0100 (CET) Subject: move-event From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 21 Feb 2002 00:29:51 +0100 Message-Id: <1014247791.20045.134.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, is there an event which is triggered by moving windows? expose_event only gets called on a full repaint, I basically need to do some work whenever the drawing area is being increased/decreased in size or is being moved, either relative to the parent window or relative to the desktop root window. I thought configure_event would be my lucky guess, but that doesn't seem to get triggered at all. I use Gtk-1.3.13. Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From Esteban.Quijano@artinsoft.com Wed Feb 20 19:48:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id D2D96186B0 for ; Wed, 20 Feb 2002 19:48:44 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id ; Wed, 20 Feb 2002 19:25:28 -0600 Message-ID: From: Esteban Quijano To: 'Ronald Bultje' Cc: "'gtk-list@gnome.org'" Subject: RE: move-event Date: Wed, 20 Feb 2002 18:28:02 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: gtk_signal_connect(GTK_OBJECT(window), "configure_event", GTK_SIGNAL_FUNC(msg_window_setposition), data); gbool msg_window_setposition(GtkWidget *widget, GdkEventConfigure *event, gpointer user_data) { /* Do whatever you want with event->x and event->y */ return TRUE; } The configure_event can also catch resizing. Esteban Quijano Vincenzi Artinsoft corp. -----Original Message----- From: Ronald Bultje [mailto:rbultje@ronald.bitfreak.net] Sent: Wednesday, February 20, 2002 5:30 PM To: gtk-list@gnome.org Subject: move-event Hi there, is there an event which is triggered by moving windows? expose_event only gets called on a full repaint, I basically need to do some work whenever the drawing area is being increased/decreased in size or is being moved, either relative to the parent window or relative to the desktop root window. I thought configure_event would be my lucky guess, but that doesn't seem to get triggered at all. I use Gtk-1.3.13. Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From rtriay@avantel.net Thu Feb 21 01:22:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h004.c003.snv.cp.net [209.228.32.218]) by mail.gnome.org (Postfix) with SMTP id 5623418D6F for ; Thu, 21 Feb 2002 01:22:02 -0500 (EST) Received: (cpmta 3237 invoked from network); 20 Feb 2002 22:21:57 -0800 Received: from 148.240.116.19 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.218) with SMTP; 20 Feb 2002 22:21:57 -0800 X-Sent: 21 Feb 2002 06:21:57 GMT Received: from triay.net [10.0.0.2] by Proxy+; Thu, 21 Feb 2002 00:20:31 -0600 for Subject: inheritance From: Ramon Alberto Triay Espinosa To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 00:27:44 -0500 Mime-Version: 1.0 Message-Id: <20020221062202.5623418D6F@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: simple question: does all the 'children' widgets inherit all the functions of the 'parent' widget? I mean, does all functions that apply to a widget, apply to their children too? thanx rtriay :) From hp@redhat.com Thu Feb 21 01:29:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id B019C18FA8 for ; Thu, 21 Feb 2002 01:29:07 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1L6T6v10508; Thu, 21 Feb 2002 01:29:06 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: move-event References: <1014247791.20045.134.camel@tux> From: Havoc Pennington Date: 21 Feb 2002 01:29:06 -0500 In-Reply-To: <1014247791.20045.134.camel@tux> Message-ID: Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > > is there an event which is triggered by moving windows? expose_event > only gets called on a full repaint, I basically need to do some work > whenever the drawing area is being increased/decreased in size or is > being moved, either relative to the parent window or relative to the > desktop root window. configure_event will come on a drawing area when it's moved relative to its parent, or resized. For relative to the root, you need configure_event on the toplevel GtkWindow. Havoc From rsteinke@w-link.net Thu Feb 21 01:43:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 3D3A8183B9 for ; Thu, 21 Feb 2002 01:43:20 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dmwj-00006J-00; Wed, 20 Feb 2002 22:43:13 -0800 Date: Wed, 20 Feb 2002 22:43:13 -0800 From: rsteinke@w-link.net To: rtriay@avantel.net, gtk-list@gnome.org Subject: Re: inheritance Message-ID: <3C749701.nailAA1IL9PT@w-link.net> References: <20020221062202.5623418D6F@mail.gnome.org> In-Reply-To: <20020221062202.5623418D6F@mail.gnome.org> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > From: Ramon Alberto Triay Espinosa > > simple question: > does all the 'children' widgets inherit all the functions of the > 'parent' widget? > I mean, does all functions that apply to a widget, apply to their > children too? > > thanx > rtriay > :) Yep. All you need to do is cast them using the appropriate macros (e.g., to use the gtk_widget_foo() function, cast your descended widget pointer to a GtkWidget* using the macro GTK_WIDGET()). Ron Steinke From jyothi@ncoretech.com Thu Feb 21 01:58:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id D248318282 for ; Thu, 21 Feb 2002 01:58:13 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g1L6w5U18028 for ; Thu, 21 Feb 2002 12:28:05 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g1L6w5p32074 for gtk-list@gnome.org.VIRCHECK; Thu, 21 Feb 2002 12:28:05 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g1L6w4U31985 for ; Thu, 21 Feb 2002 12:28:04 +0530 Message-ID: <3C749A68.FEB69057@ncoretech.com> Date: Thu, 21 Feb 2002 12:27:44 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How to center the text Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 21 12:28:04 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have drawn a rectangle using gdk_draw_rectangle. I am using gdk_draw_string to write a char into that rectangle. But every time I am manually centering the char inside the rectangle , I mean by adjusting x an y position of char. It is not accurately centered. Is there any function or way by which I can center the char inside a drawn rectangle. Thanks in Advance, Jyothi. From rtriay@avantel.net Thu Feb 21 01:59:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h000.c003.snv.cp.net [209.228.32.214]) by mail.gnome.org (Postfix) with SMTP id 9037C18D23 for ; Thu, 21 Feb 2002 01:59:13 -0500 (EST) Received: (cpmta 9949 invoked from network); 20 Feb 2002 22:59:09 -0800 Received: from 148.240.116.19 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.214) with SMTP; 20 Feb 2002 22:59:09 -0800 X-Sent: 21 Feb 2002 06:59:09 GMT Received: from triay.net [10.0.0.2] by Proxy+; Thu, 21 Feb 2002 00:53:05 -0600 for multiple recipients Subject: Re: inheritance From: Ramon Alberto Triay Espinosa To: rsteinke@w-link.net, gtk-list@gnome.org In-Reply-To: <3C749701.nailAA1IL9PT@w-link.net> References: <20020221062202.5623418D6F@mail.gnome.org> <3C749701.nailAA1IL9PT@w-link.net> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 01:00:17 -0500 Mime-Version: 1.0 Message-Id: <20020221065913.9037C18D23@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: El 20 Feb 2002 22:43:13 -0800, rsteinke@w-link.net escribió: > > From: Ramon Alberto Triay Espinosa > > > > simple question: > > does all the 'children' widgets inherit all the functions of the > > 'parent' widget? > > I mean, does all functions that apply to a widget, apply to their > > children too? > > > > thanx > > rtriay > > :) > > Yep. All you need to do is cast them using the appropriate macros > (e.g., to use the gtk_widget_foo() function, cast your descended widget > pointer to a GtkWidget* using the macro GTK_WIDGET()). > > Ron Steinke > THANX RON! that's all i needed to know SALUDOS!! rtriay :) From mano@pluto.linux.it Thu Feb 21 03:08:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailrelay1.inwind.it (mailrelay1.inwind.it [212.141.54.101]) by mail.gnome.org (Postfix) with ESMTP id 096E11811A for ; Thu, 21 Feb 2002 03:08:58 -0500 (EST) Received: from pluto.linux.it (62.98.86.101) by mailrelay1.inwind.it (5.5.053) id 3C727DC70010AC5C for gtk-list@gnome.org; Thu, 21 Feb 2002 09:08:56 +0100 Message-ID: <3C74A9C8.1090607@pluto.linux.it> Date: Thu, 21 Feb 2002 09:03:20 +0100 From: Germano Rizzo User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020208 X-Accept-Language: it, en, en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Gtk+2-style auto* scripts Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! just for sake of exploring, I've begun to develop a program in GTK+ 2.0. Now, I'd like to get it packaged properly, so I really need all the automake/autoconf stuff... in the other programs I made, it was easy to find another similar program, just... eeeh... "quote" ;) that kind of stuff from there, and then modify the scripts for my own purposes. The matter is, I don't know of any simple program that uses GTK2, for now. Could you address me, please? Or just advice me to a good documentation that can explain how to make myself such scripts, and/or which differences are there (if any) with the GTK-1.2-style ones? Thanks in advance, and compliments for the really good work you're doing with GTK2, Mano :) PS: I'd like something less complex than GIMP 1.3.x... -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Germano Rizzo - mano@pluto.linux.it ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Pluto FSUG member - www.pluto.linux.it Linux Registered User #120637 PGP/GPG Public Key at http://gnomermind.sf.net/pubkey.txt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ An rud is annamh is iontach ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From mano@pluto.linux.it Thu Feb 21 03:08:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailrelay1.inwind.it (mailrelay1.inwind.it [212.141.54.101]) by mail.gnome.org (Postfix) with ESMTP id C088C1811A for ; Thu, 21 Feb 2002 03:08:58 -0500 (EST) Received: from pluto.linux.it (62.98.86.101) by mailrelay1.inwind.it (5.5.053) id 3C727DC70010AC66 for gtk-list@gnome.org; Thu, 21 Feb 2002 09:08:58 +0100 Message-ID: <3C74AB03.4000900@pluto.linux.it> Date: Thu, 21 Feb 2002 09:08:35 +0100 From: Germano Rizzo User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020208 X-Accept-Language: it, en, en-us MIME-Version: 1.0 To: Mailing List GTK+ Subject: Saving the whole GTKTextBuffer state Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I think this question is really stupid, but... isn't there a way to get *all* the text displayed in a GtkTextBuffer? I mean, the text plus all the tags, attributes, pixmaps... just like a word processor would have? I'm using a textbuffer, and I'm going to implement a way to save it all; but I've a strong feeling of "reinventing the wheel", doing that... would it be simpler, more standard and more "portable" between different apps to implement such a facility? Thanks, Mano :) -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Germano Rizzo - mano@pluto.linux.it ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Pluto FSUG member - www.pluto.linux.it Linux Registered User #120637 PGP/GPG Public Key at http://gnomermind.sf.net/pubkey.txt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ An rud is annamh is iontach ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From seberino@dt092n42.san.rr.com Thu Feb 21 05:28:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F39A41811A for ; Thu, 21 Feb 2002 05:28:47 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16dqT7-00015o-00 for gtk-list@gnome.org; Thu, 21 Feb 2002 02:28:53 -0800 Date: Thu, 21 Feb 2002 02:28:53 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: ??? passing `gint (*)()' as argument 1 of `gtk_idle_add(gint (*)(void *), void *)' Message-ID: <20020221022853.A4177@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I want to add function with this interface to argument list of gtk_idle_add: gint drawPlots(); But when I do this: gtk_idle_add(drawPlots, NULL); I get this at compile time: passing `gint (*)()' as argument 1 of `gtk_idle_add(gint (*)(void *), void *)' Any ideas? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From rbultje@ronald.bitfreak.net Thu Feb 21 06:06:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id 1392E1811A for ; Thu, 21 Feb 2002 06:06:27 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1LAum4K029518; Thu, 21 Feb 2002 11:56:48 +0100 (CET) Subject: Re: ??? passing `gint (*)()' as argument 1 of `gtk_idle_add(gint (*)(void *), void *)' From: Ronald Bultje To: Christian Seberino Cc: gtk-list@gnome.org In-Reply-To: <20020221022853.A4177@spawar.navy.mil> References: <20020221022853.A4177@spawar.navy.mil> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 21 Feb 2002 12:06:25 +0100 Message-Id: <1014289585.20045.138.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, 2002-02-21 at 11:28, Christian Seberino wrote: > gint drawPlots(); [...] > gtk_idle_add(drawPlots, NULL); Make that "gint drawPlots(gpointer data)", where data is the pointer you give as second argument in the gtk_idle_add() function (in your case: NULL). Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From gbabusia@ulb.ac.be Thu Feb 21 07:14:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from guppy.vub.ac.be (guppy.vub.ac.be [134.184.129.2]) by mail.gnome.org (Postfix) with ESMTP id C2D481915D for ; Thu, 21 Feb 2002 07:14:25 -0500 (EST) Received: from mach.vub.ac.be (mach.vub.ac.be [134.184.129.3]) by guppy.vub.ac.be (8.9.1b+Sun/3.17.1.ap (guppy)) id NAA19631; Thu, 21 Feb 2002 13:13:38 +0100 (MET) for Received: from resu1.ulb.ac.be (resu1.ulb.ac.be [164.15.59.200]) by mach.vub.ac.be (8.9.3/3.13.3.ap (mach)) id NAA09269; Thu, 21 Feb 2002 13:14:23 +0100 (MET) for gtk-list@gnome.org Date: Thu, 21 Feb 2002 13:14:23 +0100 (MET) Message-Id: <200202211214.NAA09269@mach.vub.ac.be> From: Gregory Babusiaux To: gtk-list@gnome.org Subject: problems creating windows X-Mailer: Webmail ULB v2.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi i got a problem in an application i'm trying to develop. I've created a new window (the main window) with the command window=gtk_window_new(GTK_WINDOW_TOPLEVEL); by pressing on a button , i'd like to create a child window. So that in the callback function i 'd like to create the child window. But i don't know to create the child window window=gtk_window_new(GTK_WINDOW_CHILDLEVEL) doesn't work!! Can anyone help me??? thanks a lot for reading greg, brussels, belgium From flavio@maqplas.com.br Thu Feb 21 09:49:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id E3F70185A4 for ; Thu, 21 Feb 2002 09:49:38 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1LEnWC5042195; Thu, 21 Feb 2002 11:49:33 -0300 (BRT) Subject: Re: problems creating windows From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Gregory Babusiaux Cc: gtk-list@gnome.org In-Reply-To: <200202211214.NAA09269@mach.vub.ac.be> References: <200202211214.NAA09269@mach.vub.ac.be> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 21 Feb 2002 11:51:28 -0300 Message-Id: <1014303090.1147.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: You should use GTK_WINDOW_TOPLEVEL, GTK_WINDOW_POPUP or GTK_WINDOW_DIALOG Success Flavio Alberto > > window=gtk_window_new(GTK_WINDOW_TOPLEVEL); > > by pressing on a button , i'd like to create a child window. So that in the callback function i 'd like to create the child window. But i don't know to create the child window > > window=gtk_window_new(GTK_WINDOW_CHILDLEVEL) doesn't work!! > From bugcreator@gmx.de Thu Feb 21 10:26:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id 640801845A for ; Thu, 21 Feb 2002 10:26:09 -0500 (EST) Received: (qmail 25109 invoked by uid 0); 21 Feb 2002 15:26:07 -0000 Received: from dialin-145-254-090-159.arcor-ip.net (HELO there) (145.254.90.159) by mail.gmx.net (mp001-rz3) with SMTP; 21 Feb 2002 15:26:07 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Dominic =?iso-8859-1?q?Sacr=E9?= To: gtk-list@gnome.org Subject: Creating a font based on the GTK default font Date: Thu, 21 Feb 2002 16:25:02 +0100 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020221152609.640801845A@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm looking for a way to get the GTK default font - i.e. the font which is normally used for all GTK widgets - and to create a new font based on that. For example, I want to use the same font for a widget, but bold and/or italic, or the same font at a different size. How can I do that? I guess I need to get the font's desciption (how?!), and then modify that string somehow, but maybe there's a better and easier way? Thanks in advance, Dominic From pbd@op.net Thu Feb 21 11:30:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 573EB1921C for ; Thu, 21 Feb 2002 11:30:14 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-502.phlpa.fast.net [209.92.97.248]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA01280; Thu, 21 Feb 2002 11:30:09 -0500 (EST) Message-Id: <200202211630.LAA01280@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How access pixmap info like width&height? (1st arg of configure/expose callback nice...) In-reply-to: Your message of "Wed, 20 Feb 2002 00:50:57 PST." <20020220005057.A2332@spawar.navy.mil> Date: Thu, 21 Feb 2002 06:29:44 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Configure and Expose events will use a callback with >the first argument being a widget that has nice >info about pixmap to be redrawn like width, height, >style & "window". > >How can I access this widget on my own??? >Or, how can I get at this >info for a pixmap some other way??? its the widget that *is* the pixmap. that is, if you did: GtkWidget *pixmap = gtk_pixmap_new (...); and then connected to configure_event and expose_event on that pixmap, the widget passed as the first argument is precisely that widget. you can use it yourself anywhere else, except that its allocation (width, height), style and window may not be set until certain events have occured. --p From leidola@newcon.de Thu Feb 21 11:32:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 746B318B47 for ; Thu, 21 Feb 2002 11:32:52 -0500 (EST) Received: from [213.70.108.86] ([213.70.108.86]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id RAA03664; Thu, 21 Feb 2002 17:32:55 +0100 Subject: Re: Gtk+2-style auto* scripts From: Olaf Leidinger To: Germano Rizzo , GTK Mailing List In-Reply-To: <3C74A9C8.1090607@pluto.linux.it> References: <3C74A9C8.1090607@pluto.linux.it> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 21 Feb 2002 17:35:48 +0100 Message-Id: <1014309355.1319.4.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 21 Feb 2002 09:03:20 +0100 schrieb Germano Rizzo: > Hi! > just for sake of exploring, I've begun to develop a program in GTK+ 2.0. > Now, I'd like to get it packaged properly, so I really need all the > automake/autoconf stuff... in the other programs I made, it was easy to > find another similar program, just... eeeh... "quote" ;) that kind of > stuff from there, and then modify the scripts for my own purposes. The > matter is, I don't know of any simple program that uses GTK2, for now. > Could you address me, please? Or just advice me to a good documentation > that can explain how to make myself such scripts, and/or which > differences are there (if any) with the GTK-1.2-style ones? > Thanks in advance, and compliments for the really good work you're doing > with GTK2, > Mano :) > > PS: I'd like something less complex than GIMP 1.3.x... > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Germano Rizzo - mano@pluto.linux.it > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Pluto FSUG member - www.pluto.linux.it > Linux Registered User #120637 > PGP/GPG Public Key at > http://gnomermind.sf.net/pubkey.txt > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > An rud is annamh is iontach > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hi! Try http://developer.gnome.org/dotplan/porting Ciao, Olaf From hp@redhat.com Thu Feb 21 12:29:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 4ABC118AC5 for ; Thu, 21 Feb 2002 12:29:17 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LHTF110866; Thu, 21 Feb 2002 12:29:15 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Dominic =?iso-8859-1?q?Sacr=E9?= Cc: gtk-list@gnome.org Subject: Re: Creating a font based on the GTK default font References: <20020221152609.640801845A@mail.gnome.org> From: Havoc Pennington Date: 21 Feb 2002 12:29:15 -0500 In-Reply-To: <20020221152609.640801845A@mail.gnome.org> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dominic Sacr=E9 writes: >=20 > I'm looking for a way to get the GTK default font - i.e. the font which i= s=20 > normally used for all GTK widgets - and to create a new font based on=20 > that. For example, I want to use the same font for a widget, but bold=20 > and/or italic, or the same font at a different size. How can I do that? > In GTK 1.2 it's a huge nightmare, but the "eel" library has example code. In GTK 2 you'd usually just gtk_widget_modify_font() using a font desc that only has the attribute you want to change set; e.g. just set the weight, but don't set the font family or anything. In GTK 2 you can also use markup labels (see docs on gtk_label_set_markup()= ). =20 Havoc From jeff@nmt.edu Thu Feb 21 12:59:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id E9EC918B7E for ; Thu, 21 Feb 2002 12:59:25 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LHxPL0016590 for ; Thu, 21 Feb 2002 10:59:25 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LHxPl6001456 for ; Thu, 21 Feb 2002 10:59:25 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 10:59:25 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: gtk-list@gnome.org Subject: Interesting suid problem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a situation where I am using GTK as a frontend for a databse we have. Everything is fine except for the fact that I want to keep the database password secure. I do not want to store it in the program for obvious reasons so I thought I would save it in an external file and have the program read it on startup. The only decent way that I know of to do this have a special user which can read the file and have the program setuid to run as that user. However, gtk doesn't like being run setuid. I looked at the setuid page because it says: "You must create a helper program instead. For further details, see: http://www.gtk.org/setuid.html" However, the only mention on this page of a helper program would require me to practically rewrite my entire application which is unacceptable. The only information my application receives is from the database and the password file. I don't like setuid applications as much as the next person, but I need to be able to secure the password file while being able to use and write this application in a feasible manner. If anyone else has a suggestion for solving my problem, please let me know (as long as it's not rediculous like the solution on the suid page. Otherwise, is there a way to work around this warning? Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff From castor.fou@wanadoo.fr Thu Feb 21 13:10:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto3.wanadoo.fr (smtp-out-3.wanadoo.fr [193.252.19.233]) by mail.gnome.org (Postfix) with ESMTP id CEBB818176 for ; Thu, 21 Feb 2002 13:10:54 -0500 (EST) Received: from mel-rta2.wanadoo.fr (193.252.19.152) by mel-rto3.wanadoo.fr; 21 Feb 2002 19:10:52 +0100 Received: from pentium (193.250.221.32) by mel-rta2.wanadoo.fr; 21 Feb 2002 19:10:40 +0100 Message-ID: <001401c1bb03$11f61340$20ddfac1@pentium> From: "Castor Fou" To: Subject: GTK Background Date: Thu, 21 Feb 2002 19:10:28 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000B_01C1BB0B.6CBE9BF0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C1BB0B.6CBE9BF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, For my application, I need a transparent background for a GtkText (not a = white background). It is possible? And how can I do this if it is = possible ? ------=_NextPart_000_000B_01C1BB0B.6CBE9BF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
For my application, I need a = transparent background=20 for a GtkText (not a white background). It is possible? And how can I do = this if=20 it is possible ?
------=_NextPart_000_000B_01C1BB0B.6CBE9BF0-- From sven@gimp.org Thu Feb 21 13:11:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9587785.dip.t-dialin.net [217.88.119.133]) by mail.gnome.org (Postfix) with ESMTP id 9D21A18786 for ; Thu, 21 Feb 2002 13:11:27 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16dxga-0000Jx-00; Thu, 21 Feb 2002 19:11:16 +0100 To: Jeff Shipman - SysProg Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem References: From: Sven Neumann Date: 21 Feb 2002 19:11:16 +0100 In-Reply-To: Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Jeff Shipman - SysProg writes: > I have a situation where I am using GTK as > a frontend for a databse we have. Everything > is fine except for the fact that I want to > keep the database password secure. I do > not want to store it in the program for > obvious reasons so I thought I would save > it in an external file and have the program > read it on startup. The only decent way that > I know of to do this have a special user > which can read the file and have the program > setuid to run as that user. However, gtk > doesn't like being run setuid. If you make your GTK+ app run setuid you can as well make the passwd file readable by everyone. How about making the file readable by members of a special group and add authorized users to that group ? Salut, Sven From jeff@nmt.edu Thu Feb 21 13:14:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id 3E100180FF for ; Thu, 21 Feb 2002 13:14:54 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LIEqL0023912; Thu, 21 Feb 2002 11:14:52 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LIEpSG001529; Thu, 21 Feb 2002 11:14:52 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 11:14:51 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: Sven Neumann Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Because we have 1500+ users which are added every semester and EVERYONE needs to be able to read it. There are three different levels of access which are determined upon startup by which group you are in (nothing special, worker, or manager). The access is software enforced and what we want is to make it so normal users cannot read the password file. If they could, they'd be able to just login to the DB and issue commands, viewing information about other users which they should not be able to view. Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff On 21 Feb 2002, Sven Neumann wrote: } Hi, } } Jeff Shipman - SysProg writes: } } > I have a situation where I am using GTK as } > a frontend for a databse we have. Everything } > is fine except for the fact that I want to } > keep the database password secure. I do } > not want to store it in the program for } > obvious reasons so I thought I would save } > it in an external file and have the program } > read it on startup. The only decent way that } > I know of to do this have a special user } > which can read the file and have the program } > setuid to run as that user. However, gtk } > doesn't like being run setuid. } } If you make your GTK+ app run setuid you can as well make the passwd } file readable by everyone. How about making the file readable by } members of a special group and add authorized users to that group ? } } } Salut, Sven } From rsteinke@w-link.net Thu Feb 21 13:23:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id C6636180FF for ; Thu, 21 Feb 2002 13:23:40 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dxsZ-00066F-00; Thu, 21 Feb 2002 10:23:39 -0800 Date: Thu, 21 Feb 2002 10:23:39 -0800 From: rsteinke@w-link.net To: jeff@nmt.edu, sven@gimp.org Subject: Re: Interesting suid problem Cc: gtk-list@gnome.org Message-ID: <3C753B2B.nailI311WSZ5F@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Jeff Shipman - SysProg > > Because we have 1500+ users which are added > every semester and EVERYONE needs to be able > to read it. There are three different levels > of access which are determined upon startup > by which group you are in (nothing special, > worker, or manager). The access is software > enforced and what we want is to make it so > normal users cannot read the password file. > If they could, they'd be able to just login > to the DB and issue commands, viewing information > about other users which they should not > be able to view. > > Jeff Shipman E-Mail: jeff@nmt.edu > Systems Programmer Phone: (505) 835-5748 > NMIMT Computer Center http://www.nmt.edu/~jeff Can't you make the database itself able to enforce user access to certain databases? I think Postgresql can do this. > On 21 Feb 2002, Sven Neumann wrote: > > } Hi, > } > } Jeff Shipman - SysProg writes: > } > } > I have a situation where I am using GTK as > } > a frontend for a databse we have. Everything > } > is fine except for the fact that I want to > } > keep the database password secure. I do > } > not want to store it in the program for > } > obvious reasons so I thought I would save > } > it in an external file and have the program > } > read it on startup. The only decent way that > } > I know of to do this have a special user > } > which can read the file and have the program > } > setuid to run as that user. However, gtk > } > doesn't like being run setuid. > } > } If you make your GTK+ app run setuid you can as well make the passwd > } file readable by everyone. How about making the file readable by > } members of a special group and add authorized users to that group ? > } > } > } Salut, Sven > } From jeff@nmt.edu Thu Feb 21 13:25:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id C200E18D62 for ; Thu, 21 Feb 2002 13:25:54 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LIPrL0027062; Thu, 21 Feb 2002 11:25:53 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LIPrnw001588; Thu, 21 Feb 2002 11:25:53 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 11:25:53 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: rsteinke@w-link.net Cc: sven@gimp.org, Subject: Re: Interesting suid problem In-Reply-To: <3C753B2B.nailI311WSZ5F@w-link.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm using Oracle and some columns of some tables should be viewable to some users while other columns of the same table are viewable. I would have to write out a billion different queries, different ones for each access level to do this. Kinda infeasible, IMO espcially since our queries may change often depending on new features we add to the software. Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: } } Can't you make the database itself able to enforce user access } to certain databases? I think Postgresql can do this. From rsteinke@w-link.net Thu Feb 21 13:33:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id D300418338 for ; Thu, 21 Feb 2002 13:33:49 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dy2O-00067Q-00; Thu, 21 Feb 2002 10:33:48 -0800 Date: Thu, 21 Feb 2002 10:33:48 -0800 From: rsteinke@w-link.net To: jeff@nmt.edu Subject: Re: Interesting suid problem Cc: sven@gimp.org, gtk-list@gnome.org Message-ID: <3C753D8C.nailI551BDQ9C@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Jeff Shipman - SysProg > > I'm using Oracle and some columns of some > tables should be viewable to some users while > other columns of the same table are viewable. > I would have to write out a billion different > queries, different ones for each access > level to do this. Kinda infeasible, IMO espcially > since our queries may change often depending > on new features we add to the software. > > Jeff Shipman E-Mail: jeff@nmt.edu > Systems Programmer Phone: (505) 835-5748 > NMIMT Computer Center http://www.nmt.edu/~jeff > > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: > } > } Can't you make the database itself able to enforce user access > } to certain databases? I think Postgresql can do this. That's what shell scripts are for. Ron Steinke From jeff@nmt.edu Thu Feb 21 13:34:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id 13E56190D9 for ; Thu, 21 Feb 2002 13:34:58 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LIYvL0029268; Thu, 21 Feb 2002 11:34:57 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LIYumE001636; Thu, 21 Feb 2002 11:34:57 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 11:34:56 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: rsteinke@w-link.net Cc: sven@gimp.org, Subject: Re: Interesting suid problem In-Reply-To: <3C753D8C.nailI551BDQ9C@w-link.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Care to elaborate? Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: } From: Jeff Shipman - SysProg } > } > I'm using Oracle and some columns of some } > tables should be viewable to some users while } > other columns of the same table are viewable. } > I would have to write out a billion different } > queries, different ones for each access } > level to do this. Kinda infeasible, IMO espcially } > since our queries may change often depending } > on new features we add to the software. } > } > Jeff Shipman E-Mail: jeff@nmt.edu } > Systems Programmer Phone: (505) 835-5748 } > NMIMT Computer Center http://www.nmt.edu/~jeff } > } > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: } > } } > } Can't you make the database itself able to enforce user access } > } to certain databases? I think Postgresql can do this. } } That's what shell scripts are for. } } Ron Steinke } From rsteinke@w-link.net Thu Feb 21 13:45:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 3BF6018A93 for ; Thu, 21 Feb 2002 13:45:43 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dyDu-00069g-00; Thu, 21 Feb 2002 10:45:42 -0800 Date: Thu, 21 Feb 2002 10:45:41 -0800 From: rsteinke@w-link.net To: jeff@nmt.edu Subject: Re: Interesting suid problem Cc: sven@gimp.org, gtk-list@gnome.org Message-ID: <3C754055.nailI7M1HNNAG@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Jeff Shipman - SysProg > > Care to elaborate? > > Jeff Shipman E-Mail: jeff@nmt.edu > Systems Programmer Phone: (505) 835-5748 > NMIMT Computer Center http://www.nmt.edu/~jeff > > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: > > } From: Jeff Shipman - SysProg > } > > } > I'm using Oracle and some columns of some > } > tables should be viewable to some users while > } > other columns of the same table are viewable. > } > I would have to write out a billion different > } > queries, different ones for each access > } > level to do this. Kinda infeasible, IMO espcially > } > since our queries may change often depending > } > on new features we add to the software. > } > > } > Jeff Shipman E-Mail: jeff@nmt.edu > } > Systems Programmer Phone: (505) 835-5748 > } > NMIMT Computer Center http://www.nmt.edu/~jeff > } > > } > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: > } > } > } > } Can't you make the database itself able to enforce user access > } > } to certain databases? I think Postgresql can do this. > } > } That's what shell scripts are for. > } > } Ron Steinke > } I'm assuming oracle has some command line interface/way to send batch commands or something. Write a shell script for each set of permissions (I'm assuming that, while you have many, many users, there are only about three or four access levels) that is passed a user name and writes to stdout the sql commands necessary to create that user with the appropriate permissions. Then, write a shell script that loop through the list of users you've been given, calls the appropriate permission-generating shell script, and pipes the output to oracle. This will require maintainance of the shell scripts as you update your database version/requirements, but not more so than you would need ysing any other means of enforcing this. You can also write little update scripts to change the permissions of users from one level to another in mid-stream, if that's necessary. This method is also probably more secure than having a separate password file, as it reduces the possible number of points of failure. All pretty standard sysadmin stuff. Ron Steinke From hp@redhat.com Thu Feb 21 14:33:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 5DB3718A7E for ; Thu, 21 Feb 2002 14:33:37 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LJXZ710894; Thu, 21 Feb 2002 14:33:35 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Jeff Shipman - SysProg Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem References: From: Havoc Pennington Date: 21 Feb 2002 14:33:35 -0500 In-Reply-To: Message-ID: Lines: 56 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jeff Shipman - SysProg writes: > I have a situation where I am using GTK as > a frontend for a databse we have. Everything > is fine except for the fact that I want to > keep the database password secure. I do > not want to store it in the program for > obvious reasons so I thought I would save > it in an external file and have the program > read it on startup. The only decent way that > I know of to do this have a special user > which can read the file and have the program > setuid to run as that user. However, gtk > doesn't like being run setuid. I don't see why the helper program would be that hard - especially with GTK 2 and the g_spawn_* family of functions. You have a small helper app, it spits the database password to a pipe, your app reads the password from the pipe. Should be maybe 500 lines of code. It's a good thing GTK doesn't let you do what you want, because the result would be a giant security hole. The limitation here is not imposed by GTK; it's imposed by security concerns. If you don't care about security, then chmod 666 your file. If you do care about security, you can't make a GUI application setuid. End of story. There is nothing GTK can do about it - other than have the safety check to keep you from doing the wrong thing. > However, the only mention on this page of > a helper program would require me to practically > rewrite my entire application which is > unacceptable. Well, the fact that you don't have time to fix a bug, doesn't mean that the bug goes away. You either have to fix the app, or have it be a giant security hole. There isn't a magic solution. > Otherwise, is there a way to work around this warning? Sure, you can hack your local copy of GTK to contain a giant security hole... it's a trivial patch to gtkmain.c. But it's easier (and equivalent from a security standpoint) to chmod 666 the files you want to access. The warning is amazingly enough there for a reason. ;-) The warning is a symptom, not the underlying problem. The underlying problem is the security hole inherent in the application's design. Removing the warning about the security hole doesn't mean the security hole is now gone... Havoc From bl_nero@o2.pl Thu Feb 21 16:03:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rekin.go2.pl (rekin4.go2.pl [212.126.20.8]) by mail.gnome.org (Postfix) with ESMTP id 0A862180F4 for ; Thu, 21 Feb 2002 16:03:25 -0500 (EST) Received: from s (pb75.piotrkow.cvx.ppp.tpnet.pl [213.77.225.75]) by rekin.go2.pl (Mailer_v2.01) with SMTP id 78C786EE9F for ; Thu, 21 Feb 2002 22:03:01 +0100 (CET) Message-ID: <000701c1bb1b$255c4680$4be14dd5@s> From: "Bartosz \"Neron\" Leper" To: "GTK-list" Subject: GTK and non-monospace fonts Date: Thu, 21 Feb 2002 19:25:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello there, I'm new here and I'm from Poland, so I'm sorry for my weak English. But I'll try to explain what's on my mind. I'm using Mandrake Linux and I've experienced some problems with displaying GTK widgets: all applications I have that are written using GTK are calculating word length incorrectly, which causes labels unreadable in some cases. It happens when I use non-monospace fonts (in Poland we say: proportional fonts). Nearly each word is displayed correctly, but every space between words is somehow "strange": sometimes it's normal, somtimes it's illogically wide (when the word consists of narrow letters, like 'iiii', and sometimes even "space" means "backspace" (when the word consists of many wide letters, like 'WWWWW'). I think it's because GTK (or GDK?) counts word width as if it was written in monospace font (like Courier)! Simmilar thing happens in edit boxes (sorry for that Win32 terminology), and it's even worse: when I try to put caret into box using mouse, I click between two letters, but the actual point of inserting text appears to be somewhere else - it's also sounted using monospace font width! I am running GTK version 1.2.8-6mdk, but I don't know if it really matters, because nearly all applications I have are pre-compiled. Please help me, because it's really annoying! I don't know if I refer to appropriate mailing list; if you know some other places to find some info, please mail me. Thanks in anvance, Nero -- ------====[Bartosz "Neron" Leper]====------ mailto:bl_nero@o2.pl | IRC: #warsztat www.nerosite.prv.pl | www.programex.prv.pl ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From v.j.arkesteijn@utwente.nl Thu Feb 21 16:28:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ken (inbel240061.inbel.utwente.nl [130.89.240.61]) by mail.gnome.org (Postfix) with ESMTP id 0AFD3191E6 for ; Thu, 21 Feb 2002 16:28:08 -0500 (EST) Received: by ken (Postfix, from userid 1000) id CD45F19E5; Thu, 21 Feb 2002 22:30:55 +0100 (CET) Date: Thu, 21 Feb 2002 22:30:54 +0100 From: Vincent Arkesteijn To: gtk-list@gnome.org Subject: Re: Interesting suid problem Message-ID: <20020221223053.A6053@ken> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jeff@nmt.edu on Thu, Feb 21, 2002 at 10:59:25AM -0700 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, On Thu, Feb 21, 2002 at 10:59:25AM -0700, Jeff Shipman - SysProg wrote: > Everything > is fine except for the fact that I want to > keep the database password secure. I do > not want to store it in the program for > obvious reasons Why? Just put the password in the program, and give your users execute permission, but no read permission on the program. It may not be too elegant, and it's a bit clumsy when you want to change the password, but it's the simplest solution. Regards, Vincent. From Valdis.Kletnieks@vt.edu Thu Feb 21 16:39:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id CEE2F18DC8 for ; Thu, 21 Feb 2002 16:39:48 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1LLdlVj032087; Thu, 21 Feb 2002 16:39:47 -0500 Message-Id: <200202212139.g1LLdlVj032087@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Vincent Arkesteijn Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem In-Reply-To: Your message of "Thu, 21 Feb 2002 22:30:54 +0100." <20020221223053.A6053@ken> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ <20020221223053.A6053@ken> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1644264643P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 21 Feb 2002 16:39:47 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_1644264643P Content-Type: text/plain; charset=us-ascii On Thu, 21 Feb 2002 22:30:54 +0100, Vincent Arkesteijn said: > Why? Just put the password in the program, and give your users > execute permission, but no read permission on the program. It > may not be too elegant, and it's a bit clumsy when you want to > change the password, but it's the simplest solution. Still vulnerable to attack via gdb/dbx or ptrace(), but that's a question of whether your threat model includes somebody both that determined and skilled... -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_1644264643P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8dWkjcC3lWbTT17ARAiqDAJ9wv8Ksi6m/yuvMqGMJYz+ME2z0pgCfYJ+N IJO+WswuWgKZbxpDb1WIXJo= =qAM+ -----END PGP SIGNATURE----- --==_Exmh_1644264643P-- From hp@redhat.com Thu Feb 21 16:53:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 6DF1A182AF for ; Thu, 21 Feb 2002 16:53:23 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LLrGh10939; Thu, 21 Feb 2002 16:53:16 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Bartosz \"Neron\" Leper" Cc: "GTK-list" Subject: Re: GTK and non-monospace fonts References: <000701c1bb1b$255c4680$4be14dd5@s> From: Havoc Pennington Date: 21 Feb 2002 16:53:16 -0500 In-Reply-To: <000701c1bb1b$255c4680$4be14dd5@s> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Bartosz \"Neron\" Leper" writes: > I'm using Mandrake Linux and I've experienced some problems with displaying > GTK widgets: all applications I have that are written using GTK are > calculating word length incorrectly, which causes labels unreadable in some > cases. This doesn't happen for most people; it's probably a bug in some specific aspect of your setup - either the old GTK version, the X server, the font you're using, or the like. Havoc From bugcreator@gmx.de Thu Feb 21 16:57:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id 186C419275 for ; Thu, 21 Feb 2002 16:57:46 -0500 (EST) Received: (qmail 25147 invoked by uid 0); 21 Feb 2002 21:57:44 -0000 Received: from a1f63.pppool.de (HELO there) (213.6.31.99) by mail.gmx.net (mp009-rz3) with SMTP; 21 Feb 2002 21:57:44 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Dominic =?iso-8859-1?q?Sacr=E9?= To: Havoc Pennington Subject: Re: Creating a font based on the GTK default font Date: Thu, 21 Feb 2002 22:56:08 +0100 X-Mailer: KMail [version 1.3.1] References: <20020221152609.640801845A@mail.gnome.org> In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: gtk-list@gnome.org Message-Id: <20020221215746.186C419275@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thursday 21 February 2002 18:29, Havoc Pennington wrote: > Dominic Sacré writes: > > I'm looking for a way to get the GTK default font - i.e. the font > > which is normally used for all GTK widgets - and to create a new font > > based on that. For example, I want to use the same font for a widget, > > but bold and/or italic, or the same font at a different size. How can > > I do that? > > In GTK 1.2 it's a huge nightmare, but the "eel" library has example > code. Hmm, a nightmare, indeed... But is there no reasonable way to get at least the name (logical font description) of the default font? > In GTK 2 you'd usually just gtk_widget_modify_font() using a font desc > that only has the attribute you want to change set; e.g. just set the > weight, but don't set the font family or anything. > > In GTK 2 you can also use markup labels (see docs on > gtk_label_set_markup()). Sounds great... I should really consider porting my code to GTK2 soon... Thanks, Dominic From seberino@dt092n42.san.rr.com Thu Feb 21 16:58:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 877211927C for ; Thu, 21 Feb 2002 16:58:16 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16e1EE-000081-00; Thu, 21 Feb 2002 13:58:14 -0800 Date: Thu, 21 Feb 2002 13:58:14 -0800 From: Christian Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: How access pixmap info like width&height? (1st arg of configure/expose callback nice...) Message-ID: <20020221135814.A457@spawar.navy.mil> References: <20020220005057.A2332@spawar.navy.mil> <200202211630.LAA01280@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202211630.LAA01280@renoir.op.net>; from pbd@op.net on Thu, Feb 21, 2002 at 06:29:44AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I did some experimentation and printed out the "drawingarea" pointer that pixmap rests on. This first argument turned out to be the same address as the drawingarea rather than the pixmap. I wrote some code that assumed this was true and it worked. Are you sure pixmap is the first arg? Maybe it is in some situations but not others? Chris On Thu, Feb 21, 2002 at 06:29:44AM -0500, Paul Davis wrote: > >Configure and Expose events will use a callback with > >the first argument being a widget that has nice > >info about pixmap to be redrawn like width, height, > >style & "window". > > > >How can I access this widget on my own??? > >Or, how can I get at this > >info for a pixmap some other way??? > > its the widget that *is* the pixmap. that is, if you did: > > GtkWidget *pixmap = gtk_pixmap_new (...); > > and then connected to configure_event and expose_event on that pixmap, > the widget passed as the first argument is precisely that widget. > > you can use it yourself anywhere else, except that its allocation > (width, height), style and window may not be set until certain events > have occured. > > --p -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From hp@redhat.com Thu Feb 21 17:17:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id B7595180E8 for ; Thu, 21 Feb 2002 17:17:45 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LMHiC26415; Thu, 21 Feb 2002 17:17:44 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Dominic =?iso-8859-1?q?Sacr=E9?= Cc: gtk-list@gnome.org Subject: Re: Creating a font based on the GTK default font References: <20020221152609.640801845A@mail.gnome.org> <20020221215746.186C419275@mail.gnome.org> From: Havoc Pennington Date: 21 Feb 2002 17:17:43 -0500 In-Reply-To: <20020221215746.186C419275@mail.gnome.org> Message-ID: Lines: 9 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dominic Sacr=E9 writes:=20 > Hmm, a nightmare, indeed... But is there no reasonable way to get at least > the name (logical font description) of the default font? Not really... you have to use GdkFontPrivate I think. Eel does it somehow or other. Havoc From scherfa@web.de Thu Feb 21 18:59:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp01.web.de [194.45.170.210]) by mail.gnome.org (Postfix) with ESMTP id 1CDE0180D9 for ; Thu, 21 Feb 2002 18:59:21 -0500 (EST) Received: from [143.93.58.49] (helo=rmpc47.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.28 #21) id 16e37P-0000tx-00 for gtk-list@gnome.org; Fri, 22 Feb 2002 00:59:20 +0100 Subject: GtkTreeModel Rows ???? From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 22 Feb 2002 00:58:09 +0100 Message-Id: <1014335890.7997.3.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, i want to know how do i get the number of rows that are inside a GtkTreeModel. The depth of my model is always 1 so im using it instead of a gtkclist. Ok i could count the row number via gtk_tree_model_iter_next but i think thats not a clear way to go. So how could i get the number of rows that are stored inside my gtktreemodel ? Thanks for hints.. Andreas -- Andreas Scherf ICQ: 52910964 scherfa@web.de From rtriay@avantel.net Thu Feb 21 22:50:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h004.c003.snv.cp.net [209.228.32.218]) by mail.gnome.org (Postfix) with SMTP id 46B1618118 for ; Thu, 21 Feb 2002 22:50:15 -0500 (EST) Received: (cpmta 5744 invoked from network); 21 Feb 2002 19:50:11 -0800 Received: from 148.240.116.43 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.218) with SMTP; 21 Feb 2002 19:50:11 -0800 X-Sent: 22 Feb 2002 03:50:11 GMT Received: from triay.net [10.0.0.2] by Proxy+; Thu, 21 Feb 2002 21:47:14 -0600 for Subject: Re: gtk config From: Ramon Alberto Triay Espinosa To: gtk-list@gnome.org Content-Type: multipart/mixed; boundary="=-Am5+mOsrxaf0NmTBZcru" X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 21:54:30 -0500 Mime-Version: 1.0 Message-Id: <20020222035015.46B1618118@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-Am5+mOsrxaf0NmTBZcru Content-Type: text/plain ops! I answered this one , but didn't reply to the group... my solution was kind of old school, and Chris made it with RPM's, i hope someone else's find this helpful. OK SALUDOS!!! rtriay :) --=-Am5+mOsrxaf0NmTBZcru Content-Disposition: inline Content-Description: Reenviado mensaje - Re: gtk config Content-Type: message/rfc822 Subject: Re: gtk config From: Ramon Alberto Triay Espinosa To: cpollock@vvm.com In-Reply-To: <200202202325.g1KNPNVh005874@ns.vvm.com> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 00:18:34 -0500 Mime-Version: 1.0 X-Evolution: 00000001-0010 O.K. so you're suppoused to have the version of GTK that comes with the default instalation of Mandrake 8.1, so what you have to do is exactly what the message says: check the content of the '.bashrc' file in your home path (/home/rtriay in my case) with any text editor and check if the path to the file 'gtk-config' is in the PATH environment variable (a line that looks exactly like the MSDOS one PATH=::...: , how to know where this 'gtk-config' file is? well issue the comand "find / -name 'gtk-config' -depth" (without the double quotation marks), and read the output (that means 'find the file gtk-config begining ftom the root directory and all the subdirectories down), you have to be root or belong to its group to have access to the main system directories where i'm sure gtk-config is located. Finally, when you get the path add the following lines to your '.bashrc' file: PATH=$PATH: EXPORT PATH That's it! now you can try again to install your BookBase. Maybe you'll get another error message similar to this one but asking for the location on glib-config, just follow the same steps described above but for this file. Oh! I forgot to tell, as you see i assumed that you're using the bourne again shell (bash), default to all users in Mandrake. This actions will enable the use of gtk-config/glib-config ONLY to the user whose '.bashrc' file is being changed, if you want to make this path available to all users, append the same changes in '/etc/profile' file, again you'll need to be root or belong to its group to do this. GOOD LUCK!!!! SALUDOS!!! rtriay :) El 20 Feb 2002 17:30:07 -0600, Chris Pollock escribió: > Linux newbie here. I'm trying to install a program named BookBase. During > the installation I get 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: error: Cannot find GTK: Is gtk-config in path? > > As far as I know GTK was installed when I installed Mandrake. I'm running > Mandrake 8.1 Any help for this lost newbie would be appreciated. > > Chris > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > --=-Am5+mOsrxaf0NmTBZcru-- From hvv@hippo.ru Fri Feb 22 02:43:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [195.218.232.218]) by mail.gnome.org (Postfix) with ESMTP id 6D5E618206 for ; Fri, 22 Feb 2002 02:43:53 -0500 (EST) Date: Fri, 22 Feb 2002 12:40:45 +0400 (SAMT) From: Vlad Harchev X-Sender: hvv@localhost.localdomain To: "Bartosz \"Neron\" Leper" Cc: GTK-list Subject: Re: GTK and non-monospace fonts In-Reply-To: <000701c1bb1b$255c4680$4be14dd5@s> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, 21 Feb 2002, Bartosz "Neron" Leper wrote: Hi, That was a bug in gdk fixed personally by me - the standard gtk-1.2.10 already contains the fix - so please upgrade your gtk to version 1.2.10. Best regards, -Vlad > Hello there, > > I'm new here and I'm from Poland, so I'm sorry for my weak English. But I'll > try to explain what's on my mind. > > I'm using Mandrake Linux and I've experienced some problems with displaying > GTK widgets: all applications I have that are written using GTK are > calculating word length incorrectly, which causes labels unreadable in some > cases. > > It happens when I use non-monospace fonts (in Poland we say: proportional > fonts). Nearly each word is displayed correctly, but every space between > words is somehow "strange": sometimes it's normal, somtimes it's illogically > wide (when the word consists of narrow letters, like 'iiii', and sometimes > even "space" means "backspace" (when the word consists of many wide letters, > like 'WWWWW'). I think it's because GTK (or GDK?) counts word width as if it > was written in monospace font (like Courier)! > > Simmilar thing happens in edit boxes (sorry for that Win32 terminology), and > it's even worse: when I try to put caret into box using mouse, I click > between two letters, but the actual point of inserting text appears to be > somewhere else - it's also sounted using monospace font width! > > I am running GTK version 1.2.8-6mdk, but I don't know if it really matters, > because nearly all applications I have are pre-compiled. > > Please help me, because it's really annoying! I don't know if I refer to > appropriate mailing list; if you know some other places to find some info, > please mail me. > > Thanks in anvance, > Nero > > -- > ------====[Bartosz "Neron" Leper]====------ > mailto:bl_nero@o2.pl | IRC: #warsztat > www.nerosite.prv.pl | www.programex.prv.pl > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From shaffei@softhome.net Fri Feb 22 04:23:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from waltz.SoftHome.net (unknown [66.54.152.30]) by mail.gnome.org (Postfix) with SMTP id B576718239 for ; Fri, 22 Feb 2002 04:23:50 -0500 (EST) Received: (qmail 6106 invoked by uid 417); 22 Feb 2002 09:23:50 -0000 Message-ID: <20020222092350.6105.qmail@softhome.net> From: shaffei@softhome.net To: gtk-list@gnome.org Subject: How to remove glib 1.2.9 from my system? Date: Fri, 22 Feb 2002 09:23:50 GMT Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Sender: shaffei@softhome.net Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I've installed glib-1.2.9 on my linux box and I didn't know that glib-1.2.10. When I "./configure" many programs it say that I have to delete the older version. Can you help me removing the 1.2.9? Thank you for your help. Yours, Ibrahim El-Shafei From pvosta@unionbio-eu.com Fri Feb 22 08:38:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 0D5D118981 for ; Fri, 22 Feb 2002 08:38:36 -0500 (EST) Received: (qmail 13960 invoked from network); 22 Feb 2002 13:34:50 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 22 Feb 2002 13:34:50 -0000 Message-ID: <3C764994.376E68C1@unionbio-eu.com> Date: Fri, 22 Feb 2002 14:37:24 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: g_signal_connect_swapped Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am studying the "helloworld.c" example on the gtk.org website, but as the examples are already a mixture of GTK1.2 and GTK2.0, things do not compile as it should. "g_signal_connect_swapped" doesn't compile. eg.: g_signal_connect_swapped (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (gtk_widget_destroy), GTK_OBJECT (window)); Is there still a manual somewhere that describes the GTK1.2 version of GTK ? It seems as if I stepped into GTK in the middle of a transition, and this causes some confusion. Also I will probably still use GTK1.2 for a while as I cannot take the risk of instability of the new GTK2.0 version which will probably be the case in the beginning. Best regards, Peter From hp@redhat.com Fri Feb 22 10:54:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id C6382189D6 for ; Fri, 22 Feb 2002 10:54:00 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1MFrX323242; Fri, 22 Feb 2002 10:53:33 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: pvosta@unionbio-eu.com Cc: GTK-list Subject: Re: g_signal_connect_swapped References: <3C764994.376E68C1@unionbio-eu.com> From: Havoc Pennington Date: 22 Feb 2002 10:53:32 -0500 In-Reply-To: <3C764994.376E68C1@unionbio-eu.com> Message-ID: Lines: 9 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Peter Van Osta writes: > Is there still a manual somewhere that describes the GTK1.2 version of > GTK ? If you download the GTK 1.2 tarballs (gtk+-1.2.x.tar.gz) there's a copy of the 1.2 tutorial in there. Havoc From pbd@op.net Fri Feb 22 11:23:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 8DA3918D82 for ; Fri, 22 Feb 2002 11:23:32 -0500 (EST) Received: from op.net (maxtnt02-141.phlpa.fast.net [209.92.227.141]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA18328 for ; Fri, 22 Feb 2002 11:23:31 -0500 (EST) Received: (from pbd@localhost) by op.net (8.10.1/8.10.1) id g1MGLsh17460; Fri, 22 Feb 2002 11:21:54 -0500 Date: Fri, 22 Feb 2002 11:21:54 -0500 Message-Id: <200202221621.g1MGLsh17460@op.net> From: Paul Davis To: gtk-list@gnome.org Subject: interesting thread issue at exit() Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: GDK registers an exit function to be called on normal process termination. This function will be called from whatever thread calls exit(2). However, the function is not thread safe, and if the thread calling exit(2) is not the "main GUI thread", many nasty things can happen. This is not fixed in GTK+ 1.3/2.0, at least not as of a month or two ago. Do you folks consider this a genuine bug, or a design constraint? --p From hp@redhat.com Fri Feb 22 12:10:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 31D09191B6 for ; Fri, 22 Feb 2002 12:10:19 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1MHA8B12607; Fri, 22 Feb 2002 12:10:08 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: interesting thread issue at exit() References: <200202221621.g1MGLsh17460@op.net> From: Havoc Pennington Date: 22 Feb 2002 12:10:08 -0500 In-Reply-To: <200202221621.g1MGLsh17460@op.net> Message-ID: Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > GDK registers an exit function to be called on normal process > termination. This function will be called from whatever thread calls > exit(2). However, the function is not thread safe, and if the thread > calling exit(2) is not the "main GUI thread", many nasty things can > happen. > > This is not fixed in GTK+ 1.3/2.0, at least not as of a month or two > ago. Do you folks consider this a genuine bug, or a design constraint? > Fri Feb 1 08:57:38 2002 Owen Taylor * gtk/gtkmain.c (gtk_exit_func): Remove this useless atexit handler. (existance pointed out by Stefan Kost) 2001-02-19 Havoc Pennington * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it (gdk_init_check): no atexit func atexit functions are completely evil - the intent is to have none. Havoc From scherfa@web.de Fri Feb 22 13:21:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id C82D218AFE for ; Fri, 22 Feb 2002 13:21:37 -0500 (EST) Received: from [143.93.58.42] (helo=rmpc40.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.28 #21) id 16eKK8-00031H-00 for gtk-list@gnome.org; Fri, 22 Feb 2002 19:21:36 +0100 Subject: GtkTreeModel patch ... From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 22 Feb 2002 19:20:17 +0100 Message-Id: <1014402020.10567.3.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello ,i have written a small patch to get the rows from the GtkTreeModel: ---- gint gtk_tree_model_get_n_rows (GtkTreeModel *model) { gint rows=0; GtkTreeIter iter; if (gtk_tree_model_get_flags (GTK_TREE_MODEL(model))!=GTK_TREE_MODEL_LIST_ONLY) return -1; gtk_tree_model_get_iter_root (GTK_TREE_MODEL(model), &iter); do { rows++; }while ( gtk_tree_model_iter_next(GTK_TREE_MODEL(model),&iter) ); return rows; } ---- So i want to get the rows from a GtkTreeModel (i wanna use it as gtkclist ..) But if i test with gtk_tree_model_get_flags if it was a list .. i didn`t get what i expected there did i misunderstood gtk_tree_model flags ??? Thanks -- Andreas Scherf ICQ: 52910964 scherfa@web.de From MBOWMAN@arinc.com Fri Feb 22 18:22:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from exanpcn4.arinc.com (outmail2.arinc.com [144.243.4.70]) by mail.gnome.org (Postfix) with ESMTP id CBE8E18BBD for ; Fri, 22 Feb 2002 18:22:16 -0500 (EST) Received: from exanpcn1.arinc.com (unverified) by exanpcn4.arinc.com (Content Technologies SMTPRS 4.1.5) with ESMTP id for ; Fri, 22 Feb 2002 18:23:33 -0500 Received: by exanpcn1.arinc.com with Internet Mail Service (5.5.2653.19) id ; Fri, 22 Feb 2002 18:22:30 -0500 Message-ID: <05A70E173104D511A5840002A55C37EE1C478B@exanpmb2.arinc.com> From: "Bowman, Michael W. (MBOWMAN)" To: "'gtk-list@gnome.org'" Subject: How do I find out an object's type using the GTK+ (1.2) type syst em? Date: Fri, 22 Feb 2002 18:22:28 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a situation like the following: void setParms(GtkOpenmapProj* proj, ...) { ... class->normalize_latitude(proj, ...); } GtkOpenmapProj is a base class that has multiple sub-types. Each of the subtypes may override the normalize_latitude method of the GtkOpenmapProj class. However, I don't know which of the subtypes is passed into my function, just that its some sub-type of GtkOpenmapProj. How do I find which type identifier to feed to gtk_type_class() so that I can obtain the class struct for the proper sub-type (and use the proper normalize_latitude function)? How does GTK+ handle polymorphism? Thanks for any help. By the way, I'm assuming use of the GTK+ 1.2 version of the type system. I understand that the system may change some with 2.0, but I'm trying to learn the "simpler" system first. It also helps that a book is available for the earlier system (GGAD). --------------------------------- Michael Bowman mbowman@arinc.com (410) 266-4876 From kasonhuang@kinposh.com.cn Fri Feb 22 20:02:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id D3DF8188C4 for ; Fri, 22 Feb 2002 20:02:12 -0500 (EST) Subject: About the focus move in table? MIME-Version: 1.0 Content-Type: multipart/related; boundary="----_=_NextPart_001_01C1BC05.93F9C4C4"; type="text/html" Date: Sat, 23 Feb 2002 09:01:08 +0800 content-class: urn:content-classes:message x-mimeole: Produced By Microsoft Exchange V6.0.5762.3 Message-ID: <92CD479384374A439EFA0077E7C50F822476B1@kes01.kinposh.com.cn> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: About the focus move in table? Thread-Index: AcG8BZGUSrsvSSg0Eda2ugCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1BC05.93F9C4C4 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable About the focus move in table?

hi guys:
anyone could tell = how to change the focus in three tables(there is a lot of buttons in = each table) with keyboard.
and I find = that  the buttons focus in one table couldn't be changed = smoothly.for example,when you press left key on keyboard,you expect the = focus will move to the left button,however the focus maybe move to the a = button on the bottom of the table.

a table's layout like = following picture:(24 buttons in one table)

3D"ole0.bmp"

when focus in 14 = button,i press down key on keyboard.i expect the focus will move to the = 20 button,the result is the focus moves to the15 button or other = button,not 20 button.the same thing is happen to the 18,20 button.do = anyone knows how to handle with the problem? or how to control the focus = in a table?

Thanks in = advance!
kason



------_=_NextPart_001_01C1BC05.93F9C4C4 Content-Type: image/bmp; name="ole0.bmp" Content-Transfer-Encoding: base64 Content-Description: ole0.bmp Content-Location: No%20AttachName Qk2KLAAAAAAAAD4AAAAoAAAAyQEAAL0AAAABAAEAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAA AP///wD///////////////////////////////////////////////////////////////////// //////+AAAD///////////////////////////////////////////////////////////////// //////////+AAAD///////////////////////////////////////////////////////////// //////////////+AAAD///////////////////////////////////////////////////////// //////////////////+AAAD///////////////////////////////////////////////////// //////////////////////+AAAD///////////////////////////////////////////////// //////////////////////////+AAAD///////////////////////////////////////////// //////////////////////////////+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/+AAAD//f//////v////////f////////////////// +///////////////////////////////////9/+AAAD//f//////v////3///f////////8D//// ////+//////////////n////////////////////9/+AAAD//f//////v////x///f/////3///8 ////////+//////////////3////////////////////9/+AAAD//f//////vwAAP4Af/f/////w AH/+////////+/////////4AD//7////////////////////9/+AAAD//f//////v7//v+///f// ///8///+////////+/////////4////5////////////////////9/+AAAD//fgAHz//v8////f/ /f//////H//+////////+/////////+P///9////////////////////9/+AAAD//f3//7//v+H/ //f//f//////4//9////////+//////////w///8AH//////////////////9/+AAAD//f5//7// v/4///f//f///////H/5////////+//////////+P/4C/5//////////////////9/+AAAD//f8P /9//v/+//+f//f///////7wH////////+///////////n/3/P///////////////////9/+AAAD/ /f/x/9//v/+//+///f///////7+f////////+///////////3/3/v///////////////////9/+A AAD//f/8/8//v/+//+///f///////7/n////////+///////////3/3/3/////////////////// 9/+AAAD//f/+/+//v/+/+E///f///////7/3////////+///////////3/3/z/////////////// ////9/+AAAD//f//f/f/v/+//z///f///////7/3////////+///////////3/7/7/////////// ////////9/+AAAD//f//f/f/v/+//////f///////X/v////////+///////////v/7/9/////// ////////////9/+AAAD//f//f/f/v/9//////f///////P+f////////+//////////+f/7/9/// ////////////////9/+AAAD//f//f/f/v/B//////f////////w/////////+//////////5//9/ ////////////////////9/+AAAD//fwAf/f/v////////f//////////////////+/////////// //9/////////////////////9/+AAAD//f//////v////////f//////////////////+/////// //////9/////////////////////9/+AAAD//f//////v////////f//////////////////+/// ////////////////////////////////9/+AAAD//f//////v////////f////////////////// +///////////////////////////////////9/+AAAD//f//////v////////f////////////// ////+///////////////////////////////////9/+AAAD//f//////v////////f////////// ////////+///////////////////////////////////9/+AAAD//f//////v////////f////// ////////////+///////////////////////////////////9/+AAAD//f//////v////////f// ////////////////+///////////////////////////////////9/+AAAD//f//////v/////// /f//////////////////+///////////////////////////////////9/+AAAD//f//////v/// /////f//////////////////+///////////////////////////////////9/+AAAD//f////// v////////f//////////////////+///////////////////////////////////9/+AAAD//f// ////v////////f//////////////////+///////////////////////////////////9/+AAAD/ /f//////v////////f//////////////////+///////////////////////////////////9/+A AAD//f//////v////////f//////////////////+/////////////////////////////////// 9/+AAAD//f//////v////////f//////////////////+/////////////////////////////// ////9/+AAAD//f//////v////////f//////////////////+/////////////////////////// ////////9/+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAB/+AAAD//f//////v////////f////////f/////////+////////9////////// ////////////////9/+AAAD//f//////v////////f////////f/////////+////////9////// ////////////////////9/+AAAD//f//////v////////f////////f////+P///+////////9// ////////////////////////9/+AAAD//f//////v////////f///8////f//3/+wf//+/////P/ /9//////////////////////////9/+AAAD//f//////v////////f///+////f//3/+/v//+//3 //v//9//////////v///////////////9/+AAAD//f//////v////////f///+////f//7/+/v// +//3//v//9//////4f4AP///////////////9/+AAAD//f//////v///8H///f////f///f//7/+ /v//+//3//3//9//////4AD/////////////////9/+AAAD//f//////v///77///f////f///f/ /9/+/v//+//7//7//9///////9////gD////////////9/+AAAD//f//////v///39///f/n//v/ //f//9//PP//+//7//7//9///////8///+f8////////////9/+AAAD//f//////v///P9///f/7 //v///f//+//jf//+//7//7//9////////P//+/+////////////9/+AAAD//f//////v/f/f9// /f/7//3///f//+//4f//+//9//7//9////////3//+//f///////////9/+AAAD//f//////v/f/ f9///f/7//3///f//+//8///+//9//9//9////////7//+//f///////////9/+AAAD//e//5/// v/P/fz///f/9//7///f///f/6f//+//9//9//9////////7//+//f///////////9/+AAAD//e// iP//v/3/YP///f/9//7///f///f/3f//+//+//9//9////////5//+//v///////////9/+AAAD/ /e//P3//v/3/f////f/9//7///f///f/vf//+//+//+//9////////9//+//v///////////9/+A AAD//ff//3//v/7/f////f/+//9///f///f+ff//+///f/+//9////////9///f/v/////////// 9/+AAAD//ff//3//v/7/v////f/+//+///f///f+/f//+///f4A//9////////9///H/f/////// ////9/+AAAD//fv//3//v/7/n////f/+//+///f///f+////+///f7+//9////////9///X/f/// ////////9/+AAAD//fv//n//v/9/z////f/+///f//f///v+f///+///f3+//9////////9///3+ ////////////9/+AAAD//f3//v//v/9/8////f/+///f//f///v/gP//+///f3/v/9////////9/ //z9////////////9/+AAAD//f3/4P//v/9//f///f/+//gf//f///v/////+////3/v/9////// //9///57////////////9/+AAAD//f3/n9//v/+//P///f/+/4f///f///v/////+////3/3/9// //////9///8H////////////9/+AAAD//f7/3h//v/+//v///f/+/n////f///v/////+////3/3 /9////////9/////////////////9/+AAAD//f7/wf//v/+//////f/+//////f///v/////+/// /5/3/9////////9/////////////////9/+AAAD//f9/7///v/+//////f/+//////f///v///// +////+AH/9////////7/////////////////9/+AAAD//f9/9///v/+//////f////////f///// ////+////////9///////+D/////////////////9/+AAAD//f9/9///v////////f////////f/ ////////+////////9//////////////////////////9/+AAAD//f//////v////////f////// //f/////////+////////9//////////////////////////9/+AAAD//f//////v////////f// //////f/////////+////////9//////////////////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9//////////////////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9//////////////////////////9/+AAAD//f////// v////////f////////f/////////+////////9//////////////////////////9/+AAAD//f// ////v////////f////////f/////////+////////9//////////////////////////9/+AAAD/ /f//////v////////f////////f/////////+////////9//////////////////////////9/+A AAD//f//////v////////f////////f/////////+////////9////////////////////////// 9/+AAAD//f//////v////////f////////f/////////+////////9////////////////////// ////9/+AAAD//f//////v////////f////////f/////////+////////9////////////////// ////////9/+AAAD//f//////v////////f////////f/////////+////////9////////////// ////////////9/+AAAD//f//////v////////f////////f/////////+////////9////////// ////////////////9/+AAAD//f//////v////////f////////f/////////+////////9////// ////////////////////9/+AAAD//f//////v////////f////////f/////////+////////9// ////////////////////////9/+AAAD//f//////v////////f////////f/////////+/////// /9//////////////////////////9/+AAAD//f//////v////////f////////f/////////+/// /////9//////////////////////////9/+AAAD//f//////v////////f////////f///////// +////////9//////////////////////////9/+AAAD//f//////v////////f////////f///// ////+////////9//////////////////////////9/+AAAD//f//////v////////f////////f/ ////////+////////9//////////////////////////9/+AAAD//f//////v////////f////// //f/////////+////////9//////////////////////////9/+AAAD//f//////v////////f// //////f/////////+////////9//////////////////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9//////////////////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9//////////////////////////9/+AAAD//f////// v////////f////////f/////////+////////9//////////////////////////9/+AAAD//f// ////v////////f////////f/////////+////////9//////////////////////////9/+AAAD/ /AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/+A AAD//f//////v////////f////////f/////////+////////9////////////3///////////// 9/+AAAD//f//////v////////f////////f/////////+//////j/9////////////3///////// ////9/+AAAD//f//////v///n////f////////f/////////+/////AP/9////////////3///// ////////9/+AAAD//f//4f//v///3////f////////f/////////+////Af//9/////v//////3/ ////////////9/+AAAD//f//7n//v///3////f////////f/////////+//+/P///9/////v//// //3//////v//////9/+AAAD//f//75//v///3////f/3/8B///f/////////+//+fv///9/////v //////3///3//3//////9/+AAAD//f//79//v///3////f/7/98///f/////f///+///fn///9// ///v//////3///3//3//////9/+AAAD//f//79//v///7////f/7/9+f//f/////v///+///f3// /9/////v//P///3///3//z//////9/+AAAD//f//79//v///7////f/7/9/f//f/////v///+/// v4///9/////v//AA//3///7//7//////9/+AAAD//f//79//v///7////f/7/9/f//f///P/v/// +///3/A//9/////v///+P/3///7//7//////9/+AAAD//f//79//v///7////f/9/9/f//f///v/ 3///+///3//f/9/////3////v/3///7//9//////9/+AAAD//f//59//v///9////f/9/9/f//f/ //v/3///+///3//f/9/////3////3/3///7/v9/f////9/+AAAD//f//99//v///9////f/+/9/f //f///3/3///+///7//f/9/////3////3/3///9/gAAf////9/+AAAD//f//89//v///+////f/+ /+/f//f///3/7///+///7//f/9/////3////3/3///9/3+f/////9/+AAAD//f//+Z//v///+/// /f//f+/f//f///7/7///+///9//f/9/////3////3/3///+/z/f/////9/+AAAD//f///H//v/// +f///f//v+/f//f///7/7///+///9//f/9/////3////3/3///+/7/P/////9/+AAAD//f//+P// v////f///f//v/ff//f///7/9///+///9/+f/9/////3////3/3///+/5/3/////9/+AAAD//f// 5v//v///8P///f//v/ff//f///7/9///+///+/8//9/////3////n/3////f9/z/////9/+AAAD/ /f//33//v///73///f//v/uf//f///9/9///+///+/5//9/////3//8AP/3////v+/7/////9/+A AAD//f//vz//v///7z///f//3/2///f///9/9///+///+/n//9/////3/+D///3////v+f7///// 9/+AAAD//f//f7//v///7////f//3/9///f///9/9///+///+/P//9/////3//P///3////3/f// ////9/+AAAD//f/+/7//v///77///f//3/7///f///9/9///+///+////9/////3//w///3////3 /v//////9/+AAAD//f/+/7//v///77///f//3/////f///9/9///+////////9/////3///P//3/ ///3/n//////9/+AAAD//f/+/7//v///79///f//3/////f///9/////+////////9/////3///z //3////3/7//////9/+AAAD//f/+/7//v///79///f//3/////f/////////+////////9/////3 /v/7//3//////7//////9/+AAAD//f/+/z//v///79///f//3/////f/////////+////////9// ///3/j/7//3/////////////9/+AAAD//f/+/3//v///99///f////////f/////////+/////// /9///////8AH//3/////////////9/+AAAD//f/+fv//v///9+///f////////f/////////+/// /////9////////////3/////////////9/+AAAD//f//fv//v///++///f////////f///////// +////////9////////////3/////////////9/+AAAD//f//AP//v///+Y///f////////f///// ////+////////9////////////3/////////////9/+AAAD//f//////v////D///f////////f/ ////////+////////9////////////3/////////////9/+AAAD//f//////v////////f////// //f/////////+////////9////////////3/////////////9/+AAAD//f//////v////////f// //////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9////////////3/////////////9/+AAAD//f////// v////////f////////f/////////+////////9////////////3/////////////9/+AAAD//f// ////v////////f////////f/////////+////////9////////////3/////////////9/+AAAD/ /f//////v////////f////////f/////////+////////9////////////3/////////////9/+A AAD//f//////v////////f////////f/////////+////////9////////////3///////////// 9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///////// ////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///// ////////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3/ ////////////9/+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAB/+AAAD//f//////v////////f////////f/////////+////////9////// //////3/////////////9/+AAAD//f//////v////////f////////f/////////+////////9// //////////3/////////////9/+AAAD//f//////v////////f////////f/////////+/////// /9/////4AH////3/////////////9/+AAAD//f//////v////////f////////f/////////+/// /////9/////3/7////3/////////////9/+AAAD//f//////v////+B//f////////f///P///// +///wP///9/////3/7////3/////f///////9/+AAAD//f//////v///AB///f////////f///n/ ////+///nw///9/////3/9////3/////v///////9/+AAAD//f//z///v//8/////f/9//////f/ //3/////+///P+///9/////3/9////3/////v///////9/+AAAD//f//7///v//j/////f/8AP// //f///z/////+////+///9/////3/9////3/////3///////9/+AAAD//f//7///v//z/////f// /wH///f///5/////+////+///9/////3/D////3/////3///////9/+AAAD//f//7///v//9//// /f////7///f///9/////+////+///9/////zw/////3/////z///////9/+AAAD//f//7///v//+ f////f////7///f///+/////+////8///9/////wP/////3/////7///////9/+AAAD//f//7/// v///g////f////z///f////f////+////7///9/////3//////3/////9///////9/+AAAD//f// 7///v////H///f////3///f/8//v////+////z///9/////3//////3/////+///////9/+AAAD/ /f//7///v////5///f////v///f/+AAAP///+////H///9/////3//////3/////+///////9/+A AAD//f//7///v////9///f////P///f//f/3z///+///4////9/////3//////3//////f////// 9/+AAAD//f//7///v////9///f///8////f//v/7////+///7////9/////3//////3//////f// ////9/+AAAD//f//7///v////x///f///j////f//n/5////+///8AP//9/////3//////3///// /v//////9/+AAAD//f//7///v///+P///f//4f////f//z/9////+///8////9/////7//////3/ /////z//////9/+AAAD//f//7///v///h////f/+H/////f//4/+////+///+////9/////7//// //3//////5//////9/+AAAD//f//7///v///P////f//4H////f//+/+////+///+////9/////9 //////3//////+f/////9/+AAAD//f//7///v////////f///4////f///P+f///+///+f///9// ///+//////3///////j/////9/+AAAD//f//7///v////////f///+////f///n/f///+////f// /9/////+f/////3///////8/////9/+AAAD//f//7///v////////f///+////f///7/f///+/// /f///9//////n/////3////////P////9/+AAAD//f//7///v////////f///+////f///5///// +////f///9//////7/////3/////wAAP////9/+AAAD//f//7///v////////f///x////f///+/ ////+////////9//////7/////3/////////////9/+AAAD//f//7///v////////f/8AP////f/ //+/////+////////9////////////3/////////////9/+AAAD//f//////v////////f////// //f/////////+////////9////////////3/////////////9/+AAAD//f//////v////////f// //////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9////////////3/////////////9/+AAAD//f////// v////////f////////f/////////+////////9////////////3/////////////9/+AAAD//f// ////v////////f////////f/////////+////////9////////////3/////////////9/+AAAD/ /f//////v////////f////////f/////////+////////9////////////3/////////////9/+A AAD//f//////v////////f////////f/////////+////////9////////////3///////////// 9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///////// ////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///// ////////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3/ ////////////9/+AAAD//f//////v////////f////////f/////////+////////9////////// //3/////////////9/+AAAD//f//////v////////f////////f/////////+////////9////// //////3/////////////9/+AAAD//f//////v////////f////////f/////////+////////9// //////////3/////////////9/+AAAD//f//////v////////f////////f/////////+/////// /9////////////3/////////////9/+AAAD//f//////v////////f////////f/////////+/// /////9////////////3/////////////9/+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/+AAAD///////////////////////////////// //////////////////////////////////////////+AAAD///////////////////////////// //////////////////////////////////////////////+AAAD///////////////////////// //////////////////////////////////////////////////+AAAD///////////////////// //////////////////////////////////////////////////////+AAAD///////////////// //////////////////////////////////////////////////////////+AAAD///////////// //////////////////////////////////////////////////////////////+AAAD///////// //////////////////////////////////////////////////////////////////+AAAD///// //////////////////////////////////////////////////////////////////////+AAAD/ //////////////////////////////////////////////////////////////////////////+A AAA= ------_=_NextPart_001_01C1BC05.93F9C4C4-- From superylam@netscape.net Fri Feb 22 20:12:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imo-r08.mx.aol.com (imo-r08.mx.aol.com [152.163.225.104]) by mail.gnome.org (Postfix) with ESMTP id A701818D43 for ; Fri, 22 Feb 2002 20:12:47 -0500 (EST) Received: from superylam@netscape.net by imo-r08.mx.aol.com (mail_out_v32.5.) id h.13a.138afd9 (16232) for ; Fri, 22 Feb 2002 20:12:40 -0500 (EST) Received: from netscape.net (pcd331066.netvigator.com [203.218.121.66]) by air-in02.mx.aol.com (v83.35) with ESMTP id MAILININ28-0222201240; Fri, 22 Feb 2002 20:12:40 -0500 Message-ID: <3C77A283.30609@netscape.net> Date: Sat, 23 Feb 2002 09:09:07 -0500 From: Lam Yick Yan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk->deviceid How to use? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I have just devleoped a X input driver for my small graphic tablet. And it is working.... Now I have cursor that will move according to mouse OR graphic tablet. Now I want to develope a gtk application that will ONLY respond the event from my graphic tablet. I have a callback function in my GTK application, motion_notify_event and I have compared the event content of my mouse and my graphic tablet and they look the same (the deviceid content etc). and I have no way to distuguish whether the event is from the mouse or from the graphic tablet. What did I do wrong in my driver? can please have a look at http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether I did wrong in the device driver? Yick Hong Kong china From hp@redhat.com Fri Feb 22 23:40:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 49C4A182B1 for ; Fri, 22 Feb 2002 23:40:43 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1N4eg531923; Fri, 22 Feb 2002 23:40:42 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Bowman, Michael W. (MBOWMAN)" Cc: "'gtk-list@gnome.org'" Subject: Re: How do I find out an object's type using the GTK+ (1.2) type syst em? References: <05A70E173104D511A5840002A55C37EE1C478B@exanpmb2.arinc.com> From: Havoc Pennington Date: 22 Feb 2002 23:40:41 -0500 In-Reply-To: <05A70E173104D511A5840002A55C37EE1C478B@exanpmb2.arinc.com> Message-ID: Lines: 38 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Bowman, Michael W. \(MBOWMAN\)" writes: > I have a situation like the following: > > void > setParms(GtkOpenmapProj* proj, ...) { > ... > class->normalize_latitude(proj, ...); > } > > GtkOpenmapProj is a base class that has multiple sub-types. Each of the > subtypes may > override the normalize_latitude method of the GtkOpenmapProj class. However, > I don't > know which of the subtypes is passed into my function, just that its some > sub-type of > GtkOpenmapProj. How do I find which type identifier to feed to > gtk_type_class() so > that I can obtain the class struct for the proper sub-type (and use the > proper > normalize_latitude function)? How does GTK+ handle polymorphism? Just look at any example in GTK itself. You should not need the subtype's class, just GtkOpenmapProjClass, which contains the normalize_latitude function. The whole point of virtual functions is you don't have to know the type of the object, isn't it? Usually people write a wrapper function: void gtk_openmap_proj_normalize_latitude (GtkOpenmapProj *proj) { GTK_OPENMAP_PROJ_GET_CLASS (proj)->normalize_latitude (proj); } Havoc From rbultje@ronald.bitfreak.net Sat Feb 23 07:49:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id 46D3F180D8 for ; Sat, 23 Feb 2002 07:49:47 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1NCds4K029012 for ; Sat, 23 Feb 2002 13:39:54 +0100 (CET) Subject: bug/missing feature in gtk2 From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 23 Feb 2002 13:49:45 +0100 Message-Id: <1014468585.18710.0.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm not sure whether to call this a bug or a missing feature... First of all, gtk-1.3.14 fixed the bug where my picture disappeared if I highlighted the button to which it was attached, thanks! Now, I've noticed something else that might be wrong. I have the following code: menu = gtk_menu_new(); for (i=0;iaudio_recsrc, menu); gtk_widget_show_all(menu); prefs->audio_recsrc is a GtkOptionMenu. The problem is that hat images *do* appear in the menu if it pops up, but not in the GtkOptionMenu itself with the selected item. I hope the following two screenshots can make clear what I mean: http://ronald.bitfreak.net/images/icon-problem-1.png http://ronald.bitfreak.net/images/icon-problem-2.png In the second one, you'll notice that the icon is not being shown in front of the selected item, while in the popup-menu itself, the icons are being shown. I'm not sure whether to call this a bug or a missing feature. Should I report this somewhere? Secondly (this is very offtopic), I'm getting my icons from the 'tigert' collection (http://primates.ximian.com/~tigert/new_stock_project/). According to that page, these icons are supposed to be part of gtk's stock icon collection, however, I can't find the media-rec, media-pause and media-stop icons as stock icons in Gtk. Are they supposed to be in some other package than Gtk? Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From sven@gimp.org Sat Feb 23 08:47:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD95871C7.dip.t-dialin.net [217.88.113.199]) by mail.gnome.org (Postfix) with ESMTP id AACDF18EE6 for ; Sat, 23 Feb 2002 08:47:39 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ecWU-0002tx-00; Sat, 23 Feb 2002 14:47:34 +0100 To: Lam Yick Yan Cc: gtk-list@gnome.org Subject: Re: gtk->deviceid How to use? References: <3C77A283.30609@netscape.net> From: Sven Neumann Date: 23 Feb 2002 14:47:34 +0100 In-Reply-To: <3C77A283.30609@netscape.net> Message-ID: Lines: 20 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Lam Yick Yan writes: > I have just devleoped a X input driver for my small graphic tablet. > And it is working.... Now I have cursor that will move according to > mouse OR graphic tablet. > > Now I want to develope a gtk application that will ONLY respond > the event from my graphic tablet. I have a callback function in my GTK > application, motion_notify_event and I have compared the event content > of my mouse and my graphic tablet and they look the same (the deviceid > content etc). and I have no way to distuguish whether the event is from the > mouse or from the graphic tablet. one thing you should check before you start to debug your driver is whether GTK+ was compiled with xinput support (configure --with-xinput=xfree). Salut, Sven From otaylor@redhat.com Sat Feb 23 09:36:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 85889180D8 for ; Sat, 23 Feb 2002 09:36:50 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id C161B241BE2; Sat, 23 Feb 2002 09:36:49 -0500 (EST) To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: bug/missing feature in gtk2 References: <1014468585.18710.0.camel@tux> From: Owen Taylor In-Reply-To: Ronald Bultje's message of "23 Feb 2002 13:49:45 +0100" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 35 Message-Id: <20020223143649.C161B241BE2@fresnel.labs.redhat.com> Date: Sat, 23 Feb 2002 09:36:49 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > prefs->audio_recsrc is a GtkOptionMenu. The problem is that hat images > *do* appear in the menu if it pops up, but not in the GtkOptionMenu > itself with the selected item. I hope the following two screenshots can > make clear what I mean: > http://ronald.bitfreak.net/images/icon-problem-1.png > http://ronald.bitfreak.net/images/icon-problem-2.png > In the second one, you'll notice that the icon is not being shown in > front of the selected item, while in the popup-menu itself, the icons > are being shown. I'm not sure whether to call this a bug or a missing > feature. Should I report this somewhere? I'd say it's a "known limitation" rather than either a bug or missing feature. I doubt we'll fix it in the context of GtkOpttionMenu, but if you want to file a bug report on the issue on bugzilla.gnome.org that will remind us to look at the issue of Icon/Text combination items for the new combo/option menu widget that is scheduled to be done for GTK+-2.2. > Secondly (this is very offtopic), I'm getting my icons from the 'tigert' > collection (http://primates.ximian.com/~tigert/new_stock_project/). > According to that page, these icons are supposed to be part of gtk's > stock icon collection, however, I can't find the media-rec, media-pause > and media-stop icons as stock icons in Gtk. Are they supposed to be in > some other package than Gtk? These icons weren't there when we finalized the set of stock icons for GTK+-2.0; they'll most likely be added for 2.2. You can package them with your application and register them as stock icons yourself, (with stock id's like myprogr-media-rec) and then when GTK+-2.2 switch to using the official version. Regards, Owen From otaylor@redhat.com Sat Feb 23 09:39:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 540BB18EC4 for ; Sat, 23 Feb 2002 09:39:48 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 121B5241BE2; Sat, 23 Feb 2002 09:39:47 -0500 (EST) To: Valdis.Kletnieks@vt.edu Cc: Vincent Arkesteijn , gtk-list@gnome.org Subject: Re: Interesting suid problem References: <20020221223053.A6053@ken> <200202212139.g1LLdlVj032087@foo-bar-baz.cc.vt.edu> From: Owen Taylor In-Reply-To: Valdis.Kletnieks@vt.edu's message of "Thu, 21 Feb 2002 16:39:47 -0500" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 18 Message-Id: <20020223143947.121B5241BE2@fresnel.labs.redhat.com> Date: Sat, 23 Feb 2002 09:39:47 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Valdis.Kletnieks@vt.edu writes: > On Thu, 21 Feb 2002 22:30:54 +0100, Vincent Arkesteijn said: > > > Why? Just put the password in the program, and give your users > > execute permission, but no read permission on the program. It > > may not be too elegant, and it's a bit clumsy when you want to > > change the password, but it's the simplest solution. > > Still vulnerable to attack via gdb/dbx or ptrace(), but that's a > question of whether your threat model includes somebody both that > determined and skilled... You can't gdb/ptrace a non-readable executable on most operating systems. Regards, Owen From rbultje@ronald.bitfreak.net Sat Feb 23 11:04:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id A4C1D18108 for ; Sat, 23 Feb 2002 11:04:11 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1NFsI4K004660 for ; Sat, 23 Feb 2002 16:54:18 +0100 (CET) Subject: Re: bug/missing feature in gtk2 From: Ronald Bultje To: gtk-list@gnome.org In-Reply-To: <20020223143649.C161B241BE2@fresnel.labs.redhat.com> References: <1014468585.18710.0.camel@tux> <20020223143649.C161B241BE2@fresnel.labs.redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 23 Feb 2002 17:04:10 +0100 Message-Id: <1014480250.18709.5.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, 2002-02-23 at 15:36, Owen Taylor wrote: > I'd say it's a "known limitation" rather than either a bug or missing feature. > I doubt we'll fix it in the context of GtkOpttionMenu, but if you > want to file a bug report on the issue on bugzilla.gnome.org that will > remind us to look at the issue of Icon/Text combination items for the > new combo/option menu widget that is scheduled to be done for GTK+-2.2. I filed it on bugzilla, hope it'll be fixed one day. But if I understand you correctly, there's little chance that it'll be "fixed" for Gtk+-2.0? For the archives then, here's code I use as a workaround (got this idea while looking in the sourcecode of GtkImageMenuItem): static GtkWidget * gtk_menu_item_with_image (const gchar *labeltxt, const gchar **pixmap) { GtkWidget *hbox, *menuitem, *label, *image; menuitem = gtk_menu_item_new(); hbox = gtk_hbox_new(FALSE, 5); image = gtk_image_new_from_pixbuf(gdk_pixbuf_new_from_xpm_data(pixmap)); gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0); gtk_widget_show(image); label = gtk_label_new(labeltxt); gtk_misc_set_alignment(GTK_MISC(label), 0.0, GTK_MISC(label)->yalign); gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0); gtk_widget_show(label); gtk_container_add(GTK_CONTAINER(menuitem), hbox); gtk_widget_show(hbox); return menuitem; } and then for the menus: [..] menu = gtk_menu_new(); pixmap = (const gchar**) audio_src_volume_xpm; for (i=0;iaudio_recsrc, menu); gtk_widget_show_all(menu); [..] Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From otaylor@redhat.com Sat Feb 23 11:20:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 8CAFC18F32 for ; Sat, 23 Feb 2002 11:20:55 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id D65CD241BE2; Sat, 23 Feb 2002 11:20:54 -0500 (EST) To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: bug/missing feature in gtk2 References: <1014468585.18710.0.camel@tux> <20020223143649.C161B241BE2@fresnel.labs.redhat.com> <1014480250.18709.5.camel@tux> From: Owen Taylor In-Reply-To: Ronald Bultje's message of "23 Feb 2002 17:04:10 +0100" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 24 Message-Id: <20020223162054.D65CD241BE2@fresnel.labs.redhat.com> Date: Sat, 23 Feb 2002 11:20:54 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > On Sat, 2002-02-23 at 15:36, Owen Taylor wrote: > > I'd say it's a "known limitation" rather than either a bug or missing feature. > > I doubt we'll fix it in the context of GtkOpttionMenu, but if you > > want to file a bug report on the issue on bugzilla.gnome.org that will > > remind us to look at the issue of Icon/Text combination items for the > > new combo/option menu widget that is scheduled to be done for GTK+-2.2. > > I filed it on bugzilla, hope it'll be fixed one day. But if I understand > you correctly, there's little chance that it'll be "fixed" for Gtk+-2.0? To change GtkImageMenuitem to make the image/label pair, instead of the label GTK_BIN(item)->child would be an API change and we are completely API frozen at this point. So, it's "just the way it works" (we could hack GtkOptionMenu to do something special for GtkImageMenuItem... but it would a reasonable amount of ugly code.) Regards, Owen From bl_nero@o2.pl Sat Feb 23 16:59:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rekin.go2.pl (rekin4.go2.pl [212.126.20.8]) by mail.gnome.org (Postfix) with ESMTP id 8EB1B180D8 for ; Sat, 23 Feb 2002 16:59:41 -0500 (EST) Received: from s (pa34.piotrkow.cvx.ppp.tpnet.pl [213.77.224.34]) by rekin.go2.pl (Mailer_v2.01) with SMTP id C79B76EFB3; Sat, 23 Feb 2002 22:59:37 +0100 (CET) Message-ID: <001201c1bcb5$60c043c0$22e04dd5@s> From: "Bartosz \"Neron\" Leper" To: "Vlad Harchev" Cc: "GTK-list" References: Subject: Re: GTK and non-monospace fonts Date: Sat, 23 Feb 2002 22:58:29 +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 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Hi, > > That was a bug in gdk fixed personally by me - the standard gtk-1.2.10 > already contains the fix - so please upgrade your gtk to version 1.2.10. > > Best regards, > -Vlad Thanks a lot. That was quite easy. I have downloaded and installed version 1.2.10 and my own programs are now OK. But is there any chance to "patch" my pre-compiled applications somehow without recompiling all of them? I have no sources and no time to download them all. Thanks again, Nero -- ------====[Bartosz "Neron" Leper]====------ mailto:bl_nero@o2.pl | IRC: #warsztat www.nerosite.prv.pl | www.programex.prv.pl ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From johnnyb@localhost.localdomain Sat Feb 23 19:58:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by mail.gnome.org (Postfix) with ESMTP id 1AD4B180D8 for ; Sat, 23 Feb 2002 19:58:36 -0500 (EST) Received: (from johnnyb@localhost) by localhost.localdomain (8.11.6/8.11.6) id g1O0xZt32057 for gtk-list@gnome.org; Sat, 23 Feb 2002 19:59:35 -0500 Date: Sat, 23 Feb 2002 19:59:35 -0500 From: "Johnny B ." To: gtk-list@gnome.org Subject: linking problem Message-ID: <20020223195935.C31813@tasha.vonbek.dhs.org> Reply-To: "Johnny B ." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Greetings all! Ive installed glib and gtk from source, run ldconfig and so on and I think everything is installed ok (pertinent data below), yet I'm getting a few errors when linking and app: /tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' /tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' /tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' Assuming that I have everything installed ok and that this is just a silly user error, which include or library covers these? I've grepped like crazy in /usr/lib and /usr/include ... gtk/glib is setup as such: [johnnyb@tasha lib]$ gtk-config --cflags --libs -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/X11R6/include -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm Is there a file I should be including? I'm trying to build the classic helloworld.c in section 2.1 of the tutorial. I can build it if I use the massive Makefile provided with the samples, but I'm trying to make my own makefile to see what is required for the build. There's just too much gtk info on the internet to search effectively for this, but Ill keep trying. Thanks - JB +--------------------------------- | John Bleichert | syborg@stny.rr.com | http://vonbek.dhs.org/latest.jpg From hp@redhat.com Sat Feb 23 20:13:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 7D96F180D8 for ; Sat, 23 Feb 2002 20:13:22 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1O1DL832259; Sat, 23 Feb 2002 20:13:21 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Johnny B ." Cc: gtk-list@gnome.org Subject: Re: linking problem References: <20020223195935.C31813@tasha.vonbek.dhs.org> From: Havoc Pennington Date: 23 Feb 2002 20:13:21 -0500 In-Reply-To: <20020223195935.C31813@tasha.vonbek.dhs.org> Message-ID: Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Johnny B ." writes: > > Ive installed glib and gtk from source, run ldconfig and so on and I > think everything is installed ok (pertinent data below), yet I'm > getting a few errors when linking and app: > > /tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' > /tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' > /tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' > Turn on warnings for your compiler, then eliminate all warnings like "function G_CALLBACK has not been declared" Havoc From hp@redhat.com Sat Feb 23 20:13:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 2FC52180D8 for ; Sat, 23 Feb 2002 20:13:42 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1O1DfA32263; Sat, 23 Feb 2002 20:13:41 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Johnny B ." Cc: gtk-list@gnome.org Subject: Re: linking problem References: <20020223195935.C31813@tasha.vonbek.dhs.org> From: Havoc Pennington Date: 23 Feb 2002 20:13:41 -0500 In-Reply-To: <20020223195935.C31813@tasha.vonbek.dhs.org> Message-ID: Lines: 6 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, (The way you eliminate the warnings is to include gtk/gtk.h) Havoc From superylam@netscape.net Sat Feb 23 20:31:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imo-r06.mx.aol.com (imo-r06.mx.aol.com [152.163.225.102]) by mail.gnome.org (Postfix) with ESMTP id 5AFFD180D8 for ; Sat, 23 Feb 2002 20:31:22 -0500 (EST) Received: from superylam@netscape.net by imo-r06.mx.aol.com (mail_out_v32.5.) id h.19.30351f3 (16233) for ; Sat, 23 Feb 2002 20:31:19 -0500 (EST) Received: from netscape.net (pcd331236.netvigator.com [203.218.121.236]) by air-in02.mx.aol.com (v83.35) with ESMTP id MAILININ29-0223203118; Sat, 23 Feb 2002 20:31:18 -0500 Message-ID: <3C78F85E.6010307@netscape.net> Date: Sun, 24 Feb 2002 09:27:42 -0500 From: Lam Yick Yan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How gtk distinguish event from differnt input device? References: <3C77A283.30609@netscape.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I have asked similar question before but may be the subject is not very attractive, I ask again, using a different subject. Suppose I have 3 input devices, one PS/2 and one COM port and one USB mouse. Now I am writing a GTK application with a drawing area, and I have a callback event handler to handle motion_notify_event. Is it possible to distinguish from which device the motion event is triggered? In the gint motion_notify(GtkWidget *widget, GdkEvent *event), I have study throught every field in the event structure, and I cannot find a way to tell from which device the event is generated, can some one please instruct me how to do so? An example or a pointer to webpage will be greatly appreciated. Yick Lam Hong Kong, Chna From otaylor@redhat.com Sun Feb 24 01:58:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id A2CC0180EA; Sun, 24 Feb 2002 01:58:19 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id C5086241BE2; Sun, 24 Feb 2002 01:58:18 -0500 (EST) To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Reply-To: gtk-devel-list@gnome.org Subject: New release of GTK+ libraries (1.3.15). Please test! From: Owen Taylor User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 155 Message-Id: <20020224065818.C5086241BE2@fresnel.labs.redhat.com> Date: Sun, 24 Feb 2002 01:58:18 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: A new release of GTK+ and associated libraries (GLib, Pango, Atk) is now available at: ftp://ftp.gtk.org/pub/gtk/v1.3/ This is the last scheduled pre-release before GTK+-2.0, so we'd really appreciate it if people developing with GTK+ would try compiling and using these libraries so we catch problems before we release. Bugs should be reported to http://bugzilla.gnome.org. The relevant products are gtk+, glib, pango, and atk. We'd also appreciate reports of successful compilation, especially on less common platforms; please send such reports to gtkdev@gnome.org. Information on platform, operating system (and distribution for Linux), operating system version, and compiler is useful. The JPEG/PNG/TIFF libraries, and pkg-config 0.8 or newer are needed to compile this release. These are available at: ftp://ftp.gtk.org/pub/gtk/v1.3/dependencies/ (The canonical upstream location for pkg-config is http://www.freedesktop.org/software/pkgconfig/. But gtk.org mirrors the 0.11 version you need to build GTK+) You will also need "libiconv" on systems with C libraries that lack the iconv() function: http://www.gnu.org/software/libiconv/ And the libintl library from the GNU "gettext" package if your C library doesn't have gettext() functionality: http://www.gnu.org/software/gettext/ Overview of Changes in GLib 1.3.15: =================================== * Speed up marshalers by using private access to GValue [Anders Carlsson, Tim Janik] * Reduce GValue to 2 elements [Tim] * Add G_DEBUG environment variable, G_DEBUG=fatal_warnings [Matthias Clasen] * Fixes for AIX compilation [Miroslaw Dobrzanski-Neumann] * Add padding to various structures [Owen Taylor, Tim] * Win32 fixes [Tor Lillquist] Other contributors: Daniel Elstner, James Henstridge, Ryan Lovett, Morten Welinder, Overview of Changes in Pango 0.26 ================================= * Fixes for AIX compilation [Miroslaw Dobrzanski-Neumann] * Fix zero-width characters being displayed [Sven Neumann] * Add some padding to class structures [Owen Taylor] Overview of Changes in Atk 0.13 ================================= * Add padding to class structures for future expansion [Padraig O'Briain] * Add include guards to atk.h [Morten Welinder] * Change argument of atk_component_get_layer(),atk_component_get_mdi_zorder() to be AtkComponent instead of AtkObject [Padraig] * Cleanups [Padraig] Overview of Changes in GTK+ 1.3.15 ================================== * New stock and improved icon images [Tuomas Kuosomann, Jakub Steiner, Anders Carlsson] * Widget drawing improvements for check and radio buttons, spinbuttons [Soeren Sandmann] * Clean up module search path algorithm, use GTK_PATH [Owen Taylor] * Add GtkSetting for font name. [Richard Hestilow] * Much improved key matching code, accelerators work independent of group [Owen] * Make mnemonics work for embedded GtkPlug widgets [Owen] * Keynav improvements for GtkTreeView [Kristian Rietveld] * Fix gtk_tree_view_scroll_to_cell() [Jonathan Blandford] * Rename gtk_tree_view_get_iter_root() and gtk_tree_path_new_root() to gtk_tree_view_get_iter_first() and gtk_tree_path_new_first(), add compatibility macros. * GtkTreeView bug fixes [Kristian, Anders, Damon Chaplin] * GtkTextView bug fixes [Havoc Pennington] * Pad class structures for future binary compatibility [Owen] * Tutorial improvements [Sven Neumann, Matthias Clasen] * Fixes for MULTIPLE selection target [Gregory Merchan, Owen] * Fix problems with initial widget size [Owen] * AIX compilation fixes [Miroslaw Dobrzanski-Neumann] * Win32 fixes [Hans Breuer, Tor Lillqvist] * Miscellaneous bug fixes Other contributors: David L. Cooper, Eric Fischer, Jody Goldberg, Satajyit Kanungo, Thomas Leonard, Mark Patton, Manish Singh, Nicolas Setton Library Descriptions ==================== GLib 1.3.15 (http://www.gtk.org) GLib is the low-level core library that forms the basis of 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. Pango 0.26 (http://www.pango.org) Pango is a library for layout and rendering of text, with an emphasis on internationalization. It forms the core of text and font handling for GTK+-2.0. Atk 0.13 (http://developer.gnome.org/projects/gap) The ATK library provides a set of interfaces for accessibility. By supporting the ATK interfaces, an application or toolkit can be used such as tools such as screen readers, magnifiers, and alternative input devices. GTK+ 1.3.15 (http://www.gtk.org) GTK+ is a widget toolkit for X and other windowing systems. It is used in such projects as the GIMP and GNOME. Notes ===== This release is incompatible with GTK+ and GLib 1.2.x. Software that has not been explicitly ported will not compile with this version. Do not send bug reports about such compilation problems to either us or maintainers of software that uses GLib and GTK+ 1.2.x; The currently supported version of GLib and GTK+ is version 1.2.10. If you install these libraries, do NOT replace your current GLib and GTK+ packages with them; these libraries are designed so they can be installed in parallel with a GTK+ install without affecting it. The API is frozen at this point. No additional API changes are anticipated before GTK+-2.0 is released. Binary interfaces for these libraries are not yet frozen; applications built against these libraries will need to be rebuilt when the final GTK+-2.0.0 is released. Comments should be sent to: GLib, GTK+: gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list Pango: gtk-i18n-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-i18n-list ATK: gnome-accessibility-list@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list From ehml@pacific.net.sg Tue Feb 19 11:04:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from spade.pacific.net.sg (spade.pacific.net.sg [203.120.90.71]) by mail.gnome.org (Postfix) with ESMTP id B8E0B189C3 for ; Tue, 19 Feb 2002 11:04:25 -0500 (EST) Received: from smtp1.pacific.net.sg (smtp1.pacific.net.sg [203.120.90.70]) by spade.pacific.net.sg with ESMTP id g1JG4Np02015 for ; Wed, 20 Feb 2002 00:04:23 +0800 Received: from pacific.net.sg (ppp235.dyn91.pacific.net.sg [210.24.91.235]) by smtp1.pacific.net.sg with ESMTP id g1JG4Kt03787 for ; Wed, 20 Feb 2002 00:04:21 +0800 Message-ID: <3C7277C4.7394E50F@pacific.net.sg> Date: Wed, 20 Feb 2002 00:05:24 +0800 From: ehml X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Scrolled window unable to handle huge list ( > 1700 entries) in it References: <3C36FA81.24BEA795@pacific.net.sg> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I need advice on putting huge list in a scrolled window. I notice that when I have more than 1700 (exact number is around 167+) entries in a list (or tree), and the list is in a scrolled window, it will not be displayed correctly. Anyone know limitation on the number of entry (or height) a scrolled window can support, and is there a known way to workaround this? Thanks. Regards, Eng Han From Romain.Parmantier@wanadoo.fr Tue Feb 19 19:18:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto2.wanadoo.fr (smtp-out-2.wanadoo.fr [193.252.19.254]) by mail.gnome.org (Postfix) with ESMTP id B4B1418649 for ; Tue, 19 Feb 2002 19:18:23 -0500 (EST) Received: from mel-rta4.wanadoo.fr (193.252.19.58) by mel-rto2.wanadoo.fr; 20 Feb 2002 01:18:22 +0100 Received: from pentium (193.250.93.194) by mel-rta4.wanadoo.fr; 20 Feb 2002 01:18:05 +0100 Message-ID: <010d01c1b9a4$12de05c0$c25dfac1@pentium> From: "Romain" To: Subject: [GTK help] Date: Wed, 20 Feb 2002 01:18:07 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_010A_01C1B9AC.74020F10" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_010A_01C1B9AC.74020F10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi! How I can superpose two GtkText in the same window (in a notebook for = example)? In a background, a gtktext where you can't modify the text and = in the foreground, a gtktext where you can modify the text. Result, you = have the background and the foreground in the same window with the = superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------=_NextPart_000_010A_01C1B9AC.74020F10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi!
How I can superpose two GtkText in the = same window=20 (in a notebook for example)? In a background, a gtktext where you can't = modify=20 the text and in the foreground, a gtktext where you can modify the text. = Result,=20 you have the background and the foreground in the same window with = the=20 superposed texts.
Thanks,
 
Excuse me for my 'english' but I don't = speak it=20 very well.
------=_NextPart_000_010A_01C1B9AC.74020F10-- From jimmycllin@hotmail.com Wed Feb 20 11:24:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (oe21.law11.hotmail.com [64.4.16.125]) by mail.gnome.org (Postfix) with ESMTP id 39D4A1814C for ; Wed, 20 Feb 2002 11:24:17 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 20 Feb 2002 08:24:16 -0800 X-Originating-IP: [61.10.172.12] From: "Jimmy Lin" To: Subject: When will GTK+2.0 be released? Date: Thu, 21 Feb 2002 00:25:54 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C1BA6E.52CC1580" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 20 Feb 2002 16:24:16.0399 (UTC) FILETIME=[0A6759F0:01C1BA2B] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C1BA6E.52CC1580 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Hello, I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and GTK+2.0 = is incompatible. So should I learn GTK+2.0 is much better now? Please = give me some advices. Thanks!!! Jimmy ------=_NextPart_000_0007_01C1BA6E.52CC1580 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Hello,
 
I'm a new comer of GTK+, I noticed that the api = of GTK+1.2=20 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much=20 better now? Please give me some advices. = Thanks!!!
 
Jimmy
------=_NextPart_000_0007_01C1BA6E.52CC1580-- From falconer@falconer.best.vwh.net Thu Feb 21 16:46:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id D229419273 for ; Thu, 21 Feb 2002 16:46:05 -0500 (EST) Received: (qmail 70778 invoked by uid 25889); 21 Feb 2002 21:46:04 -0000 Date: 21 Feb 2002 21:46:04 -0000 Message-ID: <20020221214604.70777.qmail@falconer.best.vwh.net> From: falconer@falconer.best.vwh.net To: gtk-list@gnome.org Subject: Gtk feature requests Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all; I just saw that gtk 2 is coming out soon. It's probably too late for 2.0, but could I get folks to consider the following features for a future release? These comments stem from frustrations I encountered while developing under gtk. Most of these could be considered bug reports rather than changes to the API. * Toolkit should recognize traditional "-g WxH+X+Y" commandline arguments. * It would be very handy to be able to somehow specify the width of a TextEntry widget in terms of displayed characters instead of pixels. I just want the option of creating a text entry that displays 10 characters, or whatever. Currently, I use a utility function which I wrote which converts en-spaces to pixels, but it can't account for the widget's internal margins, etc. * Scrollbars and scales desperately need a way for callbacks to differentiate a scroll-in-progress from a scroll-completed type event. I would suggest a "value-done" signal to supplement the "value" event. (Example: a cad program that takes a long time to rebuild the display. I want to scroll it without rebuilding while the user manipulates the scroll bar, and then do the rebuild when the user releases the mouse.) * It would be nice to add a scale factor option to sliders and scrollbars so that a large mouse motion results in a small change in slider position (very useful feature when dealing with very small sliders. See http://www.efalk.org/Widgets/#slider for an example of one I wrote for the X intrinsics many years ago. * It would be nice for TextEntry widgets to have signals which indicate that the widget has received/lost keyboard focus. This is especially important when losing focus, as this is a good time for the application to validate and/or reformat the input. * It would be nice to have an option for TextEntry widgets to select their contents when gaining focus (although this could be done manually given a focus-received signal.) * I found the toolkit's habit of highlighting the widget under the cursor rather than highlighting the widget with keyboard focus to be confusing. * It would be a nice feature to add "focus follows mouse" to the keyboard focus mechanism. That is, moving the mouse from widget to widget would change the focus without needing to click on the new widget. The tab keys would still change the focus as before. (I implemented this in my XawM toolkit, see http://www.efalk.org/Widgets/#xawm) * Buttons should provide visual feedback when activated from keyboard (i.e. button-pressed on key down, button-released on key up.) * It would be nice to be able to expand/collapse tree widgets with the +/- keys. * It would be nice if I could use my own select loop with gtk; something like: gtkfd = gtk_get_connection_id() ; : select(nfds, &readfds, ...)) : if( FD_ISSET(gtkfd, &readfds) ) { while( GtkPeekEvent() ) GtkDispatchEvent() ; } -ed falk From Matthias.Clasen@poet.de Fri Feb 22 10:13:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.poet.de (unknown [195.243.100.246]) by mail.gnome.org (Postfix) with ESMTP id 82A05182E0 for ; Fri, 22 Feb 2002 10:13:48 -0500 (EST) Received: from POONS.poet.de ([192.168.11.9]) by mail.poet.de with Microsoft SMTPSVC(5.0.2195.2966); Fri, 22 Feb 2002 16:02:49 +0100 To: gtk-list@gnome.org Cc: amundson@gtk.org Subject: Re: g_signal_connect_swapped X-Mailer: Lotus Notes Release 5.0.4 June 8, 2000 Message-ID: From: "Matthias Clasen" Date: Fri, 22 Feb 2002 16:11:23 +0100 X-MIMETrack: Serialize by Router on hamburg/server/Poet(Release 5.0.8 |June 18, 2001) at 22.02.2002 16:11:05, Serialize complete at 22.02.2002 16:11:05 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-OriginalArrivalTime: 22 Feb 2002 15:02:49.0156 (UTC) FILETIME=[FE34C040:01C1BBB1] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: The tutorial and examples in CVS head should be pure GTK+ 2.0. The title even expresses this ("GTK+ 2.0 tutorial") - it is a bit unfortunate that the online version at www.gtk.org/tutorial tracks CVS head. Maybe Shawn Amundson (cc'ed) can be convinced to set things up so that the GTK+ 1.2 version of the tutorial is available as well (there is already a parallel setup for the reference manuals). Until that happens, you can try ftp://ftp.gtk.org/pub/gtk/tutorial/db-gtk-tutorial.20000721.tar.gz, which is admittedly fairly old. Matthias From ehml@pacific.net.sg Fri Feb 22 10:50:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from scythe.pacific.net.sg (scythe.pacific.net.sg [203.120.90.37]) by mail.gnome.org (Postfix) with ESMTP id 5EAC6189D6 for ; Fri, 22 Feb 2002 10:50:35 -0500 (EST) Received: from smtp1.pacific.net.sg (smtp1.pacific.net.sg [203.120.90.70]) by scythe.pacific.net.sg with ESMTP id g1MFoXn27457 for ; Fri, 22 Feb 2002 23:50:33 +0800 Received: from pacific.net.sg (ppp200.dyn89.pacific.net.sg [210.24.89.200]) by smtp1.pacific.net.sg with ESMTP id g1MFoWt24846 for ; Fri, 22 Feb 2002 23:50:32 +0800 Message-ID: <3C76690A.E46C047A@pacific.net.sg> Date: Fri, 22 Feb 2002 23:51:38 +0800 From: ehml X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: key input get grab by other widget References: <3C36FA81.24BEA795@pacific.net.sg> <3C7277C4.7394E50F@pacific.net.sg> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I run into another "I do not know how to do" difficulty, and need advice. My application has a drawing-area, menu, and a frame with check-button in it. In the drawing-area, I assign "key press event" to it. It work find for key like "a" and "b", but does not work for arrow key. Once I press a arrow key, the "check button" grab that input, and subsequently, all key is grab by the "check button". The same will happen if I point at the menu-bar and click in a empty space following by pressing a key. What I need is: If the pointer is in the drawing-area, drawing-area should grab all key event. Is this possible, or there is any good workaround? Thanks. Regards, Eng Han PS: As gtk-list@gnome.org is a private email, is there a public news-group for me to seek advice? Thanks. From haem@netvigator.com Fri Feb 22 12:19:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imsmq05.netvigator.com (imsmq05.netvigator.com [208.167.231.41]) by mail.gnome.org (Postfix) with SMTP id E8078191AE for ; Fri, 22 Feb 2002 12:19:04 -0500 (EST) Received: (qmail 11385 invoked from network); 22 Feb 2002 17:19:02 -0000 Received: from pcd331066.netvigator.com (HELO netvigator.com) (203.218.121.66) by imsmq05.netvigator.com with SMTP; 22 Feb 2002 17:19:02 -0000 Message-ID: <3C773384.9070104@netvigator.com> Date: Sat, 23 Feb 2002 01:15:32 -0500 From: Lam Yick Yan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk->deviceid How to use? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I have just devleoped a X input driver for my small graphic tablet. And it is working.... Now I have cursor that will move according to mouse OR graphic tablet. Now I want to develope a gtk application that will ONLY respond the event from my graphic tablet. I have a callback function in my GTK application, motion_notify_event and I have compared the event content of my mouse and my graphic tablet and they look the same (the deviceid content etc). and I have no way to distuguish whether the event is from the mouse or from the graphic tablet. What did I do wrong in my driver? can please have a look at http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether I did wrong in the device driver? Yick Hong Kong china From csingla@nc.rr.com Fri Feb 22 16:50:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from Mail6.nc.rr.com (fe6.southeast.rr.com [24.93.67.53]) by mail.gnome.org (Postfix) with ESMTP id AE0A71931A for ; Fri, 22 Feb 2002 16:50:52 -0500 (EST) Received: from nc.rr.com ([66.57.252.230]) by Mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Fri, 22 Feb 2002 16:50:46 -0500 Message-ID: <3C76BD1F.70702@nc.rr.com> Date: Fri, 22 Feb 2002 16:50:23 -0500 From: Oliver Singla Reply-To: oliver_singla@yahoo.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Trouble to compile atk-0.12 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, On my RH7.2 box, I have trouble to compile atk-0.12. After I have ran .configure, here is what I get when I do a make: [omsingla@oliver atk-0.12]$ make Making all in atk make[1]: Entering directory `/home/omsingla/gtk/1.3/atk-0.12/atk' case ..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal in \ .*) glib_genmarshal=`pwd`/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal ;; \ *) glib_genmarshal=..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal ;; \ esac; \ $glib_genmarshal --prefix=atk_marshal ./atkmarshal.list --body >> xgen-gmc \ && (cmp -s xgen-gmc ./atkmarshal.c || cp xgen-gmc ./atkmarshal.c) \ && rm -f xgen-gmc xgen-gmc~ \ && echo timestamp > stamp-atkmarshal.c /bin/sh: /home/omsingla/gtk/1.3/atk-0.12/atk/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal: No such file or directory make[1]: *** [stamp-atkmarshal.c] Error 127 make[1]: Leaving directory `/home/omsingla/gtk/1.3/atk-0.12/atk' make: *** [all-recursive] Error 1 [omsingla@oliver atk-0.12]$ Any idea ? TIA, Olivier Singla From soppers3@cti.ecp.fr Fri Feb 22 18:28:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from manoul.cti.ecp.fr (manoul.cti.ecp.fr [138.195.33.28]) by mail.gnome.org (Postfix) with ESMTP id 6CE4418A19 for ; Fri, 22 Feb 2002 18:28:02 -0500 (EST) Received: from caracal2.cti.ecp.fr (caracal2.cti.ecp.fr [138.195.33.40]) by manoul.cti.ecp.fr (Postfix) with SMTP id 825FB1EF1E for ; Sat, 23 Feb 2002 00:28:01 +0100 (CET) Received: from soppera.via.ecp.fr (soppera.via.ecp.fr [138.195.141.103]) by caracal2.cti.ecp.fr (Postfix) with ESMTP id 3B74D15A70 for ; Sat, 23 Feb 2002 00:28:33 +0100 (MET) Subject: Will GTKGlArea be included in GTK+ one day From: Stephane SOPPERA Reply-To: soppers3@cti.ecp.fr To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.13 (Preview Release) Date: 23 Feb 2002 00:27:45 +0100 Message-Id: <1014420468.6631.16.camel@soppera> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I was wondering if the GTK GlArea widget will be one day included in GTK+? Is it planned? -- Stephane SOPPERA http://stephane.soppera.free.fr From Romain.Parmantier@wanadoo.fr Thu Feb 21 12:25:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto3.wanadoo.fr (smtp-out-3.wanadoo.fr [193.252.19.233]) by mail.gnome.org (Postfix) with ESMTP id C067618AC5 for ; Thu, 21 Feb 2002 12:25:06 -0500 (EST) Received: from mel-rta9.wanadoo.fr (193.252.19.69) by mel-rto3.wanadoo.fr; 21 Feb 2002 18:25:05 +0100 Received: from pentium (193.250.93.90) by mel-rta9.wanadoo.fr; 21 Feb 2002 18:24:48 +0100 Message-ID: <001401c1bafc$a8c19b70$5a5dfac1@pentium> From: "Romain" To: Subject: GTK Background Date: Thu, 21 Feb 2002 18:24:40 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0011_01C1BB05.06FBF250" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C1BB05.06FBF250 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, For my application, I need a transparent background for a GtkText (not a = white background). It is possible? And how can I do this if it is = possible ? ------=_NextPart_000_0011_01C1BB05.06FBF250 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
For my application, I need a = transparent background=20 for a GtkText (not a white background). It is possible? And how can I do = this if=20 it is possible ?
------=_NextPart_000_0011_01C1BB05.06FBF250-- From hvv@hippo.ru Sun Feb 24 03:06:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [195.218.232.214]) by mail.gnome.org (Postfix) with ESMTP id B4AD418136 for ; Sun, 24 Feb 2002 03:06:13 -0500 (EST) Date: Sun, 24 Feb 2002 13:09:32 +0400 (SAMT) From: Vlad Harchev X-Sender: hvv@localhost.localdomain To: "Bartosz \"Neron\" Leper" Cc: GTK-list Subject: Re: GTK and non-monospace fonts In-Reply-To: <001201c1bcb5$60c043c0$22e04dd5@s> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, 23 Feb 2002, Bartosz "Neron" Leper wrote: Hi, > > Hi, > > > > That was a bug in gdk fixed personally by me - the standard gtk-1.2.10 > > already contains the fix - so please upgrade your gtk to version 1.2.10. > > > > Best regards, > > -Vlad > > Thanks a lot. That was quite easy. I have downloaded and installed version > 1.2.10 and my own programs are now OK. But is there any chance to "patch" my > pre-compiled applications somehow without recompiling all of them? I have no > sources and no time to download them all. No, you don't have to recompile all applications that use gtk in order to get fixed behaviour - because they don't include gtk's code, they just link dynamically with gtk. All you have to do is to install updated gtk package to the standard locations where all programs expect it (it seems that just downloading and installing RPM with gtk-1.2.10 from Mandrake distribiution should be a solution). Best regards, -Vlad From aditya_gilra@yahoo.com Sun Feb 24 04:16:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14702.mail.yahoo.com (web14702.mail.yahoo.com [216.136.224.119]) by mail.gnome.org (Postfix) with SMTP id AB46F18136 for ; Sun, 24 Feb 2002 04:16:04 -0500 (EST) Message-ID: <20020224091604.934.qmail@web14702.mail.yahoo.com> Received: from [61.0.108.240] by web14702.mail.yahoo.com via HTTP; Sun, 24 Feb 2002 01:16:04 PST Date: Sun, 24 Feb 2002 01:16:04 -0800 (PST) From: Aditya Gilra Subject: Opentype Indic? To: gtk-list@gnome.org In-Reply-To: <20020224070921.9C5EF18FE9@mail.gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ||Shriharih|| God-Remembrance All. I noticed that Eric Mader's Indic Opentype patches are not mentioned in changes to pango for 1.3.15 . I hope they'll be considered for 2.0 . Or are they in already? It'll be a big help to be able to use good-quality Opentype fonts for Hindi - two are already available freely. - Aditya Gilra. __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From leidola@newcon.de Sun Feb 24 07:32:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id EA9F61823D for ; Sun, 24 Feb 2002 07:32:00 -0500 (EST) Received: from attic ([213.70.108.83]) by mail-1.newcon.de (8.9.3/8.9.3) with SMTP id NAA15034; Sun, 24 Feb 2002 13:31:56 +0100 From: Olaf Leidinger To: "Johnny B ." Cc: gtk-list@gnome.org Date: Sun, 24 Feb 2002 13:35:02 +0100 X-Priority: 3 (Normal) In-Reply-To: <20020223195935.C31813@tasha.vonbek.dhs.org> Message-Id: <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic> Subject: Re: linking problem MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Mailer: Opera 6.0 build 1010 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 24.02.2002 01:59:35, schrieb "Johnny B ." : [...] >/tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' >/tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' >/tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' [...] > >[johnnyb@tasha lib]$ gtk-config --cflags --libs >-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 >-I/usr/local/lib/glib/include -I/usr/X11R6/include >-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule >-lglib -ldl -lXext -lX11 -lm You link against gtk+-1.2, don't you? But as far as I know the missing things (g_signal_connect, G_OBJECT ans so) are part of gtk+-2.0 (or more exactly glib-2.0). Are you really sure that your installation is correct. This seems like a mixture of gtk+-1.2 and gtk+-2.0. Use the -v option when compiling to see exactly what is included and what linked to your application. Ciao Olaf From pbd@op.net Sun Feb 24 08:05:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 238191823D for ; Sun, 24 Feb 2002 08:05:12 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-82.phlpa.fast.net [209.92.99.82]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id IAA16035; Sun, 24 Feb 2002 08:04:59 -0500 (EST) Message-Id: <200202241304.IAA16035@renoir.op.net> To: ehml Cc: gtk-list@gnome.org Subject: Re: key input get grab by other widget In-reply-to: Your message of "Fri, 22 Feb 2002 23:51:38 +0800." <3C76690A.E46C047A@pacific.net.sg> Date: Sun, 24 Feb 2002 08:03:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >My application has a drawing-area, menu, and a frame with check-button in it. > >In the drawing-area, I assign "key press event" to it. It work find for key >like "a" and "b", but does not work for arrow key. Once I press a arrow key, >the "check button" grab that input, and subsequently, all key is grab by the >"check button". The same will happen if I point at the menu-bar and click in a >empty space following by pressing a key. What I need is: > >If the pointer is in the drawing-area, drawing-area should grab all key event. the arrow buttons, tab key and enter key are all considered "special" by GTK+, and are used (by default) to move the keyboard focus around between widgets. there is no way to turn off this behaviour in a global sense, but it can be handled on a per-widget basis. if you have a widget that needs to be able use any of these keys as a "normal" key, you need to connect to the widgets "key_press_event" signal with a handler that does something like this: gint key_press_handler (GtkWidget *widget, GdkEventKey *event, gpointer data) { int stop_emission = FALSE; switch (event->keyval){ case GDK_Up: case GDK_Down: case GDK_Left: case GDK_Right: stop_emission = TRUE; break; default: break; } if (stop_emission) { /* don't let the rest of GTK+ see this key */ gtk_signal_stop_emit_by_name (GTK_OBJECT(widget), "key_press_event"); } .... rest of your conventional key handling ... return TRUE; } --p From pbd@op.net Sun Feb 24 08:20:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D5E8F181D6 for ; Sun, 24 Feb 2002 08:20:37 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-82.phlpa.fast.net [209.92.99.82]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id IAA17161; Sun, 24 Feb 2002 08:20:34 -0500 (EST) Message-Id: <200202241320.IAA17161@renoir.op.net> To: falconer@falconer.best.vwh.net Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests In-reply-to: Your message of "21 Feb 2002 21:46:04 GMT." <20020221214604.70777.qmail@falconer.best.vwh.net> Date: Sun, 24 Feb 2002 08:19:23 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > arguments. which window is that for? think about it. > * Scrollbars and scales desperately need a way for callbacks to > differentiate a scroll-in-progress from a scroll-completed type > event. I would suggest a "value-done" signal to supplement > the "value" event. (Example: a cad program that takes a long > time to rebuild the display. I want to scroll it without > rebuilding while the user manipulates the scroll bar, and then > do the rebuild when the user releases the mouse.) this would be very valuable. XForms has a nice model, where you can specify the behaviour on a per-widget basis: report value when changed, report value when motion pauses (but before mouse release), report value every N msecs, report value when mouse is released). adding "value_change_complete" or "value_done" or whatever would allow widgets to support some or all of these models. > * It would be nice to add a scale factor option to sliders and > scrollbars so that a large mouse motion results in a small > change in slider position (very useful feature when dealing > with very small sliders. See you can write this yourself. my DAW application "ardour" has non-linear logarithmically scaled sliders. i've also written GTK+ widgets that have distance-log-scaled motion scaling, wherein mouse motion a long way from the widget (e.g. click-drag-right-now-drag-up-and-down) causes less change in the adjustment value than similar motion close to the widget. > * It would be nice for TextEntry widgets to have signals which > indicate that the widget has received/lost keyboard focus. focus_in_event focus_out_event > * I found the toolkit's habit of highlighting the widget under the > cursor rather than highlighting the widget with keyboard focus > to be confusing. catch enter_notify_event and leave_notify_event and stop the emission. this will prevent prelighting. i wish there was a way to turn off prelighting on a global basis, but it appears to contradict the desire of GTK+'s designers for a consistent GUI experience. > * It would be nice to be able to expand/collapse tree widgets with > the +/- keys. you can write this yourself. catch the key_press_event signal and handle it. > * It would be nice if I could use my own select loop with gtk; > something like: > > gtkfd = gtk_get_connection_id() ; > : > select(nfds, &readfds, ...)) > : > if( FD_ISSET(gtkfd, &readfds) ) > { > while( GtkPeekEvent() ) > GtkDispatchEvent() ; > } GTK uses glib, and its inner loop is a bit more complex than this. What you can do is to add your own fd's to its inner loop. There have been several posts here in the last month about this, and many in the archives, as well as information in the tutorial and reference docs. see gtk_input_add() and its more generic cousins g_source_add(). in the current "pending release" version of glib, the inner loop has been restructured to allow some decomposition into something like you describe, but i don't think it was with the idea of moving the outer while() into your code. glib's handling of what it terms "sources" is much more generic than select() would necessarily allow for (though under a POSIX system, select() is more or less all we have, since other types of signalling systems like semaphores can't be waited for with select). --p From johnnyb@zappa.vonbek.dhs.org Sun Feb 24 08:55:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from zappa.vonbek.dhs.org (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by mail.gnome.org (Postfix) with ESMTP id A081D18363 for ; Sun, 24 Feb 2002 08:55:46 -0500 (EST) Received: (from johnnyb@localhost) by zappa.vonbek.dhs.org (8.11.6/8.11.6) id g1ODumi02309 for gtk-list@gnome.org; Sun, 24 Feb 2002 08:56:48 -0500 Date: Sun, 24 Feb 2002 08:56:48 -0500 From: "Johnny B ." To: gtk-list@gnome.org Subject: Re: linking problem Message-ID: <20020224085648.A2282@zappa.vonbek.dhs.org> Reply-To: "Johnny B ." References: <20020223195935.C31813@tasha.vonbek.dhs.org> <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic>; from leidola@newcon.de on Sun, Feb 24, 2002 at 01:35:02PM +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Olaf and Havoc, Thanks for the info. I am indeed working with gtk-1.2 and I was unaware that the tutorial code on the gtk web site is for gtk-2.0! Sorry to eat your bandwidth like that! I don't see gtk-2.0 anywhere for download so I'll assume it's not released yet. I'll work through the tutorial that came with the 1.2 source. I'm trying to port a terminal app to gtk, with the hopes that it may run on Linux, AIX and probably win32, so I'll stick with gtk-1.2. Or should I seek out 2.0 ? Can't find it anywhere... Anyways, thanks for helping me sort this out! JB On Sun, Feb 24, 2002 at 01:35:02PM +0100, Olaf Leidinger wrote: > Am 24.02.2002 01:59:35, schrieb "Johnny B ." : > > [...] > >/tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' > >/tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' > >/tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' > > [...] > > > >[johnnyb@tasha lib]$ gtk-config --cflags --libs > >-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 > >-I/usr/local/lib/glib/include -I/usr/X11R6/include > >-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule > >-lglib -ldl -lXext -lX11 -lm > > You link against gtk+-1.2, don't you? But as far as I know the missing things (g_signal_connect, G_OBJECT ans so) are part of gtk+-2.0 (or more exactly glib-2.0). Are > you really sure that your installation is correct. This seems like a mixture of gtk+-1.2 and gtk+-2.0. > > Use the -v option when compiling to see exactly what is included and what linked to your application. > > Ciao > > Olaf > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list +--------------------------------- | John Bleichert | syborg@stny.rr.com | http://vonbek.dhs.org/latest.jpg From rsteinke@w-link.net Sun Feb 24 12:51:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 32634189DC for ; Sun, 24 Feb 2002 12:51:38 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16f2o7-0002QQ-00; Sun, 24 Feb 2002 09:51:31 -0800 Date: Sun, 24 Feb 2002 09:51:31 -0800 From: rsteinke@w-link.net To: haem@netvigator.com, gtk-list@gnome.org Subject: Re: gtk->deviceid How to use? Message-ID: <3C792823.nail7191IMBE5@w-link.net> References: <3C773384.9070104@netvigator.com> In-Reply-To: <3C773384.9070104@netvigator.com> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Lam Yick Yan > > Dear Sir, > > I have just devleoped a X input driver for my small graphic tablet. > And it is working.... Now I have cursor that will move according to > mouse OR graphic tablet. > > Now I want to develope a gtk application that will ONLY respond > the event from my graphic tablet. I have a callback function in my GTK > application, motion_notify_event and I have compared the event content > of my mouse and my graphic tablet and they look the same (the deviceid > content etc). and I have no way to distuguish whether the event is from the > mouse or from the graphic tablet. > > What did I do wrong in my driver? can please have a look at > http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether > I did wrong in the device driver? You should (I think), in principle, be able to distinguish them using the GdkInputSource (GDK_SOURCE_MOUSE vs GDK_SOURCE_PEN). If the tablet isn't giving events as GDK_SOURCE_PEN, look at the gdk source code and see how gdk determines this information from the XEvent, and make sure your driver is giving the proper information to X. Ron Steinke P.S. This is _way_ out of my area of expertise, someone please correct me if I'm wrong. From hp@redhat.com Sun Feb 24 17:18:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 3E72E181A5 for ; Sun, 24 Feb 2002 17:18:46 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMIgM09833; Sun, 24 Feb 2002 17:18:42 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Jimmy Lin" Cc: Subject: Re: When will GTK+2.0 be released? References: From: Havoc Pennington Date: 24 Feb 2002 17:18:42 -0500 In-Reply-To: Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Jimmy Lin" writes: > > I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and > GTK+2.0 is incompatible. So should I learn GTK+2.0 is much better > now? Please give me some advices. Thanks!!! > Yes, I would start with 2.0. Havoc From hp@redhat.com Sun Feb 24 17:41:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 62F81181A5 for ; Sun, 24 Feb 2002 17:41:36 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMfZa09838; Sun, 24 Feb 2002 17:41:35 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: falconer@falconer.best.vwh.net Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests References: <20020221214604.70777.qmail@falconer.best.vwh.net> From: Havoc Pennington Date: 24 Feb 2002 17:41:35 -0500 In-Reply-To: <20020221214604.70777.qmail@falconer.best.vwh.net> Message-ID: Lines: 112 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: falconer@falconer.best.vwh.net writes: > Hi all; I just saw that gtk 2 is coming out soon. It's probably > too late for 2.0, but could I get folks to consider the following > features for a future release? These comments stem from frustrations > I encountered while developing under gtk. > > Most of these could be considered bug reports rather than changes > to the API. Both features and bug reports should go in bugzilla - http://bugzilla.gnome.org, otherwise they typically get lost. If you put the report in bugzilla you also get the nice advantage that you will be able to monitor patches and discussion relating to the feature and add your own comments, and you'll be notified when the fix goes in. Certainly a number of these comments would be useful in bugzilla. > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > arguments. gtk_window_parse_geometry(). Toolkit can't do more than that for you, as Paul points out. > * It would be very handy to be able to somehow specify the > width of a TextEntry widget in terms of displayed characters > instead of pixels. gtk_entry_set_width_chars() > * Scrollbars and scales desperately need a way for callbacks to > differentiate a scroll-in-progress from a scroll-completed type > event. I would suggest a "value-done" signal to supplement > the "value" event. (Example: a cad program that takes a long > time to rebuild the display. I want to scroll it without > rebuilding while the user manipulates the scroll bar, and then > do the rebuild when the user releases the mouse.) gtk_range_set_update_policy() is the intended feature here, though it doesn't handle the case you mention. > * It would be nice to add a scale factor option to sliders and > scrollbars so that a large mouse motion results in a small > change in slider position (very useful feature when dealing > with very small sliders. See > > http://www.efalk.org/Widgets/#slider > > for an example of one I wrote for the X intrinsics many years > ago. Wouldn't it make more sense for the slider to autocompute the scale factor depending on its size and range and step increment? > * It would be nice for TextEntry widgets to have signals which > indicate that the widget has received/lost keyboard focus. > This is especially important when losing focus, as this is > a good time for the application to validate and/or reformat > the input. There are focus_in_event and focus_out_event signals that do this as Paul pointed out. > * It would be nice to have an option for TextEntry widgets to > select their contents when gaining focus (although this could > be done manually given a focus-received signal.) GtkEntry does this by default now - now the usual request is to have an option to disable it. ;-) We may have made it a user option, I don't remember. > * I found the toolkit's habit of highlighting the widget under the > cursor rather than highlighting the widget with keyboard focus > to be confusing. I don't think it's "rather than", there are two separate kinds of indication - focus outline and prelight. This is in some sense entirely a function of the theme (a theme can disable or modify how either thing is displayed). > * It would be a nice feature to add "focus follows mouse" to the > keyboard focus mechanism. That is, moving the mouse from widget > to widget would change the focus without needing to click on > the new widget. The tab keys would still change the focus as > before. (I implemented this in my XawM toolkit, see > http://www.efalk.org/Widgets/#xawm) Hrm, I think you'll find little enthusiasm for that... no modern toolkit does this. > * Buttons should provide visual feedback when activated from keyboard > (i.e. button-pressed on key down, button-released on key up.) GTK 2 has this feature. > * It would be nice to be able to expand/collapse tree widgets with > the +/- keys. I believe GtkTreeView in GTK 2 has this feature. If not it has some other keybinding for it. > * It would be nice if I could use my own select loop with gtk; > something like: > GLib 2 is set up to allow integration with other main loops, though again Paul is right - it's a bit more complex than you were hoping. ;-) GTK has more "event sources" than just the X event queue. Havoc From hp@redhat.com Sun Feb 24 17:43:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id EF23F1878D for ; Sun, 24 Feb 2002 17:43:26 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMhOM09842; Sun, 24 Feb 2002 17:43:24 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: soppers3@cti.ecp.fr Cc: gtk-list@gnome.org Subject: Re: Will GTKGlArea be included in GTK+ one day References: <1014420468.6631.16.camel@soppera> From: Havoc Pennington Date: 24 Feb 2002 17:43:24 -0500 In-Reply-To: <1014420468.6631.16.camel@soppera> Message-ID: Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Stephane SOPPERA writes: > I was wondering if the GTK GlArea widget will be one day included in > GTK+? > Is it planned? > It's been discussed but I wouldn't say plans have been made. You might want to be sure there's a bug about this in bugzilla, and contact the GtkGLArea maintainer and ask him/her to add their opinion to the bug and maybe get on the CC list for the bug. Havoc From hp@redhat.com Sun Feb 24 17:45:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 426B018A9C for ; Sun, 24 Feb 2002 17:45:09 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMj8Y09846; Sun, 24 Feb 2002 17:45:08 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Johnny B ." Cc: gtk-list@gnome.org Subject: Re: linking problem References: <20020223195935.C31813@tasha.vonbek.dhs.org> <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic> <20020224085648.A2282@zappa.vonbek.dhs.org> From: Havoc Pennington Date: 24 Feb 2002 17:45:08 -0500 In-Reply-To: <20020224085648.A2282@zappa.vonbek.dhs.org> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Johnny B ." writes: > > Thanks for the info. I am indeed working with gtk-1.2 and I was > unaware that the tutorial code on the gtk web site is for gtk-2.0! > Sorry to eat your bandwidth like that! I don't see gtk-2.0 anywhere > for download so I'll assume it's not released yet. > > I'll work through the tutorial that came with the 1.2 source. I'm > trying to port a terminal app to gtk, with the hopes that it may run > on Linux, AIX and probably win32, so I'll stick with gtk-1.2. Or > should I seek out 2.0 ? Can't find it anywhere... > I'd suggest using 2.0 at this point. 2.0 isn't actually released as a final stable release; so it's called 1.3.15 still, rather than 2.0. But it will be called 2.0.0 very soon. (Planned in a week or so.) Havoc From weigelt@metux.de Sun Feb 24 23:00:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from annwfn.erfurt.thur.de (annwfn.erfurt.thur.de [194.122.210.1]) by mail.gnome.org (Postfix) with ESMTP id 988A41838F for ; Sun, 24 Feb 2002 23:00:09 -0500 (EST) Received: from annwfn.erfurt.thur.de (localhost [127.0.0.1]) by annwfn.erfurt.thur.de (8.12.0/8.12.0) with ESMTP id g1P408eY007631 for ; Mon, 25 Feb 2002 05:00:08 +0100 Received: (from uucp@localhost) by annwfn.erfurt.thur.de (8.12.0/8.12.0/Submit) with UUCP id g1P407wQ007630 for gtk-list@gnome.org; Mon, 25 Feb 2002 05:00:07 +0100 Received: from metux.de (localhost [127.0.0.1]) by metux.de (8.11.3/8.11.4) with ESMTP id g1P3tmm31790; Mon, 25 Feb 2002 04:55:48 +0100 Message-ID: <3C79B5C4.F1FA3AF5@metux.de> Date: Mon, 25 Feb 2002 04:55:48 +0100 From: Enrico Weigelt Reply-To: weigelt@metux.de Organization: meTUX IT services X-Mailer: Mozilla 4.76 [de] (X11; U; Linux 2.4.9 i686) X-Accept-Language: de, en MIME-Version: 1.0 To: GTK Mailing List Subject: garbage collection (long) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi folks, some month ago, i already asked for an gc implementation in GTK, but got almost no response, so i'd like to warm up the topic now. for those who are not familar with GC, some short explaination: * an garbage collector is responsible for freeing memory chunks which are not used (referenced) any longer, so it's no longer the job of the developer. * if properly implemented, the GC removes most errors situations with bad pointers, since once an pointer was initialized it will (theoretically) never point to unallocated memory. * especially when working with complex graphs (an normal GTK application already has them, even when hidden behind the ADTs), it makes code smaller, easier to understand, and much more stable. * many modern languages (i.e. oberon, java, perl, php) use GCs, but there are also GC-based memory allocators for C or C++. * in general there are two common methods for GCs. a) reference counting the GC manages an reference counter for each chunk. this counter is increased evry time the chunk gets referenced (pointer assignment) and will be decreased when the reference is removed. this method quite is easy to implement (in C with macros or in C++ by overloading pointer operations), is unproblematic in multithreaded enviroments, but can leave some trash when using ring graphs. b) conservative GC here the GC runs from time to time over the whole heap, follows pointers and marks all chunks it can reach as used. unmarked chunks can be considered as unreachable=unused and are collected/freed. an conservative GC needs to know (or guess) where pointers lay around in the chunks to follow them. the Hans-Boehm-GC is able to do this even without knowing the type infos. an disatwantage can be seen in conjunction MT-realtime-applications, since the mark phase (when walking through the heap), all threads have to stopped, but this should not be an problem if you're not really hanging on microseconds ... if someone's interested, i'll do the most of the work with implementing an GC (Hans-Boehm-GC) in glib/gtk, but i need some help with testing the build stuff (i wont touch this spooky automake) ... ~-n -- Enrico Weigelt == meTUX IT services software development, IT service, internet security solutions www: http://www.metux.de/ phone: +49 36207 519931 email: contact@metux.de cellphone: +49 174 7066481 From hp@redhat.com Mon Feb 25 00:20:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 4472C181E6 for ; Mon, 25 Feb 2002 00:20:46 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1P5Kek09925; Mon, 25 Feb 2002 00:20:40 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: weigelt@metux.de Cc: GTK Mailing List Subject: Re: garbage collection (long) References: <3C79B5C4.F1FA3AF5@metux.de> From: Havoc Pennington Date: 25 Feb 2002 00:20:40 -0500 In-Reply-To: <3C79B5C4.F1FA3AF5@metux.de> Message-ID: Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Enrico Weigelt writes: > > if someone's interested, i'll do the most of the work with implementing > an GC (Hans-Boehm-GC) in glib/gtk, but i need some help with testing the > build stuff (i wont touch this spooky automake) ... > I already did this a while ago, it's in CVS as "libggc" - I'm not sure it still works with latest GTK but fixing it should be easy. It just drops in the Boehm GC as the GLib memory allocator. It isn't all that useful though, because running the destroy/finalize methods for GObject/GtkWidget will still be controlled by the reference count instead of the GC, so you still need to hold references to everything to keep objects from being rendered useless. To make this useful GTK would have to be reworked internally to rely on it, which won't happen anytime soon. Havoc From dchiod@inwind.it Mon Feb 25 01:25:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailweb8.inwind.it (unknown [212.141.54.118]) by mail.gnome.org (Postfix) with ESMTP id DFB0B185A0 for ; Mon, 25 Feb 2002 01:25:38 -0500 (EST) Received: from inwind.it (127.0.0.1) by mailweb8.inwind.it (5.5.053) id 3C5BADD500010228 for gtk-list@gnome.org; Mon, 25 Feb 2002 07:27:44 +0100 Date: Mon, 25 Feb 2002 07:27:44 +0100 Message-Id: Subject: accessing widget property (newbie) MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable From: "Davide Chiodi" To: gtk-list@gnome.org X-XaM3-API-Version: 1.1.9.1.39.1.2 X-SenderIP: 217.56.227.2 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want change text in a label from another window( a window that isn't its parent);now, I tried GList and other stuff with the gtk_container but i'm not able to find the correct way; now i change the property making the label global and it is ok, but i think there's a more elegant way to get the goal. Thanks to anyone. Davide. From david@jopasana.com Mon Feb 25 02:32:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from jopasana.com (unknown [128.121.218.64]) by mail.gnome.org (Postfix) with ESMTP id CC49E18337 for ; Mon, 25 Feb 2002 02:32:24 -0500 (EST) Received: from [203.197.90.72] ([203.197.90.72]) by jopasana.com (8.11.6) id g1P7WM308772; Mon, 25 Feb 2002 00:32:23 -0700 (MST) Message-ID: <015701c1bdce$ddb60210$aa0ba8c0@djj> From: "David Joseph" To: Received: from no.name.available by [203.197.90.72] via smtpd (for [128.121.218.64]) with SMTP; 25 Jan 2002 07:44:57 UT Subject: Problems in attaching GtkScrolledWindow to GtkList Date: Mon, 25 Feb 2002 13:04:29 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0154_01C1BDFC.F5BC4850" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0154_01C1BDFC.F5BC4850 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi I am doing a project that involves the use of GtkList. I am trying to attach scroll bars to the lists but am not very = successful. I then tried to do a simple program to see where I was going wrong ..... = The program ran .. but I got this error on the console Gtk-CRITICAL **: file gtkscrolledwindow.c: line 951 = (gtk_scrolled_window_add_with_viewport): assertion `child->parent =3D=3D = NULL' failed. Any Idea what is going wrong here? Thanks in advance David The code is as follows: /////////////////////////////////////////////////////////////////////////= ///////////////////////// GtkWidget * create_window1 (void) { GtkWidget *window1; GtkWidget *fixed1; GtkWidget *list2; GList *list_items =3D NULL; gint count; gchar buff[3]; GtkWidget *scrolled_window =3D NULL; window1 =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (window1), "window1", window1); gtk_window_set_title (GTK_WINDOW (window1), "window1"); fixed1 =3D gtk_fixed_new (); gtk_widget_ref (fixed1); gtk_object_set_data_full (GTK_OBJECT (window1), "fixed1", fixed1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (fixed1); gtk_container_add (GTK_CONTAINER (window1), fixed1); list2 =3D gtk_list_new (); gtk_widget_ref (list2); gtk_object_set_data_full (GTK_OBJECT (window1), "list2", list2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (list2); gtk_fixed_put (GTK_FIXED (fixed1), list2, 40, 16); gtk_widget_set_uposition (list2, 40, 16); gtk_widget_set_usize (list2, 104, 136); for(count =3D 0; count <10 ; count++) { sprintf(buff, "%d", count); list_items =3D g_list_prepend(list_items, = gtk_list_item_new_with_label(buff)); } g_print("\nafter scrolled window4\n"); gtk_list_append_items(GTK_LIST(list2), list_items); g_print("\nafter scrolled window5\n"); gtk_widget_show_all(list2); =20 scrolled_window =3D gtk_scrolled_window_new(NULL,NULL); if(scrolled_window =3D=3D NULL) g_print("\nscroll =3D NULL\n"); gtk_widget_set_usize(scrolled_window, 200,200); = gtk_scrolled_window_add_with_viewport(GTK_CONTAINER(scrolled_window),list= 2); = gtk_container_set_focus_hadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_hadjustment GTK_SCROLLED_WINDOW(scrolled_window))); = gtk_container_set_focus_vadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_vadjustment(GTK_SCROLLED_WINDOW(scrolled_window))); g_print("\nafter scrolled window3\n"); =20 return window1; } /////////////////////////////////////////////////////////////////////////= ///////////////////////// ------=_NextPart_000_0154_01C1BDFC.F5BC4850 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi
I am doing a project that involves the = use of=20 GtkList.
I am trying to attach scroll bars = to the lists=20 but am not very successful.
I then tried to do a simple program to = see where I=20 was going wrong ..... The program ran .. but I got this error on the=20 console
 
Gtk-CRITICAL **: file = gtkscrolledwindow.c:=20 line 951 (gtk_scrolled_window_add_with_viewport): assertion = `child->parent =3D=3D=20 NULL' failed.
 
Any Idea what is going wrong = here?
 
Thanks in advance
David
 
The code is as follows:
////////////////////////////////////////////////////////////////= //////////////////////////////////
GtkWidget * create_window1 = (void)
{
 =20 GtkWidget *window1;
  GtkWidget *fixed1;
  GtkWidget=20 *list2;
  GList   *list_items =3D NULL;
  = gint   count;
  = gchar   buff[3];
=20   GtkWidget *scrolled_window =3D NULL;
 
  window1 =3D gtk_window_new=20 (GTK_WINDOW_TOPLEVEL);
  gtk_object_set_data (GTK_OBJECT = (window1),=20 "window1", window1);
  gtk_window_set_title (GTK_WINDOW = (window1),=20 "window1");
 
  fixed1 =3D gtk_fixed_new = ();
 =20 gtk_widget_ref (fixed1);
  gtk_object_set_data_full (GTK_OBJECT=20 (window1), "fixed1",=20 fixed1,
          &n= bsp;           &nb= sp;    =20 (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show=20 (fixed1);
  gtk_container_add (GTK_CONTAINER (window1),=20 fixed1);
 
  list2 =3D gtk_list_new = ();
 =20 gtk_widget_ref (list2);
  gtk_object_set_data_full (GTK_OBJECT=20 (window1), "list2",=20 list2,
          &nb= sp;           &nbs= p;    =20 (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show=20 (list2);
  gtk_fixed_put (GTK_FIXED (fixed1), list2, 40, = 16);
 =20 gtk_widget_set_uposition (list2, 40, 16);
  gtk_widget_set_usize = (list2,=20 104, 136);
 
  for(count =3D 0; count <10 ;=20 count++)
 {
  sprintf(buff, "%d",=20 count);
  list_items =3D g_list_prepend(list_items,=20 gtk_list_item_new_with_label(buff));
 }
  g_print("\= nafter=20 scrolled window4\n");
 gtk_list_append_items(GTK_LIST(list2),=20 list_items);
 g_print("\nafter scrolled=20 window5\n");
 gtk_widget_show_all(list2);
 
 scrolled_window =3D=20 gtk_scrolled_window_new(NULL,NULL);
 if(scrolled_window =3D=3D=20 NULL)
  g_print("\nscroll =3D NULL\n");
 gtk_widget_set_usize(scrolled_window,=20 200,200);
 gtk_scrolled_window_add_with_viewport(GTK_CONTAINER(scroll= ed_window),list2);
 gtk_container_set_focus_hadjustment(GTK_CONTAINER(list2),g= tk_scrolled_window_get_hadjustment=20 GTK_SCROLLED_WINDOW(scrolled_window)));

 gtk_container_set_fo= cus_vadjustment(GTK_CONTAINER(list2),gtk_scrolled_window_get_vadjustment(= GTK_SCROLLED_WINDOW(scrolled_window)));
 g_print("\nafter=20 scrolled window3\n");
 
  return = window1;
}
 
////////////////////////////////////////////////////////////////= //////////////////////////////////
------=_NextPart_000_0154_01C1BDFC.F5BC4850-- From Padraig.Obriain@Sun.COM Mon Feb 25 04:06:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34]) by mail.gnome.org (Postfix) with ESMTP id 0065E18100 for ; Mon, 25 Feb 2002 04:06:42 -0500 (EST) Received: from dub-mail1.Ireland.Sun.COM ([129.156.220.70]) by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id CAA10841; Mon, 25 Feb 2002 02:06:40 -0700 (MST) Received: from maxfly (maxfly [129.156.238.23]) by dub-mail1.Ireland.Sun.COM (8.10.2+Sun/8.10.2/ENSMAIL,v2.1p1) with SMTP id g1P96du22622; Mon, 25 Feb 2002 09:06:39 GMT Message-Id: <200202250906.g1P96du22622@dub-mail1.Ireland.Sun.COM> Date: Mon, 25 Feb 2002 09:06:39 +0000 (GMT) From: "Padraig O'Briain" Reply-To: "Padraig O'Briain" Subject: Re: Trouble to compile atk-0.12 To: gtk-list@gnome.org, oliver_singla@yahoo.com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: DLwcr9KsDr4mKR/NOm8D5g== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4 SunOS 5.8 sun4u sparc Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It seems that pkg-config call for glib_genmarshal in glib-2.0 is returing the strange relative directory path ..//home/... What prefix did you specify when configuring glib? Padraig > > Hi, > > On my RH7.2 box, I have trouble to compile atk-0.12. After I have ran > .configure, here is what I get when I do a make: > > > [omsingla@oliver atk-0.12]$ make > Making all in atk > make[1]: Entering directory `/home/omsingla/gtk/1.3/atk-0.12/atk' > case ..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal in \ > .*) glib_genmarshal=`pwd`/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmars hal ;; \ *) glib_genmarshal=..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal ;; \ > esac; > \ > $glib_genmarshal --prefix=atk_marshal ./atkmarshal.list --body >> xgen-gmc \ > && (cmp -s xgen-gmc ./atkmarshal.c || cp xgen-gmc ./atkmarshal.c) \ > && rm -f xgen-gmc xgen-gmc~ \ > && echo timestamp > stamp-atkmarshal.c > /bin/sh: /home/omsingla/gtk/1.3/atk-0.12/atk/..//home/omsingla/gtk/1.3/glib-1.3.14/gobjec t/glib-genmarshal: No such file or directory > make[1]: *** [stamp-atkmarshal.c] Error 127 > make[1]: Leaving directory `/home/omsingla/gtk/1.3/atk-0.12/atk' > make: *** [all-recursive] Error 1 > [omsingla@oliver atk-0.12]$ > > Any idea ? > > TIA, > Olivier Singla > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From Steph.Fox@btinternet.com Mon Feb 25 04:08:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rhenium.btinternet.com (rhenium.btinternet.com [194.73.73.93]) by mail.gnome.org (Postfix) with ESMTP id 7BD8618F9B for ; Mon, 25 Feb 2002 04:08:08 -0500 (EST) Received: from host62-7-81-252.in-addr.btopenworld.com ([62.7.81.252] helo=t2r1o8) by rhenium.btinternet.com with smtp (Exim 3.22 #8) id 16fH76-0000gG-00; Mon, 25 Feb 2002 09:08:05 +0000 Message-ID: <00b601c1bddb$c96966a0$96fd7ad5@t2r1o8> From: "Steph" To: "David Joseph" , References: <015701c1bdce$ddb60210$aa0ba8c0@djj> Subject: Re: Problems in attaching GtkScrolledWindow to GtkList Date: Mon, 25 Feb 2002 09:05:53 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yeah, the list already has a parent - the 'fixed'. ps html drives the regulars mad .. ----- Original Message -----=20 From: "David Joseph" To: Sent: Monday, February 25, 2002 7:34 AM Subject: Problems in attaching GtkScrolledWindow to GtkList=20 Hi I am doing a project that involves the use of GtkList. I am trying to attach scroll bars to the lists but am not very = successful. I then tried to do a simple program to see where I was going wrong ..... = The program ran .. but I got this error on the console Gtk-CRITICAL **: file gtkscrolledwindow.c: line 951 = (gtk_scrolled_window_add_with_viewport): assertion `child->parent =3D=3D = NULL' failed. Any Idea what is going wrong here? Thanks in advance David The code is as follows: /////////////////////////////////////////////////////////////////////////= ///////////////////////// GtkWidget * create_window1 (void) { GtkWidget *window1; GtkWidget *fixed1; GtkWidget *list2; GList *list_items =3D NULL; gint count; gchar buff[3]; GtkWidget *scrolled_window =3D NULL; window1 =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (window1), "window1", window1); gtk_window_set_title (GTK_WINDOW (window1), "window1"); fixed1 =3D gtk_fixed_new (); gtk_widget_ref (fixed1); gtk_object_set_data_full (GTK_OBJECT (window1), "fixed1", fixed1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (fixed1); gtk_container_add (GTK_CONTAINER (window1), fixed1); list2 =3D gtk_list_new (); gtk_widget_ref (list2); gtk_object_set_data_full (GTK_OBJECT (window1), "list2", list2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (list2); gtk_fixed_put (GTK_FIXED (fixed1), list2, 40, 16); gtk_widget_set_uposition (list2, 40, 16); gtk_widget_set_usize (list2, 104, 136); for(count =3D 0; count <10 ; count++) { sprintf(buff, "%d", count); list_items =3D g_list_prepend(list_items, = gtk_list_item_new_with_label(buff)); } g_print("\nafter scrolled window4\n"); gtk_list_append_items(GTK_LIST(list2), list_items); g_print("\nafter scrolled window5\n"); gtk_widget_show_all(list2); =20 scrolled_window =3D gtk_scrolled_window_new(NULL,NULL); if(scrolled_window =3D=3D NULL) g_print("\nscroll =3D NULL\n"); gtk_widget_set_usize(scrolled_window, 200,200); = gtk_scrolled_window_add_with_viewport(GTK_CONTAINER(scrolled_window),list= 2); = gtk_container_set_focus_hadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_hadjustment GTK_SCROLLED_WINDOW(scrolled_window))); = gtk_container_set_focus_vadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_vadjustment(GTK_SCROLLED_WINDOW(scrolled_window))); g_print("\nafter scrolled window3\n"); =20 return window1; } /////////////////////////////////////////////////////////////////////////= ///////////////////////// From kasonhuang@kinposh.com.cn Mon Feb 25 04:18:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 6592518211 for ; Mon, 25 Feb 2002 04:18:09 -0500 (EST) Subject: FW: About the focus move in table? Date: Mon, 25 Feb 2002 17:17:13 +0800 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C1BDDD.3626FC52" Message-ID: <92CD479384374A439EFA0077E7C50F82260CE2@kes01.kinposh.com.cn> X-MS-Has-Attach: yes content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: About the focus move in table? Thread-Index: AcG8BZGUSrsvSSg0Eda2ugCAyEUULQB1dxNQ From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1BDDD.3626FC52 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable -----Original Message----- From: =B6=C0=BCy Kason Huang=20 Sent: Saturday, February 23, 2002 9:01 AM To: gtk-list@gnome.org Subject: About the focus move in table? hi guys:=20 anyone could tell how to change the focus in three tables(there is a lot = of buttons in each table) with keyboard.=20 and I find that the buttons focus in one table couldn't be changed = smoothly.for example,when you press left key on keyboard,you expect the = focus will move to the left button,however the focus maybe move to the a = button on the bottom of the table. a table's layout like tablelayout.doc picture:(24 buttons in one table) = =20 when focus in 14 button,i press down key on keyboard.i expect the focus = will move to the 20 button,the result is the focus moves to the15 button = or other button,not 20 button.the same thing is happen to the 18,20 = button.do anyone knows how to handle with the problem? or how to control = the focus in a table? Thanks in advance!=20 kason=20 ------_=_NextPart_001_01C1BDDD.3626FC52 Content-Type: application/msword; name="tablelayout.doc" Content-Transfer-Encoding: base64 Content-Description: tablelayout.doc Content-Disposition: attachment; filename="tablelayout.doc" 0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAIQAAAAAAAAAA EAAAIwAAAAEAAAD+////AAAAACAAAAD///////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////s pcEATSAJBAAA8FK/AAAAAAAAEAAAAAAABAAAzwQAAA4AYmpiauI94j0AAAAAAAAAAAAAAAAAAAAA AAAEBBYAMgwAAIBXAACAVwAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAAAAAAAAAD//w8AAAAA AAAAAAD//w8AAAAAAAAAAAD//w8AAAAAAAAAAAAAAAAAAAAAAGwAAAAAAJAAAAAAAAAAkAAAAJAA AAAAAAAAkAAAAAAAAADgAAAAAAAAAOAAAAAAAAAA4AAAABQAAAAAAAAAAAAAAPQAAAAAAAAA1AEA AAAAAADUAQAAAAAAANQBAAAAAAAA1AEAAAwAAADgAQAADAAAAPQAAAAAAAAAdAoAAPoAAAD4AQAA AAAAAPgBAAAAAAAA+AEAAAAAAAD4AQAAAAAAAPgBAAAAAAAAcQkAAAAAAABxCQAAAAAAAHEJAAAA AAAA8wkAAAIAAAD1CQAAAAAAAPUJAAAAAAAA9QkAAAAAAAD1CQAAAAAAAPUJAAAAAAAA9QkAACQA AABuCwAAIAIAAI4NAAA+AAAAGQoAABUAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAABxCQAAAAAA AAAAAAAAAAAAAAAAAAAAAABPCQAAIgAAAHEJAAAAAAAAcQkAAAAAAABxCQAAAAAAABkKAAAAAAAA rwkAAAAAAACQAAAAAAAAAJAAAAAAAAAA+AEAAAAAAAAAAAAAAAAAAPgBAABXBwAALgoAABYAAACv CQAAAAAAAK8JAAAAAAAArwkAAAAAAABxCQAAAAAAAJAAAAA4AAAA+AEAAAAAAADgAAAAAAAAAPgB AAAAAAAA8wkAAAAAAAAAAAAAAAAAAK8JAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAcQkAAAAAAADzCQAAAAAAAK8JAABEAAAArwkAAAAAAAAAAAAA AAAAAPMJAAAAAAAAyAAAABgAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8wkAAAAAAAD4AQAAAAAAAOwBAAAMAAAAYAmb7dy9 wQH0AAAA4AAAANQBAAAAAAAAcQkAABAAAADzCQAAAAAAAAAAAAAAAAAA8wkAAAAAAABECgAAMAAA AHQKAAAAAAAA8wkAAAAAAADMDQAAAAAAAIEJAAAuAAAAzA0AAAAAAADzCQAAAAAAAK8JAAAAAAAA 9AAAAAAAAAD0AAAAAAAAAJAAAAAAAAAAkAAAAAAAAACQAAAAAAAAAJAAAAAAAAAAAgDZAAAACA0x ICAgICAgICAyICAgICAgIDMgICAgICAgNCAgICAgICA1ICAgICAgIDYgICAgICAgIDcNDTggICAg ICAgIDkgICAgICAxMCAgICAgIDExICAgICAgIDEyICAgICAgMTMgICAgICAgIDE0DQ0xNSAgICAg ICAxNiAgICAgMTcgICAgICAxOCAgICAgIDE5ICAgICAgICAgIDIwDQ0yMSAgICAgICAgMjIgICAg ICAgMjMgICAgICAgICAgICAgICAgICAgICAgMjQNDQ0NAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAA AQQAAM8EAADzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYA2oAAAAAQ0oUAFUIAW1IAARuSAAEdQgBAgAEAAAC BAAANgQAADcEAABtBAAAbgQAAJ0EAACeBAAAzAQAAM0EAADOBAAAzwQAAP0AAAAAAAAAAAAAAAD9 AAAAAAAAAAAAAAAA/QAAAAAAAAAAAAAAAP0AAAAAAAAAAAAAAAD9AAAAAAAAAAAAAAAA/QAAAAAA AAAAAAAAAP0AAAAAAAAAAAAAAAD9AAAAAAAAAAAAAAAA/QAAAAAAAAAAAAAAAP0AAAAAAAAAAAAA AAD9AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAALAAQAAAIE AADOBAAA/v4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBAQIwADGQaAEy UAIAH7CCLiCwxkEhsAgHIrAIByOQoAUkkKAFJbAAABewUwMYsOADDJCpAQAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAPAAoAAQBp AA8AAwAAAAMAAAAAAEAAAEDx/wIAQAAMAAIAZ1GHZQAABQAAADEkAAAkAENKGABLSAIAUEoDAF9I AQRhShgAbUgJBG5IBARzSAkEdEgEBAAAAAAAAAAAAAAAAAAAAAAAABwAQUDy/6EAHAAMAAYAEJgt irVrPYRXW4tXAAAAAAAAAAAAAAAAAAAAAMsAAADPAAAAAQAAAAAAAAAAAP////8CBAAAAAAAAP// //8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAywAAAM4AAAAAAAAAAAj//wAAAAAAAAAAzwAAAAcAAAwA AAAA/////wAAAAACAAAANgAAADcAAABtAAAAbgAAAJ0AAACeAAAAzAAAAM0AAADQAAAAmAAAAAAw AAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAA AAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAA AIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAA AACAAAQAAM8EAAADAAAAAAQAAM8EAAAEAAAAAAQAAM4EAAAFAAAADwAA8DgAAAAAAAbwGAAAAAII AAACAAAADQAAAAEAAAABAAAADgAAAEAAHvEQAAAA//8AAAAA/wCAgIAA9wAAEAAPAALwDgcAABAA CPAIAAAADAAAAA0EAAAPAAPwrAYAAA8ABPAoAAAAAQAJ8BAAAAAAAAAAAAAAAAAAAAAAAAAAAgAK 8AgAAAAABAAABQAAAA8AA/B0BgAADwAE8JYAAAABAAnwEAAAACQJAAAIBwAAkCQAAEgSAAACAArw CAAAAA0EAAABAgAAIwAL8DoAAACDwy4AAAC/AwAAQAAFAAgACADS////AAAAANL///9gVAAAvFQA AGBUAAC8VAAAAAAAANL///8AAAAAIwAi8QwAAACPAwAAAACRAwAAAAAAABDwBAAAAAAAAAAAABHw BAAAAAEAAAAPAATwiAAAABIACvAIAAAAAgQAAAIKAAAzAAvwQAAAAIAAAAABAIPDLgAAAL8DAABA AAUACAAIANL///8AAAAA0v///2BUAACOVAAAYFQAAI5UAAAAAAAA0v///wAAAAAAAA/wEAAAACQJ AAAIBwAAkCQAAEgSAAAAABHwBAAAABcAAAAAAA3wBAAAAAAAAQAPAATwjgAAAEIBCvAIAAAABAQA AAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIANL/ //8AAAAA0v///wAAAACOVAAAAAAAAI5UAAAAAAAA0v///wAAAAAAAA/wEAAAACQJAADYCQAAkCQA ANgJAAAAABHwBAAAABAAAAAPAATwjgAAAEIBCvAIAAAABQQAAAIKAABjAAvwUgAAAEQBBAAAAH8B AAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIANL///8AAAAA0v///wAAAACOVAAAAAAA AI5UAAAAAAAA0v///wAAAAAAAA/wEAAAACQJAACoDAAAkCQAAKgMAAAAABHwBAAAABAAAAAPAATw jgAAAEIBCvAIAAAABgQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAA AL8DAABAAAUACAAIANL///8AAAAA0v///wAAAACOVAAAAAAAAI5UAAAAAAAA0v///wAAAAAAAA/w EAAAACQJAAB4DwAAkCQAAHgPAAAAABHwBAAAABAAAAAPAATwjgAAAEIBCvAIAAAABwQAAAIKAABj AAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAA AAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAAKgMAAAIBwAAqAwAAEgSAAAA ABHwBAAAABAAAAAPAATwjgAAAEIBCvAIAAAACAQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8B AAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAA AAAAAAAAAAAAAAAAAA/wEAAAACwQAAAIBwAALBAAAEgSAAAAABHwBAAAABUAAAAPAATwjgAAAEIB CvAIAAAACQQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABA AAUACAAIAAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAALAT AAAIBwAAsBMAAHgPAAAAABHwBAAAABsAAAAPAATwjgAAAEIBCvAIAAAACgQAAAIKAABjAAvwUgAA AEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAAAAAAAPBT AAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAADQXAAAIBwAANBcAAEgSAAAAABHwBAAA ABwAAAAPAATwjgAAAEIBCvAIAAAACwQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8B EAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAA AAAAAAAAAA/wEAAAAGwbAAAIBwAAbBsAAHgPAAAAABHwBAAAAB0AAAAPAATwjgAAAEIBCvAIAAAA DAQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAI AAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAAKQfAAAIBwAA pB8AAKgMAAAAABHwBAAAABwAAAAPAATwQgAAABIACvAIAAAAAQQAAAAOAABTAAvwHgAAAL8BAAAQ AMsBAAAAAP8BAAAIAAQDCQAAAD8DAQABAAAAEfAEAAAAAQAAAAAAAADPAAAADQQAABwCAABUBgAA IBwAAJQRAACUAAAAAAAAAAAAAgAAANAAAAAHAAcAAAAAAAIAAAA1AAAANwAAAG0AAABuAAAAywAA ANAAAAAHAAUABwAFAAcABQAHAP//AgAAAAUAQwBsAGkAbgBlABgAQwA6AFwATQB5ACAARABvAGMA dQBtAGUAbgB0AHMAXABEAG8AYwAxAC4AZABvAGMA/0ADgAEAAAAAAAAAAADI6G4AAQAAAAAAAAAA AAAAAAAAAAAAAAACEAAAAAAAAADPAAAAcAAACABAAAD//wEAAAAHAFUAbgBrAG4AbwB3AG4A//8B AAgAAAAAAAAAAAAAAP//AQAAAAAA//8AAAIA//8AAAAA//8AAAIA//8AAAAABAAAAEcWkAEAAAIC BgMFBAUCAwSHOgAAAAAAAAAAAAAAAAAA/wAAAAAAAABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBt AGEAbgAAADUWkAECAAUFAQIBBwYCBQcAAAAAAAAAEAAAAAAAAAAAAAAAgAAAAABTAHkAbQBiAG8A bAAAADMmAAAAAAILBgQCAgICAgSHOgAAAAAAAAAAAAAAAAAA/wAAAAAAAABBAHIAaQBhAGwAAABD FpABiAUCAgMAAAAAAAAAAQAAAAAACAgQAAAAAAAAAAAAEAAAAAAAsGUwfQ5m1JoAAFAATQBpAG4A ZwBMAGkAVQAAACAABAAxCIgYAADgAQAAaAEAAAAARMxiJk/MYiYAAAAAAQALAAAAAAAAAAEAAAAB AAEAAAAEAAMQAQAAAAAAAAAAAAAAAQABAAAAAQAAAAAAAAAhAwAAAAAAAAMAPwAcACEAKQAsAC4A OgA7AD8AXQB9AKIAtwATIBQgGSAdICIgJSAmICcgMiB0JQEwAjAJMAswDTAPMBEwFTAeMDD+Mf4z /jT+Nv44/jr+PP4+/kD+Qv5E/k/+UP5R/lL+VP5V/lb+V/5a/lz+Xv4B/wn/DP8O/xr/G/8f/1z/ Xf9k/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAFsAewCjAKUAGCAcIDUgCDAKMAwwDjAQMBQwHTA1/jf+ Of47/j3+P/5B/kP+Wf5b/l3+CP9b/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAIB6AFtAC0AIKAcgAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAA AAEygxEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//xIAAAAAAAAAAAAAAAAA AAAFAEMAbABpAG4AZQAFAEMAbABpAG4AZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP7/AAAECgIAAAAAAAAAAAAA AAAAAAAAAAEAAADghZ/y+U9oEKuRCAArJ7PZMAAAAGgBAAARAAAAAQAAAJAAAAACAAAAmAAAAAMA AACkAAAABAAAALAAAAAFAAAAwAAAAAYAAADMAAAABwAAANgAAAAIAAAA7AAAAAkAAAD8AAAAEgAA AAgBAAAKAAAAJAEAAAwAAAAwAQAADQAAADwBAAAOAAAASAEAAA8AAABQAQAAEAAAAFgBAAATAAAA YAEAAAIAAAC2AwAAHgAAAAEAAAAAAHMAHgAAAAEAAAAAAHMAHgAAAAYAAABDbGluZQBmAB4AAAAB AAAAAGxpbh4AAAABAAAAAGxpbh4AAAALAAAATm9ybWFsLmRvdAAAHgAAAAYAAABDbGluZQAuZB4A AAACAAAAMQBpbh4AAAATAAAATWljcm9zb2Z0IFdvcmQgOS4wAABAAAAAAAJkiQEAAABAAAAAAIAR Xdu9wQFAAAAAAIJ15ty9wQEDAAAAAQAAAAMAAAAAAAAAAwAAAAEAAAADAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/wAABAoCAAAAAAAAAAAAAAAAAAAAAAAB AAAAAtXN1ZwuGxCTlwgAKyz5rjAAAADsAAAADAAAAAEAAABoAAAADwAAAHAAAAAFAAAAgAAAAAYA AACIAAAAEQAAAJAAAAAXAAAAmAAAAAsAAACgAAAAEAAAAKgAAAATAAAAsAAAABYAAAC4AAAADQAA AMAAAAAMAAAAzQAAAAIAAAC2AwAAHgAAAAYAAABLaW5wbwBucAMAAAABAAAAAwAAAAEAAAADAAAA AQAAAAMAAADtDgkACwAAAAAAAAALAAAAAAAAAAsAAAAAAAAACwAAAAAAAAAeEAAAAQAAAAEAAAAA DBAAAAIAAAAeAAAABQAAALzQw0QAAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAP7///8J AAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAA/v///xEAAAASAAAAEwAAABQAAAAVAAAAFgAAABcA AAD+////GQAAABoAAAAbAAAAHAAAAB0AAAAeAAAAHwAAAP7////9////IgAAAP7////+/////v// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////9SAG8AbwB0ACAARQBuAHQAcgB5AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFgAFAf//////////AwAAAAYJAgAAAAAAwAAA AAAAAEYAAAAAAAAAAAAAAAAgMaTt3L3BASQAAACAAAAAAAAAADEAVABhAGIAbABlAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAIA//////////// ////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAQAAAAAAAAVwBvAHIA ZABEAG8AYwB1AG0AZQBuAHQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABoAAgEFAAAA//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAAAAAAAAAFAFMAdQBtAG0AYQByAHkASQBuAGYAbwByAG0AYQB0AGkAbwBuAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAKAACAQIAAAAEAAAA/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAABAAAAAAEAAAAAAAAAUARABvAGMAdQBtAGUAbgB0AFMAdQBtAG0AYQByAHkASQBu AGYAbwByAG0AYQB0AGkAbwBuAAAAAAAAAAAAAAA4AAIB////////////////AAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAAQAAAAAAAAAQBDAG8AbQBwAE8AYgBqAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAgEBAAAABgAAAP// //8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZgAAAAAAAABPAGIAagBl AGMAdABQAG8AbwBsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA FgABAP///////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAIDGk7dy9wQEgMaTt3L3BAQAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA////////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAP7///////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////8BAP7/AwoAAP////8GCQIAAAAAAMAAAAAAAABGFAAAAE1pY3Jv c29mdCBXb3JkIKTlpfMACgAAAE1TV29yZERvYwAQAAAAV29yZC5Eb2N1bWVudC44APQ5snEAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAA== ------_=_NextPart_001_01C1BDDD.3626FC52-- From lettere@di.unipi.it Mon Feb 25 04:30:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailserver.di.unipi.it (apis.di.unipi.it [131.114.4.6]) by mail.gnome.org (Postfix) with ESMTP id B044318766 for ; Mon, 25 Feb 2002 04:30:16 -0500 (EST) Received: from orione.di.unipi.it (orione [131.114.2.112]) by mailserver.di.unipi.it (8.11.6/8.11.6) with ESMTP id g1P9U5m31578 for ; Mon, 25 Feb 2002 10:30:05 +0100 Received: from localhost (lettere@localhost) by orione.di.unipi.it (8.11.2/8.9.1) with ESMTP id g1P9UcB26585 for ; Mon, 25 Feb 2002 10:30:38 +0100 X-Authentication-Warning: orione.di.unipi.it: lettere owned process doing -bs Date: Mon, 25 Feb 2002 10:30:38 +0100 (CET) From: Marco Lettere To: Subject: how to align a label in GtkTable Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello, I always get a label attached in a GtkTable to be centered in its cell. How do I get it to be left aligned? is it possible using only gtk_table_*() or gtk_label_*() functions? thanx, M. ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| From kasonhuang@kinposh.com.cn Mon Feb 25 04:37:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 3A3B418C94 for ; Mon, 25 Feb 2002 04:37:37 -0500 (EST) Subject: RE: how to align a label in GtkTable Date: Mon, 25 Feb 2002 17:36:42 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: how to align a label in GtkTable Thread-Index: AcG93xNEYNo31mkHQeiwoEBleADDCQAAGWIA From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: "Marco Lettere" Cc: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi: you could try gtk_label_set_justify(GtkLabel *label,GtkJustification = jtype); typedef enum { GTK_JUSTIFY_LEFT, GTK_JUSTIFY_RIGHT, GTK_JUSTIFY_CENTER, GTK_JUSTIFY_FILL } GtkJustification; for example: gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT); -----Original Message----- From: Marco Lettere [mailto:lettere@di.unipi.it] Sent: Monday, February 25, 2002 5:31 PM To: gtk-list@gnome.org Subject: how to align a label in GtkTable hello, I always get a label attached in a GtkTable to be centered in its cell. How do I get it to be left aligned? is it possible using only gtk_table_*() or gtk_label_*() functions? thanx, M. ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From anjali_grover@yahoo.com Mon Feb 25 04:46:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14606.mail.yahoo.com (web14606.mail.yahoo.com [216.136.224.86]) by mail.gnome.org (Postfix) with SMTP id 617BF18C94 for ; Mon, 25 Feb 2002 04:46:14 -0500 (EST) Message-ID: <20020225094613.99455.qmail@web14606.mail.yahoo.com> Received: from [155.69.5.223] by web14606.mail.yahoo.com via HTTP; Mon, 25 Feb 2002 01:46:13 PST Date: Mon, 25 Feb 2002 01:46:13 -0800 (PST) From: Anjali Grover Subject: Making Linux system calls as a signal to an event To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am a new user of GTK. I want to execute a Linux system call (like "ls" or "make" on the command line) by clicking on a button on my GTK interface. I am using C for my GTK code. I have associate the "clicked" event to my button as a signal to call a callback function. Within this callback function, how can I make system calls. ALso, how can I send parameters filled in by the user in my text entries to my other C files. I need to pass the content of the text entries to variables inside my other C files. Thank you, Anjali __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From lettere@di.unipi.it Mon Feb 25 04:46:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailserver.di.unipi.it (apis.di.unipi.it [131.114.4.6]) by mail.gnome.org (Postfix) with ESMTP id D9C7218C94 for ; Mon, 25 Feb 2002 04:46:16 -0500 (EST) Received: from orione.di.unipi.it (orione [131.114.2.112]) by mailserver.di.unipi.it (8.11.6/8.11.6) with ESMTP id g1P9k4m00765; Mon, 25 Feb 2002 10:46:04 +0100 Received: from localhost (lettere@localhost) by orione.di.unipi.it (8.11.2/8.9.1) with ESMTP id g1P9kcv26730; Mon, 25 Feb 2002 10:46:38 +0100 X-Authentication-Warning: orione.di.unipi.it: lettere owned process doing -bs Date: Mon, 25 Feb 2002 10:46:38 +0100 (CET) From: Marco Lettere To: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= Cc: Subject: RE: how to align a label in GtkTable In-Reply-To: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, 25 Feb 2002, [big5] =B6=C0=BCy Kason Huang wrote: yes I tried it by it doesn't seem to work in a table cell context. I do create a table, create a label, set the label justification and then attach the label. I don't know if I'm doing something wrong. Are there some caveats like "first set alignment of the label and then attach it to the table" or or viceversa? M. > hi: > you could try gtk_label_set_justify(GtkLabel *label,GtkJustification jtyp= e); > typedef enum > { > GTK_JUSTIFY_LEFT, > GTK_JUSTIFY_RIGHT, > GTK_JUSTIFY_CENTER, > GTK_JUSTIFY_FILL > } GtkJustification; > > > hello, > > I always get a label attached in a GtkTable to be centered in its cell. > How do I get it to be left aligned? is it possible using only > gtk_table_*() or gtk_label_*() functions? > thanx, > M. > > ____ _____ > | _ \ ___ ___ _ __| ____| > | | | |/ __/ _ \| '__| _| > | |_| | (_| (_) | | | |___ > |____/ \___\___/|_| |_____| > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| From kasonhuang@kinposh.com.cn Mon Feb 25 05:10:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id B174018163 for ; Mon, 25 Feb 2002 05:10:44 -0500 (EST) Subject: about curses programming? Date: Mon, 25 Feb 2002 18:09:49 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F82260CE8@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: about curses programming? Thread-Index: AcG95I2fx3U53SoQEda2ugCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Cc: "Paul Davis" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello: it 's not gtk problem. anyone know Curses programming? how to create Makefile,how to make? like the following code how to do? /* File: helloworld.c */ #include int main(int argc, char *argv[]) { initscr(); =09 box(stdscr, ACS_VLINE, ACS_HLINE); =09 mvaddstr(11, 30, "Hello World!"); refresh(); getch(); endwin(); return 0; } Thanks for you help. kason From Steph.Fox@btinternet.com Mon Feb 25 05:13:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium.btinternet.com (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id D70BF18830 for ; Mon, 25 Feb 2002 05:13:12 -0500 (EST) Received: from host213-1-158-138.btinternet.com ([213.1.158.138] helo=t2r1o8) by protactinium.btinternet.com with smtp (Exim 3.22 #8) id 16fI7v-0005QJ-00; Mon, 25 Feb 2002 10:13:00 +0000 Message-ID: <00da01c1bde4$dad6fc00$96fd7ad5@t2r1o8> From: "Steph" To: "Marco Lettere" , "=?iso-8859-1?B?tsC8eSBLYXNvbiBIdWFuZw==?=" Cc: References: Subject: Re: how to align a label in GtkTable Date: Mon, 25 Feb 2002 10:11:48 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I've never managed to get the text justification working in a label = either. But GtkMisc functions set_alignment(x, y) and set_padding(x, y) work = just fine .. ----- Original Message -----=20 From: "Marco Lettere" To: "=B6=C0=BCy Kason Huang" Cc: Sent: Monday, February 25, 2002 9:46 AM Subject: RE: how to align a label in GtkTable On Mon, 25 Feb 2002, [big5] =B6=C0=BCy Kason Huang wrote: yes I tried it by it doesn't seem to work in a table cell context. I do create a table, create a label, set the label justification and then attach the label. I don't know if I'm doing something wrong. Are there some caveats like "first set alignment of the label and then attach it to the table" or or viceversa? M. > hi: > you could try gtk_label_set_justify(GtkLabel *label,GtkJustification = jtype); > typedef enum > { > GTK_JUSTIFY_LEFT, > GTK_JUSTIFY_RIGHT, > GTK_JUSTIFY_CENTER, > GTK_JUSTIFY_FILL > } GtkJustification; > > > hello, > > I always get a label attached in a GtkTable to be centered in its = cell. > How do I get it to be left aligned? is it possible using only > gtk_table_*() or gtk_label_*() functions? > thanx, > M. > > ____ _____ > | _ \ ___ ___ _ __| ____| > | | | |/ __/ _ \| '__| _| > | |_| | (_| (_) | | | |___ > |____/ \___\___/|_| |_____| > > > _______________________________________________ > 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 John.Cupitt@ng-london.org.uk Mon Feb 25 07:14:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id C10C518779 for ; Mon, 25 Feb 2002 07:14:07 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMF7X>; Mon, 25 Feb 2002 12:14:06 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMF74; Mon, 25 Feb 2002 12:13:57 -0000 Message-ID: <3C7A2734.1090803@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: ehml@pacific.net.sg Cc: gtk-list@gnome.org Subject: Re: Scrolled window unable to handle huge list ( > 1700 entries) in it Date: Mon, 25 Feb 2002 11:59:48 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ehml wrote: > I notice that when I have more than 1700 (exact number is around 167+) > entries in a list (or tree), and the list is in a scrolled window, it will > not be displayed correctly. Anyone know limitation on the number of entry > (or height) a scrolled window can support, and is there a known way to > workaround this? Hi, GtkList and GtkTree use an X window to scroll. X windows have 16-bit coordinates, so you're probably running into a 32767 pixel limit. I think GtkCList does not have this problem. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From pvosta@unionbio-eu.com Mon Feb 25 07:15:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 66DC01879B for ; Mon, 25 Feb 2002 07:15:45 -0500 (EST) Received: (qmail 25003 invoked from network); 25 Feb 2002 12:11:50 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 25 Feb 2002 12:11:50 -0000 Message-ID: <3C7A2AAF.89B66FFE@unionbio-eu.com> Date: Mon, 25 Feb 2002 13:14:39 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: list of functions in menu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want to build software on RedHat Linux 7.2 with a frontend based on GTK. I already have several C-functions that will be the "backend" of the application. I am now looking for a way to use a list of these functions with their arguments to put them "automatically" into menus and submenus in a graphical interface. So eg. the interface item for the function "readimage( file )" would be placed in a window with automatic generation a text box "readimage" to fill out the filename or even a filebrowser. Are there tools available to do this ? Best regards, Peter From John.Cupitt@ng-london.org.uk Mon Feb 25 07:25:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 65D971879B for ; Mon, 25 Feb 2002 07:25:38 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMF89>; Mon, 25 Feb 2002 12:25:37 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMF88; Mon, 25 Feb 2002 12:25:32 -0000 Message-ID: <3C7A29EB.7040902@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: ehml@pacific.net.sg Cc: gtk-list@gnome.org Subject: Re: key input get grab by other widget Date: Mon, 25 Feb 2002 12:11:23 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ehml wrote: > In the drawing-area, I assign "key press event" to it. It work find for key > like "a" and "b", but does not work for arrow key. Once I press a arrow key, > the "check button" grab that input, and subsequently, all key is grab by the > "check button". The same will happen if I point at the menu-bar and click in a > empty space following by pressing a key. What I need is: > > If the pointer is in the drawing-area, drawing-area should grab all key event. Hi again :) the problem is that GtkDrawingArea does not implement any of the focus stuff that other widgets have (eg. drawing a focus highlight, catching focus_in/_out events, etc.). This means that keyboard input to a drawing area does not work well, especially if you mix drawing areas and widgets with "real" keyboard handling. I think the best solution is to subclass drawing area and implement the gtk focus system. It's not actually that hard ... when I did this I think I read gtkbutton and based it on that code. As I recall, you just need to implement draw_focus focus_in_event focus_out_event button_press_event button_release_event expose (you need to add code to draw the focus indicator) John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From John.Cupitt@ng-london.org.uk Mon Feb 25 07:28:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 133B618779 for ; Mon, 25 Feb 2002 07:28:18 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMF9P>; Mon, 25 Feb 2002 12:28:17 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMF93; Mon, 25 Feb 2002 12:28:08 -0000 Message-ID: <3C7A2A88.7060406@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: Romain.Parmantier@wanadoo.fr Cc: gtk-list@gnome.org Subject: Re: GTK Background Date: Mon, 25 Feb 2002 12:14:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Romain wrote: > For my application, I need a transparent background for a GtkText (not a > white background). It is possible? And how can I do this if it is possible ? You can have a static pixmap in the background with a theme, but I think that's all you can do without a lot of work :-( Of course, I'm probably wrong. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From hp@redhat.com Mon Feb 25 10:37:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 16D63193BE for ; Mon, 25 Feb 2002 10:37:16 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1PFbCa10189; Mon, 25 Feb 2002 10:37:12 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: =?big5?b?tsC8eQ==?= Kason Huang Cc: "Marco Lettere" , Subject: Re: how to align a label in GtkTable References: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> From: Havoc Pennington Date: 25 Feb 2002 10:37:12 -0500 In-Reply-To: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: =B6=C0=BCy Kason Huang writes: > hi: > you could try gtk_label_set_justify(GtkLabel *label,GtkJustification jtyp= e); > typedef enum > { > GTK_JUSTIFY_LEFT, > GTK_JUSTIFY_RIGHT, > GTK_JUSTIFY_CENTER, > GTK_JUSTIFY_FILL > } GtkJustification; >=20 > for example: > gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT); >=20 This is the wrong function - see the FAQ. You want gtk_misc_set_alignment() Havoc From anjali_grover@yahoo.com Mon Feb 25 10:43:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14608.mail.yahoo.com (web14608.mail.yahoo.com [216.136.224.88]) by mail.gnome.org (Postfix) with SMTP id AFBFC187D4 for ; Mon, 25 Feb 2002 10:43:05 -0500 (EST) Message-ID: <20020225154305.35127.qmail@web14608.mail.yahoo.com> Received: from [155.69.5.223] by web14608.mail.yahoo.com via HTTP; Mon, 25 Feb 2002 07:43:05 PST Date: Mon, 25 Feb 2002 07:43:05 -0800 (PST) From: Anjali Grover Subject: Plotting x-y graph with GTK To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Is there a way to plot a linear x versus y graph on the GUI developed with GTK? Thanx! Anjali __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From rwalden@tripos.com Mon Feb 25 11:42:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id AFE3B18B19 for ; Mon, 25 Feb 2002 11:42:41 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id KAA29754 for ; Mon, 25 Feb 2002 10:42:40 -0600 (CST) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma029691; Mon, 25 Feb 02 10:41:51 -0600 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id KAA43025 for ; Mon, 25 Feb 2002 10:41:51 -0600 (CST) Message-ID: <3C7A694E.FE8E50DD@tripos.com> Date: Mon, 25 Feb 2002 10:41:50 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: GTK List Subject: GTK_TYPE_BOXED References: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm attempting to port some gtk+-1.2 widgets to 2.0 (1.3.13 actually) and I'm running into a problem with an object that is derived from a GTK_TYPE_BOXED type. This seems to cause a segfault in the g_type system. I found some mention of this in the some of the list archives, but I couldn't figure what the resolution was. Is it an O.K. thing to derive objects from GTK_TYPE_BOXED and expect it to work with the new g_type system? Sorry for being so vague, but I'm on the fuzzy frontier of the understanding of my own problem... :) Thanks, Ralph Walden -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From flavio@maqplas.com.br Mon Feb 25 12:36:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id B376218B30 for ; Mon, 25 Feb 2002 12:36:23 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1PHa8Aj024452 for ; Mon, 25 Feb 2002 14:36:09 -0300 (BRT) Subject: Scrollbar flickers when clock run From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 25 Feb 2002 14:38:24 -0300 Message-Id: <1014658705.1109.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I'm using GTK 1.2 and my application has a clock that run always when I start the program, I make this clock using gtk_timeout_add with 1 second of interval and each 1 second it changes a gtk_label to show the elapsed time, and the program has too a CList with vertical scrollbar, but this scrollbar is making randon flickering when the numbers (gtk_label) of clock are swapped, why this occurs ? How to fix this ? Thanks in advance for all help Flavio Alberto From p@dirac.org Mon Feb 25 13:04:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from satan.diablo.localnet (adsl-64-164-47-8.dsl.scrm01.pacbell.net [64.164.47.8]) by mail.gnome.org (Postfix) with ESMTP id CEA8F181A5 for ; Mon, 25 Feb 2002 13:04:11 -0500 (EST) Received: from p by satan.diablo.localnet with local (Exim 3.34 #1 (Debian)) id 16fPU0-0005lz-00 for ; Mon, 25 Feb 2002 10:04:16 -0800 Date: Mon, 25 Feb 2002 10:04:16 -0800 To: gtk-list@gnome.org Subject: help with linked lists Message-ID: <20020225180416.GA21684@dirac.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i From: Peter Jay Salzman Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi there, using sdl i draw a number of circles (electric charges) and would like to know when the user clicks on a charge. a basic charge is a struct: typedef struct { SDL_Surface *img; int magnitude; SDL_Rect rect; } ChargeStruct; and i have a double linked list of them: GList *ChargeList = NULL; ChargeStruct puck; ... ChargeList = g_list_append (ChargeList, &puck); i'd like to take the mouse coordinates on a button click and check to see if the click happened on a charge. if it finds a clicked charge, it returns a pointer to the ChargeStruct belonging to the clicked charge: ChargeStruct *ChargeClicked(GList *ChgList, SDL_Event event) { GList *ptr; int x, y; while (ptr != NULL) { ptr = g_list_next(ChgList); x = ptr->data->rect.x; y = ptr->data->rect.y; if (event.button.x > x - 10 && event.button.x < x + 10) { printf("click\n"); } } return(ptr->data); } i don't have any experience with GList's, so i'm grasping at straws. ptr->data should be a pointer to a ChargeStruct. so ptr->data->rect should be the rect element of a ChargeStruct which is pointed to by data. but this function gives the compile errors: functions.c: In function `ChargeClicked': functions.c:21: warning: dereferencing `void *' pointer functions.c:21: request for member `rect' in something not a structure or union functions.c:22: warning: dereferencing `void *' pointer functions.c:22: request for member `rect' in something not a structure or union i feel like i'm losing my grip on what a pointer is. the code makes sense to me, but obviously i'm mistaken about something. can someone help me out? how do i access rect.x and rect.y of the ChargeStruct pointed to by ptr->data? thanks! pete From rsteinke@w-link.net Mon Feb 25 13:15:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id AF04B18B82 for ; Mon, 25 Feb 2002 13:15:17 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16fPeZ-0002Rh-00; Mon, 25 Feb 2002 10:15:11 -0800 Date: Mon, 25 Feb 2002 10:15:11 -0800 From: rsteinke@w-link.net To: p@dirac.org, gtk-list@gnome.org Subject: Re: help with linked lists Message-ID: <3C7A7F2F.nail78A1CT1JE@w-link.net> References: <20020225180416.GA21684@dirac.org> In-Reply-To: <20020225180416.GA21684@dirac.org> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Peter Jay Salzman > > hi there, > > using sdl i draw a number of circles (electric charges) and would like > to know when the user clicks on a charge. a basic charge is a struct: > > typedef struct { > SDL_Surface *img; > int magnitude; > SDL_Rect rect; > } ChargeStruct; > > and i have a double linked list of them: > > GList *ChargeList = NULL; > ChargeStruct puck; > ... > ChargeList = g_list_append (ChargeList, &puck); > > i'd like to take the mouse coordinates on a button click and check to > see if the click happened on a charge. if it finds a clicked charge, it > returns a pointer to the ChargeStruct belonging to the clicked charge: > > > ChargeStruct *ChargeClicked(GList *ChgList, SDL_Event event) > { > GList *ptr; > int x, y; > > while (ptr != NULL) { > ptr = g_list_next(ChgList); > x = ptr->data->rect.x; > y = ptr->data->rect.y; > if (event.button.x > x - 10 && event.button.x < x + 10) { > printf("click\n"); > } > } > return(ptr->data); > } > > i don't have any experience with GList's, so i'm grasping at straws. > > ptr->data should be a pointer to a ChargeStruct. so ptr->data->rect > should be the rect element of a ChargeStruct which is pointed to by > data. > > but this function gives the compile errors: > > functions.c: In function `ChargeClicked': > functions.c:21: warning: dereferencing `void *' pointer > functions.c:21: request for member `rect' in something not a structure or union > functions.c:22: warning: dereferencing `void *' pointer > functions.c:22: request for member `rect' in something not a structure or union > > i feel like i'm losing my grip on what a pointer is. the code makes > sense to me, but obviously i'm mistaken about something. > > can someone help me out? how do i access rect.x and rect.y of the > ChargeStruct pointed to by ptr->data? > > thanks! > pete This appears to be more of a C typecasting issue than anything else. What you need is ((ChargeStruct *) ptr->data)->rect, so that C knows what kind of pointer ptr->data is. GList stores things as void*, so that you can portably store any kind of pointer there. You could also do: ChargeStruct *data; ptr = g_list_next(ChgList); // Maybe should be g_list_next(ptr) instead? data = (ChargeStruct*) ptr->data; and just use "data" in the rest of the code, so things look cleaner. Ron Steinke From John.Cupitt@ng-london.org.uk Mon Feb 25 13:22:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 5A77E18B82 for ; Mon, 25 Feb 2002 13:22:12 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMHBP>; Mon, 25 Feb 2002 18:22:11 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMHB3; Mon, 25 Feb 2002 18:22:09 -0000 Message-ID: <3C7A7D80.1090404@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: p@dirac.org Cc: gtk-list@gnome.org Subject: Re: help with linked lists Date: Mon, 25 Feb 2002 18:08:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Peter Jay Salzman wrote: > typedef struct { > SDL_Surface *img; > int magnitude; > SDL_Rect rect; > } ChargeStruct; > > and i have a double linked list of them: > > GList *ChargeList = NULL; > ChargeStruct puck; > ... > ChargeList = g_list_append (ChargeList, &puck); Hi Peter, Is ChargeStruct a local? You probably want to allocate space for a struct of the heap, and then add a pointer to that area to your list. ChargeStruct *puck = g_new (ChargeStruct); ChargeList = g_list_append (ChargeList, puck); (also, _prepend() is much faster if you don't care about having the order reversed) (also GList keeps forwards and back pointers ... if you just want a one-way list, you can use GSList (singly-linked list) and save a little space) (also the usual convention is to use MixedCaps for type names, and underscore_names for variables ... so I'd call ChargeList charge_list) Of course, you'll need something to g_free() all these pucks when you're done with them. > ChargeStruct *ChargeClicked(GList *ChgList, SDL_Event event) > { > GList *ptr; > int x, y; > > while (ptr != NULL) { > ptr = g_list_next(ChgList); > x = ptr->data->rect.x; > y = ptr->data->rect.y; > if (event.button.x > x - 10 && event.button.x < x + 10) { > printf("click\n"); > } > } > return(ptr->data); > } You need to init ptr to the start of your list, and you need to cast ptr to ChargeStruct* (the compiler does not know what sort of thing you have in your list ... it just sees a dumb pointer). the usual g_idiom for iterating over lists is GList *i; for( i = ChargeList; i; i = i->next ) { ChargeStruct *puck = (ChargeStruct *) i->data; if( puck->rect.x ... etc. } John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From sven@gimp.org Mon Feb 25 13:45:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 247D918188 for ; Mon, 25 Feb 2002 13:45:40 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16fQ7o-00018W-00; Mon, 25 Feb 2002 19:45:24 +0100 To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: gtk-list Subject: Re: Scrollbar flickers when clock run References: <1014658705.1109.0.camel@flavio.maqplas> From: Sven Neumann Date: 25 Feb 2002 19:45:23 +0100 In-Reply-To: <1014658705.1109.0.camel@flavio.maqplas> Message-ID: Lines: 21 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Fl=E1vio Alberto Lopes Soares writes: > Hello all, I'm using GTK 1.2 and my application has a clock that run > always when I start the program, I make this clock using gtk_timeout_add > with 1 second of interval and each 1 second it changes a gtk_label to > show the elapsed time, and the program has too a CList with vertical > scrollbar, but this scrollbar is making randon flickering when the > numbers (gtk_label) of clock are swapped, why this occurs ? How to fix > this ? the GtkLabel you use for the clock has to recalculate its size when you change the text every second. Most probably this size change propagates to the GtkClist which has to adapt to the new size and thus redraws itself. Try to change your box layout so the label size doesn't affect the size of any other containers, especially not one that holds larger widgets like your GtkCList. Salut, Sven From pbd@op.net Mon Feb 25 14:15:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 2FB5618365 for ; Mon, 25 Feb 2002 14:15:40 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-412.phlpa.fast.net [209.92.100.158]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA06904; Mon, 25 Feb 2002 14:14:45 -0500 (EST) Message-Id: <200202251914.OAA06904@renoir.op.net> To: Sven Neumann Cc: Flávio Alberto Lopes Soares , gtk-list Subject: Re: Scrollbar flickers when clock run In-reply-to: Your message of "25 Feb 2002 19:45:23 +0100." Date: Mon, 25 Feb 2002 14:13:50 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >the GtkLabel you use for the clock has to recalculate its size when you >change the text every second. Most probably this size change propagates >to the GtkClist which has to adapt to the new size and thus redraws >itself. Try to change your box layout so the label size doesn't affect >the size of any other containers, especially not one that holds larger >widgets like your GtkCList. and maybe ensure the clock uses a fixed-size font, and a fixed format for the display, so that its size never actually changes. --p From flavio@maqplas.com.br Mon Feb 25 15:07:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pkdroid.ns1.com.br (pkdroid.ns1.com.br [200.185.44.16]) by mail.gnome.org (Postfix) with ESMTP id 4648218536 for ; Mon, 25 Feb 2002 15:07:07 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by pkdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1PK6wvD020181; Mon, 25 Feb 2002 17:06:59 -0300 (BRT) Subject: Re: Scrollbar flickers when clock run From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Sven Neumann Cc: gtk-list In-Reply-To: References: <1014658705.1109.0.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution/0.10 (Preview Release) Date: 25 Feb 2002 17:09:01 -0300 Message-Id: <1014667751.1108.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ok, it's true, my program has other modal window that has a CList too, and your scrollbar hasn't the problem while the clock is runing, probably this is the explanation about other problem that occurs in my program : it has a big pixmap (with green background) that blinks in about 400ms (usin gtk_timeout_add) swapping other pixmap with white background, when the clock and pixmap are runing this flicker occur with pixmap happening an "ugly effect". I will try something in this way. Thanks a lot Flavio Alberto Em 25 Feb 2002 19:45:23 +0100, Sven Neumann escreveu: > Hi, > > Flávio Alberto Lopes Soares writes: > > > Hello all, I'm using GTK 1.2 and my application has a clock that run > > always when I start the program, I make this clock using gtk_timeout_add > > with 1 second of interval and each 1 second it changes a gtk_label to > > show the elapsed time, and the program has too a CList with vertical > > scrollbar, but this scrollbar is making randon flickering when the > > numbers (gtk_label) of clock are swapped, why this occurs ? How to fix > > this ? > > the GtkLabel you use for the clock has to recalculate its size when you > change the text every second. Most probably this size change propagates > to the GtkClist which has to adapt to the new size and thus redraws > itself. Try to change your box layout so the label size doesn't affect > the size of any other containers, especially not one that holds larger > widgets like your GtkCList. > > > Salut, Sven From yfcho@ms9.hinet.net Mon Feb 25 18:07:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailout5.nyroc.rr.com (mailout5-1.nyroc.rr.com [24.92.226.169]) by mail.gnome.org (Postfix) with ESMTP id 60FCD182FF for ; Mon, 25 Feb 2002 18:07:28 -0500 (EST) Received: from talon (roc-24-161-69-214.rochester.rr.com [24.161.69.214]) by mailout5.nyroc.rr.com (8.11.6/Road Runner 1.12) with SMTP id g1PN7PM07430 for ; Mon, 25 Feb 2002 18:07:25 -0500 (EST) From: "Yu-Fong Cho" To: "GTK list" Subject: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? Date: Mon, 25 Feb 2002 18:07:06 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is a little different, so please take a look. Thank you!!! I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! I tried to install Netscape 6.2, but it keep telling me: error in loading shared libraries: libgtk-1.2.so.0: cannot open shared object file: No such file or directory. My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my whole file system. There is just no libgtk-1.2.so.0. What's wrong with it? Yu-Fong From superylam@netscape.net Mon Feb 25 20:39:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imo-m02.mx.aol.com (imo-m02.mx.aol.com [64.12.136.5]) by mail.gnome.org (Postfix) with ESMTP id 8C1ED18201 for ; Mon, 25 Feb 2002 20:39:32 -0500 (EST) Received: from superylam@netscape.net by imo-m02.mx.aol.com (mail_out_v32.5.) id t.f0.3190109 (16229); Mon, 25 Feb 2002 20:39:14 -0500 (EST) Received: from netscape.net (ip-244-195.cyberec.com [202.60.244.195]) by air-in02.mx.aol.com (v83.35) with ESMTP id MAILININ25-0225203913; Mon, 25 Feb 2002 20:39:13 -0500 Message-ID: <3C7AE6E4.40204@netscape.net> Date: Tue, 26 Feb 2002 09:37:40 +0800 From: Yick Lam User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: xpert@xfree86.org Cc: gtk-list@gnome.org Subject: Re: How X application distinguish input devices? References: <3C7A3C5F.7070000@netscape.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I posted this question and I found an answer with a guy who replied my email. There is an EXCELLENT example called xinput that complete solved my problem. The xinput description can be found at http://www.gtk.org/~otaylor/ (Owen Taylor). My heartiest thank to that guy who replied my email. Yick Hong Kong, China. superylam@netscape.net wrote: > Dear Sir, > > I have just devleoped a X input driver for my small graphic tablet. > It is a small tablet that is very popular in Hong Kong, Taiwan and China > for Chinese handwriting recoginition. It is working now. I have cursor > that will move according to mouse OR graphic tablet. > > Now I want to devlope a GTK application (honestly I posted this > question > in GTK mailing list) or X application that will ONLY respond the event > from > my graphic tablet. I have a callback function in my X application, > motion_notify_event and I have compared the event content > of my mouse and my graphic tablet and they look the same (the deviceid > content etc). and I have no way to distuguish whether the event is from the > mouse or from the graphic tablet. > > What did I do wrong in my driver? can please have a look at > http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether > I did wrong in the device driver? (BTW I would like if someone can > distribute > this driver). How can I pass special information from the driver to my X > applicaton? > > Yick Lam > Hong Kong, China > > > Yick > Hong Kong china > > > > > From scherfa@web.de Mon Feb 25 20:51:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id 86D69194FB for ; Mon, 25 Feb 2002 20:51:05 -0500 (EST) Received: from [143.93.58.8] (helo=rmpc06.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.28 #21) id 16fWkk-0005VZ-00; Tue, 26 Feb 2002 02:50:02 +0100 Subject: Re: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? From: Andreas Scherf To: Yu-Fong Cho Cc: Gtk Liste In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 26 Feb 2002 02:48:34 +0100 Message-Id: <1014688115.14155.2.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am Die, 2002-02-26 um 00.07 schrieb Yu-Fong Cho: > Hi, > > I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is > a little different, so please take a look. Thank you!!! > > I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any > gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so > and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! > > I tried to install Netscape 6.2, but it keep telling me: > > error in loading shared libraries: libgtk-1.2.so.0: cannot open shared > object file: No such file or directory. > > My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my > whole file system. There is just no libgtk-1.2.so.0. > > What's wrong with it? > > > Yu-Fong libgtk-1.2.so.0 is a link to the original lib: lrwxrwxrwx 1 root root 19 Jun 29 2001 libgtk-1.2.so.0 -> libgtk-1.2.so.0.9.1 you could add it by your won by tipping ln -s libgtk-1.2.so.0.10.x libgtk-1.2.so.0 You could look into $prefix/lib which gtk lib your are owning ... and fill the x with the right version.. Hope this helps Scherf -- Andreas Scherf ICQ: 52910964 scherfa@web.de From yfcho@ms9.hinet.net Mon Feb 25 21:05:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailout5.nyroc.rr.com (mailout5-1.nyroc.rr.com [24.92.226.169]) by mail.gnome.org (Postfix) with ESMTP id 3B021186EB for ; Mon, 25 Feb 2002 21:05:36 -0500 (EST) Received: from talon (roc-24-161-69-214.rochester.rr.com [24.161.69.214]) by mailout5.nyroc.rr.com (8.11.6/Road Runner 1.12) with SMTP id g1Q25VM01588; Mon, 25 Feb 2002 21:05:32 -0500 (EST) From: "Yu-Fong Cho" To: Cc: "Gtk Liste" Subject: RE: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? Date: Mon, 25 Feb 2002 21:05:12 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <1014688115.14155.2.camel@xerxes> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, My system only has libgtk-1.2.so --> libgtk-1.2.so.9 libgtk-1.2.so.9 I tried to link libgtk-1.2.so.0 --> libgtk-1.2.so.9 but Netscape 6.2 complained error in loading shared libraries: libgtk-1.2.so.0: ELF file OS ABI invalid. It looks like a Linux binary (Netscape) try to use a FreeBSD binary.... :-( That's all I got. Yu-Fong -----Original Message----- From: scherfa@web.de [mailto:scherfa@web.de] Sent: Monday, February 25, 2002 8:49 PM To: Yu-Fong Cho Cc: Gtk Liste Subject: Re: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? Am Die, 2002-02-26 um 00.07 schrieb Yu-Fong Cho: > Hi, > > I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is > a little different, so please take a look. Thank you!!! > > I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any > gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so > and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! > > I tried to install Netscape 6.2, but it keep telling me: > > error in loading shared libraries: libgtk-1.2.so.0: cannot open shared > object file: No such file or directory. > > My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my > whole file system. There is just no libgtk-1.2.so.0. > > What's wrong with it? > > > Yu-Fong libgtk-1.2.so.0 is a link to the original lib: lrwxrwxrwx 1 root root 19 Jun 29 2001 libgtk-1.2.so.0 -> libgtk-1.2.so.0.9.1 you could add it by your won by tipping ln -s libgtk-1.2.so.0.10.x libgtk-1.2.so.0 You could look into $prefix/lib which gtk lib your are owning ... and fill the x with the right version.. Hope this helps Scherf -- Andreas Scherf ICQ: 52910964 scherfa@web.de From s2108287@student.rmit.edu.au Tue Feb 26 00:27:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from its-mu-earth.its.rmit.edu.au (its-mu-earth.its.rmit.edu.au [131.170.2.10]) by mail.gnome.org (Postfix) with ESMTP id 5D24D18197 for ; Tue, 26 Feb 2002 00:27:26 -0500 (EST) Received: from student.rmit.edu.au (its-mn-ntce.its.rmit.edu.au [131.170.11.141]) by its-mu-earth.its.rmit.edu.au (8.10.1/8.10.1/ANTI-SPAM/ANTI-RELAY/EARTH) with ESMTP id g1Q5ROp15994 for ; Tue, 26 Feb 2002 16:27:24 +1100 (EST) Received: from bungalow [203.164.86.2] by student.rmit.edu.au with Novonyx SMTP Server $Revision: 2.75.1.9 $; Tue, 26 Feb 2002 16:27:25 +1100 (ESUT) Message-ID: <001401c1be86$2b92ca60$0300a8c0@bungalow> Reply-To: "Daniel Farrell" From: "Daniel Farrell" To: "GTK list" Subject: Compiling GTK+ 1.2.10 Date: Tue, 26 Feb 2002 16:26:40 +1100 Organization: RMIT MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0011_01C1BEE2.5ECAA630" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C1BEE2.5ECAA630 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I recently installed RedHat 7.0, then compiled kernel 2.4.17, and = installed XFree86 4.2.0, at this stage X works fine on my system. Next I was ready to start compiling Gnome 1.4 so ... compiled gmp 4.0.1, = gdbm 1.8.0, librep 0.15.2, glib 1.2.10 in that order. Then while configuring gtk+ 1.2.10, configure could find X include files = it wanted. So being a bit of a newbie I'm stumped. Does anybody know what I should = do? Or shouldn't have done? I would appreciate any response...Thanks Daniel Farrell. ------=_NextPart_000_0011_01C1BEE2.5ECAA630 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I recently installed RedHat 7.0,=20 then compiled kernel 2.4.17, and installed XFree86 4.2.0, at = this=20 stage X works fine on my system.
 
Next I was ready to start = compiling Gnome 1.4=20 so ... compiled gmp 4.0.1, gdbm 1.8.0, librep 0.15.2, glib = 1.2.10 in=20 that order.
 
Then while configuring gtk+ 1.2.10, = configure could=20 find X include files it wanted.
 
So being a bit of a newbie I'm=20 stumped.  Does anybody know what I should do? Or shouldn't = have=20 done?
 
I would appreciate any=20 response...Thanks
 
Daniel = Farrell.
------=_NextPart_000_0011_01C1BEE2.5ECAA630-- From kasonhuang@kinposh.com.cn Tue Feb 26 00:49:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 8030C182E9 for ; Tue, 26 Feb 2002 00:49:33 -0500 (EST) Subject: about GdkEventFocus and ...........? Date: Tue, 26 Feb 2002 13:48:30 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F822611AA@kes01.kinposh.com.cn> content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: about GdkEventFocus and ...........? Thread-Index: AcG+iTYlDaBPsSq3Eda2ugCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Cc: "Paul Davis" , "Havoc Pennington" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello, anyone could tell me two member variables of meaning in struct = GdkEventFocus of gtk source code. source code as following: struct _GdkEventFocus { GdkEventType type; GdkWindow *window; gint8 send_event; ----------->what meaning? gint16 in; ---------------------->what meaning? } why i want to ask that question. for i want to control the buttons focus move with keyboard (not by = mouse) in a gtktable not by the default done . anyone find that you couldn't move Parallelly the buttons focus in two = tables ,and you move buttons focus with up-down-left-right key in one = table sometime not as you expected. the following code is the problem about the buttons focus move in one = table,you can test it with up-down-left-right key then see the focus is = at the button as you expected. /*file ProblemInOneTable.c */ #include gint delete_event( GtkWidget *widget, GdkEvent *event,gpointer data ) { gtk_main_quit (); return(FALSE); } int main( int argc,char *argv[] ) { GtkWidget *window; GtkWidget *table; GtkWidget = *button1,*button2,*button3,*button4,*button5,*button6,*button7,*button8; =20 gtk_init (&argc, &argv); window =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "Table"); gtk_signal_connect (GTK_OBJECT (window), "delete_event", GTK_SIGNAL_FUNC (delete_event), NULL); gtk_container_set_border_width (GTK_CONTAINER (window), 20); table =3D gtk_table_new (4,4, TRUE); gtk_container_add (GTK_CONTAINER (window), table); button1 =3D gtk_button_new_with_label ("button 1"); gtk_table_attach_defaults (GTK_TABLE(table), button1, 0, 1, 0, 1); gtk_widget_show (button1); button2 =3D gtk_button_new_with_label ("button = 2");-------------------focus moves with down key not as expected? gtk_table_attach_defaults (GTK_TABLE(table), button2, 1, 2, 0,1); gtk_widget_show (button2); button3 =3D gtk_button_new_with_label ("button 3"); gtk_table_attach_defaults (GTK_TABLE(table), button3, 2, 3, 0, 1); gtk_widget_show (button3); button4 =3D gtk_button_new_with_label ("button = 4");------------------focus moves with down key not as expected? gtk_table_attach_defaults (GTK_TABLE(table), button4, 3, 4, 0,1); gtk_widget_show (button4); button5 =3D gtk_button_new_with_label ("button 5"); gtk_table_attach_defaults (GTK_TABLE(table), button5, 0, 1, 1, 2); gtk_widget_show (button5); button6 =3D gtk_button_new_with_label ("button 6"); gtk_table_attach_defaults (GTK_TABLE(table), button6, 1, 4, 1, 2); gtk_widget_show (button6); button7 =3D gtk_button_new_with_label ("button 7"); gtk_table_attach_defaults (GTK_TABLE(table), button7, 0,2,2, 3); gtk_widget_show (button7); button8 =3D gtk_button_new_with_label ("button 8"); gtk_table_attach_defaults (GTK_TABLE(table), button8, 2, 4, 2, 3); gtk_widget_show (button8); gtk_widget_show_all(window); gtk_main(); return 0; } someone knows this problem? Thanks in advance! kason From rwan@cs.mu.oz.au Tue Feb 26 01:01:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from vike.cs.mu.OZ.AU (vike.cs.mu.OZ.AU [128.250.36.73]) by mail.gnome.org (Postfix) with ESMTP id E08C1182DF for ; Tue, 26 Feb 2002 01:01:33 -0500 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 74BA675C0; Tue, 26 Feb 2002 17:01:32 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 74079ACAA for ; Tue, 26 Feb 2002 17:01:32 +1100 (EST) Date: Tue, 26 Feb 2002 17:01:32 +1100 (EST) From: Raymond Wan Reply-To: Raymond Wan To: gtk-list@gnome.org Subject: (1.3.15) - compiling pango In-Reply-To: <20020224065818.C5086241BE2@fresnel.labs.redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, On Sun, 24 Feb 2002, Owen Taylor wrote: > Overview of Changes in Pango 0.26 > ================================= > > * Fixes for AIX compilation [Miroslaw Dobrzanski-Neumann] > * Fix zero-width characters being displayed [Sven Neumann] > * Add some padding to class structures [Owen Taylor] I tried compiling pango and came up with some errors. I don't think I did anything wrong, though. The errors were: ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_ruleset_new' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_info_find_feature' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_ruleset_add_feature' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_ruleset_shape' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_info_new' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_info_find_script' while doing a make on pango. The problem occurs soon after it enters the pango-0.26/examples directory. I configured pango with: ./configure --prefix=$GTK_DIR --enable-shared --enable-static --with-included-loaders=xpm,png,gif,jpeg --with-included-modules=yes and have already installed pkgconfig and glib. As they're only examples, I may be able to continue installation without affecting my program, but perhaps someone should try it to prove that I'm not insane. :-) Thanks! Ray From anjali_grover@yahoo.com Tue Feb 26 05:02:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14608.mail.yahoo.com (web14608.mail.yahoo.com [216.136.224.88]) by mail.gnome.org (Postfix) with SMTP id CD45518150 for ; Tue, 26 Feb 2002 05:02:49 -0500 (EST) Message-ID: <20020226100248.69046.qmail@web14608.mail.yahoo.com> Received: from [155.69.5.223] by web14608.mail.yahoo.com via HTTP; Tue, 26 Feb 2002 02:02:48 PST Date: Tue, 26 Feb 2002 02:02:48 -0800 (PST) From: Anjali Grover Subject: Making a label text bold To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In order to get a bold label text, I loaded the desired font into GtkFont boldfont; Then I tried to get bold label text via: label=gtk_label_new(text); style = gtk_widget_get_style(label); style->font = boldfont; The result was everything bold, inlcuding the text in all buttons on my window. Then, I made a copy of GdkStyle, so I tried: label=gtk_label_new(text); style = gtk_widget_get_style(label); bstyle = *style; bstyle.font = boldfont; gtk_widget_set_style(label, &bstyle); The result was: nothing bold. I can't trace the problem:( Regards, Anjali __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From rhfreeman@micron.com Tue Feb 26 06:59:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id C550E181BB for ; Tue, 26 Feb 2002 06:59:53 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g1QBxrV16918 for ; Tue, 26 Feb 2002 04:59:53 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g1QBxqe16912 for ; Tue, 26 Feb 2002 04:59:52 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Tue, 26 Feb 2002 04:59:52 -0700 Message-ID: From: rhfreeman To: "'gtk-list@gnome.org'" Subject: ItemFactory callbacks not quite working Date: Tue, 26 Feb 2002 04:59:47 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Folks, I've got these few snips of code: void set_xaxis_context(gpointer cb_data, guint action, GtkWidget *w); static GtkItemFactoryEntry context_menu[] = { { "/Set X-Axis", NULL, set_xaxis_context, 0, NULL }, }; w_layout[number].context_menu=gtk_item_factory_new(GTK_TYPE_MENU, "
", NULL); gtk_item_factory_create_items(w_layout[number].context_menu, nmenu_items, context_menu, NULL); gtk_object_set_data(GTK_OBJECT(w_layout[number].context_menu), "id", GINT_TO_POINTER(number)); void set_xaxis_context(gpointer cb_data, guint action, GtkWidget *widget) { gpointer data; data=gtk_object_get_data(GTK_OBJECT(widget), "id"); if (data!=NULL) printf("ID %d\n", GPOINTER_TO_INT(data)); else printf("NULL!\n"); } gint button_press_event(GtkWidget *widget, GdkEventButton *event, gpointer data) { // other stuff if(event->button==3) { gtk_item_factory_popup(w_layout[foc].context_menu, (guint) event->x_root, (guint) event->y_root, 1, 0); return TRUE; } return FALSE; } This code all looks good. I press the RMB on my area and the popup menu appears normally. When I click on the "Set X-Axis" item the callback is called but it always returns NULL. I've tried using the widget->parent widget instead and that didn't help. Can anyone point out what I am doing wrong? Thanks! Rich From sven@gimp.org Tue Feb 26 07:34:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id C429118FD7 for ; Tue, 26 Feb 2002 07:34:58 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16fgop-0000f2-00; Tue, 26 Feb 2002 13:34:55 +0100 To: =?cn-big5?b?tsC8eQ==?= Kason Huang Cc: Subject: Re: about GdkEventFocus and ...........? References: <92CD479384374A439EFA0077E7C50F822611AA@kes01.kinposh.com.cn> From: Sven Neumann Date: 26 Feb 2002 13:34:54 +0100 In-Reply-To: <92CD479384374A439EFA0077E7C50F822611AA@kes01.kinposh.com.cn> Message-ID: Lines: 26 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=cn-big5 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, =B6=C0=BCy Kason Huang writes: > anyone could tell me two member variables of meaning in struct GdkEventFo= cus of gtk source code. > source code as following: > struct _GdkEventFocus > { > GdkEventType type; > GdkWindow *window; > gint8 send_event; ----------->what meaning? > gint16 in; ---------------------->what meaning? > } this maps pretty close to X11, so reading the XFocusChangeEvent docs may help send_event: TRUE if this came from a SendEvent request in : TRUE for FocusIn, FALSE for FocusOut Salut, Sven BTW: Could you try to send emails with shorter lines? Your mails are hard to read which makes it less probable that someone takes the time to answer them. From mssuser@localhost.localdomain Tue Feb 26 08:18:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.224.172]) by mail.gnome.org (Postfix) with ESMTP id 883C718471 for ; Tue, 26 Feb 2002 08:18:28 -0500 (EST) Received: from localhost (localhost [[UNIX: localhost]]) by localhost.localdomain (8.11.2/8.11.2) id g1O9wv202410 for gtk-list@gnome.org; Sun, 24 Feb 2002 15:28:57 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: gtk-list@gnome.org Subject: [INIMSS] How can I get the GList of items in a GtkList. Date: Sun, 24 Feb 2002 15:28:53 +0530 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02022415285301.00975@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All How can I get the pointer to the Glist of all the items in a GtkList of a GtkCombo? I am trying to get the index of the currently selected item in the list. Thank You Dino From hp@redhat.com Tue Feb 26 09:43:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 1BE89182D6 for ; Tue, 26 Feb 2002 09:43:28 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1QEhQd21881; Tue, 26 Feb 2002 09:43:26 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Anjali Grover Cc: gtk-list@gnome.org Subject: Re: Making a label text bold References: <20020226100248.69046.qmail@web14608.mail.yahoo.com> From: Havoc Pennington Date: 26 Feb 2002 09:43:26 -0500 In-Reply-To: <20020226100248.69046.qmail@web14608.mail.yahoo.com> Message-ID: Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Anjali Grover writes: > > In order to get a bold label text, I loaded the > desired font into GtkFont boldfont; > > Then I tried to get bold label text via: > label=gtk_label_new(text); > style = gtk_widget_get_style(label); > style->font = boldfont; > > The result was everything bold, inlcuding the text in > all buttons on my window. > > Then, I made a copy of GdkStyle, so I tried: > > label=gtk_label_new(text); > style = gtk_widget_get_style(label); > bstyle = *style; > bstyle.font = boldfont; > gtk_widget_set_style(label, &bstyle); > > The result was: nothing bold. You want to use gtk_widget_modify_style() probably. See http://pobox.com/~hp/gtk-colors.html In GTK 2 (1.3.15 is the most recent GTK 2 beta) you could use gtk_label_set_markup() or gtk_widget_modify_font() instead, which would be a lot easier. Havoc From ramses@computer.org Tue Feb 26 16:39:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id 791E918155; Tue, 26 Feb 2002 16:39:49 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020226214014.SZVF480.sv16@adsl50>; Tue, 26 Feb 2002 16:40:14 -0500 Subject: I think I found a freak bug on GTK+-1.3.15 From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 26 Feb 2002 16:47:54 -0500 Message-Id: <1014760074.1197.5.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If I compile an app with this two lines: GtkTreeViewColumn *ca; GtkTreeViewColumn *cb; When I run the app, I get a Segmentation Fault. *cb isn't used on the code. If I compile the app after comenting: GtkTreeViewColumn *ca; /*GtkTreeViewColumn *cb;*/ ...it runs nicely. This is wierd. From rwalden@tripos.com Tue Feb 26 16:48:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id D8E971821B for ; Tue, 26 Feb 2002 16:48:51 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id PAA10547 for ; Tue, 26 Feb 2002 15:48:51 -0600 (CST) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma010534; Tue, 26 Feb 02 15:48:00 -0600 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id PAA24217 for ; Tue, 26 Feb 2002 15:47:59 -0600 (CST) Message-ID: <3C7C028F.BEE311DD@tripos.com> Date: Tue, 26 Feb 2002 15:47:59 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: GTK List Subject: Re: GTK_TYPE_BOXED References: <3C7A694E.FE8E50DD@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Can anyone comment on the changes between 1.2 and 2.0 that woud break code using gtk_type_unique(GTK_TYPE_BOXED, &some_subclass_info ); in the _get_type function for a derived type? Thanks, Ralph Walden Ralph Walden wrote: > > I'm attempting to port some gtk+-1.2 widgets to 2.0 (1.3.13 actually) > and I'm running into a problem with an object that is derived from > a GTK_TYPE_BOXED type. This seems to cause a segfault in the g_type > system. > > I found some mention of this in the some of the list archives, but I > couldn't > figure what the resolution was. > > Is it an O.K. thing to derive objects from GTK_TYPE_BOXED and expect it > to > work with the new g_type system? > > Sorry for being so vague, but I'm on the fuzzy frontier of the > understanding > of my own problem... :) > > Thanks, > > Ralph Walden > > -- > > Ralph E. Walden > Tripos, Inc. > rwalden@tripos.com > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Tue Feb 26 17:09:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id F1CD018AB1 for ; Tue, 26 Feb 2002 17:09:01 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1QM8x831894; Tue, 26 Feb 2002 17:08:59 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ralph Walden Cc: GTK List Subject: Re: GTK_TYPE_BOXED References: <3C7A694E.FE8E50DD@tripos.com> <3C7C028F.BEE311DD@tripos.com> From: Havoc Pennington Date: 26 Feb 2002 17:08:59 -0500 In-Reply-To: <3C7C028F.BEE311DD@tripos.com> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > Can anyone comment on the changes between 1.2 and 2.0 that > woud break code using > > gtk_type_unique(GTK_TYPE_BOXED, &some_subclass_info ); > > in the _get_type function for a derived type? > You probably want g_boxed_type_register_static() instead. Havoc From pbd@op.net Tue Feb 26 17:23:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D86C51812F; Tue, 26 Feb 2002 17:23:35 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-239.phlpa.fast.net [209.92.96.239]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id RAA29528; Tue, 26 Feb 2002 17:22:44 -0500 (EST) Message-Id: <200202262222.RAA29528@renoir.op.net> To: Rams s Morales Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: I think I found a freak bug on GTK+-1.3.15 In-reply-to: Your message of "26 Feb 2002 16:47:54 EST." <1014760074.1197.5.camel@adsl50> Date: Tue, 26 Feb 2002 17:22:03 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >If I compile an app with this two lines: > >GtkTreeViewColumn *ca; >GtkTreeViewColumn *cb; > >When I run the app, I get a Segmentation Fault. *cb isn't used on the >code. > >If I compile the app after comenting: > >GtkTreeViewColumn *ca; >/*GtkTreeViewColumn *cb;*/ > >...it runs nicely. > >This is wierd. it may or may not be wierd, but its the classic fingerprint of a memory overrun bug in your code. the extra declaration of "cb" changes the memory layout of other variables in a way that causes the memory overrun to have a visible effect. there are not too many fast ways to debug this. electric fence is not bad, dmalloc can help sometimes, purify is good but costs money for the real thing and is pretty big. i generally find that deep meditation while reading the code and a few printfs most helpful. --p From torriem@cs.byu.edu Tue Feb 26 17:33:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from divit.cs.byu.edu (divit.cs.byu.edu [128.187.168.136]) by mail.gnome.org (Postfix) with ESMTP id 3674D1812F; Tue, 26 Feb 2002 17:33:38 -0500 (EST) Received: (from caseih@localhost) by divit.cs.byu.edu (8.11.6/8.9.3) id g1QMXUo32623; Tue, 26 Feb 2002 15:33:30 -0700 X-Authentication-Warning: divit.cs.byu.edu: caseih set sender to torriem@cs.byu.edu using -f Subject: Re: I think I found a freak bug on GTK+-1.3.15 From: Michael Torrie To: =?ISO-8859-1?Q?Rams=E9s?= Morales Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org In-Reply-To: <1014760074.1197.5.camel@adsl50> References: <1014760074.1197.5.camel@adsl50> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-sgV79JrogDTT8yBKJZBI" X-Mailer: Evolution/1.0.2 Date: 26 Feb 2002 15:33:30 -0700 Message-Id: <1014762810.32494.14.camel@divit.cs.byu.edu> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-sgV79JrogDTT8yBKJZBI Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, 2002-02-26 at 14:47, Rams=E9s Morales wrote: > If I compile an app with this two lines: >=20 > GtkTreeViewColumn *ca; > GtkTreeViewColumn *cb; >=20 > When I run the app, I get a Segmentation Fault. *cb isn't used on the > code. >=20 > If I compile the app after comenting: >=20 > GtkTreeViewColumn *ca; > /*GtkTreeViewColumn *cb;*/ >=20 > ...it runs nicely. >=20 > This is wierd. This type of thing is very likely indicative of some memory corruption in your code. It's unlikely to be in gtk (but could be). Just the fact that removing the second pointer declaration makes it work indicates that it's your code that's messing up somewhere. Just declaring a pointer doesn't do any object initialization (ie gtk_tree_view_new type stuff). What it does do is change your stack layout slightly such that whatever memory corruption you're doing won't cause an immediate crash when you remove that unused variable. Adding it back in changes offsets just slightly so that something important on the stack is overwritten. Pointer errors always maifest themselves in this type of manner. Very frustrating. Good luck. You'll want to run your code through DDD debugger. It has some very powerful facilities for viewing your variables etc. You can then watch what happens when the offending line is executed. Also you can load the core file into the debugger after the fact and see what line triggered the core dump, see the variables, etc. Should help you establish what's happening. (DDD is run by the command ddd. It's downloadable from the internet too -- see freshmeat.net) Michael >=20 >=20 >=20 > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list --=20 Public key available from http://students.cs.byu.edu/~torriem --=-sgV79JrogDTT8yBKJZBI Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8fA069bTmAa2MOJ8RAv5aAKCZX9ftnoDGKaNS0eQgjRP8CPqvpACgphjV boS2et4NQ7l1qTemwTWLVSk= =3SYB -----END PGP SIGNATURE----- --=-sgV79JrogDTT8yBKJZBI-- From rbultje@ronald.bitfreak.net Tue Feb 26 17:41:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id CE25818DCE for ; Tue, 26 Feb 2002 17:41:13 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1QMUu4K002400 for ; Tue, 26 Feb 2002 23:30:58 +0100 (CET) Subject: gtkfileselectiondialog is slow? From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 26 Feb 2002 23:41:10 +0100 Message-Id: <1014763272.18710.77.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, if I do the following on a gtkfileselectiondialog in gtk-1.3.14: * go to dir / using GtkOptionMenu widget * click dir media/ in the folders window * click dir mp3/ in the folders window * in the right window (files), go to the bottom of this dir (it has about 1000 files) * now, double click "../" in the left window (folders) It will take a terrible amount of time for the thing to load the "../" dir or to unload the current dir (I don't know exactly). Since entering this directory happens almost instanteniously, I suppose this is a small design flaw or so in the widget? I'd be tempted to call it a bug but it doesn't crash ;-). Should I file this on bugzilla or is this fixed in 1.3.15? (sorry, I haven't had the time yet to upgrade to 1.3.15, I will do so this weekend). Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From ramses@computer.org Tue Feb 26 18:26:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id B0A21182A1; Tue, 26 Feb 2002 18:26:17 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020226232642.TNCI480.sv16@adsl50>; Tue, 26 Feb 2002 18:26:42 -0500 Subject: Re: I think I found a freak bug on GTK+-1.3.15 From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org In-Reply-To: <1014760074.1197.5.camel@adsl50> References: <1014760074.1197.5.camel@adsl50> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 26 Feb 2002 18:34:22 -0500 Message-Id: <1014766463.1169.2.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yup, the problem is some pointer on my code, not a GTK+ bug. I'll hunt it with njam. Thanks for your help. From lnx1138@us.ibm.com Tue Feb 26 19:47:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sm11.texas.rr.com (sm11.texas.rr.com [24.93.35.42]) by mail.gnome.org (Postfix) with ESMTP id 2AA2F185B5 for ; Tue, 26 Feb 2002 19:47:50 -0500 (EST) Received: from cs24273-101.austin.rr.com (cs24273-101.austin.rr.com [24.27.3.101]) by sm11.texas.rr.com (8.12.1/8.12.0) with ESMTP id g1R0icKW020318 for ; Tue, 26 Feb 2002 18:44:43 -0600 Subject: cancelling/aborting an emitted signal From: Luciano Chavez To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 26 Feb 2002 18:46:50 -0600 Message-Id: <1014770815.8243.17.camel@localhost> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, Can someone suggest the proper generic way to abort a signal from actually causing the default handler to change the widget value. Must I connect the signal handler in a certain order? For example, in a "toggled" signal handler for a toggle button if some condition is true then I want the "toggled" signal to be canceled so the widget does not signify the change (a checkmark displayed or removed). I've tried the following but get a Gtk Warning indicating there is to no emitted signal to stop: gtk_signal_emit_stop_by_name (GTK_OBJECT (button), "toggled"); Again, I want to know the generic method to cancel a signal within a signal handler so the widget does not reflect the change. This applies to GtkAdjustment value changes (for GtkHScale and GtkSpinButton changes), GtkCList row selection and unselection, and others. -- regards, Luciano Chavez lnx1138@us.ibm.com http://sf.net/projects/evms From Steph.Fox@btinternet.com Tue Feb 26 19:55:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gadolinium.btinternet.com (gadolinium.btinternet.com [194.73.73.111]) by mail.gnome.org (Postfix) with ESMTP id 9B3F6185B5 for ; Tue, 26 Feb 2002 19:55:56 -0500 (EST) Received: from host213-1-199-78.in-addr.btopenworld.com ([213.1.199.78] helo=t2r1o8) by gadolinium.btinternet.com with smtp (Exim 3.22 #8) id 16fsNt-0003bC-00; Wed, 27 Feb 2002 00:55:53 +0000 Message-ID: <00ef01c1bf29$32786580$73417bd5@t2r1o8> From: "Steph" To: "Luciano Chavez" , References: <1014770815.8243.17.camel@localhost> Subject: Re: cancelling/aborting an emitted signal Date: Wed, 27 Feb 2002 00:53:33 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: can't you just set_sensitive(false)? - otherwise, signal_handler_block() is your friend. ----- Original Message -----=20 From: "Luciano Chavez" To: Sent: Wednesday, February 27, 2002 12:46 AM Subject: cancelling/aborting an emitted signal > Hello, >=20 > Can someone suggest the proper generic way to abort a signal from > actually causing the default handler to change the widget value. Must = I > connect the signal handler in a certain order? >=20 > For example, in a "toggled" signal handler for a toggle button if some > condition is true then I want the "toggled" signal to be canceled so = the > widget does not signify the change (a checkmark displayed or removed). > I've tried the following but get a Gtk Warning indicating there is to = no > emitted signal to stop: >=20 > gtk_signal_emit_stop_by_name (GTK_OBJECT (button), "toggled"); >=20 > Again, I want to know the generic method to cancel a signal within a > signal handler so the widget does not reflect the change. This applies > to GtkAdjustment value changes (for GtkHScale and GtkSpinButton > changes), GtkCList row selection and unselection, and others. > =20 > --=20 > regards, >=20 > Luciano Chavez >=20 > lnx1138@us.ibm.com =20 > http://sf.net/projects/evms >=20 > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From seberino@dt092n42.san.rr.com Tue Feb 26 20:02:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F2813185B5 for ; Tue, 26 Feb 2002 20:02:11 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16fsUH-0001R5-00 for gtk-list@gnome.org; Tue, 26 Feb 2002 17:02:29 -0800 Date: Tue, 26 Feb 2002 17:02:29 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: Does *packing* a drawing area into a box fire off a configure event? Message-ID: <20020226170228.A5520@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: By adding print statements it seems that when I pack a drawing area into a box that a configure or expose event gets fired. even before gtk_main gets called and show widget commands. Is this right? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Tue Feb 26 20:03:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 6A03718D50 for ; Tue, 26 Feb 2002 20:03:42 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-96.phlpa.fast.net [209.92.96.96]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA19387; Tue, 26 Feb 2002 20:03:40 -0500 (EST) Message-Id: <200202270103.UAA19387@renoir.op.net> To: Luciano Chavez Cc: gtk-list@gnome.org Subject: Re: cancelling/aborting an emitted signal In-reply-to: Your message of "26 Feb 2002 18:46:50 CST." <1014770815.8243.17.camel@localhost> Date: Tue, 26 Feb 2002 20:03:01 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hello, > >Can someone suggest the proper generic way to abort a signal from >actually causing the default handler to change the widget value. Must I >connect the signal handler in a certain order? > >For example, in a "toggled" signal handler for a toggle button if some >condition is true then I want the "toggled" signal to be canceled so the >widget does not signify the change (a checkmark displayed or removed). >I've tried the following but get a Gtk Warning indicating there is to no >emitted signal to stop: > >gtk_signal_emit_stop_by_name (GTK_OBJECT (button), "toggled"); catch the button_press_event and you'll probably find that you're in better shape. also, check and double check that you're calling it on the correct widget - i've sometimes done cut-n-paste ops that have led to that error message. >Again, I want to know the generic method to cancel a signal within a >signal handler so the widget does not reflect the change. This applies >to GtkAdjustment value changes (for GtkHScale and GtkSpinButton >changes), GtkCList row selection and unselection, and others. i do this a LOT in my code, and i always use gtk_signal_emit_stop_by_name(), but i always catch the underlying events (button press/release etc.), not the "translations" like clicked/selected/activate and so forth. you also need to still return TRUE, sometimes. --p From ruben@mrbrklyn.com Tue Feb 26 22:53:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www2.mrbrklyn.com (dsl254-112-136.nyc1.dsl.speakeasy.net [216.254.112.136]) by mail.gnome.org (Postfix) with ESMTP id 049D318122 for ; Tue, 26 Feb 2002 22:53:40 -0500 (EST) Received: from www2 (localhost [127.0.0.1]) by www2.mrbrklyn.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g1R3rdS15972 for ; Tue, 26 Feb 2002 22:53:39 -0500 Date: Tue, 26 Feb 2002 22:53:39 -0500 From: Ruben I Safir To: gtk-list@gnome.org Subject: Balsa Message-ID: <20020226225339.A15963@www2.mrbrklyn.com> Reply-To: ruben@mrbrklyn.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.2.3 Lines: 20 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Anyone seen the Balsa Product lately? Ruben -- __________________________ Brooklyn Linux Solutions __________________________ http://www.mrbrklyn.com - Consulting http://www.brooklynonline.com - For the love of Brooklyn http://www.nylxs.com - Leadership Development in Free Software http://www.nyfairuse.org - The foundation of Democracy http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from around the net http://www2.mrbrklyn.com/mp3/sins.mp3 - C'est La Vie and a boy named Joe http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn.... 1-718-382-5752 From mssuser@localhost.localdomain Tue Feb 26 23:26:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.224.172]) by mail.gnome.org (Postfix) with ESMTP id B07D718185 for ; Tue, 26 Feb 2002 23:25:58 -0500 (EST) Received: from localhost (localhost [[UNIX: localhost]]) by localhost.localdomain (8.11.2/8.11.2) id g1R4SgP01258 for gtk-list@gnome.org; Wed, 27 Feb 2002 09:58:42 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: gtk-list@gnome.org Subject: [INIMSS] How can I get the GList of items in a GtkList. Date: Wed, 27 Feb 2002 09:58:39 +0530 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02022709583900.01123@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All How can I get the pointer to the Glist of all the items in a GtkList of a GtkCombo? I am trying to get the index of the currently selected item in the list. Thank You Dino From wombat@borg.apana.org.au Tue Feb 26 23:52:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from borg.apana.org.au (borg.apana.org.au [203.11.114.137]) by mail.gnome.org (Postfix) with ESMTP id 1F1C21833B for ; Tue, 26 Feb 2002 23:52:26 -0500 (EST) Received: from developer ([10.0.0.23] ident=mail) by borg.apana.org.au with esmtp (Exim 3.12 #1 (Debian)) id 16fw4j-0004ck-00 for ; Wed, 27 Feb 2002 12:52:21 +0800 Received: from wombat by developer with local (Exim 3.34 #1 (Debian)) id 16fw6D-0000Xl-00 for ; Wed, 27 Feb 2002 12:53:53 +0800 Subject: file handling with fopen() and fclose() From: John Breen To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 27 Feb 2002 12:53:53 +0800 Message-Id: <1014785633.976.49.camel@developer> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Help! I'm in the process of developing an app. using gtk1.2 that requires the user to login, and thus needs to read /etc/shadow to get username and password info. Problem is, I've tried doing it with something like fp=fopen("/etc/shadow"); if(fp==NULL) fatal_error("cannot open file"); fclose(fp); showmessage("login processing done"); and are my own functions that work ok - i have tested them, so they're not at issue here. Problem is that the code never gets to either the showmessage() or fatalerror() calls. I need to do line-by-line text processing with fp, so a stream-based approach that lets me use fgets() is better. Is there a workaround? Has anyone run into similar problems? I have very similar code working fine in an ncurses-based version, but this is really bugging me. TIA, John Breen From Valdis.Kletnieks@vt.edu Wed Feb 27 00:05:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 025BB1833B for ; Wed, 27 Feb 2002 00:05:09 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1R550Vj027116; Wed, 27 Feb 2002 00:05:00 -0500 Message-Id: <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: John Breen Cc: gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() In-Reply-To: Your message of "Wed, 27 Feb 2002 12:53:53 +0800." <1014785633.976.49.camel@developer> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-534300354P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 27 Feb 2002 00:04:59 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-534300354P Content-Type: text/plain; charset=us-ascii On Wed, 27 Feb 2002 12:53:53 +0800, John Breen said: > fp=fopen("/etc/shadow"); SYNOPSIS #include FILE *fopen(const char *path, const char *mode); Might want to pass a mode there, it would SIGSEGV pretty quickly otherwise. Also, note that /etc/shadow is probably only readable by root - which means that you're in for *LOADS* of security fun (you get to run set-UID, or run as root, or figure out how to use PAM on systems that support it). Personally, I think PAM is your best bet if you can use it. -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_-534300354P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8fGj7cC3lWbTT17ARAtH0AJ0dyb+2mKPuQ+T6wssjMqYam8iJQQCgnpVp xrI13SbK/8pLgcKCxipFp/w= =HS9C -----END PGP SIGNATURE----- --==_Exmh_-534300354P-- From wombat@borg.apana.org.au Wed Feb 27 00:17:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from borg.apana.org.au (borg.apana.org.au [203.11.114.137]) by mail.gnome.org (Postfix) with ESMTP id 28FE71929B for ; Wed, 27 Feb 2002 00:17:11 -0500 (EST) Received: from developer ([10.0.0.23] ident=mail) by borg.apana.org.au with esmtp (Exim 3.12 #1 (Debian)) id 16fwSt-0004gQ-00 for ; Wed, 27 Feb 2002 13:17:19 +0800 Received: from wombat by developer with local (Exim 3.34 #1 (Debian)) id 16fwUO-0000Z7-00 for ; Wed, 27 Feb 2002 13:18:52 +0800 Subject: Re: file handling with fopen() and fclose() From: John Breen To: gtk-list@gnome.org In-Reply-To: <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 27 Feb 2002 13:18:51 +0800 Message-Id: <1014787131.976.56.camel@developer> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-27 at 13:04, Valdis.Kletnieks@vt.edu wrote: > On Wed, 27 Feb 2002 12:53:53 +0800, John Breen said: > > > fp=fopen("/etc/shadow"); > > SYNOPSIS > #include > > FILE *fopen(const char *path, const char *mode); sorry, the code is actually fp = fopen("/etc/shadow", "r"); > > > Might want to pass a mode there, it would SIGSEGV pretty quickly otherwise. > > Also, note that /etc/shadow is probably only readable by root - which means > that you're in for *LOADS* of security fun (you get to run set-UID, or > run as root, or figure out how to use PAM on systems that support it). the code's been compiled, and then chgrp shadow executable chmod g+s executable which means that the app will be run if by a member of the shadow group, which is the group on /etc/shadow, and has read-access to /etc/shadow. > > Personally, I think PAM is your best bet if you can use it. I hadn't thought of PAM (and don't know how to use it in the context of this app. anyway :( ) the thing is, it works ok for me in a console version, just won't work in GTK+ - it seems to get to the first line using the file after fopen() and close the app down totally. oh well, time to climb the ol' learning curve again. shame, 'cause i wanted to get this bit out of the way quickly - the rest of the app should be pretty easy after that... cheers, John Breen From anjali_grover@yahoo.com Wed Feb 27 00:59:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14602.mail.yahoo.com (web14602.mail.yahoo.com [216.136.224.82]) by mail.gnome.org (Postfix) with SMTP id 0546B181DF for ; Wed, 27 Feb 2002 00:59:30 -0500 (EST) Message-ID: <20020227055929.90176.qmail@web14602.mail.yahoo.com> Received: from [155.69.5.123] by web14602.mail.yahoo.com via HTTP; Tue, 26 Feb 2002 21:59:29 PST Date: Tue, 26 Feb 2002 21:59:29 -0800 (PST) From: Anjali Grover Subject: Undefined references fro Gtkdatabox To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have follwed the installation steps ('./configure' followed by 'make' an then 'make install') fro GtkDatabox. I can successfully run the testdatabox. However, when I copy-paste the code for say the basic data box to my pre-existing gtk program in another directory, I get undefined references for the databox functions at run-time. (I can compile the code) I believe I would have to copy the databox libraries to my previous original set of other gtk libraries. I am not sure how to do this??? Thanx, Anjali __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com From michael@cs.millersville.edu Wed Feb 27 06:24:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.millersville.edu (cs.millersville.edu [166.66.64.14]) by mail.gnome.org (Postfix) with ESMTP id 080B71865F for ; Wed, 27 Feb 2002 06:24:16 -0500 (EST) Received: from cs.millersville.edu (localhost.0.0.127.in-addr.arpa [127.0.0.1] (may be forged)) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RBNwIQ004892; Wed, 27 Feb 2002 06:23:59 -0500 Received: from localhost (michael@localhost) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RBNw5X004888; Wed, 27 Feb 2002 06:23:58 -0500 Date: Wed, 27 Feb 2002 06:23:58 -0500 (EST) From: Michael Mitton To: Valdis.Kletnieks@vt.edu Cc: John Breen , Subject: Re: file handling with fopen() and fclose() In-Reply-To: <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Even with PAM you need to be root. I had this trouble myself and ended up writing a helper script that ran suid as root and passed login info via pipes. If you are not root, it seems to only auth the user your are running your script as. -Michael On Wed, 27 Feb 2002 Valdis.Kletnieks@vt.edu wrote: > On Wed, 27 Feb 2002 12:53:53 +0800, John Breen said: > > > fp=fopen("/etc/shadow"); > > SYNOPSIS > #include > > FILE *fopen(const char *path, const char *mode); > > > Might want to pass a mode there, it would SIGSEGV pretty quickly otherwise. > > Also, note that /etc/shadow is probably only readable by root - which means > that you're in for *LOADS* of security fun (you get to run set-UID, or > run as root, or figure out how to use PAM on systems that support it). > > Personally, I think PAM is your best bet if you can use it. > > -- > Valdis Kletnieks > Computer Systems Senior Engineer > Virginia Tech > > From sven@gimp.org Wed Feb 27 08:02:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 98C52187B2 for ; Wed, 27 Feb 2002 08:02:46 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16g3j8-0000ZA-00; Wed, 27 Feb 2002 14:02:34 +0100 To: John Breen Cc: gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> <1014787131.976.56.camel@developer> From: Sven Neumann Date: 27 Feb 2002 14:02:33 +0100 In-Reply-To: <1014787131.976.56.camel@developer> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, John Breen writes: > > Also, note that /etc/shadow is probably only readable by root - which means > > that you're in for *LOADS* of security fun (you get to run set-UID, or > > run as root, or figure out how to use PAM on systems that support it). > > the code's been compiled, and then > > chgrp shadow executable > chmod g+s executable > > which means that the app will be run if by a member of the shadow group, > which is the group on /etc/shadow, and has read-access to /etc/shadow. which is actually a very bad idea for a GUI application. You can as well make /etc/shadow world-readable then. See http://gtk.org/setuid.html. GTK+-2.0 will even refuse to run if you make the executable setuid or setgid. Salut, Sven From wombat@borg.apana.org.au Wed Feb 27 08:25:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (relay1-us.simplemente.net [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id DCF3718E5E for ; Wed, 27 Feb 2002 08:25:22 -0500 (EST) Received: from borg.apana.org.au (borg.apana.org.au [203.11.114.137]) by relay1-us.simplemente.net (Postfix) with ESMTP id C89B2D780E for ; Wed, 27 Feb 2002 08:25:18 -0500 (EST) Received: from developer ([10.0.0.23] ident=mail) by borg.apana.org.au with esmtp (Exim 3.12 #1 (Debian)) id 16g3sY-0005V2-00 for ; Wed, 27 Feb 2002 21:12:18 +0800 Received: from wombat by developer with local (Exim 3.34 #1 (Debian)) id 16g3u2-0000tP-00 for ; Wed, 27 Feb 2002 21:13:50 +0800 Subject: Re: file handling with fopen() and fclose() From: John Breen To: gtk-list@gnome.org In-Reply-To: References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> <1014787131.976.56.camel@developer> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 27 Feb 2002 21:13:49 +0800 Message-Id: <1014815629.1706.68.camel@developer> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-27 at 21:02, Sven Neumann wrote: > Hi, > > John Breen writes: > > > which is actually a very bad idea for a GUI application. You can as > well make /etc/shadow world-readable then. See http://gtk.org/setuid.html. > GTK+-2.0 will even refuse to run if you make the executable setuid or > setgid. > > Ok, I sit corrected. I guess I'll have to add more overhead and figure out _how_ to handle the authentication. PAM _looks_ like it will do it, but then again maybe not. Has anyone done such a thing then, and prepared to share the methodology? If not the code? Regards, John Breen From satyajit.kanungo@wipro.com Wed Feb 27 09:58:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by mail.gnome.org (Postfix) with ESMTP id 54A4218844 for ; Wed, 27 Feb 2002 09:58:20 -0500 (EST) Received: from m2vwall5.wipro.com (m2vwall5.wipro.com [10.115.50.5]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id g1REwJe07948 for ; Wed, 27 Feb 2002 20:28:19 +0530 (IST) Received: from satyajit ([10.114.9.188]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GS75JN00.HZ0 for ; Wed, 27 Feb 2002 20:27:23 +0530 From: "satyajit kanungo" To: Subject: drawing area and expose event Date: Wed, 27 Feb 2002 20:35:37 +0530 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All I have a gtk drawing area put in a window. I have a function to draw something on this drawing area [ using GdkRGB gdk_draw_rgb_image (darea,..) call ] Now I find if I directly call this funtion to draw on to the drawing area I get warnings such as : GLib-GObject-WARNING **: invalid cast from (NULL) pointer to `GdkDrawable' Gdk-CRITICAL **: file gdkdraw.c: line 244: assertion `GDK_IS_DRAWABLE (drawable)' failed Then I attached an "expose-event" to the drawing area and in the callback I put the same function(drawing fuction) and it draws properly . Do we always need to attach the expose event to the drawing area to draw anything on it . Is there any other way where I can force the drawing . Thanks, Satyajit From hp@redhat.com Wed Feb 27 10:45:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id E0AE2182F6 for ; Wed, 27 Feb 2002 10:45:02 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RFit402249; Wed, 27 Feb 2002 10:44:55 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: John Breen Cc: gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> <1014787131.976.56.camel@developer> <1014815629.1706.68.camel@developer> From: Havoc Pennington Date: 27 Feb 2002 10:44:54 -0500 In-Reply-To: <1014815629.1706.68.camel@developer> Message-ID: Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: John Breen writes: > > Ok, I sit corrected. I guess I'll have to add more overhead and figure > out _how_ to handle the authentication. PAM _looks_ like it will do it, > but then again maybe not. > > Has anyone done such a thing then, and prepared to share the > methodology? If not the code? > You're just trying to authenticate a user? On Red Hat Linux we use an external program which authenticates then runs the app that needs higher privileges. Look at any of the admin tools such as redhat-config-network for how it's set up. I'm not all that familiar with it myself and don't know if there are docs or where they are. The relevant package is "usermode" There isn't really a very good portable way to do this sort of thing... UNIX flavors and Linux distributions tend to have their own setup. Havoc From Valdis.Kletnieks@vt.edu Wed Feb 27 10:50:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 86EF418BDA for ; Wed, 27 Feb 2002 10:50:18 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1RFo5Vj006288; Wed, 27 Feb 2002 10:50:05 -0500 Message-Id: <200202271550.g1RFo5Vj006288@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Michael Mitton Cc: John Breen , gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() In-Reply-To: Your message of "Wed, 27 Feb 2002 06:23:58 EST." From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_361658866P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 27 Feb 2002 10:50:05 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_361658866P Content-Type: text/plain; charset=us-ascii On Wed, 27 Feb 2002 06:23:58 EST, Michael Mitton said: > Even with PAM you need to be root. I had this trouble myself and ended up > writing a helper script that ran suid as root and passed login info via > pipes. If you are not root, it seems to only auth the user your are > running your script as. Very true - but on the *other* hand - under what conditions do you *want* to be able to authenticate as some other user? That's a big security hole. 1) Unless you're very careful, the progam can then be used as a password guesser for another userid. You can even automate it using XTest or similar. 2) Since you're still running as yourself, authenticating as somebody else doesn't do squat for you - you only have your own access permissions. You *could* invoke or contact something else - but *that* something should be doing its *own* authentication. For instance, having your program shout down a named pipe "Yeah, it's really the other guy" is broken security wise - the program at the other end of the pipe needs to verify *for itself* that whatever is at the sending end is who it claims to be. -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_361658866P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8fQAtcC3lWbTT17ARAv5QAKCTCfBzvdLJVg2cz7FWOgKF+bZK1QCg2R+4 7b7Q4lOmwD8x6V7SI1RZvJU= =nVDw -----END PGP SIGNATURE----- --==_Exmh_361658866P-- From hp@redhat.com Wed Feb 27 11:10:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 63D25181CC for ; Wed, 27 Feb 2002 11:10:38 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RGASC23616; Wed, 27 Feb 2002 11:10:28 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "satyajit kanungo" Cc: Subject: Re: drawing area and expose event References: From: Havoc Pennington Date: 27 Feb 2002 11:10:28 -0500 In-Reply-To: Message-ID: Lines: 10 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "satyajit kanungo" writes: > Do we always need to attach the expose event to the drawing area to draw anything on it . > Is there any other way where I can force the drawing . > Yes, all drawing should happen in expose_event. There are other ways to do it sometimes, but they are almost always a bad idea. Havoc From hunchback@netcabo.pt Wed Feb 27 11:27:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id D0A9E181CC for ; Wed, 27 Feb 2002 11:27:21 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Wed, 27 Feb 2002 16:21:10 +0000 Content-Class: urn:content-classes:message From: To: , "satyajit kanungo" Subject: RE: drawing area and expose event Date: Wed, 27 Feb 2002 16:21:10 -0000 Message-ID: <058c01c1bfaa$c45058b0$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG/qsRQbq+ojiubEdaCegBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, > Then I attached an "expose-event" to the drawing area and in the = callback I put >the same > function(drawing fuction) and it draws properly . > Do we always need to attach the expose event to the drawing area to = draw >anything on it . > Is there any other way where I can force the drawing . i also did something similar, and the only way it worked was connecting = to=20 expose-event, i think that it is always necessary to do that because the = area is only=20 showed when gtk_main_init starts, so when you try to paint on the area = before that=20 you are painting on something that does not exist... so in order to it = happear, it is=20 only painted when the drawing-area is exposed. Somebody correct me if i'm wrong... Afonso From michael@cs.millersville.edu Wed Feb 27 11:44:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.millersville.edu (cs.millersville.edu [166.66.64.14]) by mail.gnome.org (Postfix) with ESMTP id 2E68818D0F for ; Wed, 27 Feb 2002 11:44:08 -0500 (EST) Received: from cs.millersville.edu (localhost.0.0.127.in-addr.arpa [127.0.0.1] (may be forged)) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RGi2IQ014203; Wed, 27 Feb 2002 11:44:02 -0500 Received: from localhost (michael@localhost) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RGi0x2014199; Wed, 27 Feb 2002 11:44:00 -0500 Date: Wed, 27 Feb 2002 11:44:00 -0500 (EST) From: Michael Mitton To: Valdis.Kletnieks@vt.edu Cc: John Breen , Subject: Re: file handling with fopen() and fclose() In-Reply-To: <200202271550.g1RFo5Vj006288@foo-bar-baz.cc.vt.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 27 Feb 2002 Valdis.Kletnieks@vt.edu wrote: > On Wed, 27 Feb 2002 06:23:58 EST, Michael Mitton said: > > Even with PAM you need to be root. I had this trouble myself and ended up > > writing a helper script that ran suid as root and passed login info via > > pipes. If you are not root, it seems to only auth the user your are > > running your script as. > > Very true - but on the *other* hand - under what conditions do you *want* > to be able to authenticate as some other user? That's a big security hole. > > 1) Unless you're very careful, the progam can then be used as a password > guesser for another userid. You can even automate it using XTest or similar. > > 2) Since you're still running as yourself, authenticating as somebody else > doesn't do squat for you - you only have your own access permissions. > You *could* invoke or contact something else - but *that* something should > be doing its *own* authentication. For instance, having your program > shout down a named pipe "Yeah, it's really the other guy" is broken > security wise - the program at the other end of the pipe needs to verify > *for itself* that whatever is at the sending end is who it claims to be. We were actually using a web script that needed authenticated, and apache runs as www. :) > > > -- > Valdis Kletnieks > Computer Systems Senior Engineer > Virginia Tech > > From rwalden@tripos.com Wed Feb 27 11:45:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id 48DD918D41 for ; Wed, 27 Feb 2002 11:45:59 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id KAA20596 for ; Wed, 27 Feb 2002 10:45:54 -0600 (CST) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma020551; Wed, 27 Feb 02 10:45:01 -0600 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id KAA54812; Wed, 27 Feb 2002 10:45:00 -0600 (CST) Message-ID: <3C7D0D0C.94AF34F3@tripos.com> Date: Wed, 27 Feb 2002 10:45:00 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: GTK List Subject: Re: GTK_TYPE_BOXED References: <3C7A694E.FE8E50DD@tripos.com> <3C7C028F.BEE311DD@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks, that was the lead I needed. So, if you were deriving a type from GTK_TYPE_BOXED in gtk+-1.2, with the requisite GtkTypeInfo structure and gtk_type_unique call, for gtk-2.0 you just call newtype = g_boxed_type_register_static( name, copy_func, free_func ); and you're all set, no need to fill in a GTypeInfo structure. Thanks again, Ralph Walden Havoc Pennington wrote: > > Ralph Walden writes: > > Can anyone comment on the changes between 1.2 and 2.0 that > > woud break code using > > > > gtk_type_unique(GTK_TYPE_BOXED, &some_subclass_info ); > > > > in the _get_type function for a derived type? > > > > You probably want g_boxed_type_register_static() instead. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From stonybrk@ix.netcom.com Wed Feb 27 11:47:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from barry.mail.mindspring.net (barry.mail.mindspring.net [207.69.200.25]) by mail.gnome.org (Postfix) with ESMTP id 88FF318DAB for ; Wed, 27 Feb 2002 11:47:23 -0500 (EST) Received: from user-2iniv3c.dialup.mindspring.com ([165.121.124.108] helo=norman) by barry.mail.mindspring.net with smtp (Exim 3.33 #1) id 16g7Eb-00038d-00; Wed, 27 Feb 2002 11:47:18 -0500 Message-ID: <006a01c1bfae$728f6760$0200a8c0@norman> From: "Norman Black" To: "Havoc Pennington" Cc: "gtk-list" References: Subject: Re: drawing area and expose event Date: Wed, 27 Feb 2002 08:47:26 -0800 Organization: Stony Brook Software 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hmmm. "all drawing"!!! Are you saying that when a user hits the "e" key in my program I should generate an expose event to draw the "e" in my window rather than simply draw the "e" in response to them pressing "e". Best Regards, Norman Black Stony Brook Software ----- Original Message ----- From: "Havoc Pennington" To: "satyajit kanungo" Cc: Sent: Wednesday, February 27, 2002 8:10 AM Subject: Re: drawing area and expose event > > "satyajit kanungo" writes: > > Do we always need to attach the expose event to the drawing area to draw anything on it . > > Is there any other way where I can force the drawing . > > > > Yes, all drawing should happen in expose_event. There are other ways > to do it sometimes, but they are almost always a bad idea. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From iain@ximian.com Wed Feb 27 11:58:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from peabody.ximian.com (peabody.ximian.com [141.154.95.10]) by mail.gnome.org (Postfix) with ESMTP id 6ECE018D2F for ; Wed, 27 Feb 2002 11:58:54 -0500 (EST) Received: (qmail 25616 invoked from network); 27 Feb 2002 16:58:53 -0000 Received: from peabody.ximian.com (HELO localhost.localdomain) (141.154.95.10) by peabody.ximian.com with SMTP; 27 Feb 2002 16:58:53 -0000 Subject: Re: drawing area and expose event From: iain To: Norman Black Cc: Havoc Pennington , gtk-list In-Reply-To: <006a01c1bfae$728f6760$0200a8c0@norman> References: <006a01c1bfae$728f6760$0200a8c0@norman> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Ximian, Inc X-Mailer: Evolution/1.1.0.99 (Preview Release) Date: 27 Feb 2002 17:59:53 +0000 Message-Id: <1014832795.2179.12.camel@discomachinegun.prettypeople.org> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-27 at 16:47, Norman Black wrote: > Hmmm. "all drawing"!!! > > Are you saying that when a user hits the "e" key in my program I should > generate an expose event to draw the "e" in my window rather than simply > draw the "e" in response to them pressing "e". Well, if you don't do it in the expose callback anyway, it's not going to be there, so you might as well. iain -- "All men of conscience or prudence ply to windward, to maintain their wars to be defensive." -- Roger Williams From pbd@op.net Wed Feb 27 12:02:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3570818E66 for ; Wed, 27 Feb 2002 12:02:33 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-470.phlpa.fast.net [209.92.97.216]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA24793; Wed, 27 Feb 2002 12:02:28 -0500 (EST) Message-Id: <200202271702.MAA24793@renoir.op.net> To: "Norman Black" Cc: "Havoc Pennington" , "gtk-list" Subject: Re: drawing area and expose event In-reply-to: Your message of "Wed, 27 Feb 2002 08:47:26 PST." <006a01c1bfae$728f6760$0200a8c0@norman> Date: Wed, 27 Feb 2002 12:01:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hmmm. "all drawing"!!! > >Are you saying that when a user hits the "e" key in my program I should >generate an expose event to draw the "e" in my window rather than simply >draw the "e" in response to them pressing "e". call gtk_widget_queue_draw(), then redraw in the subsequent expose event. you have to draw the "e" in the expose event anyway, because if you window is hidden or minimized-then-restored or unmapped in any way, the X server will ask you to redraw it. X does not store the contents of windows - when an area of a window is uncovered, the application needs to redraw it from scratch. your program design becomes simpler by doing everything from an expose event. --p From hp@redhat.com Wed Feb 27 12:43:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id AEB7F19715 for ; Wed, 27 Feb 2002 12:43:16 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RHhFQ23054; Wed, 27 Feb 2002 12:43:15 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Norman Black" Cc: "gtk-list" Subject: Re: drawing area and expose event References: <006a01c1bfae$728f6760$0200a8c0@norman> From: Havoc Pennington Date: 27 Feb 2002 12:43:14 -0500 In-Reply-To: <006a01c1bfae$728f6760$0200a8c0@norman> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Norman Black" writes: > > Are you saying that when a user hits the "e" key in my program I should > generate an expose event to draw the "e" in my window rather than simply > draw the "e" in response to them pressing "e". > What you should do is call gtk_widget_queue_draw_area() or gdk_window_invalidate_rect() for the rectangle containing the "e". Then you will get an expose event for that area, and then you paint the "e" So all drawing is in the expose handler. The expose handler must be able to redraw any area anyway, so you may as well put all drawing there for code cleanliness; putting all drawing there is also crucial to be sure you don't have any flicker in GTK 2. Havoc From hp@redhat.com Wed Feb 27 12:44:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id C306419715 for ; Wed, 27 Feb 2002 12:44:03 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RHhsW23058; Wed, 27 Feb 2002 12:43:54 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Cc: , "satyajit kanungo" Subject: Re: drawing area and expose event References: <058c01c1bfaa$c45058b0$0914a8c0@netcabo.net> From: Havoc Pennington Date: 27 Feb 2002 12:43:54 -0500 In-Reply-To: <058c01c1bfaa$c45058b0$0914a8c0@netcabo.net> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: writes: > > Then I attached an "expose-event" to the drawing area and in the callback I put >the same > > function(drawing fuction) and it draws properly . > > Do we always need to attach the expose event to the drawing area to draw >anything on it . > > Is there any other way where I can force the drawing . > > i also did something similar, and the only way it worked was connecting to > expose-event, i think that it is always necessary to do that because the area is only > showed when gtk_main_init starts, so when you try to paint on the area before that > you are painting on something that does not exist... so in order to it happear, it is > only painted when the drawing-area is exposed. > > Somebody correct me if i'm wrong... > You're exactly right. Havoc From trefftzs@tcsn.net Wed Feb 27 14:05:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from thoth.trefftzs.org (psrb-ppp1-210.tcsn.net [63.174.82.210]) by mail.gnome.org (Postfix) with ESMTP id 595B21840D for ; Wed, 27 Feb 2002 14:05:56 -0500 (EST) Received: from outmail.tcsn.net (jeff@localhost) by thoth.trefftzs.org (8.9.3/8.9.3) with ESMTP id LAA05491 for ; Wed, 27 Feb 2002 11:06:27 -0800 Message-Id: <200202271906.LAA05491@thoth.trefftzs.org> X-Authentication-Warning: thoth.trefftzs.org: jeff owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: More pango-0.26 compile problems Reply-To: Jeff Trefftzs From: Jeff Trefftzs Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 27 Feb 2002 11:06:26 -0800 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all - I downloaded pango-0.26.tar.gz last night, and have begun trying to compile and install it. I managed the ./configure step okay -- I have installed glig-1.3.15 -- but, like Raymond Wan, my compilation breaks in the examples directory. Can anyone tell me where to start looking in order to fix this? I really need pango only so I can compile gtk+-1.3.15, so I can get to work on gimp-1.3. All help greatly appreciated. Here's the make output: Making all in examples make[2]: Entering directory `/mnt/S.home/trefftzs/downloads/Sourc es/pango-0.26/examples' c++ -DHAVE_CONFIG_H -I. -I. -I.. -DG_DISABLE_DEPRECATED -I.. -I /usr/lib/qt-2.0.1/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype 2 -g -O2 -c viewer-qt.cc c++ -DHAVE_CONFIG_H -I. -I. -I.. -DG_DISABLE_DEPRECATED -I.. -I /usr/lib/qt-2.0.1/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype 2 -g -O2 -c moc_viewer-qt.cc moc_viewer-qt.cc: In function `static class QString ViewerView::tr(const char *)': moc_viewer-qt.cc:42: no matching function for call to `QApplication::translate (char[11], const char *&, int)' /usr/lib/qt-2.0.1/include/qapplication.h:139: candidates are: QApplication::translate(const char *, const char *) const moc_viewer-qt.cc: At top level: moc_viewer-qt.cc:46: prototype for `class QString ViewerView::tr( const char *, const char *)' does not match any in class `ViewerView' moc_viewer-qt.cc:41: candidate is: static class QString ViewerView::tr(const char *) moc_viewer-qt.cc: In method `class QString ViewerView::tr(const char *, const char *)': moc_viewer-qt.cc:47: no matching function for call to `QApplication::translate (char[11], const char *&, const char *&)' /usr/lib/qt-2.0.1/include/qapplication.h:139: candidates are: QApplication::translate(const char *, const char *) const moc_viewer-qt.cc: At top level: moc_viewer-qt.cc:53: new declaration `static class QMetaObject * ViewerView::staticMetaObject()' viewer-qt.h:53: ambiguates old declaration `static void ViewerView::staticMetaObject()' moc_viewer-qt.cc: In function `static class QMetaObject * ViewerView::staticMetaObject()': moc_viewer-qt.cc:59: `Access' is not a member of type `QMetaData' moc_viewer-qt.cc:59: `slot_tbl_access' undeclared (first use this function) moc_viewer-qt.cc:59: (Each undeclared identifier is reported only once moc_viewer-qt.cc:59: for each function it appears in.) moc_viewer-qt.cc:68: no matching function for call to `QMetaObject::new_metaobject (char[11], char[12], int, int, int, int, int, int, int, int, int, int)' /usr/lib/qt-2.0.1/include/qmetaobject.h:65: candidates are: QMetaObject::new_metaobject(const char *, const char *, QMetaData *, int, QMetaData *, int) moc_viewer-qt.cc:69: confused by earlier errors, bailing out make[2]: *** [moc_viewer-qt.o] Error 1 make[2]: Leaving directory `/mnt/S.home/trefftzs/downloads/Source s/pango-0.26/examples' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/S.home/trefftzs/downloads/Source s/pango-0.26' make: *** [all-recursive-am] Error 2 -- --Jeff Jeff Trefftzs http://www.tcsn.net/trefftzs Home Page http://gug.sunsite.dk/gallery.php?artist=68 Gimp Gallery http://trefftzs.topcities.com/home.html Photo galleries From sven@gimp.org Wed Feb 27 14:44:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 2D7F118531 for ; Wed, 27 Feb 2002 14:44:19 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16g9zo-0002bF-00; Wed, 27 Feb 2002 20:44:12 +0100 To: Jeff Trefftzs Cc: gtk-list@gnome.org Subject: Re: More pango-0.26 compile problems References: <200202271906.LAA05491@thoth.trefftzs.org> From: Sven Neumann Date: 27 Feb 2002 20:44:12 +0100 In-Reply-To: <200202271906.LAA05491@thoth.trefftzs.org> Message-ID: Lines: 16 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Jeff Trefftzs writes: > I downloaded pango-0.26.tar.gz last night, and have begun trying > to compile and install it. I managed the ./configure step okay > -- I have installed glig-1.3.15 -- but, like Raymond Wan, my > compilation breaks in the examples directory. Can anyone tell > me where to start looking in order to fix this? I really need > pango only so I can compile gtk+-1.3.15, so I can get to work on > gimp-1.3. configure --without-qt should do the trick. Salut, Sven From andreabergia@yahoo.it Wed Feb 27 15:09:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp011.mail.yahoo.com (smtp011.mail.yahoo.com [216.136.173.31]) by mail.gnome.org (Postfix) with SMTP id CFF5618531 for ; Wed, 27 Feb 2002 15:09:39 -0500 (EST) Received: from andreabergia (AUTH poptime) at unknown (HELO alfa) (212.171.122.243) by smtp.mail.vip.sc5.yahoo.com with SMTP; 27 Feb 2002 20:09:29 -0000 Message-ID: <008701c1bfca$bddad9e0$f37aabd4@alfa> From: "Andrea Bergia" To: "gtk-list" Subject: Fixed size window Date: Wed, 27 Feb 2002 21:07:57 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a simple questions about GTK: how can I lock the size of a window? I want that the the user cannot resize the windows, is there a simple way to do this? Thanks. Andrea. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From hummaida@cs.man.ac.uk Wed Feb 27 15:16:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mail.gnome.org (Postfix) with ESMTP id 3B91E19249 for ; Wed, 27 Feb 2002 15:16:57 -0500 (EST) Received: from cs.man.ac.uk ([62.252.242.142]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020227201652.INIW7000.mta06-svc.ntlworld.com@cs.man.ac.uk>; Wed, 27 Feb 2002 20:16:52 +0000 Message-ID: <3C7D3E61.5080506@cs.man.ac.uk> Date: Wed, 27 Feb 2002 20:15:29 +0000 From: A R Hummaida User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Andrea Bergia Cc: gtk-list Subject: Re: Fixed size window References: <008701c1bfca$bddad9e0$f37aabd4@alfa> Content-Type: multipart/related; boundary="------------020002090807010808080100" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --------------020002090807010808080100 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit this is from API :). read more there under GtkWindow void gtk_window_set_policy (GtkWindow *window, gint allow_shrink, gint allow_grow, gint auto_shrink); Changes how a toplevel window deals with its size request and user resize attempts. There are really only two reasonable ways to call this function: 1. gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, FALSE) means that the window is user-resizable. 2. gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, TRUE) means that the window's size is program-controlled, and should simply match the current size request of the window's children. Andrea Bergia wrote: >Hi, I have a simple questions about GTK: how can I lock the size of a >window? I want that the the user cannot resize the windows, is there a >simple way to do this? >Thanks. Andrea. > > > >_________________________________________________________ >Do You Yahoo!? >Get your free @yahoo.com address at http://mail.yahoo.com > >_______________________________________________ >gtk-list mailing list >gtk-list@gnome.org >http://mail.gnome.org/mailman/listinfo/gtk-list > --------------020002090807010808080100-- From hummaida@cs.man.ac.uk Wed Feb 27 15:20:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mail.gnome.org (Postfix) with ESMTP id C733418531 for ; Wed, 27 Feb 2002 15:20:29 -0500 (EST) Received: from cs.man.ac.uk ([62.252.242.142]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020227202028.IQMY7000.mta06-svc.ntlworld.com@cs.man.ac.uk>; Wed, 27 Feb 2002 20:20:28 +0000 Message-ID: <3C7D3F3A.5010202@cs.man.ac.uk> Date: Wed, 27 Feb 2002 20:19:06 +0000 From: A R Hummaida User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 Cc: Andrea Bergia , gtk-list Subject: Re: Fixed size window References: <008701c1bfca$bddad9e0$f37aabd4@alfa> <3C7D3E61.5080506@cs.man.ac.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: oops read here http://developer.gnome.org/doc/API/gtk/gtkwindow.html A R Hummaida wrote: > this is from API :). read more there under GtkWindow > > > > > > > void gtk_window_set_policy (GtkWindow > *window, > gint > > allow_shrink, > gint > > allow_grow, > gint > > auto_shrink); > > > Changes how a toplevel window deals with its size request and user > resize attempts. There are really only two reasonable ways to call > this function: > > 1. > > gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, FALSE) > means that the window is user-resizable. > > 2. > > gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, TRUE) > means that the window's size is program-controlled, and should > simply match the current size request of the window's children. > > > > Andrea Bergia wrote: > >> Hi, I have a simple questions about GTK: how can I lock the size of a >> window? I want that the the user cannot resize the windows, is there a >> simple way to do this? >> Thanks. Andrea. >> >> >> >> _________________________________________________________ >> Do You Yahoo!? >> Get your free @yahoo.com address at http://mail.yahoo.com >> >> _______________________________________________ >> gtk-list mailing list >> gtk-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gtk-list >> > > From hunchback@netcabo.pt Wed Feb 27 15:28:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 45B1B18106 for ; Wed, 27 Feb 2002 15:28:22 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Wed, 27 Feb 2002 20:22:19 +0000 Content-Class: urn:content-classes:message From: To: Subject: New Documentation? Date: Wed, 27 Feb 2002 20:22:18 -0000 Message-ID: <537201c1bfcc$745537a0$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG/zHRSkEJsYSu8EdaCegBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm just wondering if GTK+ will have a better documentation? I ask this = because some metods aren't even commented, and just by the name you can't say what it = does=20 (at least on the gtk 1.2, i haven't used gtk 2). The Java Specification = is much better=20 in that mather.. Afonso From stonybrk@ix.netcom.com Wed Feb 27 16:13:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp10.atl.mindspring.net (smtp10.atl.mindspring.net [207.69.200.246]) by mail.gnome.org (Postfix) with ESMTP id E74891907E for ; Wed, 27 Feb 2002 16:13:19 -0500 (EST) Received: from user-38ldm4k.dialup.mindspring.com ([209.86.216.148] helo=norman) by smtp10.atl.mindspring.net with smtp (Exim 3.33 #1) id 16gBNx-00023Q-00 for gtk-list@gnome.org; Wed, 27 Feb 2002 16:13:14 -0500 Message-ID: <007a01c1bfd3$99730060$0200a8c0@norman> From: "Norman Black" To: "gtk-list" References: <006a01c1bfae$728f6760$0200a8c0@norman> Subject: Re: drawing area and expose event Date: Wed, 27 Feb 2002 13:13:21 -0800 Organization: Stony Brook Software 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > The expose handler must be able to redraw any area anyway, so you may > as well put all drawing there for code cleanliness; putting all > drawing there is also crucial to be sure you don't have any flicker in > GTK 2. My code does not flicker now on GTK or Win32. So if GTK 2 makes my code flicker, what does that mean? Best Regards, Norman Black Stony Brook Software ----- Original Message ----- From: "Havoc Pennington" To: "Norman Black" Cc: "gtk-list" Sent: Wednesday, February 27, 2002 9:43 AM Subject: Re: drawing area and expose event > > "Norman Black" writes: > > > > Are you saying that when a user hits the "e" key in my program I should > > generate an expose event to draw the "e" in my window rather than simply > > draw the "e" in response to them pressing "e". > > > > What you should do is call gtk_widget_queue_draw_area() or > gdk_window_invalidate_rect() for the rectangle containing the > "e". Then you will get an expose event for that area, and then you > paint the "e" > > So all drawing is in the expose handler. > > The expose handler must be able to redraw any area anyway, so you may > as well put all drawing there for code cleanliness; putting all > drawing there is also crucial to be sure you don't have any flicker in > GTK 2. > > Havoc From hp@redhat.com Wed Feb 27 17:29:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 8FF70184FF for ; Wed, 27 Feb 2002 17:29:45 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RMTgb23323; Wed, 27 Feb 2002 17:29:42 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Norman Black" Cc: "gtk-list" Subject: Re: drawing area and expose event References: <006a01c1bfae$728f6760$0200a8c0@norman> <007a01c1bfd3$99730060$0200a8c0@norman> From: Havoc Pennington Date: 27 Feb 2002 17:29:42 -0500 In-Reply-To: <007a01c1bfd3$99730060$0200a8c0@norman> Message-ID: Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Norman Black" writes: > > The expose handler must be able to redraw any area anyway, so you may > > as well put all drawing there for code cleanliness; putting all > > drawing there is also crucial to be sure you don't have any flicker in > > GTK 2. > > My code does not flicker now on GTK or Win32. So if GTK 2 makes my code > flicker, what does that mean? > It probably doesn't make it flicker if it doesn't flicker now. But you are probably doing extra work that is not necessary in GTK 2. Havoc From castor.fou@wanadoo.fr Wed Feb 27 18:13:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto6.wanadoo.fr (smtp-out-6.wanadoo.fr [193.252.19.25]) by mail.gnome.org (Postfix) with ESMTP id 125F518112 for ; Wed, 27 Feb 2002 18:13:32 -0500 (EST) Received: from mel-rta8.wanadoo.fr (193.252.19.79) by mel-rto6.wanadoo.fr; 28 Feb 2002 00:13:31 +0100 Received: from athlon (193.248.96.45) by mel-rta8.wanadoo.fr; 28 Feb 2002 00:13:14 +0100 Message-ID: <001b01c1bfe4$56cdc860$2d60f8c1@athlon> From: "Romain Epita" To: Subject: Transparent GtkWidget Date: Thu, 28 Feb 2002 00:13:16 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It is possible to set a GtkWidget transparent ? as a GdkWindow with the function gdk_window_shape_combine_mask ! If it is possible, how I do that ? Romain PARMANTIER A.K.A Castor Delegue SpeC2 Sécretaire BDE Epita-Epitech tel : 06-07-66-16-18 parman_r@epita.fr "L'homme commence par aimer l'amour et finit par aimer une femme. La femme commence par aimer un homme et finit par aimer l'amour." Remy de Gourmont, Physique de l'amour From shane_b@operamail.com Wed Feb 27 19:23:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail001.syd.optusnet.com.au (mail001.syd.optusnet.com.au [203.2.75.244]) by mail.gnome.org (Postfix) with ESMTP id 282E2197AE for ; Wed, 27 Feb 2002 19:23:48 -0500 (EST) Received: from pluto (geeax3-042.dialup.optusnet.com.au [198.142.133.42]) by mail001.syd.optusnet.com.au (8.11.1/8.11.1) with ESMTP id g1S0NVd01622 for ; Thu, 28 Feb 2002 11:23:35 +1100 Subject: GTK+2 - GtkTreeModel From: Shane Butler To: "List, GTK+" Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.99.2 (Preview Release) Date: 28 Feb 2002 11:25:14 +1100 Message-Id: <1014855940.937.5.camel@pluto> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Just wondering if someone could suggest the best way to move a row in a GtkTreeModel up or down. Thanks, Shane From oliver-singla@nc.rr.com Wed Feb 27 20:24:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail7.nc.rr.com (fe7.southeast.rr.com [24.93.67.54]) by mail.gnome.org (Postfix) with ESMTP id B405418425 for ; Wed, 27 Feb 2002 20:24:51 -0500 (EST) Received: from nc.rr.com ([66.57.252.230]) by mail7.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Wed, 27 Feb 2002 20:24:49 -0500 Message-ID: <3C7D86DC.8070906@nc.rr.com> Date: Wed, 27 Feb 2002 20:24:44 -0500 From: Oliver Singla User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Force a widget to redraw itself (1.2.10) Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, How can I really force a widget to redraw itself ? If I call gtk_widget_queue_draw(), that seems to work only for widgets without an X-Window (such GtkLabel or GtkHSeparator). I attached a expose_event signal to see if the draw is performed or not. TIA, Olivier Singla, QNX, Raleigh NC oliver_singla@nc.rr.com From pyaggi@aulamagna.com.ar Wed Feb 27 21:12:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aulamagna.com.ar (unknown [200.49.75.38]) by mail.gnome.org (Postfix) with SMTP id 01B7118137 for ; Wed, 27 Feb 2002 21:12:56 -0500 (EST) Received: (qmail 16138 invoked from network); 28 Feb 2002 02:22:41 -0000 Received: from unknown (HELO there) (200.63.161.149) by 0 with SMTP; 28 Feb 2002 02:22:41 -0000 Content-Type: text/plain; charset="iso-8859-3" From: Pablo Yaggi Organization: Aulamagna To: gtk-list@gnome.org Subject: Best way to Print Date: Wed, 27 Feb 2002 23:10:36 -0300 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020228021256.01B7118137@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want to build a simple application to test printing, I need to print formated text (in paragraphs) and graphics could anyone please give me a direction, how do I do that, with bonobo? gnome_print ? ? ?? Pablo From seberino@dt092n42.san.rr.com Wed Feb 27 21:15:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 996D419091 for ; Wed, 27 Feb 2002 21:15:01 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16gG6R-00017D-00; Wed, 27 Feb 2002 18:15:27 -0800 Date: Wed, 27 Feb 2002 18:15:27 -0800 From: Christian Seberino To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: drawing area and expose event Message-ID: <20020227181527.A4284@spawar.navy.mil> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from hp@redhat.com on Wed, Feb 27, 2002 at 11:10:28AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc I thought configure event handler draws *everything* and expose event handler just redraws portion *uncovered* e.g. covering with corner of window and then not. This would imply that all drawing should happen in configure event with "patches" being done in expose event. Am I missing something? Chris On Wed, Feb 27, 2002 at 11:10:28AM -0500, Havoc Pennington wrote: > > "satyajit kanungo" writes: > > Do we always need to attach the expose event to the drawing area to draw anything on it . > > Is there any other way where I can force the drawing . > > > > Yes, all drawing should happen in expose_event. There are other ways > to do it sometimes, but they are almost always a bad idea. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From hp@redhat.com Wed Feb 27 21:30:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id CACE918137 for ; Wed, 27 Feb 2002 21:30:23 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1S2ULf23665; Wed, 27 Feb 2002 21:30:21 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: drawing area and expose event References: <20020227181527.A4284@spawar.navy.mil> From: Havoc Pennington Date: 27 Feb 2002 21:30:20 -0500 In-Reply-To: <20020227181527.A4284@spawar.navy.mil> Message-ID: Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Christian Seberino writes: > > I thought configure event handler draws *everything* and > expose event handler just redraws portion *uncovered* > e.g. covering with corner of window and then not. > > This would imply that all drawing should happen in configure > event with "patches" being done in expose event. > > Am I missing something? > Yes, there is no reason to draw anything in configure event. It just means you got a new size. You'll also get an expose when this happens so drawing in expose only is fine. Havoc From hp@redhat.com Wed Feb 27 21:33:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 761A71837B for ; Wed, 27 Feb 2002 21:33:36 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1S2XZA23669; Wed, 27 Feb 2002 21:33:35 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Shane Butler Cc: "List, GTK+" Subject: Re: GTK+2 - GtkTreeModel References: <1014855940.937.5.camel@pluto> From: Havoc Pennington Date: 27 Feb 2002 21:33:35 -0500 In-Reply-To: <1014855940.937.5.camel@pluto> Message-ID: Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Shane Butler writes: > > Just wondering if someone could suggest the best way to move a row in a > GtkTreeModel up or down. > The GtkTreeModel interface is read-only; you have to use the specific subclass of GtkTreeModel to modify things. So for example with GtkListStore you could move a row up by removing it then reinserting it, or by swapping the contents of a row and the row above it, whatever is convenient for your app. I usually have a list store with a single column containing an object or struct, so I would just call list_store_set() a couple times to swap the row contents. Havoc From ganesan.sethuraman@wipro.com Wed Feb 27 23:48:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by mail.gnome.org (Postfix) with ESMTP id 8B307180F1 for ; Wed, 27 Feb 2002 23:48:49 -0500 (EST) Received: from m2vwall5.wipro.com (m2vwall5.wipro.com [10.115.50.5]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id g1S4mle09699 for ; Thu, 28 Feb 2002 10:18:47 +0530 (IST) Received: from wipro.com ([192.168.165.86]) by bhairavi.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GS881500.K7L for ; Thu, 28 Feb 2002 10:18:41 +0530 Message-ID: <3C7DB6DB.F959A8FA@wipro.com> Date: Thu, 28 Feb 2002 10:19:31 +0530 From: Ganesan Sethuraman Organization: Wipro Technologies X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Info Regarding GtkEntry Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Could you please tell me if there is any limatations on the number of characters a GtkEntry widget can hold ? If I give more than 7300(approx) characters, the characters are getting overlapped. Any idea on what could be the problem ? Thanks, S.Ganesan. From satyajit.kanungo@wipro.com Wed Feb 27 23:53:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by mail.gnome.org (Postfix) with ESMTP id 924E4180F1 for ; Wed, 27 Feb 2002 23:53:04 -0500 (EST) Received: from m2vwall5.wipro.com (m2vwall5.wipro.com [10.115.50.5]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id g1S4r2e11601 for ; Thu, 28 Feb 2002 10:23:02 +0530 (IST) Received: from satyajit ([10.114.9.188]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GS886U00.03O; Thu, 28 Feb 2002 10:22:06 +0530 From: "satyajit kanungo" To: "Havoc Pennington" , "Norman Black" Cc: "gtk-list" Subject: RE: drawing area and expose event Date: Thu, 28 Feb 2002 10:30:22 +0530 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal In-Reply-To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks a lot I shall put all my drawings in the expose event and try my application again. I had taken the sample program form GdkRGB chapter (gdk API Reference) and was trying it the other way round . So whenever I want some drawings to happen in my drawable I should better call a gtk_widget_queue_draw_area() or gdk_window_invalidate_rect() and do all the drawing in the expose event callback . Please correct me if I have understood it wrongly Behalf Of Havoc Pennington >What you should do is call gtk_widget_queue_draw_area() or >gdk_window_invalidate_rect() for the rectangle containing the >"e". Then you will get an expose event for that area, and then you >paint the "e" >So all drawing is in the expose handler. Havoc From davidgn@servidor.unam.mx Thu Feb 28 00:11:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id 930431832B for ; Thu, 28 Feb 2002 00:11:30 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.113.36]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g1S59tP25947 for ; Wed, 27 Feb 2002 23:09:55 -0600 (CST) Date: Wed, 27 Feb 2002 23:29:25 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: now that we're on GtkDrawingArea... =) Message-Id: <20020227232925.09c86401.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.1 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I was doing some tests on it. I have my DrawingArea on a ViewPort on a ScrolledWindow on a pane on a notebook on a table..... like the song... I couldnt use any function that gets a GdkWindow as a parameter. As in the scribble example, the Area is just under the Window, and it works. But i had the DrawingArea somewhere else, and area->window sent messages like: Gdk-CRITICAL **: file gdkdraw.c: line 42 (gdk_draw_point): assertion `drawable != NULL' failed. As i read, some widgets does not have its own window (but the example worked using the Area's window, widget-window), and they draw on its parent window. I thought maybe DrawingArea is one such widget (though doesnt sound like it), and since the example works, i used the main window's window as the parameter to gdk_pixmap_new and other functions. It works. Though i want to know whether i did right, or if i did a stupid thing and what would have been the right one? -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $BNx$K$7$7$g$&$J$7!#Nx$O$7$"$s$NB>!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From youssa@voila.fr Thu Feb 28 03:42:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailsmtp4.ftmms (smtp-out.voila.wanadooportails.com [193.252.117.74]) by mail.gnome.org (Postfix) with ESMTP id BF7D0181EB for ; Thu, 28 Feb 2002 03:42:29 -0500 (EST) Received: from voila.fr (10.3.7.82) by mailsmtp4.ftmms (5.1.071) id 3C7AC6FC0002ADA1; Thu, 28 Feb 2002 09:42:08 +0100 Date: Thu, 28 Feb 2002 09:42:08 +0100 Message-Id: Subject: =?iso-8859-1?Q?Re:Transparent_GtkWidget?= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?utf-8?Q?youssa@voila.fr?=" To: castor.fou@wanadoo.fr Cc: gtk-list@gnome.org X-XaM3-API-Version: 301build11 X-type: 0 X-SenderIP: 193.95.113.27 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQpUYWtlIGEgbG9vayBvbiB0aGUgd2VlbGJhcm93dyBleGVtcGxlICENCg0KRXQgcHVp cyBlbiBmcmFu52FpcyBwb3VyIHZvdXMgUm9tYWluLCBqZXR0ZSB1biBjb3VwIGQnb2V1aWwg c3VyIGwnZXhlbXBsZSB3ZWVsYmFyb3csIHZvdXMgcG91dmV6IHJlbXBsYWNlciBsZSB3ZWVs YmFycm93IHBhciB1biBpbWFnZSAueHBtLg0KSidhaSBldSBiZXNvaW4gbW9pIGF1c3NpIGQn dW5lIGZlbmV0cmUgdHJhbnNwYXJlbnRlLCB0b3V0IGNlIHF1ZSBqJ2FpIHB1IGF2b2lyIGMn ZXN0IGNldCBleGVtcGxlLiBTaSB2b3VzIGVuIHRyb3V2ZXIgdW4gbWVpbGxldXIgZXhlbXBs ZSwgbWVyY2kgZGUgbWUgY29udGFjdGVyLg0KQ29yZGlhbGVtZW50LCBJRVMgQkgNCmonYWpv dXRlIGVuZmluLCBMJ2Ftb3VyIGVzdCB1biBwbGFpc2lyLCBMJ0hvbW1lIGVzdCB1biBkZXZv aXIuDQoNCg0KPiBJdCBpcyBwb3NzaWJsZSB0byBzZXQgYSBHdGtXaWRnZXQgdHJhbnNwYXJl bnQgPyBhcyBhIEdka1dpbmRvdyB3aXRoIHRoZQ0KPiBmdW5jdGlvbiBnZGtfd2luZG93X3No YXBlX2NvbWJpbmVfbWFzayAhIElmIGl0IGlzIHBvc3NpYmxlLCBob3cgSSBkbyB0aGF0ID8N Cj4gICAgICAgUm9tYWluIFBBUk1BTlRJRVINCj4gICAgICAgICBBLksuQSBDYXN0b3INCj4g ICAgICAgIERlbGVndWUgU3BlQzINCj4gU+ljcmV0YWlyZSBCREUgRXBpdGEtRXBpdGVjaA0K PiAgICAgdGVsIDogMDYtMDctNjYtMTYtMTgNCj4gICAgICAgcGFybWFuX3JAZXBpdGEuZnIN Cj4gDQo+ICJMJ2hvbW1lIGNvbW1lbmNlIHBhciBhaW1lciBsJ2Ftb3VyIGV0IGZpbml0DQo+ IHBhciBhaW1lciB1bmUgZmVtbWUuIExhIGZlbW1lIGNvbW1lbmNlIHBhcg0KPiBhaW1lciB1 biBob21tZSBldCBmaW5pdCBwYXIgYWltZXIgbCdhbW91ci4iDQo+ICAgICAgICAgICAgICAg ICAgICAgICBSZW15IGRlIEdvdXJtb250LCBQaHlzaXF1ZSBkZSBsJ2Ftb3VyDQo+IA0KPiAN Cj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCj4g Z3RrLWxpc3QgbWFpbGluZyBsaXN0DQo+IGd0ay1saXN0QGdub21lLm9yZw0KPiBodHRwOi8v bWFpbC5nbm9tZS5vcmcvbWFpbG1hbi9saXN0aW5mby9ndGstbGlzdA0KPiANCg0KX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f DQpGYWl0ZXMgdW4gdm9ldSBldCBwdWlzIFZvaWxhICEgd3d3LnZvaWxhLmZyIA0KQXZlYyBW b2lsYSBNYWlsLCBjb25zdWx0ZXogdm9zIGUtbWFpbHMgc3VyIHZvdHJlIG1vYmlsZSBXYXAu IA0K From youssa@voila.fr Thu Feb 28 03:50:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailsmtp5.ftmms (smtp-out.voila.wanadooportails.com [193.252.117.74]) by mail.gnome.org (Postfix) with ESMTP id AB99F18528 for ; Thu, 28 Feb 2002 03:50:56 -0500 (EST) Received: from voila.fr (10.3.7.82) by mailsmtp5.ftmms (5.1.071) id 3C7CE6080000B1E3 for gtk-list@gnome.org; Thu, 28 Feb 2002 09:50:31 +0100 Date: Thu, 28 Feb 2002 09:50:31 +0100 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?utf-8?Q?youssa@voila.fr?=" To: gtk-list@gnome.org X-XaM3-API-Version: 301build11 X-type: 0 X-SenderIP: 193.95.113.27 Subject: (no subject) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQpQbGVhc2UgY2FuIGFueSBvbmUgc2VuZCBtZSBhIGxpdHRsZSBleGVtcGxlIHRvIGhl bHAgbWUgdG8gaW5jbHVkZSBhIEphdmEgQXBwbGV0IGluIGEgZ3RrIHdpbmRvdz8/DQpIb3cg dG8gY29tcGlsZSBpdD8/LCBXaGF0IEkgbmVlZCB0byBoYXZlPz8NClRoYW5rIHlvdSB2ZXJ5 IG11Y2guDQpQLlMgOiBJIHNlbmQgdGhpcyBxdWVzdGlvbiBtYW55IHRpbWVzIHRvIEdUSy1B UFAtREVWRUwtTElTVCBidXQgSSBzdGlsbCB3aXRob3V0IGFueSBoZWxwLCBSZWNlbnRseSBI YXZvYyBQIHRlbGwgbWUgdG8gc2VuZCB0aGlzIHF1emVzdGlvbiB0byB0aGlzIGxpc3QsIEkg bWF5IGhhdmUgYSBoZWxwLg0KVGhhbmsgeW91IHZlcnkgbXVjaA0KR29vZCBUaW1lLg0KDQoN Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fXw0KRmFpdGVzIHVuIHZvZXUgZXQgcHVpcyBWb2lsYSAhIHd3dy52b2lsYS5mciAN CkF2ZWMgVm9pbGEgTWFpbCwgY29uc3VsdGV6IHZvcyBlLW1haWxzIHN1ciB2b3RyZSBtb2Jp bGUgV2FwLiANCg== From syed@mimos.my Thu Feb 28 04:50:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from filter.mimos.my (filter.mimos.my [192.228.137.70]) by mail.gnome.org (Postfix) with ESMTP id D5A63198C2 for ; Thu, 28 Feb 2002 04:50:48 -0500 (EST) Received: from ew.mimos.my (localhost.localdomain [127.0.0.1]) by filter.mimos.my (8.11.0/8.11.0) with ESMTP id g1S9bSm31874 for ; Thu, 28 Feb 2002 17:37:28 +0800 Received: (from root@localhost) by ew.mimos.my (8.11.6/8.11.6) id g1S9olU41225 for gtk-list@gnome.org; Thu, 28 Feb 2002 17:50:47 +0800 (MYT) (envelope-from syed@mimos.my) Received: from mimos.my (infoniti25.nat.mimos.my [10.1.21.25]) by ew.mimos.my (8.11.6/8.11.6) with ESMTP id g1S9oka41169 for ; Thu, 28 Feb 2002 17:50:46 +0800 (MYT) (envelope-from syed@mimos.my) Message-ID: <3C7DFCE2.9606ADA7@mimos.my> Date: Thu, 28 Feb 2002 17:48:18 +0800 From: mrzali X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtknotebook & pixmap X-scanner: scanned by Inflex 1.0.10 - (http://pldaniels.com/inflex/) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How i want to attach pixmap into gtk-notebook-tab? As far i know we can only set label on it. Any suggestion. Thanks, mr_zali From pclouds@fptnet.com Thu Feb 28 05:36:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dns2.hcm.fpt.vn (dns2.hcm.fpt.vn [203.162.45.36]) by mail.gnome.org (Postfix) with ESMTP id 9A308180F1 for ; Thu, 28 Feb 2002 05:36:07 -0500 (EST) Received: from isp-mailsrv.hcm.fpt.vn (isp-mailsrv.hcm.fpt.vn [203.162.45.131]) by dns2.hcm.fpt.vn (8.11.6/8.11.6) with ESMTP id g1SAZ6s28452 for ; Thu, 28 Feb 2002 17:35:06 +0700 Received: from hcm.fpt.vn ([203.162.45.138]) by isp-mailsrv.hcm.fpt.vn with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id FZ0XND0G; Thu, 28 Feb 2002 17:44:19 +0700 Received: from [203.162.70.201] by hcm.fpt.vn [203.162.45.138] Received: (from pclouds@localhost) by localhost.localdomain (8.11.2/8.11.2) id g1RI2gR00736 for gtk-list@gnome.org; Wed, 27 Feb 2002 13:02:42 -0500 Date: Wed, 27 Feb 2002 13:02:42 -0500 From: pclouds To: gtk-list@gnome.org Subject: gtk default binding sets Message-ID: <20020227130242.A733@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Is there any document that describe the default binding set of each widget? From Steph.Fox@btinternet.com Thu Feb 28 05:49:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium.btinternet.com (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id 8DBAD1837B for ; Thu, 28 Feb 2002 05:49:27 -0500 (EST) Received: from host213-122-214-197.in-addr.btopenworld.com ([213.122.214.197] helo=t2r1o8) by protactinium.btinternet.com with smtp (Exim 3.22 #8) id 16gO5d-0003uF-00; Thu, 28 Feb 2002 10:47:09 +0000 Message-ID: <00aa01c1c044$f4536620$243e7bd5@t2r1o8> From: "Steph" To: "pclouds" , References: <20020227130242.A733@localhost.localdomain> Subject: Re: gtk default binding sets Date: Thu, 28 Feb 2002 10:44:48 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I've been doing that when I've noticed them, in the PHP-GTK manual = http://gtk.php.net/manual/en which is about half complete at present. = It depends which widget you're talking about ... oh, and which version = of GTK+, we're using 1.2 and some of the bindings have been changed = since then. ----- Original Message -----=20 From: "pclouds" To: Sent: Wednesday, February 27, 2002 6:02 PM Subject: gtk default binding sets > Hi > Is there any document that describe the default binding set of each = widget? > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From neil@fnxweb.com Thu Feb 28 06:57:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntsc0034.int.rdel.co.uk (mail.uk.thalesgroup.com [194.128.85.7]) by mail.gnome.org (Postfix) with ESMTP id 1453618854 for ; Thu, 28 Feb 2002 06:57:51 -0500 (EST) Received: from mail.uk.thalesgroup.com (lisc0022.int.rdel.co.uk) by ntsc0034.int.rdel.co.uk (Content Technologies SMTPRS 4.2.5) with ESMTP id for ; Thu, 28 Feb 2002 11:56:19 +0000 Received: from mail.uk.thalesgroup.com (localhost.localdomain [127.0.0.1]) by mail.uk.thalesgroup.com (8.11.6/8.11.0) with ESMTP id g1SBvnY17420 for ; Thu, 28 Feb 2002 11:57:49 GMT Received: from ntscxch1.int.rdel.co.uk (ntscxch1.int.rdel.co.uk [172.21.100.149]) by mail.uk.thalesgroup.com (8.11.6/8.11.0) with ESMTP id g1SBvlu17405; Thu, 28 Feb 2002 11:57:48 GMT Received: from fnxweb.com (172-21-182-92-roaming.int.rdel.co.uk [172.21.182.92]) by ntscxch1.int.rdel.co.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id DVB4LRFW; Thu, 28 Feb 2002 11:57:48 -0000 Message-ID: <3C7E1B3A.3020200@fnxweb.com> Date: Thu, 28 Feb 2002 11:57:46 +0000 From: Neil Bird Reply-To: GTK Mailing List User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en-us MIME-Version: 1.0 To: GTK Mailing List Cc: mrzali Subject: Re: gtknotebook & pixmap References: <3C7DFCE2.9606ADA7@mimos.my> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Around about 28/02/02 09:48, mrzali scribbled ... > How i want to attach pixmap into gtk-notebook-tab? > As far i know we can only set label on it. > Any suggestion. Do it in glade! Here's an edited example of how glade does it: notebook1 = gtk_notebook_new (); empty_notebook_page = gtk_vbox_new (FALSE, 0); gtk_widget_show (empty_notebook_page); gtk_container_add (GTK_CONTAINER (notebook1), empty_notebook_page); pixmap1 = create_pixmap (window1, NULL); gtk_widget_show (pixmap1); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), pixmap1); Nothing to stop you putting a container in the tab that contains pixmap+text, or pretty well anything, I guess. -- [neil@fnx ~]# rm -f .signature [neil@fnx ~]# ls -l .signature ls: .signature: No such file or directory [neil@fnx ~]# exit From edscott@imp.mx Thu Feb 28 08:31:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.imp.mx (imp.mx [192.100.181.86]) by mail.gnome.org (Postfix) with ESMTP id 6B7B51895B for ; Thu, 28 Feb 2002 08:31:58 -0500 (EST) Received: from there (gukumatz.imp.mx [192.100.181.220]) by www.imp.mx (SGI-8.9.3/8.9.3) with SMTP id HAA95238 for ; Thu, 28 Feb 2002 07:33:07 -0600 (CST) Message-Id: <200202281333.HAA95238@www.imp.mx> Content-Type: text/plain; charset="iso-8859-1" From: Edscott Wilson =?iso-8859-1?q?Garc=EDa?= Reply-To: edscott@imp.mx To: gtk-list@gnome.org Subject: GtkCTree drag bug workaround Date: Thu, 28 Feb 2002 07:31:35 -0600 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Time ago I asked a question on this list and noone knew the answer. So now I am sending a bug workaround to help whoever might confront the same problem. If you create a gtkctree and do a gtk_drag_source_set() from the start, what happens is that the first drag it receives from another gtk application will mistakenly start a drag on the gtkctree destination widget, without generating any of the signals. This only happens until the first "real" drag is initiated and finished in the offending gtkctree. And it will happen again after a expand or contract event. The workaround is to tie a signal to the buttonpress event, so that gtk_drag_source_set() is called with the buttonpress. And call gtk_drag_source_unset() on expand and contract events. Whether each gtk_drag_source_set() should be matched by a gtk_drag_source_unset(), I am not sure whether it is important or not. Edscott From pvosta@unionbio-eu.com Thu Feb 28 09:56:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (relay1-us.simplemente.net [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id 603F918D95 for ; Thu, 28 Feb 2002 09:56:33 -0500 (EST) Received: from unionbio-eu.com (unknown [213.193.139.10]) by relay1-us.simplemente.net (Postfix) with SMTP id BC83ED780D for ; Thu, 28 Feb 2002 09:56:31 -0500 (EST) Received: (qmail 2215 invoked from network); 28 Feb 2002 14:52:23 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 28 Feb 2002 14:52:23 -0000 Message-ID: <3C7E44CE.E993AF42@unionbio-eu.com> Date: Thu, 28 Feb 2002 15:55:10 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: gdk_draw_gray_image problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I ahve problem with "gdk_draw_gray_image". The code to display a greyvalue image is shown below. If I take gdk_draw_gray_image" out of the loop or reduce the number of loops below 3, either a solid grey image window display is shown (0 loops ) or only the lower half of the image (2 loops) ? Anyone any information about what is going wrong ( the test code is somewhat modified for clarity)? Best regards, Peter void xyz_rgb_display (GtkWidget *drawing_area, image *im ) { int *p = NULL; guchar buf[WIDTH * HEIGHT * 3]; gint i = 0, j = 0; gboolean dither = 1; p = image_data( im ); for (j = 0; j < WIDTH * HEIGHT; j++) buf[j] = *p++;; for( i = 0; i < 3; i++ ){ gdk_draw_gray_image (drawing_area->window, drawing_area->style->white_gc, 0, 0, WIDTH, HEIGHT, dither ? GDK_RGB_DITHER_MAX : GDK_RGB_DITHER_NONE, buf, WIDTH); } } From pbd@op.net Thu Feb 28 09:56:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 98A8818D95 for ; Thu, 28 Feb 2002 09:56:38 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-506.phlpa.fast.net [209.92.97.252]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA09776; Thu, 28 Feb 2002 09:56:23 -0500 (EST) Message-Id: <200202281456.JAA09776@renoir.op.net> To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: now that we're on GtkDrawingArea... =) In-reply-to: Your message of "Wed, 27 Feb 2002 23:29:25 CST." <20020227232925.09c86401.davidgn@servidor.unam.mx> Date: Thu, 28 Feb 2002 09:56:00 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I have my DrawingArea on a ViewPort on a ScrolledWindow on a pane on a noteboo >k on a table..... like the song... > >I couldnt use any function that gets a GdkWindow as a parameter. As in the scr >ibble example, the Area is just under the Window, and it works. But i had the >DrawingArea somewhere else, and area->window sent messages like: > >Gdk-CRITICAL **: file gdkdraw.c: line 42 (gdk_draw_point): assertion `drawable > != NULL' failed. at what point in your code are you trying to draw on the DrawingArea? i hope, given all the messages about this, that its within an expose_event handler. >As i read, some widgets does not have its own window (but the example worked u >sing the Area's window, widget-window), and they draw on its parent window. >I thought maybe DrawingArea is one such widget (though doesnt sound like it), >and since the example works, i used the main window's window as the parameter >to gdk_pixmap_new and other functions. It works. it has its own window. --p From hp@redhat.com Thu Feb 28 10:36:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 71C6A18CF2 for ; Thu, 28 Feb 2002 10:35:56 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SFZls32016; Thu, 28 Feb 2002 10:35:47 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ganesan Sethuraman Cc: gtk-list@gnome.org Subject: Re: Info Regarding GtkEntry References: <3C7DB6DB.F959A8FA@wipro.com> From: Havoc Pennington Date: 28 Feb 2002 10:35:47 -0500 In-Reply-To: <3C7DB6DB.F959A8FA@wipro.com> Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ganesan Sethuraman writes: > Could you please tell me if there is any limatations on the number of > characters a GtkEntry widget can hold ? If I give more than 7300(approx) > characters, the characters are getting overlapped. Any idea on what > could be the problem ? > Is this GTK 1.2 or GTK 2? It's probably an integer overflow for the character positions. In GTK 2 this isn't really supposed to happen though. Havoc From John.Cupitt@ng-london.org.uk Thu Feb 28 10:48:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id F315918229 for ; Thu, 28 Feb 2002 10:48:58 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id ; Thu, 28 Feb 2002 15:48:58 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F5CML7Y2; Thu, 28 Feb 2002 15:48:56 -0000 Message-ID: <3C7E4E16.4000405@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: pvosta@unionbio-eu.com Cc: gtk-list@gnome.org Subject: Re: gdk_draw_gray_image problem Date: Thu, 28 Feb 2002 15:34:46 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hiya, almost exactly that code works for me, so I guess the problem must be somewhere else :-( Does testrgb work OK? If it does, what's that code doing that you're not doing? Peter Van Osta wrote: > I ahve problem with "gdk_draw_gray_image". The code to display a > greyvalue image is shown below. If I take gdk_draw_gray_image" out of > the loop or reduce the number of loops below 3, either a solid grey > image window display is shown (0 loops ) or only the lower half of the > image (2 loops) ? > > Anyone any information about what is going wrong ( the test code is > somewhat modified for clarity)? > > Best regards, > > Peter > > > void xyz_rgb_display (GtkWidget *drawing_area, image *im ) > { > > int *p = NULL; > guchar buf[WIDTH * HEIGHT * 3]; > gint i = 0, j = 0; > gboolean dither = 1; > > p = image_data( im ); > > for (j = 0; j < WIDTH * HEIGHT; j++) > buf[j] = *p++;; > > for( i = 0; i < 3; i++ ){ > gdk_draw_gray_image (drawing_area->window, > drawing_area->style->white_gc, > 0, 0, WIDTH, HEIGHT, > dither ? GDK_RGB_DITHER_MAX : > GDK_RGB_DITHER_NONE, > buf, WIDTH); > } > } ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From seberino@dt092n42.san.rr.com Thu Feb 28 11:02:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 8225918F22 for ; Thu, 28 Feb 2002 11:02:52 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16gT1h-0001Jt-00 for gtk-list@gnome.org; Thu, 28 Feb 2002 08:03:25 -0800 Date: Thu, 28 Feb 2002 08:03:25 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: configure event & pixmap question... Message-ID: <20020228080325.A5074@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: After much analysis I figured out that if I dereference a global pixmap pointer and then redefine it in configure event handler ALL IS WELL. If I don't dereference but just keep drawing on top of old global pixmap pointer in new configure event handler calls then NOTHING gets drawn on screen. HOW COME PIXMAP MUST BE NEWLY CREATED IN EACH CONFIGURE EVENT CALL? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Thu Feb 28 11:07:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id EAE07184C3 for ; Thu, 28 Feb 2002 11:07:46 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16gT6S-0001KC-00 for gtk-list@gnome.org; Thu, 28 Feb 2002 08:08:20 -0800 Date: Thu, 28 Feb 2002 08:08:20 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: expose event & pixmap question Message-ID: <20020228080820.B5074@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: gint exposeEventHandler(GtkWidget* widget, GdkEventExpose* event) { gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], Pixmaps::myPicture, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return FALSE; }; Pixmaps make expose event handlers easy I think because you can just redraw uncovered portion with a single function call as in function above. WHY CAN'T WE REDRAW A PORTION OF THE DRAWING AREA THE SAME WAY AND AVOID NEED FOR PIXMAP? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Thu Feb 28 11:27:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 04B4218C74 for ; Thu, 28 Feb 2002 11:27:41 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-506.phlpa.fast.net [209.92.97.252]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA23626; Thu, 28 Feb 2002 11:27:37 -0500 (EST) Message-Id: <200202281627.LAA23626@renoir.op.net> To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: expose event & pixmap question In-reply-to: Your message of "Thu, 28 Feb 2002 08:08:20 PST." <20020228080820.B5074@spawar.navy.mil> Date: Thu, 28 Feb 2002 11:27:20 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >gint exposeEventHandler(GtkWidget* widget, GdkEventExpose* event) { > gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widge >t)], > Pixmaps::myPicture, event->area.x, event->area.y, > event->area.x, event->area.y, event->area.width, event->area.height); > > return FALSE; >}; > > >Pixmaps make expose event handlers easy I think because you can just >redraw uncovered portion with a single function call as in function above. > >WHY CAN'T WE REDRAW A PORTION OF THE DRAWING AREA THE SAME >WAY AND AVOID NEED FOR PIXMAP? because we're shouting? its because a Pixmap is a different kind of resource than a Window. They are both considered to "drawables" - you can draw things on them by calling the gdk_draw_*() functions. However, a pixmap is an "offscreen" drawable that is never mapped to the display. A window in an "onscreen" drawable that can be mapped to the display. when you draw on a window, you are either going to fail (the window is not mapped), or the results show up "right away". when you draw in a pixmap, the results don't show up till you draw the pixmap into a window. a drawing area has a window, not a pixmap, as its drawable. if you want something else, then i suspect that the Canvas might be worth getting to know. does this make it any clearer? --p From hp@redhat.com Thu Feb 28 11:33:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 834BA19702 for ; Thu, 28 Feb 2002 11:33:05 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SGX2g32295; Thu, 28 Feb 2002 11:33:02 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: configure event & pixmap question... References: <20020228080325.A5074@spawar.navy.mil> From: Havoc Pennington Date: 28 Feb 2002 11:33:02 -0500 In-Reply-To: <20020228080325.A5074@spawar.navy.mil> Message-ID: Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Christian Seberino writes: > After much analysis I figured out that if I dereference > a global pixmap pointer and then redefine it in > configure event handler ALL IS WELL. > > If I don't dereference but just keep drawing on top > of old global pixmap pointer in new configure event > handler calls then NOTHING gets drawn on screen. > > HOW COME PIXMAP MUST BE NEWLY CREATED IN EACH > CONFIGURE EVENT CALL? > Normally you create a new pixmap in order to resize it. Havoc From hp@redhat.com Thu Feb 28 11:34:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id D996D198E1 for ; Thu, 28 Feb 2002 11:34:36 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SGYT532299; Thu, 28 Feb 2002 11:34:29 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: expose event & pixmap question References: <20020228080820.B5074@spawar.navy.mil> From: Havoc Pennington Date: 28 Feb 2002 11:34:29 -0500 In-Reply-To: <20020228080820.B5074@spawar.navy.mil> Message-ID: Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Christian Seberino writes: > gint exposeEventHandler(GtkWidget* widget, GdkEventExpose* event) { > gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], > Pixmaps::myPicture, event->area.x, event->area.y, > event->area.x, event->area.y, event->area.width, event->area.height); > > return FALSE; > }; > > > Pixmaps make expose event handlers easy I think because you can just > redraw uncovered portion with a single function call as in function above. > > WHY CAN'T WE REDRAW A PORTION OF THE DRAWING AREA THE SAME > WAY AND AVOID NEED FOR PIXMAP? Because the user will see each individual drawing operation, causing flicker. Try it. This is what GTK 2 fixes - it automatically double buffers, so you can redraw directly to the drawing area and do not need the pixmap. Havoc From flavio@maqplas.com.br Thu Feb 28 12:43:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from powerdroid.ns1.com.br (smtphost.ns1.com.br [200.185.44.15]) by mail.gnome.org (Postfix) with ESMTP id 10D11198BB for ; Thu, 28 Feb 2002 12:43:31 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by powerdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1SHh92m068940 for ; Thu, 28 Feb 2002 14:43:11 -0300 (BRT) Subject: How to catch Pixmap widget x & y coordinates ? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 28 Feb 2002 14:45:47 -0300 Message-Id: <1014918350.1154.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I need to know how to catch the coordinates from a pixmap Widget; Thanks for any help Thanks a lot Flavio Alberto From pbd@op.net Thu Feb 28 13:03:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 02E761992E for ; Thu, 28 Feb 2002 13:03:57 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-247.phlpa.fast.net [209.92.227.247]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA09231; Thu, 28 Feb 2002 13:03:54 -0500 (EST) Message-Id: <200202281803.NAA09231@renoir.op.net> To: Fl vio Alberto Lopes Soares Cc: gtk-list Subject: Re: How to catch Pixmap widget x & y coordinates ? In-reply-to: Your message of "28 Feb 2002 14:45:47 -0300." <1014918350.1154.0.camel@flavio.maqplas> Date: Thu, 28 Feb 2002 13:03:38 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hello all, > >I need to know how to catch the coordinates from a pixmap Widget; >Thanks for any help your question is not clear. please be more specific. From venkat_ramakrishnan@hotmail.com Thu Feb 28 13:13:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f73.law11.hotmail.com [64.4.17.73]) by mail.gnome.org (Postfix) with ESMTP id 4E4B01834B for ; Thu, 28 Feb 2002 13:13:20 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 28 Feb 2002 10:13:19 -0800 Received: from 61.11.57.127 by lw11fd.law11.hotmail.msn.com with HTTP; Thu, 28 Feb 2002 18:13:19 GMT X-Originating-IP: [61.11.57.127] From: "Venkat Ramakrishnan" To: gtk-list@gnome.org Subject: PangoFontMetrics Date: Thu, 28 Feb 2002 18:13:19 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Feb 2002 18:13:19.0541 (UTC) FILETIME=[99B99650:01C1C083] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I am new to GTK+ . I used to use X and motif calls for UI design and i really find GTK to be very flexible and powerful. Thanks to the people who brought it up . I have a small question . I want to write some strings into a drawing area using certain fonts . And I am using Pango for this . Now I want to find out the height and width (ascent and descent etc) of the string so that i can place it properly . Hence I am using the PangoFontMterics. But there is one call which is confusing for me pango_language_from_string (const char *language); where language : a string representing a language tag (as the API says) Can somebosy tell me what string to passed as the "language" in the above call .Is it related somehow to the locale . I tried passing the string (i want to draw , but it does not work ) I mean for different strings I get the same ascent and descent . I am confused . I think the ascent and descent is based on the font being used . I would apprecite any help on this. Is there any application using pango . Cyrrently I am refering the API Refarence (from gtk.org) Thanks vankat _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From flavio@maqplas.com.br Thu Feb 28 13:44:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pkdroid.ns1.com.br (pkdroid.ns1.com.br [200.185.44.16]) by mail.gnome.org (Postfix) with ESMTP id 8E40B18FB0 for ; Thu, 28 Feb 2002 13:44:44 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by pkdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1SIicff042634; Thu, 28 Feb 2002 15:44:38 -0300 (BRT) Subject: Re: How to catch Pixmap widget x & y coordinates ? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Paul Davis Cc: gtk-list In-Reply-To: <200202281803.NAA09231@renoir.op.net> References: <200202281803.NAA09231@renoir.op.net> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 28 Feb 2002 15:47:06 -0300 Message-Id: <1014922027.1156.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Em 28 Feb 2002 13:03:38 -0500, Paul Davis escreveu: Ok, I want to use gdk_draw_pixmap to exchange one Gtk Pixmap with a file pixmap, I made some experiences with this command as above : int troca_pixmap(gpointer user_data, char *nome_pixmap, char *filename, gboolean use_pixmap_interno, GdkPixmap *pixmap_interno) { GtkWidget *pixmap; GdkColormap *colormap; GdkPixmap *gdkpixmap; GdkBitmap *mask; gchar *pathname = NULL; pixmap = lookup_widget(user_data, nome_pixmap); if(use_pixmap_interno == FALSE) { if (!filename || !filename[0]) return -1; pathname = gnome_pixmap_file (filename); if (!pathname) { g_warning (_("Couldn't find pixmap file: %s"), filename); return -1; } colormap = gtk_widget_get_colormap (user_data); gdkpixmap = gdk_pixmap_colormap_create_from_xpm (NULL, colormap, &mask, NULL, pathname); if (gdkpixmap == NULL) { g_warning (_("Couldn't create pixmap from file: %s"), pathname); g_free (pathname); return -1; } } else { if (pixmap_interno == NULL) { g_warning (_("Couldn't create pixmap from pixmap_interno")); return -1; } gdkpixmap = pixmap_interno; } if(use_pixmap_interno == FALSE) { g_free (pathname); gdk_draw_pixmap (pixmap->window, pixmap->style->fg_gc[GTK_WIDGET_STATE(pixmap)], gdkpixmap, -1, -1, -1, -1, GTK_WIDGET (pixmap)->requisition.width, GTK_WIDGET (pixmap)->requisition.height); } else { gtk_widget_hide(GTK_WIDGET(pixmap)); gtk_pixmap_set(GTK_PIXMAP(pixmap), gdkpixmap, NULL); gtk_widget_show(GTK_WIDGET(pixmap)); } if(use_pixmap_interno == FALSE) { gdk_pixmap_unref (gdkpixmap); gdk_bitmap_unref (mask); } return 1; } This works fine, but the position of pixmaps are allways in left up corner I believe because the parameters -1, -1, -1, -1, but I don't know what to put in these parameters, the gdk reference manual says that these parameters are the x,y coordinates of source and destination, but I don't know how to obtain this information. Any help to a newbie are Welcome Thanks a lot Flavio Alberto > >Hello all, > > > >I need to know how to catch the coordinates from a pixmap Widget; > >Thanks for any help > > your question is not clear. please be more specific. From a9308317@unet.univie.ac.at Thu Feb 28 14:09:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from email02.aon.at (WARSL401PIP3.highway.telekom.at [195.3.96.75]) by mail.gnome.org (Postfix) with SMTP id BE1C41832F for ; Thu, 28 Feb 2002 14:09:39 -0500 (EST) Received: (qmail 338460 invoked from network); 28 Feb 2002 19:09:38 -0000 Received: from n603p019.dipool.highway.telekom.at (HELO email.aon.at) ([212.183.85.83]) (envelope-sender ) by qmail2.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 28 Feb 2002 19:09:38 -0000 From: Markus Klein To: gtk-list@gnome.org Subject: messed up GTK Message-ID: <20020228201425.A1179@pcd-5nd> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.0.0 X-Mutt-Fcc: Gesendet Lines: 84 Date: Thu, 28 Feb 2002 14:09:39 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi everybody. I am looking for help with my Gnome/GTK installation. I want to compile some gnome programs but "make" always complains about missing files, though "./configure" is just fine: (Note: "Datei oder Verzeichnis nicht gefunden" means "file or directory not found").. ---cut --- In file included from /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid.h:23, from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:104, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden In file included from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:106, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-start.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-start.h:23: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden In file included from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:107, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-standard.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-standard.h:23: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden In file included from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:108, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-finish.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-finish.h:23: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden In file included from gtkdial.c:21: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-window-icon.h:28: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-window-icon.h:29: gtk/gtkwindow.h: Datei oder Verzeichnis nicht gefunden make[2]: *** [gtkdial.o] Error 1 make[2]: Leaving directory `/home/mox/gtkdial-0.4.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mox/gtkdial-0.4.0' make: *** [all-recursive-am] Error 2 mox@pcd-5nd:~/gtkdial-0.4.0 > As far as I can see all the relevant files are actually there. I have installed all the devel-packages (GTK, imlib, X, gnome-libs, etc.) but I have installed GTK-1.2.10 twice: One time by the dist-rpm-packages, one time by the *.tar.gz source (configure/make/make install). I remember that this was due to a "configure" didn't find GTK one time, so I did this. Now I have to find a solution for this problem. GTK-1.2.10 is in /usr/local/include/gtk-1.2/ and /opt/gnome/include/gtk-1.2/ The other files are were they should be, I suppose: mox@pcd-5nd:~ > ls /opt/gnome/include/ gdk_imlib.h gdk-pixbuf-1.0 Imlib.h libIDL-1.0 gdk_imlib_private.h gnome-1.0 Imlib_private.h libmedusa gdk_imlib_types.h gtk-1.2 Imlib_types.h orbit-1.0 gtk-config says following: # gtk-config --prefix /usr/local # gtk-config --exec-prefix /usr/local # gtk-config --libs -L/usr/local/libs -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm My distribution is a Suse7.2 (Xfree3) and Ximian Gnome (red-carpet). ... ?help? thanx mox From hp@redhat.com Thu Feb 28 14:26:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id C2AFF1832F for ; Thu, 28 Feb 2002 14:26:17 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SJQF424517; Thu, 28 Feb 2002 14:26:15 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Venkat Ramakrishnan" Cc: gtk-list@gnome.org Subject: Re: PangoFontMetrics References: From: Havoc Pennington Date: 28 Feb 2002 14:26:15 -0500 In-Reply-To: Message-ID: Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Venkat Ramakrishnan" writes: > I am new to GTK+ . I used to use X and motif calls for UI design and > i really find GTK to be very flexible and powerful. Thanks to the > people who brought it up . > I have a small question . I want to write some strings into a drawing > area using certain fonts . And I am using Pango for this . Now I want > to find out the height and width (ascent and descent etc) of the > string so that i can place it properly . Hence I am using the > PangoFontMterics. > But there is one call which is confusing for me > pango_language_from_string (const char *language); > where > language : a string representing a language tag (as the API says) > > Can somebosy tell me what string to passed as the "language" in the > above call .Is it related somehow to the locale . > I tried passing the string (i want to draw , but it does not work ) > I mean for different strings I get the same ascent and descent . > > I am confused . I think the ascent and descent is based on the font > being used . > I would apprecite any help on this. Is there any application using > pango . Cyrrently I am refering the API Refarence (from gtk.org) > Rather than fooling with font metrics, you probably just want to call pango_layout_get_pixel_extents(). If you need a PangoLanguage gtk_get_default_language() is the simplest way. Havoc From gtk_plus@yahoo.com Thu Feb 28 14:33:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11905.mail.yahoo.com (web11905.mail.yahoo.com [216.136.172.189]) by mail.gnome.org (Postfix) with SMTP id 30D3F1817F for ; Thu, 28 Feb 2002 14:33:27 -0500 (EST) Message-ID: <20020228193326.31707.qmail@web11905.mail.yahoo.com> Received: from [195.202.246.117] by web11905.mail.yahoo.com via HTTP; Thu, 28 Feb 2002 11:33:26 PST Date: Thu, 28 Feb 2002 11:33:26 -0800 (PST) From: Ibrahim Shaame Subject: Installing test gtk-1.3.15 To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have downloaded the lattest version, and would like to install it. I have created a directory within gnome directory (opt/gnome/gtk-1.3.15), successfully compiled glib-2.0, tried to load the libraries (from gtk-1.3.15/lib), but when trying to compile atk-0.13 I get a message the message that glib >= 1.3.12 is not found, and that I should try to edit the "script"/opt/gnome/bin/pkg-config (which infact is binary!). I have already compiled the new pkg-config into the directory /opt/gnome/gtk-1.3.15. I think my problem is how to make the system use the directory /opt/gnome/gtk-1.3.15. Could anyone help me how to use another another copy of gtk instead of the one which came with the system. Thanks IS __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com From maldonado@ibiquity.com Thu Feb 28 14:41:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from radioflyer.ibocradio.com (unknown [208.33.57.98]) by mail.gnome.org (Postfix) with ESMTP id 7BFA51820E for ; Thu, 28 Feb 2002 14:41:06 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1C08F.DCBB67F2" Subject: floating points Date: Thu, 28 Feb 2002 14:41:05 -0500 Message-ID: <6AC325EB1D98F84B986D83F985121C1F16FDBF@radioflyer.ibocradio.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: floating points Thread-Index: AcHAj9yuAivZs6oORZSsd9GtkHA2XQ== From: "Lourdes Maldonado" To: "Gtk-List" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1C08F.DCBB67F2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 I have an entry field where the user enters a string that should correspond to a floating point number (an FM frequency). When I retrieve the string from the entry field and convert it (using strtod) to a floating point, the number does not come out exact (i.e. if I enter the string 85.3 the floating point number I get is 85.299995). =20 I'm sorry this is not necessarily a gtk question, but the other day I saw a message on this Gtk-list were someone mentioned a similar issue with floating point representation and I forget if there was a solution included in the message. =20 Any help would be appreciated, =20 Lourdes ------_=_NextPart_001_01C1C08F.DCBB67F2 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

 

I have an entry field where the user enters a string = that should correspond to a floating point number (an FM frequency).  = When I retrieve the string from the entry field and convert it (using strtod) = to a floating point, the number does not come out exact (i.e. if I enter the = string 85.3 the floating point number I get is 85.299995).

 

I’m sorry this is not necessarily a gtk = question, but the other day I saw a message on this Gtk-list were someone mentioned a = similar issue with floating point representation and I forget if there was a = solution included in the message.

 

Any help would be appreciated,

 

Lourdes

=00 ------_=_NextPart_001_01C1C08F.DCBB67F2-- From sven@gimp.org Thu Feb 28 15:26:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9587782.dip.t-dialin.net [217.88.119.130]) by mail.gnome.org (Postfix) with ESMTP id 622DE18152 for ; Thu, 28 Feb 2002 15:26:50 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16gX8e-0004vP-00; Thu, 28 Feb 2002 21:26:52 +0100 To: Ibrahim Shaame Cc: gtk-list@gnome.org Subject: Re: Installing test gtk-1.3.15 References: <20020228193326.31707.qmail@web11905.mail.yahoo.com> From: Sven Neumann Date: 28 Feb 2002 21:26:51 +0100 In-Reply-To: <20020228193326.31707.qmail@web11905.mail.yahoo.com> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Ibrahim Shaame writes: > I have downloaded the lattest version, and would like > to install it. I have created a directory within gnome > directory (opt/gnome/gtk-1.3.15), successfully > compiled glib-2.0, tried to load the libraries (from > gtk-1.3.15/lib), but when trying to compile atk-0.13 I > get a message the message that glib >= 1.3.12 is not > found, and that I should try to edit the > "script"/opt/gnome/bin/pkg-config (which infact is > binary!). I have already compiled the new pkg-config > into the directory /opt/gnome/gtk-1.3.15. I think my > problem is how to make the system use the directory > /opt/gnome/gtk-1.3.15. read the output of configure again. It asked you to add the location of glib-2.0.pc to your PKG_CONFIG_PATH. You might also have to adapt your LD_LIBRARY_PATH. Salut, Sven From trefftzs@tcsn.net Thu Feb 28 17:18:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from thoth.trefftzs.org (psrb-ppp1-130.tcsn.net [63.174.82.130]) by mail.gnome.org (Postfix) with ESMTP id 2D1B118245 for ; Thu, 28 Feb 2002 17:18:47 -0500 (EST) Received: from outmail.tcsn.net (jeff@localhost) by thoth.trefftzs.org (8.9.3/8.9.3) with ESMTP id OAA01497; Thu, 28 Feb 2002 14:17:42 -0800 Message-Id: <200202282217.OAA01497@thoth.trefftzs.org> X-Authentication-Warning: thoth.trefftzs.org: jeff owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Ibrahim Shaame Cc: gtk-list@gnome.org Subject: Re: Installing test gtk-1.3.15 In-Reply-To: Message from Ibrahim Shaame of "Thu, 28 Feb 2002 11:33:26 PST." <20020228193326.31707.qmail@web11905.mail.yahoo.com> From: Jeff Trefftzs Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 28 Feb 2002 14:17:42 -0800 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Ibrahim - You're in luck. I had exactly the same problem last night. Here's how I fixed it (at least according to my notes). First, as root run /sbin/ldconfig to update your libraries. Find where your pkgconfig files are. There might be one under /opt/gnome. If so, the export PKG_CONFIG_PATH="/opt/gnome/pkgconfig:$PKG_CON FIG_PATH" and try again. You may also need to set LD_LIBRARY_PATH. I did, but I was installing in a *really* strange place (/usr/local/development). HTH, -- --Jeff Jeff Trefftzs http://www.tcsn.net/trefftzs Home Page http://gug.sunsite.dk/gallery.php?artist=68 Gimp Gallery http://trefftzs.topcities.com/home.html Photo galleries From shane_b@users.sourceforge.net Sun Feb 24 04:31:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail009.syd.optusnet.com.au (mail009.syd.optusnet.com.au [203.2.75.170]) by mail.gnome.org (Postfix) with ESMTP id 60B5E18129 for ; Sun, 24 Feb 2002 04:31:01 -0500 (EST) Received: from pluto (geeax5-103.dialup.optusnet.com.au [198.142.96.103]) by mail009.syd.optusnet.com.au (8.11.1/8.11.1) with ESMTP id g1O9Uvn22774 for ; Sun, 24 Feb 2002 20:30:58 +1100 Subject: GTK+2 - GtkTreeModel From: Shane Butler To: "List, GTK+" Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.99.2 (Preview Release) Date: 24 Feb 2002 20:32:52 +1100 Message-Id: <1014543176.8347.5.camel@pluto> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Just wondering if someone could suggest the best way to move a row in a GtkTreeModel up or down. Thanks, Shane From amrithamani@hotmail.com Sun Feb 24 12:56:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f94.law3.hotmail.com [209.185.241.94]) by mail.gnome.org (Postfix) with ESMTP id 7B966180E9 for ; Sun, 24 Feb 2002 12:56:27 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 24 Feb 2002 09:56:26 -0800 Received: from 137.132.3.9 by lw3fd.law3.hotmail.msn.com with HTTP; Sun, 24 Feb 2002 17:56:26 GMT X-Originating-IP: [137.132.3.9] From: "Amritha Mani" To: gtk-list@gnome.org Subject: Scrolling of Drawing area within GTKLayout Date: Mon, 25 Feb 2002 01:56:26 +0800 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 24 Feb 2002 17:56:26.0854 (UTC) FILETIME=[9476D060:01C1BD5C] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have just started using GTK. I need to draw a diagram with lines that depicts data flow between a client and a server, i.e, keeps growing in the vertical direction. I tried using Gtk Window-> Gtk Layout->Gtk Drawing area but the drawing area doesnt grow(and shows only the first few data lines) Is there some other simple way to do this? Kindly help. Amritha _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From falconer@falconer.best.vwh.net Mon Feb 25 15:57:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id D017618C15 for ; Mon, 25 Feb 2002 15:57:27 -0500 (EST) Received: (qmail 41813 invoked by uid 25889); 25 Feb 2002 20:57:23 -0000 Received: from unknown (HELO localhost) ([192.220.101.33]) (envelope-sender ) by 192.220.101.33 (qmail-ldap-1.03) with SMTP for ; 25 Feb 2002 20:57:23 -0000 Date: Mon, 25 Feb 2002 20:57:23 +0000 (GMT) From: Edward A Falk Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests In-Reply-To: <200202241320.IAA17161@renoir.op.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > > arguments. > > which window is that for? think about it. First window, or even all top-level windows. It would still be more useful than not being able to specify at all. Face it, most applications start with one initial window. Throwing away a useful feature because it's ambiguous (note: ambiguous, not broken) in the general case is silly. > > * It would be nice to add a scale factor option to sliders and > > you can write this yourself. ... Yes, but it's a fair bit of work, the way how is non-obvious (I didn't even know it was possible until I read your post), and most app writers won't even think to do it. In the slider widget I wrote for Xt, input scaling was simply set through a resource, and by default was automatic for sliders less than 100 pixels long. > > * It would be nice for TextEntry widgets to have signals which > > indicate that the widget has received/lost keyboard focus. > > focus_in_event > focus_out_event Doh! Didn't think to look at the signals in the super-classes. Thanks; I have a lot of code to re-write now. > > * I found the toolkit's habit of highlighting the widget under the > > cursor rather than highlighting the widget with keyboard focus > > to be confusing. > > catch enter_notify_event and leave_notify_event and stop the > emission. this will prevent prelighting. i wish there was a way to > turn off prelighting on a global basis, but it appears to contradict > the desire of GTK+'s designers for a consistent GUI experience. I was thinking of the general case. The prelighting should reflect the keyboard focus, not the mouse position. The user *knows* where the mouse is. > > * It would be nice if I could use my own select loop with gtk; > > GTK uses glib, and its inner loop is a bit more complex than > this. I was afraid of that. I've been able to use gtk_input_add(), but in my years of programming experience, I've learned that there are always cases that the API designer didn't think of. Someday, an application will come up that needs to react to events that are not file input events or signals, and then what? Anyway, thanks for your comments. -ed falk From falconer@falconer.best.vwh.net Mon Feb 25 16:07:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id 2897618B10 for ; Mon, 25 Feb 2002 16:07:08 -0500 (EST) Received: (qmail 42710 invoked by uid 25889); 25 Feb 2002 21:07:07 -0000 Received: from unknown (HELO localhost) ([192.220.101.33]) (envelope-sender ) by 192.220.101.33 (qmail-ldap-1.03) with SMTP for ; 25 Feb 2002 21:07:07 -0000 Date: Mon, 25 Feb 2002 21:07:07 +0000 (GMT) From: Edward A Falk Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Both features and bug reports should go in bugzilla - Thanks, didn't know about bugzilla. > Certainly a number of these comments would be useful in bugzilla. > > > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > > arguments. > > gtk_window_parse_geometry(). Thanx; missed that one in the docs. Better than nothing. > > * It would be very handy to be able to somehow specify the > > width of a TextEntry widget in terms of displayed characters > > instead of pixels. > > gtk_entry_set_width_chars() Also thanx. This one not my copy of the docs. I need to get an updated set. Or was this new with gtk 2? Wait, never mind. I see it's new with gtk 2. Excellent. > > * Scrollbars and scales desperately need a way for callbacks to > > differentiate a scroll-in-progress from a scroll-completed type > > gtk_range_set_update_policy() is the intended feature here, though it > doesn't handle the case you mention. Right. I know how to specify events under each policy, but there's no way to collect *both* kinds of events and differentiate them. I've already written two different CAD applications that need to know the difference. > > * It would be nice to add a scale factor option to sliders and > > scrollbars so that a large mouse motion results in a small > > change in slider position (very useful feature when dealing > > with very small sliders. See > > Wouldn't it make more sense for the slider to autocompute the scale > factor depending on its size and range and step increment? The slider I wrote does exactly that by default. If AutoScale is true, then scaling is set appropriate to the size of the slider. Otherwise, the application may manually set a scale factor. > > * It would be a nice feature to add "focus follows mouse" to the > > Hrm, I think you'll find little enthusiasm for that... no modern > toolkit does this. I know. I was re-writing the old Xaw toolkit to support keyboard traversal, and I had to face the issue that some users would object to changing the paradigm. So I added a user-setable flag to choose the focus model. Then I realized that the two models aren't incompatible and set the default behavior to use both. It really works quite well. -ed falk From syborg@janeway.vonbek.dhs.org Mon Feb 25 18:36:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from janeway.vonbek.dhs.org (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by mail.gnome.org (Postfix) with ESMTP id 584D019453 for ; Mon, 25 Feb 2002 18:36:27 -0500 (EST) Received: by janeway.vonbek.dhs.org (Postfix, from userid 12347) id 382D6FC70A4; Mon, 25 Feb 2002 18:37:30 -0500 (EST) Date: Mon, 25 Feb 2002 18:37:30 -0500 (EST) From: John Bleichert To: GTK list Subject: Re: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I just recently setup gtk on freebsd and I had similar results. I removed what I installed, and then installed gtk using /stand/sysinstall (the proper package management, along with the pkg_* tools) and it worked fine. Try that out - at first attempt I treated it like linux/ldconfig, but they are not the same system and it had, erm, unexpected results hehe ;-) I'M rtfm on that particular subject right now. JB On Mon, 25 Feb 2002, Yu-Fong Cho spewed forth: > Hi, > > I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is > a little different, so please take a look. Thank you!!! > > I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any > gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so > and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! > > I tried to install Netscape 6.2, but it keep telling me: > > error in loading shared libraries: libgtk-1.2.so.0: cannot open shared > object file: No such file or directory. > > My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my > whole file system. There is just no libgtk-1.2.so.0. > > What's wrong with it? > > > Yu-Fong > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From pyaggi@aulamagna.com.ar Tue Feb 26 16:20:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aulamagna.com.ar (unknown [200.49.75.38]) by mail.gnome.org (Postfix) with SMTP id C913E1925D for ; Tue, 26 Feb 2002 16:20:04 -0500 (EST) Received: (qmail 4941 invoked from network); 26 Feb 2002 21:29:46 -0000 Received: from unknown (HELO there) (200.63.133.120) by 0 with SMTP; 26 Feb 2002 21:29:46 -0000 Content-Type: text/plain; charset="iso-8859-3" From: Pablo Yaggi To: gtk-list@gnome.org Subject: Slot never called Date: Tue, 26 Feb 2002 18:17:42 -0300 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Organization: Aulamagna Message-Id: <20020226212004.C913E1925D@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I new on gtk-- and also in C++, so please be patient =) I'm doing this: - I create a window with glade (with anjusta) - I create a button in that window (with glade) and connect the click signal to some slot named on_clicked (with glade) - I manually add on_clicked to the class declaration (is that correct ?) because glade didn't do it. - In that function I call the constructor of a file_select dialog created with glade. Then there is no problem the file_select dialog is created and sown. - I connected the clicked signal of the ok button to a slot named on_clicked (with glade) and add that slot to the file_select class declaration manually. - That slot is never called, why ? Pablo From adam@cfar.umd.edu Tue Feb 26 17:37:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from chia.umiacs.umd.edu (chia.umiacs.umd.edu [128.8.120.111]) by mail.gnome.org (Postfix) with ESMTP id 67D911812F; Tue, 26 Feb 2002 17:37:39 -0500 (EST) Received: from localhost (adam@localhost) by chia.umiacs.umd.edu (8.9.3/8.9.1) with ESMTP id RAA02535; Tue, 26 Feb 2002 17:37:29 -0500 (EST) X-Authentication-Warning: chia.umiacs.umd.edu: adam owned process doing -bs Date: Tue, 26 Feb 2002 17:37:29 -0500 (EST) From: Adam X-X-Sender: To: Michael Torrie Cc: =?ISO-8859-1?Q?Rams=E9s?= Morales , , Subject: Re: I think I found a freak bug on GTK+-1.3.15 In-Reply-To: <1014762810.32494.14.camel@divit.cs.byu.edu> Message-ID: X-WEB: http://www.eax.com Content-Type-X: multipart/mixed; boundary="------------3897B7E0F65FF08A89ED6C92" MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > This type of thing is very likely indicative of some memory corruption > in your code. It's unlikely to be in gtk (but could be). Just the fact > that removing the second pointer declaration makes it work indicates > that it's your code that's messing up somewhere. Just declaring a > pointer doesn't do any object initialization (ie gtk_tree_view_new type > stuff). What it does do is change your stack layout slightly such that > whatever memory corruption you're doing won't cause an immediate crash > when you remove that unused variable. Adding it back in changes offsets > just slightly so that something important on the stack is overwritten. > > Pointer errors always maifest themselves in this type of manner. Very > frustrating. Good luck. You'll want to run your code through DDD > debugger. It has some very powerful facilities for viewing your > variables etc. You can then watch what happens when the offending line > is executed. Also you can load the core file into the debugger after > the fact and see what line triggered the core dump, see the variables, > etc. Should help you establish what's happening. (DDD is run by the > command ddd. It's downloadable from the internet too -- see > freshmeat.net) actually I would suggset memory debugger. some of those include efence njamd purify (non-free) my favourie is njamd (it comes with redhat 7.2 and possibly others) run it until it stop showing any errors and the above problem should get auto-magically corrected -- Adam http://www.eax.com The Supreme Headquarters of the 32 bit registers From asmcoded@home.com Tue Feb 26 23:04:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from femail16.sdc1.sfba.home.com (femail16.sdc1.sfba.home.com [24.0.95.143]) by mail.gnome.org (Postfix) with ESMTP id C60F618122 for ; Tue, 26 Feb 2002 23:04:20 -0500 (EST) Received: from asm ([68.81.142.15]) by femail16.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20020227040420.LZHH12244.femail16.sdc1.sfba.home.com@asm> for ; Tue, 26 Feb 2002 20:04:20 -0800 Message-ID: <002f01c1bf5d$94f2fa20$6501a8c0@asm> From: "Kevin Candelaria" To: Subject: gtk-engine compile problem. Date: Tue, 26 Feb 2002 23:08:38 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002C_01C1BF1A.86836EE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_002C_01C1BF1A.86836EE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable i compiled glib all standard=20 ./configure make make install then gtk all the latest sources. but when i do gtk-engine=20 i get this: checking for gtk-config... /usr/local/bin/gtk-config checking for GTK - version >=3D 1.2.9... no *** Could not run GTK test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding GTK or finding the wrong *** version of GTK. If it is not finding GTK, you'll need to set your *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to = point *** to the installed location Also, make sure you have run ldconfig if = that *** is required on your system *** *** If you have an old version installed, it is best to remove it, = although *** you may also be able to get things to work by modifying = LD_LIBRARY_PATH *** *** If you have a RedHat 5.0 system, you should remove the GTK package = that *** came with the system with the command *** *** rpm --erase --nodeps gtk gtk-devel configure: error: *** GTK+-1.2.9 not installed - please install first = *** i have dont ldconfig and stuff but i dont understand about the = LD_LIBRARY_PATH thanks. ------=_NextPart_000_002C_01C1BF1A.86836EE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
i compiled glib all standard =
./configure
make
make install
then gtk
all the latest sources.
but when i do gtk-engine
i get this:
 
checking for gtk-config...=20 /usr/local/bin/gtk-config
checking for GTK - version >=3D 1.2.9... = no
***=20 Could not run GTK test program, checking why...
*** The test program=20 compiled, but did not run. This usually means
*** that the run-time = linker is=20 not finding GTK or finding the wrong
*** version of GTK. If it is not = finding=20 GTK, you'll need to set your
*** LD_LIBRARY_PATH environment = variable, or=20 edit /etc/ld.so.conf to point
*** to the installed location  = Also, make=20 sure you have run ldconfig if that
*** is required on your=20 system
***
*** If you have an old version installed, it is best to = remove=20 it, although
*** you may also be able to get things to work by = modifying=20 LD_LIBRARY_PATH
***
*** If you have a RedHat 5.0 system, you = should remove=20 the GTK package that
*** came with the system with the=20 command
***
***    rpm --erase --nodeps gtk=20 gtk-devel
configure: error: *** GTK+-1.2.9 not installed - please = install=20 first ***
 
i have dont ldconfig and stuff but i = dont=20 understand about the LD_LIBRARY_PATH
thanks.
 
------=_NextPart_000_002C_01C1BF1A.86836EE0-- From unicorn@minet.uni-jena.de Wed Feb 27 09:31:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fsuj20.rz.uni-jena.de (fsuj20.rz.uni-jena.de [141.35.1.18]) by mail.gnome.org (Postfix) with ESMTP id 59131184CD for ; Wed, 27 Feb 2002 09:31:38 -0500 (EST) Received: from virusscan.rz.uni-jena.de (virusscan.rz.uni-jena.de [141.35.1.23]) by fsuj20.rz.uni-jena.de (8.12.0.Beta7/8.11.1) with ESMTP id g1REVVmH008215 for ; Wed, 27 Feb 2002 15:31:31 +0100 (MET) Received: from virusscan.rz.uni-jena.de (localhost [127.0.0.1]) by virusscan.rz.uni-jena.de (8.11.6/8.11.6) with ESMTP id g1REVbq10224 for ; Wed, 27 Feb 2002 15:31:37 +0100 Received: from pax10e3.mipool.uni-jena.de (daemon@pax10e2.mipool.uni-jena.de [141.35.13.142]) by pax08e3.mipool.uni-jena.de (8.11.6/8.11.6) with ESMTP id g1REVak417168 for ; Wed, 27 Feb 2002 15:31:36 +0100 (CET) From: Randy Rueckner Received: (from unicorn@localhost) by pax10e3.mipool.uni-jena.de (8.11.6/8.11.6) id g1REVao459665 for gtk-list@gnome.org; Wed, 27 Feb 2002 15:31:36 +0100 (MET) Message-Id: <200202271431.g1REVao459665@pax10e3.mipool.uni-jena.de> Subject: progressbar update To: gtk-list@gnome.org Date: Wed, 27 Feb 2002 15:31:36 +0100 (MET) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello there! maybe someone can help me here. i've made a little gtk_progress_bar to show the progress of long calculations. i use »gtk_progress_set_value(...)« to update the progressbar and »while(g_main_iteration(FALSE))« to update the display. works fine with gtk v1.2.10, but my program must also run with gtk v1.1.5 and i have no idea how to update the display with v1.1.5. thanks in advance, randy r. From kalsuram@yahoo.com Wed Feb 27 12:45:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web21302.mail.yahoo.com (web21302.mail.yahoo.com [216.136.173.210]) by mail.gnome.org (Postfix) with SMTP id 94B6E1971E for ; Wed, 27 Feb 2002 12:45:06 -0500 (EST) Message-ID: <20020227174505.56584.qmail@web21302.mail.yahoo.com> Received: from [210.214.128.63] by web21302.mail.yahoo.com via HTTP; Wed, 27 Feb 2002 09:45:05 PST Date: Wed, 27 Feb 2002 09:45:05 -0800 (PST) From: Kal ram Subject: Number of Characters in GtkEntry widget To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want to know is there is any limit on the max no of characters entered for a GtkEntry Widget ? When I try to enter more than 7200(approx) characters the characters are getting overlapped. Thanks, kalsuram. __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com From gparrot@free.fr Thu Feb 28 02:51:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from postfix2-1.free.fr (postfix2-1.free.fr [213.228.0.9]) by mail.gnome.org (Postfix) with ESMTP id E9DBF18418 for ; Thu, 28 Feb 2002 02:51:06 -0500 (EST) Received: from gilkar (nas-cbv-1-128-110.dial.proxad.net [62.147.128.110]) by postfix2-1.free.fr (Postfix) with SMTP id 51D83150 for ; Thu, 28 Feb 2002 08:51:05 +0100 (CET) From: "Gilles Parrot" To: Subject: Zend Studio Date: Thu, 28 Feb 2002 08:50:18 +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.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I have downloaded the demo version of Zend Studio 2.0 to see if it corresponds to my needs. It is a good tool but I have a problem with my GTK developpements. Zend Studio uses its own version of php and don't read the php.ini stored in c:\windows. The php.ini stored in the Zend's directory has only two lines. I've tried to add the following line, like in the other php.ini: php-gtk.extensions = php_gtk_libglade.dll, php_gtk_sqpane.dll It doesn't work. Has anybody allready tried to use GTK with Zend Studio ? Thanks. Gilles PARROT From syed@mimos.my Thu Feb 28 04:38:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from filter.mimos.my (filter.mimos.my [192.228.137.70]) by mail.gnome.org (Postfix) with ESMTP id 43B0D181EB for ; Thu, 28 Feb 2002 04:38:06 -0500 (EST) Received: from ew.mimos.my (localhost.localdomain [127.0.0.1]) by filter.mimos.my (8.11.0/8.11.0) with ESMTP id g1S9Oim08200 for ; Thu, 28 Feb 2002 17:24:44 +0800 Received: (from root@localhost) by ew.mimos.my (8.11.6/8.11.6) id g1S9c3c27893 for gtk-list@gnome.org; Thu, 28 Feb 2002 17:38:03 +0800 (MYT) (envelope-from syed@mimos.my) Received: from mimos.my (infoniti25.nat.mimos.my [10.1.21.25]) by ew.mimos.my (8.11.6/8.11.6) with ESMTP id g1S9c2a27837 for ; Thu, 28 Feb 2002 17:38:02 +0800 (MYT) (envelope-from syed@mimos.my) Message-ID: <3C7DF9E5.34D0B8A5@mimos.my> Date: Thu, 28 Feb 2002 17:35:33 +0800 From: mrzali X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk notebook & pixmap X-scanner: scanned by Inflex 1.0.10 - (http://pldaniels.com/inflex/) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How i want to attach pixmap into gtk-notebook-tab? As far i know we can only set label on it. Any suggestion. Thanks, mr_zali From feiguin@magnet.fsu.edu Thu Feb 28 13:25:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fangio.magnet.fsu.edu (fangio.magnet.fsu.edu [146.201.234.41]) by mail.gnome.org (Postfix) with ESMTP id D36821853E for ; Thu, 28 Feb 2002 13:25:09 -0500 (EST) Received: from localhost (feiguin@localhost) by fangio.magnet.fsu.edu (8.11.6/8.11.6) with ESMTP id g1SIP9w16309 for ; Thu, 28 Feb 2002 13:25:09 -0500 (EST) X-Authentication-Warning: fangio.magnet.fsu.edu: feiguin owned process doing -bs Date: Thu, 28 Feb 2002 13:25:09 -0500 (EST) From: Adrian Feiguin To: gtk-list@gnome.org Subject: built-in types Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I wonder if somebody can shed some light on the way the BOXED data types are generated. I understand that maketypes.awk is used, are there any guidelines? Thank you! From kevin@mpcf.com Thu Feb 28 13:30:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.mpcf.com (unknown [209.215.137.161]) by mail.gnome.org (Postfix) with ESMTP id 972AF18165 for ; Thu, 28 Feb 2002 13:30:18 -0500 (EST) Received: from mpcf.com (10.0.0.8 [10.0.0.8]) by mail.mpcf.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id FKYGZG9C; Thu, 28 Feb 2002 13:27:54 -0500 Message-ID: <3C7E7669.68BAF389@mpcf.com> Date: Thu, 28 Feb 2002 13:26:49 -0500 From: kevin X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.17 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk 1.2.10 configure issues Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, First off, i am not a list member so please direct any replies to kevin@mpcf.com, thanks. I am trying to compile Gtk+1.2.10 on a Slackware 8 box. I downloaded glib1.2.10 and gtk1.2.10 tarballs from the Gtk site. Glib compiled and installed just fine but when i run ./configure for Gtk, it keeps saying glib 1.2.8 (or greater) is not installed. I run "glib-config --version" and it spits 1.2.10 back at me, so obviously it is installed and running fine. I removed the glib.h and gmodules.h from the /usr/local/include/ dir, as directed by the INSTALL file and my ld.so.conf is pointing to all the correct places for libraries. Anyone have any ideas as to where i should look first? Thanks for your help, VeKTeReX From gtw@research.att.com Thu Feb 28 16:03:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-blue.research.att.com (mail-blue.research.att.com [135.207.30.102]) by mail.gnome.org (Postfix) with ESMTP id 34094181D9 for ; Thu, 28 Feb 2002 16:03:20 -0500 (EST) Received: from postal.research.att.com (postal.research.att.com [135.207.23.30]) by mail-blue.research.att.com (Postfix) with ESMTP id C43034CF1A for ; Thu, 28 Feb 2002 16:03:19 -0500 (EST) Received: from pc-gtw.research.att.com (root@pc-gtw.research.att.com [135.207.22.247]) by postal.research.att.com (8.8.7/8.8.7) with ESMTP id PAA20602 for ; Thu, 28 Feb 2002 15:59:26 -0500 (EST) Received: (from gtw@localhost) by pc-gtw.research.att.com (8.9.3/8.9.3) id QAA25224 for gtk-list@gnome.org; Thu, 28 Feb 2002 16:03:18 -0500 Date: Thu, 28 Feb 2002 16:03:18 -0500 From: Gary Wong To: gtk-list@gnome.org Subject: pixbuf-engine: image borders when stretch = FALSE Message-ID: <20020228160318.A25166@pc-gtw.research.att.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, The pixbuf-engine (CVS head) behaviour for image borders when stretch is FALSE doesn't match what I expect. For example, suppose I am using the definition: image { ... file = "foo.png" border = { 1, 1, 1, 1 } stretch = FALSE } and foo.png is a 4x4 image which looks like this: #### #x.# #.x# #### When this image is drawn on a (say) 10x10 area, I expect to see: ########## #x.x.x.x.# #.x.x.x.x# #x.x.x.x.# #.x.x.x.x# #x.x.x.x.# #.x.x.x.x# #x.x.x.x.# #.x.x.x.x# ########## but instead I get something like the following (the "offset" varies depending on the position of the window): ########## x.##x.##x. .x##.x##.x ########## ########## x.##x.##x. .x##.x##.x ########## ########## x.##x.##x. Is this behaviour wrong? Am I using pixbuf-engine incorrectly? Or am I just expecting the wrong thing to happen? After a very brief look at the source, it seems that theme_pixbuf_render() ignores theme_pb->border_* when theme_pb->stretch is FALSE. I'm happy to mention something on bugzilla and/or have a go at modifying this function, but I thought I'd ask for advice here first in case I misunderstand the situation. Cheers, Gary. -- Gary Wong gtw@gnu.org http://www.cs.arizona.edu/~gary/ From hzeng@hf.tvia.com Thu Jan 31 19:51:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx2.hf.tvia.com (unknown [61.132.182.9]) by mail.gnome.org (Postfix) with ESMTP id 5704D18B75 for ; Thu, 31 Jan 2002 19:51:44 -0500 (EST) Received: from hzeng ([192.168.2.65]) by mx2.hf.tvia.com (8.11.6/8.11.6) with SMTP id g110gvZ00563 for ; Fri, 1 Feb 2002 08:42:57 +0800 Message-ID: <000d01c1aaba$40ddc800$4102a8c0@hf.tvia.com> From: "hzeng" To: Subject: What event has happened? Date: Fri, 1 Feb 2002 08:49:06 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: base64 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQogICAgQXQgdGhlIHZpcnR1YWwgc2NyZWVuIG9mIFhXaW5kb3csd2hlbiBJIGRvIG5vdGhp bmcgdG8gbXkgYXBwIHdpbmRvdyBhbmQgb25seSBtb3ZlIHRoZQ0KIG1vdXNlLCBzbyBteSBhcHAg d2luZG93IHdpbGwgbW92ZSBvdXQgb2YgdGhlIHZpZXcgcG9ydCBib3JkZXJlZCBieSB0aGUgbW9u aXRvci4gSW4gdGhpcw0KIHNpdHVhdGlvbiBJIHdhbnQgdG8gZG8gc29tZSB0aGluZyBpbiBteSBh cHAsIGJ1dCBob3cgY2FuIEkgZ2V0IHRoZSBzaWduYWwsIG9yIHdoYXQgZXZlbnQNCiBoYXBwZW4/ IA0KDQpUaGFuayB5b3UgdmVyeSBtdWNoICENCkh6ZW5nDQo= From kasonhuang@kinposh.com.cn Thu Jan 31 21:27:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 16770180FA for ; Thu, 31 Jan 2002 21:27:00 -0500 (EST) Subject: how to change focus problem in two tables? MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="----_=_NextPart_001_01C1AAC7.ED85BA24" Date: Fri, 1 Feb 2002 10:27:00 +0800 Message-ID: <92CD479384374A439EFA0077E7C50F821FE889@kes01.kinposh.com.cn> X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: how to change focus problem in two tables? Thread-Index: AcGqx+vblN/cEhbsEda2uQCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Cc: , "Paul Davis" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1AAC7.ED85BA24 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable how to change focus problem in two tables?

hello:
do anyone tell me = how to change focus of buttons in two GtkTable with "up down left = right"key on the condition of no mouse supporting.if a easy = way?

i find i could change = focus in one table,not happened in two tables.

eg:buttons in two = tables
__________________________________
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|_______________|_________________ |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |        table_a
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|_______________|_________________ |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|______________ | = _________________ |

        =20 3D"ole0.bmp"focus with keyboard = control 3D"ole1.bmp"
__________________________________
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |  
|_______________|_________________ = |      
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |      =
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |      
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |       table_b
|_______________|_________________ = |       
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |        
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |         
|_______________| = _________________|         &= nbsp;  =


------_=_NextPart_001_01C1AAC7.ED85BA24 Content-Type: image/bmp; name="ole0.bmp" Content-Transfer-Encoding: base64 Content-Description: ole0.bmp Content-Location: No%20AttachName Qk0yAQAAAAAAAD4AAAAoAAAADAAAAD0AAAABAAEAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAA AP///wD/8AAA/fAAAPnwAAD48AAA8PAAAPBwAADgcAAA4DAAAMAwAADAEAAAgBAAAP3wAAD98AAA /fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD9 8AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3w AAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAA AP3wAAD98AAA/fAAAP3wAAD/8AAA ------_=_NextPart_001_01C1AAC7.ED85BA24 Content-Type: image/bmp; name="ole1.bmp" Content-Transfer-Encoding: base64 Content-Description: ole1.bmp Content-Location: No%20AttachName-2 Qk0iAgAAAAAAAD4AAAAoAAAADAAAAHkAAAABAAEAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAA AP///wD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA /fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD9 8AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3w AAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAA AP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA /fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD9 8AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3w AAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA//AAAMAQAADAMAAA4DAA AOBwAADwcAAA8PAAAPjwAAD58AAA/fAAAP/wAAD/8AAA ------_=_NextPart_001_01C1AAC7.ED85BA24-- From shiraz_baig@yahoo.com Fri Feb 1 00:05:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13904.mail.yahoo.com (web13904.mail.yahoo.com [216.136.175.67]) by mail.gnome.org (Postfix) with SMTP id DBB1618779 for ; Fri, 1 Feb 2002 00:05:57 -0500 (EST) Message-ID: <20020201050557.82681.qmail@web13904.mail.yahoo.com> Received: from [203.135.6.194] by web13904.mail.yahoo.com via HTTP; Thu, 31 Jan 2002 21:05:57 PST Date: Thu, 31 Jan 2002 21:05:57 -0800 (PST) From: Shiraz Baig Subject: Re: drawing a line To: gtk-list@gnome.org In-Reply-To: <3C594C38.9080303@ng-london.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Thanks for the reply. But I have not really understood the answer. My doubt is that if Drawing the line with the timer function does not need any "expose" event. Then why is pushing_button needing it? Why can't pushing_button also draw the line without expose_event? Thanks. Shiraz --- John.Cupitt@ng-london.org.uk wrote: > Shiraz Baig wrote: > > > Hi, > > I want to draw a line when I push a button. I > have > > written the following code. It draws line thru > two > > alternative signal commands. > > a. Thru the timer function. > > b. Thru the push button. > > > > It works with the timer function. But it does not > work > > with the push button. > > > > Question: > > Can anyone suggest how can it draw the line when > I > > click the button? > > > > > Hi, you need to connect to "expose_event" and do > your repaint there. > > Don't paint on button click. Instead, change your > model (your internal > representation of what it is you are showing on the > screen), and ask for > a repaint to be queued for your window with > gtk_widget_draw(). > > Also, you have a problem with your button callback. > > The scribble example covers some of this stuff: > > http://www.gtk.org/tutorial/sec-thedrawingareawidget.html > > John > > > > > ========================================================== > > Coming soon: > Aelbert Cuyp 13 February - 12 May 2002 > > For information and tickets: > http://www.nationalgallery.org.uk __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From hp@redhat.com Fri Feb 1 00:54:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 5D7F41876E for ; Fri, 1 Feb 2002 00:54:45 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g115sho24923; Fri, 1 Feb 2002 00:54:43 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200201291451.JAA17130@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 00:54:43 -0500 In-Reply-To: <200201291451.JAA17130@renoir.op.net> Message-ID: Lines: 10 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > i sincerely hope that in a future release of the 1.2 series, > pkg-config gets added. > Note that pkg-config has some dubious "legacy hacks" in it - try "pkg-config --cflags gtk" for example. Havoc From hp@redhat.com Fri Feb 1 00:57:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wilber.gimp.org (graft.XCF.Berkeley.EDU [128.32.247.248]) by mail.gnome.org (Postfix) with ESMTP id 35C90187C7 for ; Fri, 1 Feb 2002 00:57:22 -0500 (EST) Received: from nat-pool-meridian.redhat.com ([12.107.208.200] helo=icon.labs.redhat.com) by wilber.gimp.org with esmtp (Exim 3.12 #1 (Debian)) id 16WWhN-000728-00 for ; Thu, 31 Jan 2002 21:57:21 -0800 Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g115vI224927; Fri, 1 Feb 2002 00:57:18 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Isaac Pernas" Cc: Subject: Re: GtkEntry color Background References: <003e01c1a8c4$6308c4e0$03001aac@berta> From: Havoc Pennington Date: 01 Feb 2002 00:57:18 -0500 In-Reply-To: <003e01c1a8c4$6308c4e0$03001aac@berta> Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Isaac Pernas" writes: > Estoy intentando cambiar el fondo d un GtkEntry pero por m=E1s que lo > intento no me deja. Nos=E9 que estoy haciendo mal. La versi=F3n de mis > librer=EDas Gtk es la 1.2. > I'm trying to change de background color for my GtkEntry but i can=B4t. > I don't know what i'm doing wrong. I have de Gtk+ 1.2 version. > This funcxtion changes the color of the background when youn click the > button. >=20 See http://pobox.com/~hp/gtk-colors.html Havoc From hp@redhat.com Fri Feb 1 00:58:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 6AD1F1876E for ; Fri, 1 Feb 2002 00:58:50 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g115wni24931; Fri, 1 Feb 2002 00:58:49 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Andreas Scherf Cc: Gtk Liste Subject: Re: GtkListStore getting values in Gtk2.0 References: <1012487955.25095.3.camel@xerxes> From: Havoc Pennington Date: 01 Feb 2002 00:58:49 -0500 In-Reply-To: <1012487955.25095.3.camel@xerxes> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Andreas Scherf writes: > Hello, im porting some apps to Gtk+2.0, i wondering how to get values > back from a GtkListStore ? I saw only functions to add or del values > inside the List but no function to get the data back.What i want is to > print a GtkTreeView so istored the data inside a GtkListStore but after > showing them i couldn't get the data back ? Have i messed something ? > gtk_tree_model_get() Havoc From corsepiu@faw.uni-ulm.de Fri Feb 1 01:46:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.faw.uni-ulm.de (www.faw.uni-ulm.de [134.60.100.4]) by mail.gnome.org (Postfix) with SMTP id D29A91876E for ; Fri, 1 Feb 2002 01:46:29 -0500 (EST) Received: (qmail 4670 invoked from network); 1 Feb 2002 06:46:29 -0000 Received: from ultra2.faw.uni-ulm.de (HELO mailserv.faw.uni-ulm.de) (172.16.15.2) by www-intern.faw.uni-ulm.de with SMTP; 1 Feb 2002 06:46:29 -0000 Received: (qmail 5844 invoked by uid 0); 1 Feb 2002 06:46:27 -0000 Received: from dialin6.faw.uni-ulm.de (corsepiu@172.18.1.6) by mailserv.faw.uni-ulm.de with SMTP; 1 Feb 2002 06:46:27 -0000 Subject: Re: Does GTK+ support OpenGL and Inventor ? From: Ralf Corsepius To: "Lin, Lynn" Cc: gtk-list@gnome.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1012546025.32320.462.camel@mccallum> Mime-Version: 1.0 X-Mailer: Evolution/1.0.2 Date: 01 Feb 2002 07:47:09 +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am Don, 2002-01-31 um 20.07 schrieb Lin, Lynn: > Hi there, > > If I create a GtkWidget* gtk_drawing_area_new, can I call OpenGL or > Inventor routines to draw 3D graphics on the GTK drawing area widget ? If > yes, how to do it ? There exist several more or less immature ports of InventorXt to Gtk+. You might want to consult google and search for SoGtk. I have a port of InventorXt to Gtk+ of my own, but unfortunately, it's not in a shape worth being released nor will I have time to do so in the foreseeable furture. Ralf From shiraz_baig@yahoo.com Fri Feb 1 01:58:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13903.mail.yahoo.com (web13903.mail.yahoo.com [216.136.175.29]) by mail.gnome.org (Postfix) with SMTP id BCE0118AC7 for ; Fri, 1 Feb 2002 01:58:32 -0500 (EST) Message-ID: <20020201065832.15093.qmail@web13903.mail.yahoo.com> Received: from [203.135.6.194] by web13903.mail.yahoo.com via HTTP; Thu, 31 Jan 2002 22:58:32 PST Date: Thu, 31 Jan 2002 22:58:32 -0800 (PST) From: Shiraz Baig Subject: Re: drawing a line To: Sven Neumann Cc: gtk-list@gnome.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Mr Sven Neumann has given an excellent answer. Now I understand the difference between two functions (gtk_signal_connect and gtk_signal_connect_object). I changed the parameters as suggested by Mr Neumann and viola! I am drawing the lines without "expose" event and only with pushing a button. Thanks. I Must also thank Jeff Trefftzs who gave similar views though in too abbreviated a form. Bye Shiraz --- Sven Neumann wrote: > Hi, > > Shiraz Baig writes: > > > I want to draw a line when I push a button. I have > > written the following code. It draws line thru two > > alternative signal commands. > > a. Thru the timer function. > > b. Thru the push button. > > > > It works with the timer function. But it does not > work > > with the push button. > > you will need a separate function for the button > clicked > callback since it is called with the GtkButton as > first > parameter. Alternatively you could use > gtk_signal_connect_object() which swaps the > parameters. > > > Salut, Sven __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Fri Feb 1 02:00:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wilber.gimp.org (graft.XCF.Berkeley.EDU [128.32.247.248]) by mail.gnome.org (Postfix) with ESMTP id 0C8D818D5A for ; Fri, 1 Feb 2002 02:00:09 -0500 (EST) Received: from web9902.mail.yahoo.com ([216.136.129.37]) by wilber.gimp.org with smtp (Exim 3.12 #1 (Debian)) id 16WXg8-0007dj-00 for ; Thu, 31 Jan 2002 23:00:08 -0800 Message-ID: <20020201070008.29297.qmail@web9902.mail.yahoo.com> Received: from [213.29.206.62] by web9902.mail.yahoo.com via HTTP; Thu, 31 Jan 2002 23:00:08 PST Date: Thu, 31 Jan 2002 23:00:08 -0800 (PST) From: Vahid Zahiri Subject: Re: Send signal? To: Ishan Cc: gtk-list@gtk.org In-Reply-To: <000001c1aa7b$8560d6a0$59e3e30a@ishan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi ishan i can execute callbackfunction :), but i want get selection text in other applications by button3 click on my entry. but i find better way (on GTK world)to do this. thanks Vahid --- Ishan wrote: > Why on earth would you want the computer to think > that way? Better execute > the callback function which you have written for the > clicked signal of your > button. Hope this helps, > Ishan > > > Hi All > > > I want send a click signal to a widget, > > is it possible? > > > I want widget thinked mouse click on it. > > is it possible? > > > Thanks in advance > > Vahid Zahiri > > __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From inimss@yahoo.com Fri Feb 1 03:07:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by mail.gnome.org (Postfix) with SMTP id F0F55181BB for ; Fri, 1 Feb 2002 03:07:56 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 1 Feb 2002 08:07:54 -0000 Message-ID: <3C5A4CCD.ED06E07D@yahoo.com> Date: Fri, 01 Feb 2002 13:37:41 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: [INIMSS] GtkCList :: Wrapping Text in Cells Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, How can I make the text in the cell of GtkCList wrap-around within it? If it can't be done with GtkCList, then which widget should I use for the purpose? Thanks Dino Cherian K _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From lettere@di.unipi.it Fri Feb 1 03:29:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailserver.di.unipi.it (apis.di.unipi.it [131.114.4.6]) by mail.gnome.org (Postfix) with ESMTP id 5DFF6185C6 for ; Fri, 1 Feb 2002 03:29:03 -0500 (EST) Received: from idra.di.unipi.it (idra [131.114.2.113]) by mailserver.di.unipi.it (8.11.6/8.11.6) with ESMTP id g118T1823411 for ; Fri, 1 Feb 2002 09:29:01 +0100 Received: from localhost (lettere@localhost) by idra.di.unipi.it (8.11.2/8.9.1) with ESMTP id g118SKU27731 for ; Fri, 1 Feb 2002 09:28:20 +0100 X-Authentication-Warning: idra.di.unipi.it: lettere owned process doing -bs Date: Fri, 1 Feb 2002 09:28:16 +0100 (CET) From: Marco Lettere To: Subject: colors in pixmap Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello everyone, suppose I've a pixmap with a color which I want to modify with 3 slider widgets for RGB. The way I'm performing it now is to destroy the old pixmap, change the xpm C structure and then recreate the pixmap with the new data. Isn't there a better way (less expensive) of performing this operation I'm thinking about something like gtk_pixmap_update_color(Gtkpixmap* pix,int colorIndex,GdkColor* newColor); thanx, M. ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| From coframi.balr001@rd.francetelecom.com Fri Feb 1 03:32:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id C223818303 for ; Fri, 1 Feb 2002 03:32:46 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1AK0QZ7L>; Fri, 1 Feb 2002 09:32:38 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , gtk-list@gnome.org Subject: RE: [INIMSS] GtkCList :: Wrapping Text in Cells Date: Fri, 1 Feb 2002 09:32:38 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-a778d693-1656-11d6-b1e4-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-a778d693-1656-11d6-b1e4-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AAFB.01CD9CD0" ------_=_NextPart_001_01C1AAFB.01CD9CD0 Content-Type: text/plain Hello, you can get the text of a GtkCList cell using gtk_clist_get_text (GtkCList * clist, gchar * texte); and put a text in a cell using gtk_clist_set_text (GtkCList * clist, int row, int column, gchar * texte); With your variable texte, you can use all string.h functions (strcat, strcpy, sprintf...) I don't know if I understood your question Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : vendredi 1 fevrier 2002 09:08 A : gtk-list@gnome.org Objet : [INIMSS] GtkCList :: Wrapping Text in Cells Hi, How can I make the text in the cell of GtkCList wrap-around within it? If it can't be done with GtkCList, then which widget should I use for the purpose? Thanks Dino Cherian K _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AAFB.01CD9CD0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] GtkCList :: Wrapping Text in Cells

Hello,

you can get the text of a GtkCList cell using = gtk_clist_get_text (GtkCList * clist, gchar * texte); and put a text in = a cell using gtk_clist_set_text (GtkCList * clist,  int row, int = column, gchar * texte);


With your variable texte, you can use all string.h = functions (strcat, strcpy, sprintf...)

I don't know if I understood your question

Isabelle


-----Message d'origine-----
De : Dino Cherian K [mailto:inimss@yahoo.com]
Envoye : vendredi 1 fevrier 2002 09:08
A : gtk-list@gnome.org
Objet : [INIMSS] GtkCList :: Wrapping Text in = Cells


Hi,

How can I make the text in the cell of GtkCList = wrap-around within it?

If it can't be done with GtkCList, then which widget = should I use for
the purpose?

Thanks
Dino Cherian K

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

------_=_NextPart_001_01C1AAFB.01CD9CD0-- ------=_NextPartTM-000-a778d693-1656-11d6-b1e4-00508b69ab48-- From inimss@yahoo.com Fri Feb 1 04:00:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp018.mail.yahoo.com (smtp018.mail.yahoo.com [216.136.174.115]) by mail.gnome.org (Postfix) with SMTP id 403C0188EB for ; Fri, 1 Feb 2002 04:00:46 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 1 Feb 2002 09:00:38 -0000 Message-ID: <3C5A592D.40C96998@yahoo.com> Date: Fri, 01 Feb 2002 14:30:29 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: zze-coframi balr001 Cc: gtk-list@gnome.org Subject: Re: [INIMSS] GtkCList :: Wrapping Text in Cells References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I think you had not really understood the situation. I actually meant to wrap the text only in the display of the cell and not the data. By default the text that exceeds the limit of the cell is truncated. I want to avoid this truncation and make the text displayed wrapped-down so that we can view the whole text. May be the height of the row will have to be varied. Thanks Dino Cherian K > zze-coframi balr001 wrote: > > Hello, > > you can get the text of a GtkCList cell using gtk_clist_get_text > (GtkCList * clist, gchar * texte); and put a text in a cell using > gtk_clist_set_text (GtkCList * clist, int row, int column, gchar * > texte); > > With your variable texte, you can use all string.h functions (strcat, > strcpy, sprintf...) > > I don't know if I understood your question > > Isabelle > > -----Message d'origine----- > De : Dino Cherian K [mailto:inimss@yahoo.com] > Envoye : vendredi 1 fevrier 2002 09:08 > A : gtk-list@gnome.org > Objet : [INIMSS] GtkCList :: Wrapping Text in Cells > > Hi, > > How can I make the text in the cell of GtkCList wrap-around within it? > > If it can't be done with GtkCList, then which widget should I use for > the purpose? > > Thanks > Dino Cherian K > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From sven@gimp.org Fri Feb 1 04:07:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id AAF031892D for ; Fri, 1 Feb 2002 04:07:43 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16WZfZ-00035w-00; Fri, 01 Feb 2002 10:07:41 +0100 To: Shiraz Baig Cc: gtk-list@gnome.org Subject: Re: drawing a line References: <20020201065832.15093.qmail@web13903.mail.yahoo.com> From: Sven Neumann Date: 01 Feb 2002 10:07:40 +0100 In-Reply-To: <20020201065832.15093.qmail@web13903.mail.yahoo.com> Message-ID: Lines: 17 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Shiraz Baig writes: > I changed the parameters as suggested by Mr Neumann > and viola! I am drawing the lines without "expose" > event and only with pushing a button. now move your mouse over the line you've just drawn or obscure the window by moving another window over it. Assuming you are using a drawing_area to draw on directly, X will clear the area you've just painted on and since you aren't redrawing in your expose event handler, the line you've just drawn will be gone. Salut, Sven From coframi.balr001@rd.francetelecom.com Fri Feb 1 04:56:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id 5FD6818AF1 for ; Fri, 1 Feb 2002 04:56:00 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Fri, 1 Feb 2002 10:55:29 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , zze-coframi balr001 Cc: gtk-list@gnome.org Subject: RE: [INIMSS] GtkCList :: Wrapping Text in Cells Date: Fri, 1 Feb 2002 10:55:29 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, Now I undestand your point. Why don't you use ScrolledWindow ?? If you don't want to see the scroll bar, you put the gtk_policy to Never I explain : 1- You create you window 2- You add you scrolledwindow and put gtk_scrolled_window_set_policy (scrollwindow, GTK_POLICY_NEVER, GTK_POLICY_NEVER) 3- You add your GtkCList in your scrolledwindow With that you will be able to see the whole text that is in the cell using you arrow key Does this solution is OK for you ?? Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : vendredi 1 fevrier 2002 10:00 A : zze-coframi balr001 Cc : gtk-list@gnome.org Objet : Re: [INIMSS] GtkCList :: Wrapping Text in Cells Hi I think you had not really understood the situation. I actually meant to wrap the text only in the display of the cell and not the data. By default the text that exceeds the limit of the cell is truncated. I want to avoid this truncation and make the text displayed wrapped-down so that we can view the whole text. May be the height of the row will have to be varied. Thanks Dino Cherian K > zze-coframi balr001 wrote: > > Hello, > > you can get the text of a GtkCList cell using gtk_clist_get_text > (GtkCList * clist, gchar * texte); and put a text in a cell using > gtk_clist_set_text (GtkCList * clist, int row, int column, gchar * > texte); > > With your variable texte, you can use all string.h functions (strcat, > strcpy, sprintf...) > > I don't know if I understood your question > > Isabelle > > -----Message d'origine----- > De : Dino Cherian K [mailto:inimss@yahoo.com] > Envoye : vendredi 1 fevrier 2002 09:08 > A : gtk-list@gnome.org > Objet : [INIMSS] GtkCList :: Wrapping Text in Cells > > Hi, > > How can I make the text in the cell of GtkCList wrap-around within it? > > If it can't be done with GtkCList, then which widget should I use for > the purpose? > > Thanks > Dino Cherian K > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From John.Cupitt@ng-london.org.uk Fri Feb 1 06:56:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id D0786187D5 for ; Fri, 1 Feb 2002 06:56:47 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HG7G>; Fri, 1 Feb 2002 11:56:46 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HG7F; Fri, 1 Feb 2002 11:56:39 -0000 Message-ID: <3C5A7F3C.1@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: hzeng@hf.tvia.com Cc: gtk-list@gnome.org Subject: Re: What event has happened? Date: Fri, 1 Feb 2002 11:42:52 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="windows-1252" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hzeng wrote: > At the virtual screen of XWindow,when I do nothing to my app window and only move the > mouse, so my app window will move out of the view port bordered by the monitor. In this > situation I want to do some thing in my app, but how can I get the signal, or what event > happen? Hi, I think you need "enter_notify_event" and "leave_notify_event". The event watch in testgtk uses these sugnals. John ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From John.Cupitt@ng-london.org.uk Fri Feb 1 07:20:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 36098187D5 for ; Fri, 1 Feb 2002 07:20:18 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HG90>; Fri, 1 Feb 2002 12:20:17 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HG99; Fri, 1 Feb 2002 12:20:07 -0000 Message-ID: <3C5A84BB.5080605@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: shiraz_baig@yahoo.com Cc: gtk-list@gnome.org Subject: Re: drawing a line Date: Fri, 1 Feb 2002 12:06:19 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hiya, try the page for the drawing area widget: http://gtk.org/tutorial/sec-thedrawingareawidget.html I think this explains the problem. With a window system, you don't just draw on the screen. What happens when your window is covered or uncovered? You need to be able to recreate any part of your display when it is exposed. The rule is: do all drawing in the expose handler. If you want to draw in respose to an event, set some hints somewhere and trigger an expose. As Sven said, you also have a bug in your button callback. John Shiraz Baig wrote: > Hi, > Thanks for the reply. But I have not really > understood the answer. My doubt is that if Drawing the > line with the timer function does not need any > "expose" event. Then why is pushing_button needing it? > Why can't pushing_button also draw the line without > expose_event? > Thanks. > Shiraz > > --- John.Cupitt@ng-london.org.uk wrote: > >>Shiraz Baig wrote: >> >> > Hi, >> > I want to draw a line when I push a button. I >>have >> > written the following code. It draws line thru >>two >> > alternative signal commands. >> > a. Thru the timer function. >> > b. Thru the push button. >> > >> > It works with the timer function. But it does not >>work >> > with the push button. >> > >> > Question: >> > Can anyone suggest how can it draw the line when >>I >> > click the button? >> > >> >> >>Hi, you need to connect to "expose_event" and do >>your repaint there. >> >>Don't paint on button click. Instead, change your >>model (your internal >>representation of what it is you are showing on the >>screen), and ask for >>a repaint to be queued for your window with >>gtk_widget_draw(). >> >>Also, you have a problem with your button callback. >> >>The scribble example covers some of this stuff: >> ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From hzeng@hf.tvia.com Fri Feb 1 08:06:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx2.hf.tvia.com (unknown [61.132.182.9]) by mail.gnome.org (Postfix) with ESMTP id 73843182C8 for ; Fri, 1 Feb 2002 08:06:28 -0500 (EST) Received: from hzeng ([192.168.2.65]) by mx2.hf.tvia.com (8.11.6/8.11.6) with SMTP id g11CvSZ10197; Fri, 1 Feb 2002 20:57:28 +0800 Message-ID: <000801c1ab20$de71fd00$4102a8c0@hf.tvia.com> From: "hzeng" To: Cc: References: <3C5A7F3C.1@ng-london.org.uk> Subject: Re: What event has happened? Date: Fri, 1 Feb 2002 21:03:38 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: base64 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQogICAgSSB0aGluayB5b3UgbWlzdW5kZXJzdGFuZCBteSBtZWFuaW5nLiBJIHdhbnQgdG8g Z2V0IHRoZSBzaWduYWwgZW1pdCBieSB0aGUgYXBwIHdpbmRvdyB3aGVuIA0KICAgIEkgbW92ZSB0 aGUgbW91c2UgaW4gYW55d2h3ZXJlIG9mIHRoZSB2aXJ0dWFsIGRlc2t0b3AsIHRoZSBlbnRlcl9u b3RpZnlfZXZlbnQgYW5kIHRoZSBsZWF2ZV9ub3RpZnlfZXZlbnQgaXMNCiAgICBlbWl0IG9ubHkg dGhlIG1vdXNlIGVudGVyIHRoZSBhcHAgd2luZG93IGFuZCBsZWF2ZSB0aGUgYXBwIHdpbmRvdy4g SSBtdXN0IGRvIHNvbWUgc3BlY2lhbCB3b3JrIHdoZW4gDQogICAgbXkgYXBwIG1vdmUgb3V0IG9m IHRoZSBtb25pdG9yIGJvcmRlciBpbiB2ZXJ0dWFsIHNjcmVlbiBvciBldmVuIHRoZSB2aXN1YWwg cG9zaXRpb24gb2YgdGhlIGFwcCB3aW5kb3cgY2hhbmdlZCwNCiAgICBJIGp1c3QgZG9uJ3Qga25v dyBpZiB0aGVyZSBhcmUgc3VjaCBzaWduYWxzIGluIGd0ay4gTWF5YmUgIHRoZSBndGsgZG9uJ3Qg Y2FyZSBhYm91dCB0aGVzZSBzaXR1YWwgYW5kIGxlZnQgaXQgdG8gYmUgZG9uZSBieSANCiAgICBY c2VydmVyLiAgSSBoYXZlIHRyeSBtYW55IGV2ZW50IGJ1dCB0aGV5IGRvZXNuJ3QgZml0LiBTb3Jy eSBhYm91dCBteSBwb29yIEVuZ2xpc2guDQogICAgVGhhbmtzIGFueXdheSENCkh6ZW5nDQogICAg DQotLS0tLSBPcmlnaW5hbCBNZXNzYWdlIC0tLS0tIA0KDQo+IA0KPiBIaSwgSSB0aGluayB5b3Ug bmVlZCAiZW50ZXJfbm90aWZ5X2V2ZW50IiBhbmQgImxlYXZlX25vdGlmeV9ldmVudCIuIFRoZSAN Cj4gZXZlbnQgd2F0Y2ggaW4gdGVzdGd0ayB1c2VzIHRoZXNlIHN1Z25hbHMuDQo+IA0KPiBKb2hu DQo+IA0KDQo= From John.Cupitt@ng-london.org.uk Fri Feb 1 08:15:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 0AD2C18711 for ; Fri, 1 Feb 2002 08:15:10 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HHDC>; Fri, 1 Feb 2002 13:15:09 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HHDB; Fri, 1 Feb 2002 13:15:05 -0000 Message-ID: <3C5A919D.8040800@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: hzeng@hf.tvia.com Cc: gtk-list@gnome.org Subject: Re: What event has happened? Date: Fri, 1 Feb 2002 13:01:17 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="windows-1252" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ah, sorry, I misunderstood. You could grab the pointer: then you get all mouse movement until you ungrab. Of course, this will stop all other programs from working :-( so you must be very careful. gdk_pointer_grab() and gdk_pointer_ungrab(). John hzeng wrote: > Hi, > I think you misunderstand my meaning. I want to get the signal emit by the app window when > I move the mouse in anywhwere of the virtual desktop, the enter_notify_event and the leave_notify_event is > emit only the mouse enter the app window and leave the app window. I must do some special work when > my app move out of the monitor border in vertual screen or even the visual position of the app window changed, > I just don't know if there are such signals in gtk. Maybe the gtk don't care about these situal and left it to be done by > Xserver. I have try many event but they doesn't fit. Sorry about my poor English. > Thanks anyway! > Hzeng > > ----- Original Message ----- > > >>Hi, I think you need "enter_notify_event" and "leave_notify_event". The >>event watch in testgtk uses these sugnals. >> >>John >> >> > -- John Cupitt, john.cupitt@ng-london.org.uk, +44 (0)20 7747 2570 VASARI Lab, The National Gallery, Trafalgar Square, London, WC2N 5DN ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From lnx1138@us.ibm.com Fri Feb 1 09:31:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from e1.ny.us.ibm.com (e1.ny.us.ibm.com [32.97.182.101]) by mail.gnome.org (Postfix) with ESMTP id A6CC418D28 for ; Fri, 1 Feb 2002 09:31:12 -0500 (EST) Received: from northrelay01.pok.ibm.com (northrelay01.pok.ibm.com [9.117.200.21]) by e1.ny.us.ibm.com (8.9.3/8.9.3) with ESMTP id JAA488954 for ; Fri, 1 Feb 2002 09:28:05 -0500 Received: from chavez.austin.ibm.com (chavez.austin.ibm.com [9.53.216.228]) by northrelay01.pok.ibm.com (8.11.1m3/NCO v5.01) with ESMTP id g11EVAg190060 for ; Fri, 1 Feb 2002 09:31:10 -0500 Subject: Re: GUI design From: Luciano Chavez To: gtk-list@gnome.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 01 Feb 2002 08:31:07 -0600 Message-Id: <1012573868.2054.4.camel@chavez> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-01-30 at 20:34, Raymond Wan wrote: > > Hi all, > > Not directly related to GTK+, but I was wondering if anyone could > suggest a book which talks about how to design a GUI. In particular, what > are the do's and don'ts of GUI design. And, even better, if such a book > exists which is directed at GTK+. > > Thanks in advance! > > Ray > Ray, If you want to follow UI guidelines related to GTK+ or GNOME apps, read what the GNOME Usability Project is proposing. See http://developer.gnome.org/projects/gup/. > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- regards, Luciano Chavez lnx1138@us.ibm.com http://sf.net/projects/evms From engenharia3@maqplas.com.br Fri Feb 1 09:47:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id 1CE6018D21 for ; Fri, 1 Feb 2002 09:47:31 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11ElP35095578 for ; Fri, 1 Feb 2002 12:47:25 -0200 (BRST) Subject: GTK without X ??? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 12:44:08 -0200 Message-Id: <1012574649.1123.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I hear (in Linux for PlayStation2 Forum) about some version of GTK+ that access directly the framebuffer, does not need for X, this proceed ????, if yes where can I found information about this (for PC X86) ? Thanks in advance Flavio Alberto From lapenta_jm@yahoo.com Fri Feb 1 09:53:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14002.mail.yahoo.com (web14002.mail.yahoo.com [216.136.175.93]) by mail.gnome.org (Postfix) with SMTP id DDEFE18458 for ; Fri, 1 Feb 2002 09:53:27 -0500 (EST) Message-ID: <20020201145327.81863.qmail@web14002.mail.yahoo.com> Received: from [129.55.200.20] by web14002.mail.yahoo.com via HTTP; Fri, 01 Feb 2002 06:53:27 PST Date: Fri, 1 Feb 2002 06:53:27 -0800 (PST) From: Jason LaPenta Subject: Problem with *widget on show_event w/ idle process To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm using glade. I'm starting up an idle process when the main window is shown. I'm passing a widget pointer to the idle process so it can do widget lookups with lookup_widget(). If I start the idle process under a show event, then lookup_widget fails and causes my program to exit; Any ideas why this is? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From coframi.balr001@rd.francetelecom.com Fri Feb 1 09:56:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id D456418E0B for ; Fri, 1 Feb 2002 09:56:46 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Fri, 1 Feb 2002 15:50:59 +0100 Message-ID: From: zze-coframi balr001 To: =?iso-8859-1?Q?=27Fl=E1vio_Alberto_Lopes_Soares=27?= , gtk-list Subject: RE: GTK without X ??? Date: Fri, 1 Feb 2002 15:50:59 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, there's a version of GTK that directly access the framebuffer, but it's under developpement. It's GTK 1.3.X This version of GTK doesn't need an X Server. You can find it in = rmpfind.net or on gtk.org You can find information on it on gtk.org or directfb.org Isabelle -----Message d'origine----- De : Fl=E1vio Alberto Lopes Soares [mailto:engenharia3@maqplas.com.br] Envoy=E9 : vendredi 1 f=E9vrier 2002 15:44 =C0 : gtk-list Objet : GTK without X ??? Hello all, I hear (in Linux for PlayStation2 Forum) about some version of GTK+ = that access directly the framebuffer, does not need for X, this proceed = ????, if yes where can I found information about this (for PC X86) ? Thanks in advance Flavio Alberto _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From coframi.balr001@rd.francetelecom.com Fri Feb 1 10:01:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id 67E6F196B6 for ; Fri, 1 Feb 2002 10:01:47 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1AK0RA7Q>; Fri, 1 Feb 2002 16:01:33 +0100 Message-ID: From: zze-coframi balr001 To: 'Jason LaPenta' , gtk-list@gnome.org Subject: RE: Problem with *widget on show_event w/ idle process Date: Fri, 1 Feb 2002 16:01:33 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-a778e229-1656-11d6-b1e4-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-a778e229-1656-11d6-b1e4-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AB31.568C0A50" ------_=_NextPart_001_01C1AB31.568C0A50 Content-Type: text/plain Hello, Do you have named your widget using gtk_widget_set_name (GtkWidget * , char *); ?? Before making your call to lookup_widget, try to print the result of gtk_widget_get_name (GtkWidget *) GtkWdget * window = gtk_widget_new (....) gtk_widget_set_name (window, "toto"); ............. In a callback on a widget, GtkWidget * window = (GtkWidget *) lookup_widget (widget, "toto"); Isabelle -----Message d'origine----- De : Jason LaPenta [mailto:lapenta_jm@yahoo.com] Envoye : vendredi 1 fevrier 2002 15:53 A : gtk-list@gnome.org Objet : Problem with *widget on show_event w/ idle process Hello, I'm using glade. I'm starting up an idle process when the main window is shown. I'm passing a widget pointer to the idle process so it can do widget lookups with lookup_widget(). If I start the idle process under a show event, then lookup_widget fails and causes my program to exit; Any ideas why this is? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AB31.568C0A50 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: Problem with *widget on show_event w/ idle process

Hello,

Do you have named your widget using = gtk_widget_set_name (GtkWidget * , char *); ??

Before making your call to lookup_widget, try to = print the result of gtk_widget_get_name (GtkWidget *)

GtkWdget * window =3D gtk_widget_new (....)
gtk_widget_set_name (window, = "toto");

.............

In a callback on a widget,

GtkWidget * window =3D (GtkWidget *) lookup_widget = (widget, "toto");

Isabelle


-----Message d'origine-----
De : Jason LaPenta [mailto:lapenta_jm@yahoo.com]
Envoye : vendredi 1 fevrier 2002 15:53
A : gtk-list@gnome.org
Objet : Problem with *widget on show_event w/ idle = process


Hello,

I'm using glade.
I'm starting up an idle process when the main
window is shown. I'm passing a widget pointer = to
the idle process so it can do widget lookups = with

lookup_widget(). If I start the idle process
under a show event, then lookup_widget fails = and
causes my program to exit; Any ideas why this = is?


Thanks
Jason

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! =
http://auctions.yahoo.com
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list

------_=_NextPart_001_01C1AB31.568C0A50-- ------=_NextPartTM-000-a778e229-1656-11d6-b1e4-00508b69ab48-- From engenharia3@maqplas.com.br Fri Feb 1 10:15:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id A274619717 for ; Fri, 1 Feb 2002 10:15:26 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11FFKnp096677; Fri, 1 Feb 2002 13:15:21 -0200 (BRST) Subject: RE: GTK without X ??? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: zze-coframi balr001 Cc: gtk-list In-Reply-To: References: Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 13:11:59 -0200 Message-Id: <1012576326.1122.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Can I compile my application normally (I making my application using GTK+ 1.2.10), or I must make some changes ? Thanks in advance Flavio Alberto Em 01 Feb 2002 15:50:59 +0100, zze-coframi balr001 escreveu: > Hello, > > there's a version of GTK that directly access the framebuffer, but it's > under developpement. It's GTK 1.3.X > This version of GTK doesn't need an X Server. You can find it in rmpfind.net > or on gtk.org > You can find information on it on gtk.org or directfb.org > > Isabelle > From coframi.balr001@rd.francetelecom.com Fri Feb 1 10:21:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id CAA591973E for ; Fri, 1 Feb 2002 10:21:04 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Fri, 1 Feb 2002 16:19:37 +0100 Message-ID: From: zze-coframi balr001 To: =?iso-8859-1?Q?=27Fl=E1vio_Alberto_Lopes_Soares=27?= , zze-coframi balr001 Cc: gtk-list Subject: RE: GTK without X ??? Date: Fri, 1 Feb 2002 16:19:37 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, you don't need to make some changes. You just have to compile your code using the GTK 1.3.X for linux-fb librairies. Isabelle -----Message d'origine----- De : Fl=E1vio Alberto Lopes Soares [mailto:engenharia3@maqplas.com.br] Envoy=E9 : vendredi 1 f=E9vrier 2002 16:12 =C0 : zze-coframi balr001 Cc : gtk-list Objet : RE: GTK without X ??? Can I compile my application normally (I making my application using GTK+ 1.2.10), or I must make some changes ? Thanks in advance Flavio Alberto Em 01 Feb 2002 15:50:59 +0100, zze-coframi balr001 escreveu: > Hello, >=20 > there's a version of GTK that directly access the framebuffer, but = it's > under developpement. It's GTK 1.3.X > This version of GTK doesn't need an X Server. You can find it in rmpfind.net > or on gtk.org > You can find information on it on gtk.org or directfb.org >=20 > Isabelle >=20 From paulm@khan.dev.magentatech.com.au Thu Jan 31 21:14:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from magentatech.com.au (magent3.lnk.telstra.net [139.130.198.117]) by mail.gnome.org (Postfix) with ESMTP id 4DDFC18AED for ; Thu, 31 Jan 2002 21:14:44 -0500 (EST) Received: from khan.magentatech.com.au (kmsv [134.18.8.154]) by magentatech.com.au (8.8.8+Sun/8.8.8) with ESMTP id NAA16045 for ; Fri, 1 Feb 2002 13:07:59 +1100 (EST) Received: from blade.dev.magentatech.com.au (blade [134.18.8.105]) by khan.magentatech.com.au (8.9.3+Sun/8.9.3) with ESMTP id NAA08881 for ; Fri, 1 Feb 2002 13:16:02 +1100 (EST) Received: from blade (blade [134.18.8.105]) by blade.dev.magentatech.com.au (8.9.3+Sun/8.9.3) with SMTP id NAA09610 for ; Fri, 1 Feb 2002 13:16:24 +1100 (EST) Message-Id: <200202010216.NAA09610@blade.dev.magentatech.com.au> Date: Fri, 1 Feb 2002 13:16:24 +1100 (EST) From: Paul Moore Reply-To: Paul Moore Subject: linker problems To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: MULTIPART/mixed; BOUNDARY=Herd_of_Elephants_369_000 X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4.2 SunOS 5.8 sun4u sparc Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --Herd_of_Elephants_369_000 Content-Type: TEXT/plain; charset=US-ASCII Content-Transfer-Encoding: QUOTED-PRINTABLE Content-MD5: G2Hm9R+GHLsWMHwVOBHRwQ== Hi - I'm trying to build gtk+-1.2.10 on Solaris 8.=20 I started off by building glib-1.2.10. I ran the configure script, did a ma= ke,=20 followed by a make install. See the attached file (lib_list) for a list of= =20 libraries that were installed as a result of the make install. I then tried to build gtk+-1.2.10. I can not get the configure script to=20 complete successfully. The error is ------------------------------------------------------------------------- *** Could not run GLIB test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding GLIB or finding the wrong *** version of GLIB. If it is not finding GLIB, you'll need to set your *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point *** to the installed location Also, make sure you have run ldconfig if tha= t *** is required on your system *** *** If you have an old version installed, it is best to remove it, although *** you may also be able to get things to work by modifying LD_LIBRARY_PATH *** *** If you have a RedHat 5.0 system, you should remove the GTK package that *** came with the system with the command *** *** rpm --erase --nodeps gtk gtk-devel configure: error:=20 *** GLIB 1.2.8 or better is required. The latest version of GLIB *** is always available from ftp://ftp.gtk.org/. ------------------------------------------------------------------------- I've set the LD_LIBRARY_PATH as requested. Here is what the LD_LIBRARY_PATH= is=20 set to: /usr/lib:/usr/ucblib:/usr/dt/lib:/usr/openwin/lib:/usr/ccs/lib:/opt/SUNWspr= o/lib :/opt1/SUNWspro/lib:/opt/galaxy/lib:/opt/SUNWmotif/lib:/opt/softbench/lib:/= users /davidf/lib:/usr/local/lib/glib/include:/usr/local/lib:/usr/local/lib/pkgco= nfig You can see that the location of the GLIB libs (/usr/loacl/lib) appears in = the=20 LD_LIBRARY_PATH variable. Can you give me any idea why configure fails when I have correctly specifie= d the=20 path to the glib libraries. Thanks - Paul Moore. --Herd_of_Elephants_369_000 Content-Type: TEXT/plain; name=configure_output; charset=US-ASCII; x-unix-mode=0664 Content-Transfer-Encoding: BASE64 Content-Description: configure_output Content-MD5: GBWxdok639TVsFXVZBCVaw== U2NyaXB0IHN0YXJ0ZWQgb24gRnJpIEZlYiAwMSAxMjo1Nzo0MCAyMDAyCkRJ U1BMQVkgYWxyZWFkeSBzZXQgdG86IGJsYWRlOjIuMA0Ka2hhbltwYXVsbV0+ IC4vY29uZmlndXJlDQpsb2FkaW5nIGNhY2hlIC4vY29uZmlnLmNhY2hlDQpj aGVja2luZyBmb3IgYSBCU0QgY29tcGF0aWJsZSBpbnN0YWxsLi4uIC4vaW5z dGFsbC1zaCAtYw0KY2hlY2tpbmcgd2hldGhlciBidWlsZCBlbnZpcm9ubWVu dCBpcyBzYW5lLi4uIHllcw0KY2hlY2tpbmcgd2hldGhlciBtYWtlIHNldHMg JHtNQUtFfS4uLiAoY2FjaGVkKSB5ZXMNCmNoZWNraW5nIGZvciB3b3JraW5n IGFjbG9jYWwuLi4gbWlzc2luZw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYXV0 b2NvbmYuLi4gbWlzc2luZw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYXV0b21h a2UuLi4gbWlzc2luZw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYXV0b2hlYWRl ci4uLiBtaXNzaW5nDQpjaGVja2luZyBmb3Igd29ya2luZyBtYWtlaW5mby4u LiBtaXNzaW5nDQpjaGVja2luZyBob3N0IHN5c3RlbSB0eXBlLi4uIHNwYXJj LXN1bi1zb2xhcmlzMi44DQpjaGVja2luZyBidWlsZCBzeXN0ZW0gdHlwZS4u LiBzcGFyYy1zdW4tc29sYXJpczIuOA0KY2hlY2tpbmcgZm9yIHJhbmxpYi4u LiAoY2FjaGVkKSByYW5saWINCmNoZWNraW5nIGZvciBnY2MuLi4gKGNhY2hl ZCkgY2MNCmNoZWNraW5nIHdoZXRoZXIgdGhlIEMgY29tcGlsZXIgKGNjICAp IHdvcmtzLi4uIHllcw0KY2hlY2tpbmcgd2hldGhlciB0aGUgQyBjb21waWxl ciAoY2MgICkgaXMgYSBjcm9zcy1jb21waWxlci4uLiBubw0KY2hlY2tpbmcg d2hldGhlciB3ZSBhcmUgdXNpbmcgR05VIEMuLi4gKGNhY2hlZCkgbm8NCmNo ZWNraW5nIHdoZXRoZXIgY2MgYWNjZXB0cyAtZy4uLiAoY2FjaGVkKSB5ZXMN CmNoZWNraW5nIGZvciBub24tR05VIGxkLi4uIChjYWNoZWQpIC91c3IvY2Nz L2Jpbi9sZA0KY2hlY2tpbmcgaWYgdGhlIGxpbmtlciAoL3Vzci9jY3MvYmlu L2xkKSBpcyBHTlUgbGQuLi4gKGNhY2hlZCkgbm8NCmNoZWNraW5nIGZvciBC U0QtY29tcGF0aWJsZSBubS4uLiAoY2FjaGVkKSAvdXNyL2Njcy9iaW4vbm0g LXANCmNoZWNraW5nIHdoZXRoZXIgbG4gLXMgd29ya3MuLi4gKGNhY2hlZCkg eWVzDQpsb2FkaW5nIGNhY2hlIC4vY29uZmlnLmNhY2hlIHdpdGhpbiBsdGNv bmZpZw0KY2hlY2tpbmcgd2hldGhlciB3ZSBhcmUgdXNpbmcgR05VIEMuLi4g bm8NCmNoZWNraW5nIGZvciBvYmplY3Qgc3VmZml4Li4uIG8NCmNoZWNraW5n IGZvciBleGVjdXRhYmxlIHN1ZmZpeC4uLiAoY2FjaGVkKSBubw0KY2hlY2tp bmcgZm9yIGNjIG9wdGlvbiB0byBwcm9kdWNlIFBJQy4uLiAtS1BJQw0KY2hl Y2tpbmcgaWYgY2MgUElDIGZsYWcgLUtQSUMgd29ya3MuLi4geWVzDQpjaGVj a2luZyBpZiBjYyBzdXBwb3J0cyAtYyAtbyBmaWxlLm8uLi4geWVzDQpjaGVj a2luZyBpZiBjYyBzdXBwb3J0cyAtYyAtbyBmaWxlLmxvLi4uIG5vDQpjaGVj a2luZyBpZiBjYyBzdGF0aWMgZmxhZyAtQnN0YXRpYyB3b3Jrcy4uLiAtQnN0 YXRpYw0KY2hlY2tpbmcgaWYgdGhlIGxpbmtlciAoL3Vzci9jY3MvYmluL2xk KSBpcyBHTlUgbGQuLi4gbm8NCmNoZWNraW5nIHdoZXRoZXIgdGhlIGxpbmtl ciAoL3Vzci9jY3MvYmluL2xkKSBzdXBwb3J0cyBzaGFyZWQgbGlicmFyaWVz Li4uIHllcw0KY2hlY2tpbmcgY29tbWFuZCB0byBwYXJzZSAvdXNyL2Njcy9i aW4vbm0gLXAgb3V0cHV0Li4uIG9rDQpjaGVja2luZyBob3cgdG8gaGFyZGNv ZGUgbGlicmFyeSBwYXRocyBpbnRvIHByb2dyYW1zLi4uIGltbWVkaWF0ZQ0K Y2hlY2tpbmcgZm9yIC91c3IvY2NzL2Jpbi9sZCBvcHRpb24gdG8gcmVsb2Fk IG9iamVjdCBmaWxlcy4uLiAtcg0KY2hlY2tpbmcgZHluYW1pYyBsaW5rZXIg Y2hhcmFjdGVyaXN0aWNzLi4uIHNvbGFyaXMyLjggbGQuc28NCmNoZWNraW5n IGlmIGxpYnRvb2wgc3VwcG9ydHMgc2hhcmVkIGxpYnJhcmllcy4uLiB5ZXMN CmNoZWNraW5nIHdoZXRoZXIgdG8gYnVpbGQgc2hhcmVkIGxpYnJhcmllcy4u LiB5ZXMNCmNoZWNraW5nIHdoZXRoZXIgdG8gYnVpbGQgc3RhdGljIGxpYnJh cmllcy4uLiB5ZXMNCmNoZWNraW5nIGZvciBvYmpkaXIuLi4gLmxpYnMNCmNy ZWF0aW5nIGxpYnRvb2wNCmxvYWRpbmcgY2FjaGUgLi9jb25maWcuY2FjaGUN CmNoZWNraW5nIHdoZXRoZXIgdG8gZW5hYmxlIG1haW50YWluZXItc3BlY2lm aWMgcG9ydGlvbnMgb2YgTWFrZWZpbGVzLi4uIG5vDQpjaGVja2luZyBob3N0 IHN5c3RlbSB0eXBlLi4uIHNwYXJjLXN1bi1zb2xhcmlzMi44DQpjaGVja2lu ZyB3aGV0aGVyIGJ1aWxkIGVudmlyb25tZW50IGlzIHNhbmUuLi4geWVzDQpj aGVja2luZyBmb3IgZ2NjLi4uIChjYWNoZWQpIGNjDQpjaGVja2luZyB3aGV0 aGVyIHRoZSBDIGNvbXBpbGVyIChjYyAtZyApIHdvcmtzLi4uIHllcw0KY2hl Y2tpbmcgd2hldGhlciB0aGUgQyBjb21waWxlciAoY2MgLWcgKSBpcyBhIGNy b3NzLWNvbXBpbGVyLi4uIG5vDQpjaGVja2luZyB3aGV0aGVyIHdlIGFyZSB1 c2luZyBHTlUgQy4uLiAoY2FjaGVkKSBubw0KY2hlY2tpbmcgd2hldGhlciBj YyBhY2NlcHRzIC1nLi4uIChjYWNoZWQpIHllcw0KY2hlY2tpbmcgZm9yIFBP U0lYaXplZCBJU0MuLi4gbm8NCmNoZWNraW5nIGZvciBjYyBvcHRpb24gdG8g YWNjZXB0IEFOU0kgQy4uLiBub25lIG5lZWRlZA0KY2hlY2tpbmcgZm9yIGEg QlNEIGNvbXBhdGlibGUgaW5zdGFsbC4uLiAuL2luc3RhbGwtc2ggLWMNCmNo ZWNraW5nIHdoZXRoZXIgbWFrZSBzZXRzICR7TUFLRX0uLi4gKGNhY2hlZCkg eWVzDQpjaGVja2luZyBmb3IgZ2F3ay4uLiBubw0KY2hlY2tpbmcgZm9yIG1h d2suLi4gbm8NCmNoZWNraW5nIGZvciBuYXdrLi4uIG5hd2sNCmNoZWNraW5n IGZvciBwZXJsNS4uLiBubw0KY2hlY2tpbmcgZm9yIHBlcmwuLi4gcGVybA0K Y2hlY2tpbmcgZm9yIGluZGVudC4uLiBpbmRlbnQNCmNoZWNraW5nIHdoZXRo ZXIgbWFrZSBpcyBHTlUgTWFrZS4uLiBubw0KY2hlY2tpbmcgaG93IHRvIHJ1 biB0aGUgQyBwcmVwcm9jZXNzb3IuLi4gY2MgLUUNCmNoZWNraW5nIGZvciBB TlNJIEMgaGVhZGVyIGZpbGVzLi4uIHllcw0KY2hlY2tpbmcgZm9yIHdvcmtp bmcgY29uc3QuLi4geWVzDQpjaGVja2luZyBmb3IgaW5saW5lLi4uIG5vDQpj aGVja2luZyBmb3Igb2ZmX3QuLi4geWVzDQpjaGVja2luZyBmb3Igc2l6ZV90 Li4uIHllcw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYWxsb2NhLmguLi4geWVz DQpjaGVja2luZyBmb3IgYWxsb2NhLi4uIHllcw0KY2hlY2tpbmcgZm9yIHVu aXN0ZC5oLi4uIHllcw0KY2hlY2tpbmcgZm9yIGdldHBhZ2VzaXplLi4uIHll cw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgbW1hcC4uLiB5ZXMNCmNoZWNraW5n IGZvciBhcmd6LmguLi4gbm8NCmNoZWNraW5nIGZvciBsaW1pdHMuaC4uLiB5 ZXMNCmNoZWNraW5nIGZvciBsb2NhbGUuaC4uLiB5ZXMNCmNoZWNraW5nIGZv ciBubF90eXBlcy5oLi4uIHllcw0KY2hlY2tpbmcgZm9yIG1hbGxvYy5oLi4u IHllcw0KY2hlY2tpbmcgZm9yIHN0cmluZy5oLi4uIHllcw0KY2hlY2tpbmcg Zm9yIHVuaXN0ZC5oLi4uIChjYWNoZWQpIHllcw0KY2hlY2tpbmcgZm9yIHN5 cy9wYXJhbS5oLi4uIHllcw0KY2hlY2tpbmcgZm9yIGdldGN3ZC4uLiB5ZXMN CmNoZWNraW5nIGZvciBtdW5tYXAuLi4geWVzDQpjaGVja2luZyBmb3IgcHV0 ZW52Li4uIHllcw0KY2hlY2tpbmcgZm9yIHNldGVudi4uLiBubw0KY2hlY2tp bmcgZm9yIHNldGxvY2FsZS4uLiB5ZXMNCmNoZWNraW5nIGZvciBzdHJjaHIu Li4geWVzDQpjaGVja2luZyBmb3Igc3RyY2FzZWNtcC4uLiB5ZXMNCmNoZWNr aW5nIGZvciBzdHJkdXAuLi4geWVzDQpjaGVja2luZyBmb3IgX19hcmd6X2Nv dW50Li4uIG5vDQpjaGVja2luZyBmb3IgX19hcmd6X3N0cmluZ2lmeS4uLiBu bw0KY2hlY2tpbmcgZm9yIF9fYXJnel9uZXh0Li4uIG5vDQpjaGVja2luZyBm b3Igc3RwY3B5Li4uIG5vDQpjaGVja2luZyBmb3IgTENfTUVTU0FHRVMuLi4g eWVzDQpjaGVja2luZyB3aGV0aGVyIE5MUyBpcyByZXF1ZXN0ZWQuLi4geWVz DQpjaGVja2luZyBmb3IgbGliaW50bC5oLi4uIHllcw0KY2hlY2tpbmcgZm9y IGRnZXR0ZXh0IGluIGxpYmMuLi4geWVzDQpjaGVja2luZyBmb3IgbXNnZm10 Li4uIC9iaW4vbXNnZm10DQpjaGVja2luZyBmb3IgZGNnZXR0ZXh0Li4uIHll cw0KY2hlY2tpbmcgZm9yIGdtc2dmbXQuLi4gL2Jpbi9tc2dmbXQNCmNoZWNr aW5nIGZvciB4Z2V0dGV4dC4uLiAvYmluL3hnZXR0ZXh0DQpmb3VuZCB4Z2V0 dGV4dCBwcm9ncmFtIGlzIG5vdCBHTlUgeGdldHRleHQ7IGlnbm9yZSBpdA0K Y2hlY2tpbmcgZm9yIGNhdGFsb2dzIHRvIGJlIGluc3RhbGxlZC4uLiAgYXog Y2EgY3MgZGEgZGUgZWwgZXMgZXQgZXUgZmkgZnIgZ2EgZ2wgaHIgaHUgaXQg amEga28gbHQgbmwgbm8gbm4gcGwgcHQgcHRfQlIgcm8gcnUgc2sgc2wgc3Ag c3Igc3YgdHIgdWsgdmkgd2EgemhfQ04uR0IyMzEyIHpoX1RXLkJpZzUNCmNo ZWNraW5nIGZvciBleHRyYSBmbGFncyB0byBnZXQgQU5TSSBsaWJyYXJ5IHBy b3RvdHlwZXMuLi4gbm9uZSBuZWVkZWQNCmNoZWNraW5nIGZvciBleHRyYSBm bGFncyBmb3IgUE9TSVggY29tcGxpYW5jZS4uLiBub25lIG5lZWRlZA0KY2hl Y2tpbmcgZm9yIGdsaWItY29uZmlnLi4uIC91c3IvbG9jYWwvYmluL2dsaWIt Y29uZmlnDQpjaGVja2luZyBmb3IgR0xJQiAtIHZlcnNpb24gPj0gMS4yLjgu Li4gbm8NCioqKiBDb3VsZCBub3QgcnVuIEdMSUIgdGVzdCBwcm9ncmFtLCBj aGVja2luZyB3aHkuLi4NCioqKiBUaGUgdGVzdCBwcm9ncmFtIGNvbXBpbGVk LCBidXQgZGlkIG5vdCBydW4uIFRoaXMgdXN1YWxseSBtZWFucw0KKioqIHRo YXQgdGhlIHJ1bi10aW1lIGxpbmtlciBpcyBub3QgZmluZGluZyBHTElCIG9y IGZpbmRpbmcgdGhlIHdyb25nDQoqKiogdmVyc2lvbiBvZiBHTElCLiBJZiBp dCBpcyBub3QgZmluZGluZyBHTElCLCB5b3UnbGwgbmVlZCB0byBzZXQgeW91 cg0KKioqIExEX0xJQlJBUllfUEFUSCBlbnZpcm9ubWVudCB2YXJpYWJsZSwg b3IgZWRpdCAvZXRjL2xkLnNvLmNvbmYgdG8gcG9pbnQNCioqKiB0byB0aGUg aW5zdGFsbGVkIGxvY2F0aW9uICBBbHNvLCBtYWtlIHN1cmUgeW91IGhhdmUg cnVuIGxkY29uZmlnIGlmIHRoYXQNCioqKiBpcyByZXF1aXJlZCBvbiB5b3Vy IHN5c3RlbQ0KKioqDQoqKiogSWYgeW91IGhhdmUgYW4gb2xkIHZlcnNpb24g aW5zdGFsbGVkLCBpdCBpcyBiZXN0IHRvIHJlbW92ZSBpdCwgYWx0aG91Z2gN CioqKiB5b3UgbWF5IGFsc28gYmUgYWJsZSB0byBnZXQgdGhpbmdzIHRvIHdv cmsgYnkgbW9kaWZ5aW5nIExEX0xJQlJBUllfUEFUSA0KKioqDQoqKiogSWYg eW91IGhhdmUgYSBSZWRIYXQgNS4wIHN5c3RlbSwgeW91IHNob3VsZCByZW1v dmUgdGhlIEdUSyBwYWNrYWdlIHRoYXQNCioqKiBjYW1lIHdpdGggdGhlIHN5 c3RlbSB3aXRoIHRoZSBjb21tYW5kDQoqKioNCioqKiAgICBycG0gLS1lcmFz ZSAtLW5vZGVwcyBndGsgZ3RrLWRldmVsDQpjb25maWd1cmU6IGVycm9yOiAN CioqKiBHTElCIDEuMi44IG9yIGJldHRlciBpcyByZXF1aXJlZC4gVGhlIGxh dGVzdCB2ZXJzaW9uIG9mIEdMSUINCioqKiBpcyBhbHdheXMgYXZhaWxhYmxl IGZyb20gZnRwOi8vZnRwLmd0ay5vcmcvLg0Ka2hhbltwYXVsbV0+IGV4aXQK c2NyaXB0IGRvbmUgb24gRnJpIEZlYiAwMSAxMjo1ODoxNCAyMDAyCg== --Herd_of_Elephants_369_000 Content-Type: TEXT/plain; name=lib_list; charset=us-ascii; x-unix-mode=0664 Content-Description: lib_list Content-MD5: REcIQAPQJl9I9JwWGankUA== total 3904 -rw-r--r-- 1 root other 8096 Feb 21 2001 a2ps.header.ps drwxrwxr-x 3 paulm vicpol 512 Jan 31 18:58 glib lrwxrwxrwx 1 paulm vicpol 21 Jan 31 19:33 libglib-1.2.so.0 -> libglib-1.2.so.0.0.10 -rwxr-xr-x 1 paulm vicpol 549796 Jan 31 19:33 libglib-1.2.so.0.0.10 -rw-r--r-- 1 paulm vicpol 1267956 Jan 31 19:33 libglib.a -rwxr-xr-x 1 paulm vicpol 668 Jan 31 19:33 libglib.la lrwxrwxrwx 1 paulm vicpol 21 Jan 31 19:33 libglib.so -> libglib-1.2.so.0.0.10 lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgmodule-1.2.so.0 -> libgmodule-1.2.so.0.0.10 -rwxr-xr-x 1 paulm vicpol 21492 Jan 31 19:33 libgmodule-1.2.so.0.0.10 -rw-r--r-- 1 paulm vicpol 49908 Jan 31 19:33 libgmodule.a -rw-r--r-- 1 paulm vicpol 694 Jan 31 19:33 libgmodule.la lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgmodule.so -> libgmodule-1.2.so.0.0.10 lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgthread-1.2.so.0 -> libgthread-1.2.so.0.0.10 -rwxr-xr-x 1 paulm vicpol 17304 Jan 31 19:33 libgthread-1.2.so.0.0.10 -rw-r--r-- 1 paulm vicpol 47040 Jan 31 19:33 libgthread.a -rwxr-xr-x 1 paulm vicpol 698 Jan 31 19:33 libgthread.la lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgthread.so -> libgthread-1.2.so.0.0.10 drwxrwxr-x 2 paulm vicpol 512 Jan 31 19:33 pkgconfig --Herd_of_Elephants_369_000-- From engenharia3@maqplas.com.br Fri Feb 1 11:01:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id C858718776 for ; Fri, 1 Feb 2002 11:01:42 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11G0sCV016065 for ; Fri, 1 Feb 2002 14:00:59 -0200 (BRST) Subject: Catching keys combinations From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 13:58:12 -0200 Message-Id: <1012579101.1122.2.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello again, I need to catch key combinations (ex.: CTRL + X + any key) , my application windows are connected with the key_press_event, but I view only 1 key press in moment, what I do ? Thanks in advance Flavio Alberto From lapenta_jm@yahoo.com Fri Feb 1 11:04:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14006.mail.yahoo.com (web14006.mail.yahoo.com [216.136.175.122]) by mail.gnome.org (Postfix) with SMTP id 37F7918123 for ; Fri, 1 Feb 2002 11:04:59 -0500 (EST) Message-ID: <20020201160458.86534.qmail@web14006.mail.yahoo.com> Received: from [129.55.200.20] by web14006.mail.yahoo.com via HTTP; Fri, 01 Feb 2002 08:04:58 PST Date: Fri, 1 Feb 2002 08:04:58 -0800 (PST) From: Jason LaPenta Subject: Problem passing pointer to widget with gtk_idle_add() To: gtk-list@gnome.org Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hello, When I pass a pointer to a widget with void on_scan_window_show( GtkWidget *widget, gpointer user_data ) { printf( " adding main_idle 0x%x\n", widget ); g_idle_id = gtk_idle_add( main_idle, widget ); } By the time the user_data pointer gets to gint main_idle ( gpointer user_data ) { ... } My user_data( which should be a pointer to widget ) looks like it got casted to a 16bit int for some reason. At the very least it is mangled. Anybody know why? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From hp@redhat.com Fri Feb 1 11:10:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 03D9C18215 for ; Fri, 1 Feb 2002 11:10:40 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11GAcw25262; Fri, 1 Feb 2002 11:10:38 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: zze-coframi balr001 , gtk-list Subject: Re: GTK without X ??? References: <1012576326.1122.1.camel@flavio.maqplas> From: Havoc Pennington Date: 01 Feb 2002 11:10:38 -0500 In-Reply-To: <1012576326.1122.1.camel@flavio.maqplas> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Fl=E1vio Alberto Lopes Soares writes: > Can I compile my application normally (I making my application using > GTK+ 1.2.10), or I must make some changes ? >=20 You will need to port to 1.3.x/2.0, which is fairly simple and a good idea anyway. There's some information in the reference manual: http://developer.gnome.org/doc/API/2.0/gtk/gtk-framebuffer.html Havoc From hp@redhat.com Fri Feb 1 11:12:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 5DFDA197DC for ; Fri, 1 Feb 2002 11:12:11 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11GCB825266; Fri, 1 Feb 2002 11:12:11 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: gtk-list@gnome.org Subject: Re: GUI design References: <1012573868.2054.4.camel@chavez> From: Havoc Pennington Date: 01 Feb 2002 11:12:11 -0500 In-Reply-To: <1012573868.2054.4.camel@chavez> Message-ID: Lines: 8 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "User Interface Design for Programmers" by Joel Spolsky is good. It's online in shortened form but the paper version is enough better to be worth buying I think. Havoc From pbd@op.net Fri Feb 1 11:31:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 260051825C for ; Fri, 1 Feb 2002 11:31:39 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA15209; Fri, 1 Feb 2002 11:31:34 -0500 (EST) Message-Id: <200202011631.LAA15209@renoir.op.net> To: Fl vio Alberto Lopes Soares Cc: gtk-list Subject: Re: Catching keys combinations In-reply-to: Your message of "01 Feb 2002 13:58:12 -0200." <1012579101.1122.2.camel@flavio.maqplas> Date: Fri, 01 Feb 2002 11:29:08 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I need to catch key combinations (ex.: CTRL + X + any key) , my >application windows are connected with the key_press_event, but I view >only 1 key press in moment, what I do ? if i understand your question (which i am not confident about), then you must keep track of keys yourself. modifier keys known to the X server will change the "state" field of a GdkEventKey. in general, keys like "ctrl" and "alt" are set up as modifier keys. the "X" key will not be. so, you need to create a data structure to track which keys are "down", and modify your action according to its state. --p From pbd@op.net Fri Feb 1 11:32:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 0A27519816 for ; Fri, 1 Feb 2002 11:32:28 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA15282; Fri, 1 Feb 2002 11:32:21 -0500 (EST) Message-Id: <200202011632.LAA15282@renoir.op.net> To: Havoc Pennington Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX In-reply-to: Your message of "01 Feb 2002 00:54:43 EST." Date: Fri, 01 Feb 2002 11:29:55 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > >Paul Davis writes: >> i sincerely hope that in a future release of the 1.2 series, >> pkg-config gets added. >> > >Note that pkg-config has some dubious "legacy hacks" in it - try >"pkg-config --cflags gtk" for example. which version? 0.8.0 just reports an error if i try that. From hp@redhat.com Fri Feb 1 12:04:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 9D92518109 for ; Fri, 1 Feb 2002 12:04:54 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11H4rs25349; Fri, 1 Feb 2002 12:04:53 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011632.LAA15282@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 12:04:52 -0500 In-Reply-To: <200202011632.LAA15282@renoir.op.net> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > > >Paul Davis writes: > >> i sincerely hope that in a future release of the 1.2 series, > >> pkg-config gets added. > >> > > > >Note that pkg-config has some dubious "legacy hacks" in it - try > >"pkg-config --cflags gtk" for example. > > which version? 0.8.0 just reports an error if i try that. 0.8 should have this. I'm pretty sure it was there almost from the start, even before 0.8. What error do you get? If you "strace -f" is there any fork/exec of gtk-config going on? Havoc From hp@redhat.com Fri Feb 1 12:08:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id E88EF18109 for ; Fri, 1 Feb 2002 12:08:32 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11H8Sn25353; Fri, 1 Feb 2002 12:08:28 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "K P-W" Cc: gtk-list@gnome.org Subject: Re: setting the font in a program using gtk 1.3.12 References: From: Havoc Pennington Date: 01 Feb 2002 12:08:28 -0500 In-Reply-To: Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "K P-W" writes: > I have been trying to find out how tp set the font and the fontsize in > my program using gtk version 1.3.12 because the standard font is > unreadable. This really isn't a reason to hardcode the font in your app - that will just result in every app having a different font. What you need to do is fix the default font on your system. You can do this by editing etc/pango/pangox.aliases if using old-style X fonts and etc/X11/XftConfig if using Xft fonts. Change what the "sans" alias points to. If your font is just too small, you have DPI set wrong on your X server. Do "xdpyinfo" to get the current DPI. Measure your monitor with a ruler, and put its correct size in /etc/X11/XF86Config (see "man XF86Config" - search for DisplaySize). Havoc From rsteinke@w-link.net Fri Feb 1 12:11:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 279B818E33 for ; Fri, 1 Feb 2002 12:11:11 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.33 #1 (Debian)) id 16WhDO-0002NH-00; Fri, 01 Feb 2002 09:11:06 -0800 Date: Fri, 01 Feb 2002 09:11:06 -0800 From: rsteinke@w-link.net To: lettere@di.unipi.it, gtk-list@gnome.org Subject: Re: colors in pixmap Message-ID: <3C5ACC2A.nail6X81NWRBW@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Marco Lettere > > hello everyone, > > suppose I've a pixmap with a color which I want to modify with 3 slider > widgets for RGB. > The way I'm performing it now is to destroy the old pixmap, change the xpm > C structure and then recreate the pixmap with the new data. > Isn't there a better way (less expensive) of performing this operation > I'm thinking about something like > > gtk_pixmap_update_color(Gtkpixmap* pix,int colorIndex,GdkColor* newColor); Is this just a solid color pixmap? If so, you could just use gdk_draw_rectangle(), and avoid using the xpm entirely. If not, you probably should create a series of pixmaps, one for each color, and swap them in and out. Ron Steinke From engenharia3@maqplas.com.br Fri Feb 1 12:20:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id 3669018246 for ; Fri, 1 Feb 2002 12:20:43 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11HJxCV021112; Fri, 1 Feb 2002 15:20:00 -0200 (BRST) Subject: Re: GTK without X ??? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Havoc Pennington Cc: zze-coframi balr001 , gtk-list In-Reply-To: References: <1012576326.1122.1.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 15:17:21 -0200 Message-Id: <1012583843.1123.3.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello again Where can I download GTK+2.0 ? Thanks Flavio Alberto Em 01 Feb 2002 11:10:38 -0500, Havoc Pennington escreveu: > > Flávio Alberto Lopes Soares writes: > > Can I compile my application normally (I making my application using > > GTK+ 1.2.10), or I must make some changes ? > > > > You will need to port to 1.3.x/2.0, which is fairly simple and a good > idea anyway. > > There's some information in the reference manual: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-framebuffer.html > > Havoc From sven@gimp.org Fri Feb 1 12:27:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id BCA1A187C6 for ; Fri, 1 Feb 2002 12:27:38 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16WhGL-00008f-00; Fri, 01 Feb 2002 18:14:09 +0100 To: Havoc Pennington Cc: Paul Davis , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011632.LAA15282@renoir.op.net> From: Sven Neumann Date: 01 Feb 2002 18:14:09 +0100 In-Reply-To: Message-ID: Lines: 35 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Havoc Pennington writes: > Paul Davis writes: > > > > > >Paul Davis writes: > > >> i sincerely hope that in a future release of the 1.2 series, > > >> pkg-config gets added. > > >> > > > > > >Note that pkg-config has some dubious "legacy hacks" in it - try > > >"pkg-config --cflags gtk" for example. pkg-config --libs gtk Package gtk was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk' found which pkg-config /usr/local/bin/pkg-config which gtk-config /usr/bin/gtk-config > If you "strace -f" is there any fork/exec of gtk-config going on? I hope you are joking here. Forking gtk-config would be a really evil hack. If that's indeed what pkg-config does, a crash is what you deserve. Salut, Sven From pbd@op.net Fri Feb 1 12:30:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9B5E618E17 for ; Fri, 1 Feb 2002 12:30:27 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA22617; Fri, 1 Feb 2002 12:30:21 -0500 (EST) Message-Id: <200202011730.MAA22617@renoir.op.net> To: Havoc Pennington Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX In-reply-to: Your message of "01 Feb 2002 12:04:52 EST." Date: Fri, 01 Feb 2002 12:27:55 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >0.8 should have this. I'm pretty sure it was there almost from the >start, even before 0.8. > >What error do you get? > >If you "strace -f" is there any fork/exec of gtk-config going on? it doesn't fork/exec it, doesn't open it, stat it, read it or mmap it. --p From hp@redhat.com Fri Feb 1 13:04:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id D836519836 for ; Fri, 1 Feb 2002 13:04:56 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11I4th07499; Fri, 1 Feb 2002 13:04:55 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Sven Neumann Cc: Paul Davis , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011632.LAA15282@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 13:04:54 -0500 In-Reply-To: Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sven Neumann writes: > I hope you are joking here. Forking gtk-config would be a really > evil hack. If that's indeed what pkg-config does, a crash is what > you deserve. > It allows you to use PKG_CHECK_MODULES with the GNOME 1 platform. It's kind of a cheesy special case, but there's nothing broken about it. (Other than it doesn't seem to work for you but does work for me, I don't understand what that could possibly be about.) Havoc From hp@redhat.com Fri Feb 1 13:05:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id A7C8719836 for ; Fri, 1 Feb 2002 13:05:45 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11I5ig07503; Fri, 1 Feb 2002 13:05:44 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: zze-coframi balr001 , gtk-list Subject: Re: GTK without X ??? References: <1012576326.1122.1.camel@flavio.maqplas> <1012583843.1123.3.camel@flavio.maqplas> From: Havoc Pennington Date: 01 Feb 2002 13:05:44 -0500 In-Reply-To: <1012583843.1123.3.camel@flavio.maqplas> Message-ID: Lines: 7 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Fl=E1vio Alberto Lopes Soares writes: > Where can I download GTK+2.0 ? Get 1.3.13 (the unstable version that will become 2.0). It's on ftp.gtk.org. Havoc From pbd@op.net Fri Feb 1 13:17:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id B8E0B18760 for ; Fri, 1 Feb 2002 13:17:11 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA28161; Fri, 1 Feb 2002 13:17:05 -0500 (EST) Message-Id: <200202011817.NAA28161@renoir.op.net> To: Havoc Pennington Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX In-reply-to: Your message of "01 Feb 2002 13:04:54 EST." Date: Fri, 01 Feb 2002 13:14:39 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> I hope you are joking here. Forking gtk-config would be a really >> evil hack. If that's indeed what pkg-config does, a crash is what >> you deserve. >> > >It allows you to use PKG_CHECK_MODULES with the GNOME 1 platform. It's >kind of a cheesy special case, but there's nothing broken about it. ah. thats different. thats an m4 macro that probably calls pkg-config and handles failure. that doesn't mean pkg-config itself can handle it. --p From seberino@dt092n42.san.rr.com Fri Feb 1 14:10:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 7138018772 for ; Fri, 1 Feb 2002 14:10:49 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16Wj5F-00009e-00 for gtk-list@gnome.org; Fri, 01 Feb 2002 11:10:49 -0800 Date: Fri, 1 Feb 2002 11:10:49 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: Is this "thread-safe" in GTK+.... Message-ID: <20020201111049.B527@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I want to use pthreads to have a thread that just generates numbers used by GTK+ in another thread for drawing. (pixmap plot of the numbers) I believe variables are global with pthreads but are there any gotchas to this? Do I need to use semaphores? (I must find out what they are first!) :( Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From scherfa@web.de Fri Feb 1 14:22:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id D6BF3181B8 for ; Fri, 1 Feb 2002 14:22:53 -0500 (EST) Received: from [62.180.24.173] (helo=u-173-24.mannheim.ipdial.viaginterkom.de) by smtp.web.de with asmtp (Exim 4.11 #37) id 16WjFc-0002ML-00; Fri, 01 Feb 2002 20:21:33 +0100 Subject: Re: GNode and GtkCTree From: Andreas Scherf To: Randy Rueckner Cc: Gtk Liste In-Reply-To: <200201311440.g0VEe69198610@pax10e3.mipool.uni-jena.de> References: <200201311440.g0VEe69198610@pax10e3.mipool.uni-jena.de> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 01 Feb 2002 20:21:36 +0100 Message-Id: <1012591297.1591.2.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am Don, 2002-01-31 um 15.40 schrieb Randy Rueckner: > hello there! > > i write a little application to manipulate and filter magnetic resonance > tomographie - images using glib/gtk. > the main part is done - gtk is really great, but now i have a little > problem and hope someone here can help me. > i want to build a GtkCTree which shows the local images, but that is no > easy task. > the images are named as follows: xxxx-yyy-zzz.ima, where xxxx, yyy, zzz > are integers (xxxx ist the patient id, yyy the study no and zzz the image > no in the study yyy). > the GtkCTree should look like this: > > ---local IMA's // the root_item > |-+-3331 // patient_id = 3331 > |-+-4222 > |---4546 > | |-+-2 // study_no = 2 ( for patient_id = 4546) > | |-+-3 > | |---6 > | | |-23 // image_no = 23 (in study_no = 6) > | | |-24 // filename for this entry: 4546-6-24.ima > | | |-25 > | | |-84 > | |-+-8 // study_no = 8 > |-+-5123 // this is the next patient_id > |-+-5423 > > i hope you understand what i mean. > so i read all image names into an array, split them and build an GNode > tree. my GNode - tree is correct. > now i tried to add my GNode_root_item into an empty GtkCTree. > but in my application there is only an empty item shown, like this: > > -+- > > and nothing more... > i can click on plus, but without an effect. where is the rest of my tree. > please help me. > > thanks in advance > randy There are a few things that goes wrong here, but you could send me your code and i will have a look at it. Or you change your app to work with gtk+2.0 the Tree and list functions are now a lot easier to handle and adding pictures or widgets is simpler than in gtk+1.2 i think in long term it was better to choose gtk+2.0 for this task. MfG Scherfy -- Andreas Scherf ICQ: 52910964 scherfa@web.de b.de From hp@redhat.com Fri Feb 1 14:59:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id C533B18923 for ; Fri, 1 Feb 2002 14:59:19 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11JxGc07370; Fri, 1 Feb 2002 14:59:16 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011817.NAA28161@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 14:59:16 -0500 In-Reply-To: <200202011817.NAA28161@renoir.op.net> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > ah. thats different. thats an m4 macro that probably calls pkg-config > and handles failure. that doesn't mean pkg-config itself can handle it. > No, pkg-config itself definitely does ask a set of legacy *-config scripts for results if it can't find .pc files for a module. I wrote the code, so I'm sure it exists. ;-) I think I see the problem now - "pkg-config --cflags gtk" goes via gnome-config, which you probably don't have. Change it to "pkg-config --cflags gtk+" (add the "+") and it will call gtk-config instead. If that still doesn't work, or you do have gnome-config installed, then send me the output if you add the --debug option. Havoc From rwalden@tripos.com Fri Feb 1 16:48:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id 20B94181CC for ; Fri, 1 Feb 2002 16:48:35 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id PAA26482 for <@firewall.tripos.com:gtk-list@gnome.org>; Fri, 1 Feb 2002 15:48:34 -0600 (CST) Received: from elara.tripos.com(172.20.5.15) by gatekeeper.tripos.com via smap (V5.5) id xma026467; Fri, 1 Feb 02 15:48:17 -0600 Received: from ariel.tripos.com (ariel [172.20.5.145]) by tripos.com (980919.SGI.STAND) via ESMTP id PAA04804 for ; Fri, 1 Feb 2002 15:48:16 -0600 (CST) Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id PAA27663 for ; Fri, 1 Feb 2002 15:48:16 -0600 (CST) Message-ID: <3C5B0D1F.54F3BA42@tripos.com> Date: Fri, 01 Feb 2002 15:48:15 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 Cc: gtk-list@gnome.org Subject: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It seems to me that glib innow REQUIRES the use of GNU gettext, which is covered under GPL. If that's true, then GTK2 can no longer be used for commercial software development. Is this intentional? Am I missing something? Is there a way to use glib/GTK2 without GNU gettext? Thanks, Ralph Walden -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Fri Feb 1 17:26:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 967EA183AA for ; Fri, 1 Feb 2002 17:26:34 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11MQXq31536; Fri, 1 Feb 2002 17:26:33 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ralph Walden Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> From: Havoc Pennington Date: 01 Feb 2002 17:26:32 -0500 In-Reply-To: <3C5B0D1F.54F3BA42@tripos.com> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > It seems to me that glib innow REQUIRES the use of > GNU gettext, which is covered under GPL. > > If that's true, then GTK2 can no longer be used > for commercial software development. > > Is this intentional? > > Am I missing something? Is there a way to use glib/GTK2 without > GNU gettext? > GNU gettext is now available under the LGPL, at our request. I think GTK is supposed to still work with other gettext, though. Havoc From rwalden@tripos.com Fri Feb 1 17:32:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id 56D641863B for ; Fri, 1 Feb 2002 17:32:45 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id QAA27608; Fri, 1 Feb 2002 16:32:44 -0600 (CST) Received: from elara.tripos.com(172.20.5.15) by gatekeeper.tripos.com via smap (V5.5) id xma027604; Fri, 1 Feb 02 16:32:01 -0600 Received: from ariel.tripos.com (ariel [172.20.5.145]) by tripos.com (980919.SGI.STAND) via ESMTP id QAA05226; Fri, 1 Feb 2002 16:32:00 -0600 (CST) Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id QAA05357; Fri, 1 Feb 2002 16:31:59 -0600 (CST) Message-ID: <3C5B175F.6CD6F8AD@tripos.com> Date: Fri, 01 Feb 2002 16:31:59 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Where can I obtain the LGPL version of gettext? I downloaded the gettext-0.11 version from gnu.org, and there is no mention of LGPL, only GPL. Thanks, Ralph Walden Havoc Pennington wrote: > > Ralph Walden writes: > > It seems to me that glib innow REQUIRES the use of > > GNU gettext, which is covered under GPL. > > > > If that's true, then GTK2 can no longer be used > > for commercial software development. > > > > Is this intentional? > > > > Am I missing something? Is there a way to use glib/GTK2 without > > GNU gettext? > > > > GNU gettext is now available under the LGPL, at our request. > > I think GTK is supposed to still work with other gettext, though. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From rwalden@tripos.com Fri Feb 1 17:34:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id BED7818C92 for ; Fri, 1 Feb 2002 17:34:45 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id QAA27665; Fri, 1 Feb 2002 16:34:45 -0600 (CST) Received: from elara.tripos.com(172.20.5.15) by gatekeeper.tripos.com via smap (V5.5) id xma027660; Fri, 1 Feb 02 16:34:30 -0600 Received: from ariel.tripos.com (ariel [172.20.5.145]) by tripos.com (980919.SGI.STAND) via ESMTP id QAA05240; Fri, 1 Feb 2002 16:34:29 -0600 (CST) Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id QAA09534; Fri, 1 Feb 2002 16:34:29 -0600 (CST) Message-ID: <3C5B17F5.3F536D54@tripos.com> Date: Fri, 01 Feb 2002 16:34:29 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Oops, sorry. I didn't look closely enough. in the NEWS file with gettext-0.11: Version 0.10.40 - September 2001 * The libintl library is now covered by the GNU LGPL. The tools are still covered by the GNU GPL. Thanks, Ralph Walden Havoc Pennington wrote: > > Ralph Walden writes: > > It seems to me that glib innow REQUIRES the use of > > GNU gettext, which is covered under GPL. > > > > If that's true, then GTK2 can no longer be used > > for commercial software development. > > > > Is this intentional? > > > > Am I missing something? Is there a way to use glib/GTK2 without > > GNU gettext? > > > > GNU gettext is now available under the LGPL, at our request. > > I think GTK is supposed to still work with other gettext, though. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Fri Feb 1 17:47:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 29C2318115 for ; Fri, 1 Feb 2002 17:47:02 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11Ml0s19617; Fri, 1 Feb 2002 17:47:00 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ralph Walden Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> <3C5B175F.6CD6F8AD@tripos.com> From: Havoc Pennington Date: 01 Feb 2002 17:47:00 -0500 In-Reply-To: <3C5B175F.6CD6F8AD@tripos.com> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > Where can I obtain the LGPL version of gettext? > > I downloaded the gettext-0.11 version from > gnu.org, and there is no mention of LGPL, only GPL. > Look at intl/COPYING.LIB-2.1 in the source tree. Only the library part of gettext is LGPL, the command line utilities like msgfmt are still GPL. 0.10.40 and 0.11 both have the LGPL. Havoc From sandmann@daimi.au.dk Fri Feb 1 18:44:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from alex.daimi.au.dk (alex.daimi.au.dk [130.225.16.45]) by mail.gnome.org (Postfix) with ESMTP id C9D6D18FC3 for ; Fri, 1 Feb 2002 18:44:28 -0500 (EST) Received: (from sandmann@localhost) by alex.daimi.au.dk (8.11.6/8.11.6) id g11NiO417319; Sat, 2 Feb 2002 00:44:24 +0100 (MET) To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: Is this "thread-safe" in GTK+.... References: <20020201111049.B527@spawar.navy.mil> From: Soeren Sandmann Date: 02 Feb 2002 00:44:24 +0100 In-Reply-To: <20020201111049.B527@spawar.navy.mil> Message-ID: Lines: 75 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Chris Seberino writes: > I want to use pthreads to have a thread that just generates > numbers used by GTK+ in another thread for drawing. > (pixmap plot of the numbers) >=20 > I believe variables are global with pthreads but > are there any gotchas to this? Do I need to > use semaphores? (I must find out what they are first!) :( There are lots of gotchas with threads. One way to do what you want without using threads is like this: typedef struct MyComputation MyComputation; struct MyComputation { =20=20=20=20 /* put all your computation's state here */; gboolean cancelled_by_user;=20=20=20=20 } gboolean run_my_computation (gpointer data) { MyComputation *my_computation =3D data; /* don't run for more than about 10-20 ms if you can avoid it=20 */ ; if (computation is finished || my_computation->cancelled_by_user) { g_free (my_computation); return FALSE; /* don't call me again */ } else { return TRUE; /* please call me again */ } } and then later do my_computation =3D g_new (MyComputation, 1); my_computation->cancelled_by_user =3D FALSE; my_computation->... =3D ...; g_idle_add (run_my_computation, my_computation); This will make sure your application is responsive and in addition provide these benefits: - the user can stop the computation. In the callback for the click on "cancel", just do=20 my_computation->cancelled_by_user =3D TRUE; - you can easily have a progress/activity bar - you don't have to mess with threads and locking. If you must use threads for some reason, then you will generally want to avoid calling gdk and gtk functions from the thread. Instead use the same trick and=20 g_idle_add (function_that_does_what_do_need_to_do, ...);=20 The function_that_does_what_you_need_to_do() can safely call any gtk and gdk functions it wants to. S=F8ren From scherfa@web.de Fri Feb 1 19:18:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id A0084181CC for ; Fri, 1 Feb 2002 19:18:51 -0500 (EST) Received: from [62.180.25.216] (helo=d-216-25.mannheim.ipdial.viaginterkom.de) by smtp.web.de with asmtp (Exim 4.11 #37) id 16Wnt6-0001Z1-00 for gtk-list@gnome.org; Sat, 02 Feb 2002 01:18:36 +0100 Subject: How to set only ONE Column editable (GTK2) From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 02 Feb 2002 01:18:42 +0100 Message-Id: <1012609123.30197.3.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have another problem, i have 2 columns : Number Name Now i want that the user could edit the name but not want that he could change the number. I have solved this by dont let the changes come trough : column = g_object_get_data (G_OBJECT (cell), "column"); if ((gint) column==NUMBER_COLUMN) { return; } But thats a bad result, could i set the column number 0 to not_EDITABLE ? Thanks Scherfy -- Andreas Scherf ICQ: 52910964 scherfa@web.de From hp@redhat.com Fri Feb 1 20:11:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id D0CE11825D for ; Fri, 1 Feb 2002 20:11:12 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g121BAp22392; Fri, 1 Feb 2002 20:11:10 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Andreas Scherf Cc: Gtk Liste Subject: Re: How to set only ONE Column editable (GTK2) References: <1012609123.30197.3.camel@xerxes> From: Havoc Pennington Date: 01 Feb 2002 20:11:10 -0500 In-Reply-To: <1012609123.30197.3.camel@xerxes> Message-ID: Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Andreas Scherf writes: > I have another problem, > i have 2 columns : > Number Name > Now i want that the user could edit the name but not want that he could > change the number. I have solved this by dont let the changes come > trough : > column = g_object_get_data (G_OBJECT (cell), "column"); > > if ((gint) column==NUMBER_COLUMN) { > return; > } > But thats a bad result, could i set the column number 0 to not_EDITABLE > ? > You can use a different cell renderer for each column, right. Havoc From monkeyiq@gmx.net Sat Feb 2 07:29:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from monkeyiq.dnsalias.org (CPE-203-45-214-174.qld.bigpond.net.au [203.45.214.174]) by mail.gnome.org (Postfix) with ESMTP id A60AF18FA5 for ; Sat, 2 Feb 2002 07:29:41 -0500 (EST) Received: by monkeyiq.dnsalias.org id g12CVhj24647 ; Sat, 2 Feb 2002 22:31:43 +1000 Date: Sat, 2 Feb 2002 22:31:43 +1000 Message-Id: <200202021231.g12CVhj24647@monkeyiq.dnsalias.org> To: GTK Mailing List Subject: GtkTreeView and gtk 1.3.13 From: monkeyiq MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I recently upgraded to the rawhide rpms for gtk 1.3.13 and now I am getting a segv on app startup of Ego: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 24632)] __strtol_internal (nptr=0x8108c30 "\002", endptr=0x0, base=3, group=-1073746544) at eval.c:38 38 eval.c: No such file or directory. in eval.c (gdb) bt #0 __strtol_internal (nptr=0x8108c30 "\002", endptr=0x0, base=3, group=-1073746544) at eval.c:38 #1 0x409cf548 in g_closure_invoke () at eval.c:41 #2 0x409e4358 in signal_emit_unlocked_R () at eval.c:41 #3 0x409e30b6 in g_signal_emit_valist () at eval.c:41 #4 0x409e3403 in g_signal_emit_by_name () at eval.c:41 #5 0x406b04d6 in gtk_tree_model_row_inserted () at eval.c:41 #6 0x406bcf61 in gtk_tree_store_append () at eval.c:41 #7 0x080799c3 in Ego::ContextView::makeDummyView (this=0x80ffa70) at ContextView.cpp:2168 Any thoughts on code that may have changed 1.3.12 -> .13 that I might look at first? -- ----------------------------------------------------- http://witme.sourceforge.net/libferris.web/ From v.j.arkesteijn@utwente.nl Sat Feb 2 09:33:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ken (dyn093252.inbel.utwente.nl [130.89.93.252]) by mail.gnome.org (Postfix) with ESMTP id 2AA8C18B04 for ; Sat, 2 Feb 2002 09:33:53 -0500 (EST) Received: by ken (Postfix, from userid 1000) id 00FA819DF; Sat, 2 Feb 2002 15:35:47 +0100 (CET) Date: Sat, 2 Feb 2002 15:35:46 +0100 From: Vincent Arkesteijn To: gtk-list@gnome.org Subject: scrolled window: scroll in only one direction? Message-ID: <20020202153542.A4579@ken> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I would like to have a scrolled window, in which the child is only scrolled in one direction. In the other direction, the child's size should change when the user changes the size of the window. Is this possible? Background: I have an application that shows some data inside a drawing area in real time. As there may be more data than fits in the window, I want the drawing area inside a scrolled window. Let's assume this scrolls in the vertical direction. When new data is received, it is drawn in the right, and the older data is automatically moved left. Now I want the width of the window to determine how far back in time the data is visible, so no horizontal scrolling by the user. So in the horizontal direction, everything should work like there was no scrolled window, just as in the scribble drawing program in the tutorial. I have tried changing the size of the drawing area whenever a configure event is raised, but this hasn't worked very well yet and to me it sounds more like a hack than a real good solution. I would appreciate your help. Vincent. From hp@redhat.com Sat Feb 2 09:58:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 8AFEF18EDC for ; Sat, 2 Feb 2002 09:58:22 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g12EwKU29258; Sat, 2 Feb 2002 09:58:20 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Vincent Arkesteijn Cc: gtk-list@gnome.org Subject: Re: scrolled window: scroll in only one direction? References: <20020202153542.A4579@ken> From: Havoc Pennington Date: 02 Feb 2002 09:58:20 -0500 In-Reply-To: <20020202153542.A4579@ken> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Vincent Arkesteijn writes: > > I would like to have a scrolled window, in which the child is only > scrolled in one direction. In the other direction, the child's size > should change when the user changes the size of the window. Is this > possible? > I think you just want to set GTK_POLICY_NEVER on one direction? Havoc From neofolk@yahoo.de Sat Feb 2 15:10:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp017.mail.yahoo.com (smtp017.mail.yahoo.com [216.136.174.114]) by mail.gnome.org (Postfix) with SMTP id 33A1918145 for ; Sat, 2 Feb 2002 15:10:47 -0500 (EST) Received: from p3ee37673.dip.t-dialin.net (HELO p3desktop) (62.227.118.115) by smtp.mail.vip.sc5.yahoo.com with SMTP; 2 Feb 2002 20:10:39 -0000 Message-ID: <001e01c1ac25$5ed06e50$6600a8c0@p3desktop> Reply-To: "Oliver Kroll :ALT EUROPA: - Magazin" From: "Oliver Kroll :ALT EUROPA: - Magazin" To: Subject: CList: how to change column-count at runtime Date: Sat, 2 Feb 2002 21:08:20 +0100 Organization: :ALT EUROPA: - Magazin MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001B_01C1AC2D.BE3DEE00" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_001B_01C1AC2D.BE3DEE00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi all, i created a form (clist included) with glade. i filled a ctree with databases and tables from the mysql-server, now i = like to read the data stored in a mysql-table into the clist. this is no problem so far. but how can i change the column-count from the gtk-clist at runtime, so = that it will fit to the column-count of the mysql-resultset? thanks a lot for your help. sincerly oliver k. ------=_NextPart_000_001B_01C1AC2D.BE3DEE00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi all,
 
i created a form (clist included) with=20 glade.
 
i filled a ctree with databases and = tables from the=20 mysql-server, now i like to read the data stored in a mysql-table into = the=20 clist.
this is no problem so far.
 
but how can i change the column-count = from the=20 gtk-clist at runtime, so that it will fit to the column-count of the=20 mysql-resultset?
 
thanks a lot for your = help.
 
sincerly
 
oliver k.
 
 
------=_NextPart_000_001B_01C1AC2D.BE3DEE00-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From pbd@op.net Sat Feb 2 15:55:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 7C2A418E03 for ; Sat, 2 Feb 2002 15:55:10 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-108.fast.net [209.92.60.108]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA26748 for ; Sat, 2 Feb 2002 15:55:09 -0500 (EST) Message-Id: <200202022055.PAA26748@renoir.op.net> To: gtk-list@gnome.org Subject: HTML-formatted mail/attachments Date: Sat, 02 Feb 2002 15:53:00 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: is there any chance that we could get this, like linux-kernel and others, to reject mail containing either only HTML-formatted mail or HTML attachments? i send polite messages to people who send such things, but the incoming flow is growing all the time, and individual filtering by procmail will do little to stem it. --p From shiraz_baig@yahoo.com Sun Feb 3 09:54:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13907.mail.yahoo.com (web13907.mail.yahoo.com [216.136.175.70]) by mail.gnome.org (Postfix) with SMTP id 8921A1810E for ; Sun, 3 Feb 2002 09:54:33 -0500 (EST) Message-ID: <20020203145432.54196.qmail@web13907.mail.yahoo.com> Received: from [203.135.0.66] by web13907.mail.yahoo.com via HTTP; Sun, 03 Feb 2002 06:54:32 PST Date: Sun, 3 Feb 2002 06:54:32 -0800 (PST) From: Shiraz Baig Subject: Re: drawing a line To: Sven Neumann Cc: gtk-list@gnome.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I do understand the advantage of "expose" but I wanted to understand the fundamentals first. Therefore, i wanted to draw the drawline like this. Thanks for all the help. BTW, I have now drawn the line with "expose" event. But I am slightly confused, becuase it calls the expose function three times. This is how I tested it. I just put a statement in the "expose" function call as; int static turn=0 g_print turn++; And I found that when I first draw the line this command prints 0,1 and 2. That means that it has been exposed three times. I thought that it is only being exposed when it is created. Any comments on that? I am now grappling with drawing the line in color. And the tutorial does not talk about color. The "ref" does talk about it but no example is available. I did find some examples from other sources, but they are too complicated. I would first like to understand the basics and then go on to complexities. So, if there is a simple 10 line program to draw a line in color I shall welcome it. Thanks and bye Shiraz --- Sven Neumann wrote: > Hi, > > Shiraz Baig writes: > > > I changed the parameters as suggested by Mr > Neumann > > and viola! I am drawing the lines without "expose" > > event and only with pushing a button. > > now move your mouse over the line you've just drawn > or obscure the window by moving another window over > it. Assuming you are using a drawing_area to draw on > directly, X will clear the area you've just painted > on and since you aren't redrawing in your expose > event handler, the line you've just drawn will be > gone. > > > Salut, Sven __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From sven@gimp.org Sun Feb 3 10:38:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E6BCFE.dip.t-dialin.net [217.230.188.254]) by mail.gnome.org (Postfix) with ESMTP id 71BC8180E2 for ; Sun, 3 Feb 2002 10:38:31 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16XOio-0004nA-00; Sun, 03 Feb 2002 16:38:26 +0100 To: Shiraz Baig Cc: gtk-list@gnome.org Subject: Re: drawing a line References: <20020203145432.54196.qmail@web13907.mail.yahoo.com> From: Sven Neumann Date: 03 Feb 2002 16:38:26 +0100 In-Reply-To: <20020203145432.54196.qmail@web13907.mail.yahoo.com> Message-ID: Lines: 35 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Shiraz Baig writes: > I do understand the advantage of "expose" but I > wanted to understand the fundamentals first. actually I don't think the concept of expose events as exposed by X11 (and thus GDK) has any advantages, but that's a different question... > BTW, I have now drawn the line with "expose" event. > But I am slightly confused, becuase it calls the > expose function three times. This is how I tested it. > I just put a statement in the "expose" function call > as; > int static turn=0 > g_print turn++; > > And I found that when I first draw the line this > command prints 0,1 and 2. That means that it has been > exposed three times. I thought that it is only being > exposed when it is created. Any comments on that? the expose event is called whenever the window (or parts of it) need to be repainted. This is the case if the gtk_widget_queue_draw() or a similar function is called and whenever the X server decides that it needs to happen (for example because the window was obscured by another window and becomes unobscured). You should note that the expose_event carries an expose rectangle (event->area) so you probably see three expose events on different areas of your windows. You will only want to redraw the entire window on every expose event if you are lazy. Salut, Sven From kasonhuang@kinposh.com.cn Sun Feb 3 22:30:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id C2C1D1826A for ; Sun, 3 Feb 2002 22:30:25 -0500 (EST) Subject: about how to create a function named of gtk_button_ellipse_new_with_label()? Date: Mon, 4 Feb 2002 11:30:17 +0800 MIME-Version: 1.0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F821FF2DC@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: about how to create a function named of gtk_button_ellipse_new_with_label()? Thread-Index: AcGtLEHLChfgThlgEda2uQCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: about how to create a function named of = gtk_button_ellipse_new_with_label()?

hello:
could anyone tell me = the inheritence of the gtk.
if i want to create = a function named gtk_button_ellipse_new_with_label(),how to do = that?
for gtk is writed = with c not c++,in c++ you could incapsuate a ellipsebutton class by = rewriting the virtual function in the button class

could any = know?
Thanks in = advance.
kason

From satyajit.kanungo@wipro.com Mon Feb 4 02:17:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 9D56A180E7 for ; Mon, 4 Feb 2002 02:17:53 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g147GrX20099 for ; Mon, 4 Feb 2002 12:46:53 +0530 (IST) Received: from satyajit ([10.114.9.188]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GQZYW600.0EO for ; Mon, 4 Feb 2002 12:46:54 +0530 From: "satyajit kanungo" To: Subject: gtk+1.3 library Date: Mon, 4 Feb 2002 12:54:39 +0530 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I am trying to build gtk+-1.3.12 (from GNOME alpha release) on my Linux machine. and it builds properly on my system. I found the gtk sources still using deprecated features such as GtkTypeInfo,GtkType variables, gtk_signal_new etc. Are there any plans to removed these features in future versions. I am thinking of making the changes to remove the above deprecated features from the library. Any suggestions ?? regards satyajit From coframi.balr001@rd.francetelecom.com Mon Feb 4 03:51:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id A1C99180DD for ; Mon, 4 Feb 2002 03:51:37 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Mon, 4 Feb 2002 09:28:37 +0100 Message-ID: From: zze-coframi balr001 To: "'Oliver Kroll :ALT EUROPA: - Magazin'" , gtk-list@gnome.org Subject: RE: CList: how to change column-count at runtime Date: Mon, 4 Feb 2002 09:28:46 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-48e65877-1946-11d6-ac1e-00508b692753" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-48e65877-1946-11d6-ac1e-00508b692753 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AD55.F6B24C30" ------_=_NextPart_001_01C1AD55.F6B24C30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, =20 I don't know if it's possible to change the number of columns during runtime. Why don't you try to delete your clist and to create a new one = with the right number of columns ??=20 =20 Isabelle -----Message d'origine----- De : Oliver Kroll :ALT EUROPA: - Magazin [mailto:neofolk@yahoo.de] Envoy=E9 : samedi 2 f=E9vrier 2002 21:08 =C0 : gtk-list@gnome.org Objet : CList: how to change column-count at runtime hi all, =20 i created a form (clist included) with glade. =20 i filled a ctree with databases and tables from the mysql-server, now i = like to read the data stored in a mysql-table into the clist. this is no problem so far. =20 but how can i change the column-count from the gtk-clist at runtime, so = that it will fit to the column-count of the mysql-resultset? =20 thanks a lot for your help. =20 sincerly =20 oliver k. =20 =20 ------_=_NextPart_001_01C1AD55.F6B24C30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
I=20 don't know if it's possible to change the number of columns during = runtime. Why=20 don't you try to delete your clist and to create a new one with the = right number=20 of columns ??
 
Isabelle
-----Message d'origine-----
De : Oliver Kroll = :ALT=20 EUROPA: - Magazin [mailto:neofolk@yahoo.de]
Envoy=E9 : = samedi 2=20 f=E9vrier 2002 21:08
=C0 :=20 gtk-list@gnome.org
Objet : CList: how to change = column-count at=20 runtime

hi all,
 
i created a form (clist included) = with=20 glade.
 
i filled a ctree with databases and = tables from=20 the mysql-server, now i like to read the data stored in a mysql-table = into the=20 clist.
this is no problem so = far.
 
but how can i change the = column-count from the=20 gtk-clist at runtime, so that it will fit to the column-count of the=20 mysql-resultset?
 
thanks a lot for your = help.
 
sincerly
 
oliver k.
 
 
------_=_NextPart_001_01C1AD55.F6B24C30-- ------=_NextPartTM-000-48e65877-1946-11d6-ac1e-00508b692753-- From inimss@yahoo.com Mon Feb 4 04:32:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp015.mail.yahoo.com (smtp015.mail.yahoo.com [216.136.173.59]) by mail.gnome.org (Postfix) with SMTP id 02E491821C for ; Mon, 4 Feb 2002 04:32:49 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 Feb 2002 09:32:46 -0000 Message-ID: <3C5E5536.6BDBFC5C@yahoo.com> Date: Mon, 04 Feb 2002 15:02:38 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list Subject: [INIMSS] A Newbie Question Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All Can I depend on the pointer returned by functions like gtk_entry_get_text(entry1). Can I keep it for later processing. Thank You Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From rhfreeman@micron.com Mon Feb 4 05:55:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id 8CF9C181BF for ; Mon, 4 Feb 2002 05:55:06 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g14At5K19246 for ; Mon, 4 Feb 2002 03:55:05 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g14At5219234 for ; Mon, 4 Feb 2002 03:55:05 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Mon, 4 Feb 2002 03:55:03 -0700 Message-ID: From: rhfreeman To: "'gtk-list@gnome.org'" Subject: Paned questions Date: Mon, 4 Feb 2002 03:54:58 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, I'm wanting to use the paned widgets to re-size my current widgets but I'm a bit unsure about how it works. My program is quite simple. It has a window with a vbox in it. It keeps adding hboxes to the vbox like this: (no hboxes) +------------+ | | | | | | | | | | +------------+ +------------+ | | | | | (hbox) | | | | | +------------+ +------------+ | hbox 1 | | | |------------| | hbox 2 | | | +------------+ +------------+ | hbox 1 | |------------| | hbox 2 | |------------| | hbox 3 | +------------+ I want a paned widget on the separator between hboxes. So I want a paned widget controlling hbox1/hbox2 and another one controlling hbox2/hbox3. So my questions are: 1. Can a widget have multiple paned widgets attached to it? 2. Can a paned widget control any widget type? As most example code I've seen seems to be re-sizing a frame. Thanks!!! Rich From liviu@heart.med.upatras.gr Mon Feb 4 06:11:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from heart.med.upatras.gr (unknown [150.140.167.160]) by mail.gnome.org (Postfix) with ESMTP id 39C8418449 for ; Mon, 4 Feb 2002 06:11:13 -0500 (EST) Received: from there (IDENT:i4eXe/KcT2xezAPGrXSLJOV5SyG7/uqz@zakinthos.med.upatras.gr [150.140.167.161]) by heart.med.upatras.gr (8.9.3/8.8.7) with SMTP id OAA09940 for ; Mon, 4 Feb 2002 14:10:56 +0200 Message-Id: <200202041210.OAA09940@heart.med.upatras.gr> Content-Type: text/plain; charset="iso-8859-15" From: Liviu Vladutu Reply-To: LiviuVladutu@ieee.org Organization: Medical Physics Dept., School of Medicine To: gtk-list@gnome.org Subject: gtk+ Date: Mon, 4 Feb 2002 13:12:40 +0200 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi everyone, I'd like to ask you where can Ifind the latest source (rpm preferred) distribution for gtk+ running under Linux (RedHat). Liviu From inimss@yahoo.com Mon Feb 4 06:14:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by mail.gnome.org (Postfix) with SMTP id 1E6C1189A7 for ; Mon, 4 Feb 2002 06:14:29 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 Feb 2002 11:14:15 -0000 Message-ID: <3C5E6CFF.3FC290E0@yahoo.com> Date: Mon, 04 Feb 2002 16:44:07 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list , gtk-app-devel Subject: [INIMSS] How can I change the text of a button. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Any body please help me in finding a way to change the text of a GtkButton. Thanks Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:17:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9906.mail.yahoo.com (web9906.mail.yahoo.com [216.136.129.249]) by mail.gnome.org (Postfix) with SMTP id 5764C18A83 for ; Mon, 4 Feb 2002 06:17:46 -0500 (EST) Message-ID: <20020204111745.25122.qmail@web9906.mail.yahoo.com> Received: from [213.29.206.62] by web9906.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:17:45 PST Date: Mon, 4 Feb 2002 03:17:45 -0800 (PST) From: Vahid Zahiri Subject: Re: gtk+ To: LiviuVladutu@ieee.org Cc: gtk-list@gnome.org In-Reply-To: <200202041210.OAA09940@heart.med.upatras.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi Liviu you can download gtk 1.2 (stable version)from : ftp://ftp.gtk.org/pub/gtk/v1.2/binary/RPMS/RedHat-6.2/ or gtk 1.3 form : ftp://ftp.gtk.org/pub/gtk/v1.3/binary/RedHat-7.1/ Vahid --- Liviu Vladutu wrote: > Hi everyone, > > I'd like to ask you where can Ifind the latest > source (rpm preferred) > distribution for gtk+ running under Linux (RedHat). > Liviu > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:29:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9901.mail.yahoo.com (web9901.mail.yahoo.com [216.136.129.36]) by mail.gnome.org (Postfix) with SMTP id 614221812B for ; Mon, 4 Feb 2002 06:29:21 -0500 (EST) Message-ID: <20020204112920.35954.qmail@web9901.mail.yahoo.com> Received: from [213.29.206.62] by web9901.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:29:20 PST Date: Mon, 4 Feb 2002 03:29:20 -0800 (PST) From: Vahid Zahiri Subject: Re: [INIMSS] How can I change the text of a button. To: gtk-list@gnome.org Cc: gtk-list@gnome.org In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Dino you can add a label to button by : gtk_container_add(GTK_CONTAINER(button),label); and change label by: gtk_label_set_text(label ,"hello ;-)" ); Vahid --- Dino Cherian K wrote: > Hi > > Any body please help me in finding a way to change > the text of a > GtkButton. > > Thanks > Dino CK > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at > http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:29:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9901.mail.yahoo.com (web9901.mail.yahoo.com [216.136.129.36]) by mail.gnome.org (Postfix) with SMTP id 6CDCF18248 for ; Mon, 4 Feb 2002 06:29:21 -0500 (EST) Message-ID: <20020204112920.35954.qmail@web9901.mail.yahoo.com> Received: from [213.29.206.62] by web9901.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:29:20 PST Date: Mon, 4 Feb 2002 03:29:20 -0800 (PST) From: Vahid Zahiri Subject: Re: [INIMSS] How can I change the text of a button. To: gtk-list@gnome.org Cc: gtk-list@gnome.org In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Dino you can add a label to button by : gtk_container_add(GTK_CONTAINER(button),label); and change label by: gtk_label_set_text(label ,"hello ;-)" ); Vahid --- Dino Cherian K wrote: > Hi > > Any body please help me in finding a way to change > the text of a > GtkButton. > > Thanks > Dino CK > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at > http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:29:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9907.mail.yahoo.com (web9907.mail.yahoo.com [216.136.129.250]) by mail.gnome.org (Postfix) with SMTP id E5AF81812B for ; Mon, 4 Feb 2002 06:29:27 -0500 (EST) Message-ID: <20020204112927.28295.qmail@web9907.mail.yahoo.com> Received: from [213.29.206.62] by web9907.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:29:27 PST Date: Mon, 4 Feb 2002 03:29:27 -0800 (PST) From: Vahid Zahiri Subject: Re: [INIMSS] How can I change the text of a button. To: gtk-list@gnome.org In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Dino you can add a label to button by : gtk_container_add(GTK_CONTAINER(button),label); and change label by: gtk_label_set_text(label ,"hello ;-)" ); Vahid --- Dino Cherian K wrote: > Hi > > Any body please help me in finding a way to change > the text of a > GtkButton. > > Thanks > Dino CK > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at > http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:34:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9905.mail.yahoo.com (web9905.mail.yahoo.com [216.136.129.248]) by mail.gnome.org (Postfix) with SMTP id 0269D184C7 for ; Mon, 4 Feb 2002 06:34:48 -0500 (EST) Message-ID: <20020204113448.2698.qmail@web9905.mail.yahoo.com> Received: from [213.29.206.62] by web9905.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:34:48 PST Date: Mon, 4 Feb 2002 03:34:48 -0800 (PST) From: Vahid Zahiri Subject: Sorry :( To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi all sorry if you get 3 mail instead one mail; vahid __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From flavio@maqplas.com.br Mon Feb 4 06:59:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aspdroid.ns1.com.br (aspdroid.ns1.com.br [200.185.44.19]) by mail.gnome.org (Postfix) with ESMTP id 9939018449 for ; Mon, 4 Feb 2002 06:59:19 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by aspdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g14BVodB032946 for ; Mon, 4 Feb 2002 09:31:51 -0200 (BRST) Subject: How to compile in gtk+ 1.3 From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 04 Feb 2002 09:56:05 -0200 Message-Id: <1012823766.1474.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I downloaded the GTK+ 1.3 (rpm packages) and make upgrade, aparently all OK, now I want to compile an aplication that I was making with gtk+1.2.10 (the interface was generated by Glade), but it always compile in gtk+1.2, I see in Makefile that it make many references to gtk+1.2, what I has to change to compile in gtk+1.3 ? Thanks in advance Flavio Alberto From sven@gimp.org Mon Feb 4 07:05:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 6098318259; Mon, 4 Feb 2002 07:05:27 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16XhsA-0002Mk-00; Mon, 04 Feb 2002 13:05:22 +0100 To: Dino Cherian K Cc: gtk-list , gtk-app-devel Subject: Re: [INIMSS] How can I change the text of a button. References: <3C5E6CFF.3FC290E0@yahoo.com> From: Sven Neumann Date: 04 Feb 2002 13:05:22 +0100 In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> Message-ID: Lines: 12 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Dino Cherian K writes: > Any body please help me in finding a way to change the text of a > GtkButton. gtk_label_set_text (GTK_LABEL (GTK_BIN (button)->child), "foo"); Salut, Sven From coframi.balr001@rd.francetelecom.com Mon Feb 4 07:23:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id 66B2B18294 for ; Mon, 4 Feb 2002 07:23:18 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Mon, 4 Feb 2002 13:23:00 +0100 Message-ID: From: zze-coframi balr001 To: "'LiviuVladutu@ieee.org'" , gtk-list@gnome.org Subject: RE: gtk+ Date: Mon, 4 Feb 2002 13:23:09 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: http://www.rpmfind.net -----Message d'origine----- De : Liviu Vladutu [mailto:liviu@heart.med.upatras.gr] Envoy=E9 : lundi 4 f=E9vrier 2002 12:13 =C0 : gtk-list@gnome.org Objet : gtk+ Hi everyone, I'd like to ask you where can Ifind the latest source (rpm preferred)=20 distribution for gtk+ running under Linux (RedHat). Liviu _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From flavio@maqplas.com.br Mon Feb 4 09:39:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pkdroid.ns1.com.br (pkdroid.ns1.com.br [200.185.44.16]) by mail.gnome.org (Postfix) with ESMTP id 51E2C18CDF for ; Mon, 4 Feb 2002 09:39:52 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by pkdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g14EdjVX070038 for ; Mon, 4 Feb 2002 12:39:45 -0200 (BRST) Subject: Run time error in gtk1.3 application From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: multipart/mixed; boundary="=-VE59CUR5uqi/Gdat/QKL" X-Mailer: Evolution/0.10 (Preview Release) Date: 04 Feb 2002 12:36:38 -0200 Message-Id: <1012833399.1475.3.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-VE59CUR5uqi/Gdat/QKL Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello all,=20 I make some modifications in my Makefile (attached in mail) in order to compile my application in gtk+1.3 (gtk+2.0), in compilation I get this messages (was several similar messages to each file of my application, I put only piece of messages) : gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 -c callbacks.c gcc: -lgtk-x11-1.3: linker input file unused since linking not donegcc: -lgdk-x11-1.3: linker input file unused since linking not donegcc: -lXi: linker input file unused since linking not done gcc: -lgdk_pixbuf-1.3: linker input file unused since linking not done gcc: -lm: linker input file unused since linking not done gcc: -lpangox: linker input file unused since linking not done gcc: -lpangoxft: linker input file unused since linking not done gcc: -lXft: linker input file unused since linking not done gcc: -lXrender: linker input file unused since linking not done gcc: -lXext: linker input file unused since linking not done gcc: -lX11: linker input file unused since linking not done gcc: -lfreetype: linker input file unused since linking not done gcc: -lpango: linker input file unused since linking not done gcc: -latk: linker input file unused since linking not done gcc: -lgobject-1.3: linker input file unused since linking not donegcc: -lgmodule-1.3: linker input file unused since linking not donegcc: -ldl: linker input file unused since linking not done gcc: -lglib-1.3: linker input file unused since linking not done And when I ran the compiled program, this crashed and emited these messages: (process:5172): GRuntime-CRITICAL **: gtype.c:1762:g_type_register_static(): initialization assertion failed, use g_type_init() prior to this function (process:5172): GRuntime-CRITICAL **: file gobject.c: line 588 (g_object_new): assertion `G_TYPE_IS_OBJECT (object_type)' failed Falha de segmenta=E7=E3o (core dumped) << Portuguese =3D Segmentation fault (core dumped) Where's the problem ? I must modify my application (made in Gtk1.2.10) to run in gtk1.3 ? ps: please note the line in Makefile (line 139) is original line, and line above is modified by me. Thanks in advance Flavio Alberto --=-VE59CUR5uqi/Gdat/QKL Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile Content-ID: 1012832202.1465.2.camel@flavio.maqplas Content-Transfer-Encoding: 7bit # Generated automatically from Makefile.in by configure. # Makefile.in generated automatically by automake 1.4a from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. SHELL = /bin/sh srcdir = . top_srcdir = .. prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin libexecdir = ${exec_prefix}/libexec datadir = ${prefix}/share sysconfdir = ${prefix}/etc sharedstatedir = ${prefix}/com localstatedir = ${prefix}/var libdir = ${exec_prefix}/lib infodir = ${prefix}/info mandir = ${prefix}/man includedir = ${prefix}/include oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/ihm_princ pkglibdir = $(libdir)/ihm_princ pkgincludedir = $(includedir)/ihm_princ top_builddir = .. ACLOCAL = aclocal -I macros AUTOCONF = autoconf AUTOMAKE = automake AUTOHEADER = autoheader INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL_PROGRAM} INSTALL_STRIP_FLAG = transform = s,x,x, NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_alias = i686-pc-linux host_triplet = i686-pc-linux-gnu BUILD_INCLUDED_LIBINTL = no CATALOGS = CATOBJEXT = .gmo CC = gcc DATADIRNAME = share GENCAT = gencat GLIBC21 = yes GMOFILES = GMSGFMT = /usr/bin/msgfmt GNOMEGNORBA_LIBS = -rdynamic -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOMEUI_LIBS = -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOME_APPLETS_LIBS = GNOME_CAPPLET_LIBS = GNOME_CONFIG = /usr/bin/gnome-config GNOME_DOCKLETS_LIBS = GNOME_INCLUDEDIR = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNOME_LIBDIR = -rdynamic -L/usr/lib -L/usr/X11R6/lib GNOME_LIBS = -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNORBA_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNORBA_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GTKXMHTML_LIBS = -rdynamic -lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm GTK_CFLAGS = -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include GTK_CONFIG = /usr/bin/gtk-config GTK_LIBS = -lSM -lICE -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm INSTOBJEXT = .mo INTLBISON = bison INTLLIBS = INTLOBJS = INTL_LIBTOOL_SUFFIX_PREFIX = LIBICONV = MAKEINFO = makeinfo MKINSTALLDIRS = ./mkinstalldirs MSGFMT = /usr/bin/msgfmt ORBIT_CFLAGS = -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include ORBIT_CONFIG = /usr/bin/orbit-config ORBIT_IDL = /usr/bin/orbit-idl ORBIT_LIBS = -L/usr/lib -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lglib -lnsl -lm PACKAGE = ihm_princ POFILES = POSUB = po PTHREAD_LIB = -lpthread RANLIB = ranlib USE_INCLUDED_LIBINTL = no USE_NLS = yes VERSION = 0.1 XPM_LIBS = -lXpm ZVT_LIBS = -rdynamic -lzvt -lutil -lSM -lICE -lgdk_imlib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm cflags_set = yes cxxflags_set = @cxxflags_set@ INCLUDES = -I$(top_srcdir)/intl $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = main.c support.c support.h interface.c interface.h callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = PROGRAMS = $(bin_PROGRAMS) DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. CPPFLAGS = -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include LDFLAGS = LIBS = ihm_princ_OBJECTS = main.o support.o interface.o callbacks.o auxiliar.o parametro.o ihm_princ_DEPENDENCIES = ihm_princ_LDFLAGS = CFLAGS = -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 #CFLAGS = -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best DEP_FILES = .deps/callbacks.P .deps/interface.P .deps/main.P \ .deps/support.P SOURCES = $(ihm_princ_SOURCES) OBJECTS = $(ihm_princ_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) distclean-binPROGRAMS: maintainer-clean-binPROGRAMS: install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) list='$(bin_PROGRAMS)'; for p in $$list; do \ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: ihm_princ: $(ihm_princ_OBJECTS) $(ihm_princ_DEPENDENCIES) @rm -f ihm_princ $(LINK) $(ihm_princ_LDFLAGS) $(ihm_princ_OBJECTS) $(ihm_princ_LDADD) $(LIBS) tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = src distdir: $(DISTFILES) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(top_distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; \ cd $(top_srcdir) \ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) -include $(DEP_FILES) mostlyclean-depend: clean-depend: distclean-depend: -rm -rf .deps maintainer-clean-depend: %.o: %.c @echo '$(COMPILE) -c $<'; \ $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.lo: %.c @echo '$(LTCOMPILE) -c $<'; \ $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ < .deps/$(*F).pp > .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-binPROGRAMS install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-binPROGRAMS uninstall: uninstall-am all-am: Makefile $(PROGRAMS) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ mostlyclean-tags mostlyclean-depend mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \ distclean-depend distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-tags \ maintainer-clean-depend maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile tags mostlyclean-tags distclean-tags \ clean-tags maintainer-clean-tags distdir mostlyclean-depend \ distclean-depend clean-depend maintainer-clean-depend info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: --=-VE59CUR5uqi/Gdat/QKL-- From leidola@newcon.de Mon Feb 4 09:46:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (mail-1.newcon.de [195.145.56.9]) by mail.gnome.org (Postfix) with ESMTP id 61F9018D2A for ; Mon, 4 Feb 2002 09:46:15 -0500 (EST) Received: from [213.70.108.72] ([213.70.108.72]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id PAA23432; Mon, 4 Feb 2002 15:46:07 +0100 Subject: Re: How to compile in gtk+ 1.3 From: Olaf Leidinger To: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares , GTK Mailing List , FREE PASCAL list In-Reply-To: <1012823766.1474.1.camel@flavio.maqplas> References: <1012823766.1474.1.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <1012834104.899.82.camel@attic> Mime-Version: 1.0 X-Mailer: Evolution/0.12 (Preview Release) Date: 04 Feb 2002 15:48:35 +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 04 Feb 2002 09:56:05 -0200 schrieb Fl=E1vio Alberto Lopes Soares: > Hello all, > I downloaded the GTK+ 1.3 (rpm packages) and make upgrade, aparently all > OK, > now I want to compile an aplication that I was making with gtk+1.2.10 > (the interface was generated by Glade), > but it always compile in gtk+1.2, I see in Makefile that it make many > references to gtk+1.2, what I has to change to compile > in gtk+1.3 ? >=20 > Thanks in advance >=20 > Flavio Alberto >=20 > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list >=20 Hello! You might hack the configure script in the way that it doesn't look for gtk and glib and add `pkg-config gtk+-2.0 --cflags` to the CFLAGS environment variable and 'pkg-config gtk+-2.0 --libs` to LDFLAGS. A (perhaps) more comfortable way is to change the gtk-config and glib-config file for the moment. Look for a line like: echo -L/usr/X11R6/lib -lgtk -lgdk $my_glib_libs -lXi ... comment this line with a # and write the following: echo `pkg-config gtk+-2.0 --libs` Look for the line with the cflags and change it to echo `pkg-config gtk+-2.0 --cflags` And finally look for a line that sais --version) echo 1.2.10 =20 or whatever and note down your version here. Well, this all is just a really dirty hack but it works. I'd love to see a much simpler way (let's say changing to config file that it looks for GTK2 directly - but I'm not famillar with the config-file). Good luck with your work, Ciao Olaf From leidola@newcon.de Mon Feb 4 10:23:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (mail-1.newcon.de [195.145.56.9]) by mail.gnome.org (Postfix) with ESMTP id 8538C189D1 for ; Mon, 4 Feb 2002 10:23:36 -0500 (EST) Received: from [213.70.108.73] ([213.70.108.73]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id QAA24379; Mon, 4 Feb 2002 16:23:31 +0100 Subject: Re: Paned questions From: Olaf Leidinger To: rhfreeman , GTK Mailing List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1012836355.901.104.camel@attic> Mime-Version: 1.0 X-Mailer: Evolution/0.12 (Preview Release) Date: 04 Feb 2002 16:25:58 +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 04 Feb 2002 03:54:58 -0700 schrieb rhfreeman: > Hi folks, > > I'm wanting to use the paned widgets to re-size my current widgets but I'm a > bit unsure about how it works. > > My program is quite simple. It has a window with a vbox in it. It keeps > adding hboxes to the vbox like this: > > (no hboxes) > > +------------+ > | | > | | > | | > | | > | | > +------------+ > > +------------+ > | | > | | > | (hbox) | > | | > | | > +------------+ > > +------------+ > | hbox 1 | > | | > |------------| > | hbox 2 | > | | > +------------+ > > +------------+ > | hbox 1 | > |------------| > | hbox 2 | > |------------| > | hbox 3 | > +------------+ > > I want a paned widget on the separator between hboxes. So I want a paned > widget controlling hbox1/hbox2 and another one controlling hbox2/hbox3. > > So my questions are: > > 1. Can a widget have multiple paned widgets attached to it? > 2. Can a paned widget control any widget type? As most example code I've > seen seems to be re-sizing a frame. > > Thanks!!! > > Rich > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hello! As I understood it a paned widget has two containers where you can add widgets, a left side and a right one (or an upper and a lower). +--------------+ | | | container 1 | | | +=== gutter ===+ | | | container 2 | | | +--------------+ You can surely make a hbox to be child of a container. And I think you don't have to set all the two childs of a paned widget so you might create the following combination: +----vbox----------+ | +- hpaned 1----+ | | | | | | | child 1 | | | | | | | +=== gutter ===+ | | | | | | | child 2 | | | | | | | +--------------+ | | +- hpaned 2 ---+ | | | | | | | empty/not | | | | visible | | | | | | | +=== gutter ===+ | | | | | | | child 2 | | | | | | | +--------------+ | +------------------+ or something similar. Ciao Olaf From lapenta_jm@yahoo.com Mon Feb 4 11:12:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14004.mail.yahoo.com (web14004.mail.yahoo.com [216.136.175.120]) by mail.gnome.org (Postfix) with SMTP id 5AD2F18154 for ; Mon, 4 Feb 2002 11:12:12 -0500 (EST) Message-ID: <20020204161211.13516.qmail@web14004.mail.yahoo.com> Received: from [129.55.200.20] by web14004.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 08:12:11 PST Date: Mon, 4 Feb 2002 08:12:11 -0800 (PST) From: Jason LaPenta Subject: clist : lines truncated using clist_append To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm using gtk_clist_append( (GtkCList *)dsp_message_clist, data ); and my data, which is about 58 chars long, get truncated to about 30 chars when I add it to the list. I've tried making the column wider with gtk_clist_set_column_width( (GtkCList *)dsp_message_clist, 1, width * 2); But now, even thought there's tons of room, the text still get truncated. Do you know what I can do to fix this problem? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From hp@redhat.com Mon Feb 4 11:32:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 9FEDE181BF for ; Mon, 4 Feb 2002 11:32:48 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g14GWYU29668; Mon, 4 Feb 2002 11:32:34 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "satyajit kanungo" Cc: Subject: Re: gtk+1.3 library References: From: Havoc Pennington Date: 04 Feb 2002 11:32:34 -0500 In-Reply-To: Message-ID: Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "satyajit kanungo" writes: > I found the gtk sources still using deprecated features such as > GtkTypeInfo,GtkType variables, gtk_signal_new etc. Are there any > plans to removed these features in future versions. > > I am thinking of making the changes to remove the above deprecated > features from the library. Any suggestions ?? I believe there are outstanding patches in bugzilla related to this. I could be wrong. But you probably want to try to find them before working on it. We do want to remove them eventually, but it isn't as high a priority as other things. Havoc From hp@redhat.com Mon Feb 4 11:36:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id E96E418E6B for ; Mon, 4 Feb 2002 11:35:59 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g14GZxu29673; Mon, 4 Feb 2002 11:35:59 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: gtk-list Subject: Re: Run time error in gtk1.3 application References: <1012833399.1475.3.camel@flavio.maqplas> From: Havoc Pennington Date: 04 Feb 2002 11:35:59 -0500 In-Reply-To: <1012833399.1475.3.camel@flavio.maqplas> Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Fl=E1vio Alberto Lopes Soares writes: >=20 > I make some modifications in my Makefile (attached in mail) in order > to compile my application in gtk+1.3 (gtk+2.0), in compilation I get > this messages (was several similar messages to each file of my > application, I put only piece of messages) : Your Makefile is all screwed up somehow. Note that you're getting GTK 1.2 flags in there, and GNOME 1.x. You need GNOME 2 to use GTK 2. Show us the Makefile.am, rather than the Makefile. Havoc From hummaida@cs.man.ac.uk Mon Feb 4 12:47:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mail.gnome.org (Postfix) with ESMTP id 7E2DF18402 for ; Mon, 4 Feb 2002 12:47:05 -0500 (EST) Received: from cs.man.ac.uk ([62.252.236.59]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020204174703.IWAG7000.mta06-svc.ntlworld.com@cs.man.ac.uk> for ; Mon, 4 Feb 2002 17:47:03 +0000 Message-ID: <3C5EC950.8070501@cs.man.ac.uk> Date: Mon, 04 Feb 2002 17:48:00 +0000 From: A R Hummaida User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: fileselection question Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dear all well this question is kind of related to the file selection widget. i have the following GList *my_selection_list; //global // call back for ok button on file selection void on_file_selection_ok_button_clicked (GtkWidget * w, gpointer user_data) { . . gchar *file_selected ; file_selected = gtk_file_selection_get_filename (GTK_FILE_SELECTION (file_selection_widget)); . . . if (g_list_find(my_selection_list,file_selected)==NULL) { my_selection_list=g_list_append (my_selection_list,file_selected); g_print("file selected is %s\n",file_selected); . . } } so i want a file to be selected only once.this works the first time as the list is empty but next tries don't print the file name even though a different file is selected. i have tried many of these glist functions to no avail. please help Thanks From hunchback@netcabo.pt Mon Feb 4 12:59:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id BCE0D18794 for ; Mon, 4 Feb 2002 12:59:50 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Mon, 4 Feb 2002 17:54:17 +0000 Content-Class: urn:content-classes:message From: To: "gtk-list" , "Flávio Alberto Lopes Soares" Subject: RE: Run time error in gtk1.3 application Date: Mon, 4 Feb 2002 17:54:17 -0000 Message-ID: <21f601c1ada4$f6f88b10$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcGtpPb4SiWHvBmIEdaCdgBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, >gcc: -lgtk-x11-1.3: linker input file unused since linking not donegcc: >-lgdk-x11-1.3: linker input file unused since linking not donegcc: = -lXi: >linker input file unused since linking not done >gcc: -lgdk_pixbuf-1.3: linker input file unused since linking not done >gcc: -lm: linker input file unused since linking not done >gcc: -lpangox: linker input file unused since linking not done >gcc: -lpangoxft: linker input file unused since linking not done >gcc: -lXft: linker input file unused since linking not done >gcc: -lXrender: linker input file unused since linking not done >gcc: -lXext: linker input file unused since linking not done >gcc: -lX11: linker input file unused since linking not done >gcc: -lfreetype: linker input file unused since linking not done >gcc: -lpango: linker input file unused since linking not done >gcc: -latk: linker input file unused since linking not done >gcc: -lgobject-1.3: linker input file unused since linking not donegcc: >-lgmodule-1.3: linker input file unused since linking not donegcc: = -ldl: >linker input file unused since linking not done >gcc: -lglib-1.3: linker input file unused since linking not done this happens because you're trying to link a file with the gtk libs that = doesn't uses them. your Makefile may not be correct... >And when I ran the compiled program, this crashed and emited these >messages: >(process:5172): GRuntime-CRITICAL **: >gtype.c:1762:g_type_register_static(): initialization assertion failed, >use g_type_init() prior to this function >(process:5172): GRuntime-CRITICAL **: file gobject.c: line 588 >(g_object_new): assertion `G_TYPE_IS_OBJECT (object_type)' failed >Falha de segmenta=E7=E3o (core dumped) << Portuguese =3D Segmentation = fault >(core dumped) as for this i don't know... i haven't worked with 1.3 (and i haven't = seen this error on 1.2). Cumprimentos, Nuno Afonso From John.Cupitt@ng-london.org.uk Mon Feb 4 13:03:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 3B104188F8 for ; Mon, 4 Feb 2002 13:03:16 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HKJ9>; Mon, 4 Feb 2002 18:03:15 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HKJ7; Mon, 4 Feb 2002 18:03:03 -0000 Message-ID: <3C5EC997.3030504@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: hummaida@cs.man.ac.uk Cc: gtk-list@gnome.org Subject: Re: fileselection question Date: Mon, 4 Feb 2002 17:49:11 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I think you're comparing pointers when you should be comparing strings. Add the selected filename to your list with my_selection_list = g_list_prepend( my_selection_list, g_strdup( file_selected ) ); (prepend is faster than append, and you need to strdup pointers you get back from _get_filename()) Test for is-filename-there-already by looping along your list and strcmp()ing each element. You can use g_list_find_custom for this: if( g_list_find_custom( my_selection_list, file_selected, strcmp ) ) { HTH, John A R Hummaida wrote: > i have the following > > > GList *my_selection_list; //global > > // call back for ok button on file selection > > void on_file_selection_ok_button_clicked (GtkWidget * w, gpointer > user_data) > { > . > . > gchar *file_selected ; > > file_selected = > gtk_file_selection_get_filename (GTK_FILE_SELECTION > (file_selection_widget)); > . > . > . > if (g_list_find(my_selection_list,file_selected)==NULL) > { my_selection_list=g_list_append > (my_selection_list,file_selected); > g_print("file selected is %s\n",file_selected); > . > . > > } > } > > so i want a file to be selected only once.this works the first time as > the list is empty but next tries don't > print the file name even though a different file is selected. i have > tried many of these glist functions to no avail. please help ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From kasonhuang@kinposh.com.cn Mon Feb 4 19:24:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 0ED63180E3 for ; Mon, 4 Feb 2002 19:24:22 -0500 (EST) Subject: RE: [INIMSS] How can I change the text of a button. Date: Tue, 5 Feb 2002 08:24:08 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F821FF5DB@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: [INIMSS] How can I change the text of a button. Thread-Index: AcGtbT2hiiHrqIWgRQC0AJgLsj1onQAbIgDQ From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: "Dino Cherian K" Cc: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi Dino: you can try gtk_label_set_text();and you must add the label to the = button container. eg: gtk_label_set_text(GTK_LABEL(m_pLabel),m_LabelText); if any question about it ,you could ask me. kason -----Original Message----- From: Dino Cherian K [mailto:inimss@yahoo.com] Sent: Monday, February 04, 2002 7:14 PM To: gtk-list; gtk-app-devel Subject: [INIMSS] How can I change the text of a button. Hi Any body please help me in finding a way to change the text of a GtkButton. Thanks Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From kasonhuang@kinposh.com.cn Mon Feb 4 19:49:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wilber.gimp.org (graft.XCF.Berkeley.EDU [128.32.247.248]) by mail.gnome.org (Postfix) with ESMTP id A100618B60 for ; Mon, 4 Feb 2002 19:49:23 -0500 (EST) Received: from [210.78.17.12] (helo=kes01.kinposh.com.cn) by wilber.gimp.org with esmtp (Exim 3.12 #1 (Debian)) id 16XtnW-0004UT-00 for ; Mon, 04 Feb 2002 16:49:22 -0800 Subject: SOS about gtk xim? MIME-Version: 1.0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable Date: Tue, 5 Feb 2002 08:49:09 +0800 Message-ID: <92CD479384374A439EFA0077E7C50F821FF622@kes01.kinposh.com.cn> content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SOS about gtk xim? Thread-Index: AcGt3unVzctprRoPEda2uQCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SOS about gtk xim?

hi all:
  I have a = problem about gtk xim. Now I start a program with xim by handmake way, = then I can start kinput2; but if I start it using a shell, I can't start = kinput2. I don't know why? please help me!

Thanks a lot!
kason

From Volkan_Arslan@gmx.net Tue Feb 5 04:39:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id AD8AD188FA for ; Tue, 5 Feb 2002 04:39:40 -0500 (EST) Received: (qmail 21704 invoked by uid 0); 5 Feb 2002 09:39:39 -0000 Received: from ru-pc11.inf.ethz.ch (HELO gmx.net) (129.132.12.191) by mail.gmx.net (mp009-rz3) with SMTP; 5 Feb 2002 09:39:39 -0000 Message-ID: <3C5FA856.F49CECF1@gmx.net> Date: Tue, 05 Feb 2002 10:39:34 +0100 From: Volkan Arslan X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Release date of GTK+ 2.0 ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, does someone know, when GTK+ 2.0 will be released ? I have looked at www.gtk.org, but couldn't find anything regarding the release date of GTK+ 2.0. Best regards, Volkan Arslan From root@localhost.localdomain Tue Feb 5 07:28:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.225.173]) by mail.gnome.org (Postfix) with ESMTP id 0FF5D18DF0 for ; Tue, 5 Feb 2002 07:28:02 -0500 (EST) Received: (from root@localhost) by localhost.localdomain (8.11.2/8.11.2) id g15CLpF01961; Tue, 5 Feb 2002 17:51:51 +0530 Date: Tue, 5 Feb 2002 17:51:51 +0530 Message-Id: <200202051221.g15CLpF01961@localhost.localdomain> To: gtk-list@gnome.org From: Dino Subject: [INIMSS] How to avoid focusing on CList column titles. Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, How can I avoid the focusing of the column titles in a CList when i go thru the widgets in a window using the TAB key. Thank You Dino CK From flavio@maqplas.com.br Tue Feb 5 08:22:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id D5A8818180 for ; Tue, 5 Feb 2002 08:22:15 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g15DM7wc031623; Tue, 5 Feb 2002 11:22:08 -0200 (BRST) Subject: Re: Run time error in gtk1.3 application From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Havoc Pennington Cc: gtk-list Content-Type: multipart/mixed; boundary="=-CYk0BJZM1LkgXCEhrsBr" X-Mailer: Evolution/0.10 (Preview Release) Date: 05 Feb 2002 11:18:03 -0200 Message-Id: <1012915087.1142.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello all, I was writing this message bellow when my mail-server crash yesterday, then I attempt to run autogen.sh and my application compileted normally & run normally, I see the Makefile and found some references to gtk-1.2, gtk-2.0, glib-1.2, glib-2.0, I don't know what's the diferences behind this new Makefile (made by autogen.sh) and old (compile but not run), I suspect that my application compiled in gtk-1.2 and not in gtk-2.0, but I don't know to say. If anyone has a clue I thanks very much. Thanks in advance Flavio Alberto=20 ******************************************************** ORIGINAL MAIL ***************************************************************************= ** I made the changes that Olaf sugests and now doesn't show "stranger" messages in compilation, but the resulting program continues with the same crash when I run it. The Makefile has many references to glib-1.2 & gtk-1.2 (old) and I don't know how to change these files, if I change 1.2 to 2.0 the errors are this :=20 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-2.0 -I/usr/lib/glib/include -I/usr/include/gtk-2.0 -I/usr/X11R6/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -Wall -Wunused -c main.c In file included from /usr/include/libgnomeui/libgnomeui.h:19, from /usr/include/gnome.h:17, from main.c:10: /usr/include/libgnomeui/gnome-canvas-image.h:15: gtk/gtkpacker.h: Arquivo ou diret=F3rio n=E3o encontrado In file included from /usr/include/libgnomeui/libgnomeui.h:24, from /usr/include/gnome.h:17, from main.c:10: /usr/include/libgnomeui/gnome-canvas-text.h:15: gtk/gtkpacker.h: Arquivo ou diret=F3rio n=E3o encontrado In file included from /usr/include/libgnomeui/libgnomeui.h:26, from /usr/include/gnome.h:17, from main.c:10: /usr/include/libgnomeui/gnome-canvas-widget.h:15: gtk/gtkpacker.h: File not found make: *** [main.o] Error 1 Really, the file gtkpacker.h doesn't exists inside gtk-2.0, I have to change some thing in my program ? I will send the glib-config & gtk-config that I edited how sugests Olaf and the Makefile.am & Makefile that ./configure script generated; Excuse-me for send so many files but really I don't know what to do. Thanks for all help Flavio Alberto Em 04 Feb 2002 11:35:59 -0500, Havoc Pennington escreveu: >=20 > Fl=E1vio Alberto Lopes Soares writes: > >=20 > > I make some modifications in my Makefile (attached in mail) in order > > to compile my application in gtk+1.3 (gtk+2.0), in compilation I get > > this messages (was several similar messages to each file of my > > application, I put only piece of messages) : >=20 > Your Makefile is all screwed up somehow. Note that you're getting GTK > 1.2 flags in there, and GNOME 1.x. You need GNOME 2 to use GTK 2. >=20 > Show us the Makefile.am, rather than the Makefile. >=20 > Havoc --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-sh Content-Disposition: attachment; filename=glib-config Content-ID: 1012846901.13020.0.camel@flavio.maqplas Content-Transfer-Encoding: 7bit #!/bin/sh prefix=/usr exec_prefix=${prefix} exec_prefix_set=no usage() { cat <&2 fi lib_glib=yes while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg if test $exec_prefix_set = no ; then exec_prefix=$optarg fi ;; --prefix) echo_prefix=yes ;; --exec-prefix=*) exec_prefix=$optarg exec_prefix_set=yes ;; --exec-prefix) echo_exec_prefix=yes ;; --version) echo 1.3.7 exit 0 ;; --cflags) echo_cflags=yes ;; --libs) echo_libs=yes ;; glib) lib_glib=yes ;; gmodule) lib_gmodule=yes ;; gthread) lib_gthread=yes ;; *) usage 1 1>&2 ;; esac shift done if test "$echo_prefix" = "yes"; then echo $prefix fi if test "$echo_exec_prefix" = "yes"; then echo $exec_prefix fi if test "$echo_cflags" = "yes"; then cflags="" if test "$lib_gthread" = "yes"; then cflags="$cflags -D_REENTRANT" fi echo -I${prefix}/include/glib-2.0 -I/usr/lib/glib/include $includes $cflags fi if test "$echo_libs" = "yes"; then libsp="" libsa="" if test "$lib_glib" = "yes"; then libsp="$libsp -lglib" fi if test "$lib_gthread" = "yes"; then libsp="-lgthread $libsp" libsa="$libsa -lpthread" fi if test "$lib_gmodule" = "yes"; then libsp="-rdynamic -lgmodule $libsp" libsa="$libsa -ldl" fi echo -L/usr/lib $libsp $libsa fi --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile Content-ID: 1012846941.13020.2.camel@flavio.maqplas Content-Transfer-Encoding: 7bit # Generated automatically from Makefile.in by configure. # Makefile.in generated automatically by automake 1.4a from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. SHELL = /bin/sh srcdir = . top_srcdir = .. prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin libexecdir = ${exec_prefix}/libexec datadir = ${prefix}/share sysconfdir = ${prefix}/etc sharedstatedir = ${prefix}/com localstatedir = ${prefix}/var libdir = ${exec_prefix}/lib infodir = ${prefix}/info mandir = ${prefix}/man includedir = ${prefix}/include oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/ihm_princ pkglibdir = $(libdir)/ihm_princ pkgincludedir = $(includedir)/ihm_princ top_builddir = .. ACLOCAL = aclocal -I macros AUTOCONF = autoconf AUTOMAKE = automake AUTOHEADER = autoheader INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL_PROGRAM} INSTALL_STRIP_FLAG = transform = s,x,x, NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_alias = i686-pc-linux host_triplet = i686-pc-linux-gnu BUILD_INCLUDED_LIBINTL = no CATALOGS = CATOBJEXT = .gmo CC = gcc DATADIRNAME = share GENCAT = gencat GLIBC21 = yes GMOFILES = GMSGFMT = /usr/bin/msgfmt GNOMEGNORBA_LIBS = -rdynamic -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOMEUI_LIBS = -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOME_APPLETS_LIBS = GNOME_CAPPLET_LIBS = GNOME_CONFIG = /usr/bin/gnome-config GNOME_DOCKLETS_LIBS = GNOME_INCLUDEDIR = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNOME_LIBDIR = -rdynamic -L/usr/lib -L/usr/X11R6/lib GNOME_LIBS = -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNORBA_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNORBA_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GTKXMHTML_LIBS = -rdynamic -lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 GTK_CONFIG = /usr/bin/gtk-config GTK_LIBS = -lSM -lICE -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 INSTOBJEXT = .mo INTLBISON = bison INTLLIBS = INTLOBJS = INTL_LIBTOOL_SUFFIX_PREFIX = LIBICONV = MAKEINFO = makeinfo MKINSTALLDIRS = ./mkinstalldirs MSGFMT = /usr/bin/msgfmt ORBIT_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib/include -I/usr/include ORBIT_CONFIG = /usr/bin/orbit-config ORBIT_IDL = /usr/bin/orbit-idl ORBIT_LIBS = -L/usr/lib -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lglib -lnsl -lm PACKAGE = ihm_princ POFILES = POSUB = po PTHREAD_LIB = -lpthread RANLIB = ranlib USE_INCLUDED_LIBINTL = no USE_NLS = yes VERSION = 0.1 XPM_LIBS = -lXpm ZVT_LIBS = -rdynamic -lzvt -lutil -lSM -lICE -lgdk_imlib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm cflags_set = yes cxxflags_set = @cxxflags_set@ INCLUDES = -I$(top_srcdir)/intl $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = main.c support.c support.h interface.c interface.h callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = PROGRAMS = $(bin_PROGRAMS) DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. CPPFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 LDFLAGS = -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 LIBS = ihm_princ_OBJECTS = main.o support.o interface.o callbacks.o auxiliar.o \ parametro.o ihm_princ_DEPENDENCIES = ihm_princ_LDFLAGS = CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -Wall -Wunused COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best DEP_FILES = .deps/auxiliar.P .deps/callbacks.P .deps/interface.P \ .deps/main.P .deps/parametro.P .deps/support.P SOURCES = $(ihm_princ_SOURCES) OBJECTS = $(ihm_princ_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) distclean-binPROGRAMS: maintainer-clean-binPROGRAMS: install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) list='$(bin_PROGRAMS)'; for p in $$list; do \ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: ihm_princ: $(ihm_princ_OBJECTS) $(ihm_princ_DEPENDENCIES) @rm -f ihm_princ $(LINK) $(ihm_princ_LDFLAGS) $(ihm_princ_OBJECTS) $(ihm_princ_LDADD) $(LIBS) tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = src distdir: $(DISTFILES) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(top_distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; \ cd $(top_srcdir) \ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) -include $(DEP_FILES) mostlyclean-depend: clean-depend: distclean-depend: -rm -rf .deps maintainer-clean-depend: %.o: %.c @echo '$(COMPILE) -c $<'; \ $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.lo: %.c @echo '$(LTCOMPILE) -c $<'; \ $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ < .deps/$(*F).pp > .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-binPROGRAMS install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-binPROGRAMS uninstall: uninstall-am all-am: Makefile $(PROGRAMS) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ mostlyclean-tags mostlyclean-depend mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \ distclean-depend distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-tags \ maintainer-clean-depend maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile tags mostlyclean-tags distclean-tags \ clean-tags maintainer-clean-tags distdir mostlyclean-depend \ distclean-depend clean-depend maintainer-clean-depend info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile.am Content-ID: 1012846945.13020.3.camel@flavio.maqplas Content-Transfer-Encoding: 7bit ## Process this file with automake to produce Makefile.in INCLUDES = \ -I$(top_srcdir)/intl \ $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = \ main.c \ support.c support.h \ interface.c interface.h \ callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-sh Content-Disposition: attachment; filename=gtk-config Content-ID: 1012847026.13020.4.camel@flavio.maqplas Content-Transfer-Encoding: 7bit #!/bin/sh glib_libs="-L/usr/lib -rdynamic -lgmodule -lglib -ldl" glib_cflags="-I/usr/include/glib-2.0 -I/usr/lib/glib/include" glib_thread_libs="-L/usr/lib -rdynamic -lgmodule -lgthread -lglib -lpthread -ldl" glib_thread_cflags="-I/usr/include/glib-2.0 -I/usr/lib/glib/include -D_REENTRANT" prefix=/usr exec_prefix=/usr exec_prefix_set=no usage() { cat <&2 fi lib_gtk=yes while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg if test $exec_prefix_set = no ; then exec_prefix=$optarg fi ;; --prefix) echo_prefix=yes ;; --exec-prefix=*) exec_prefix=$optarg exec_prefix_set=yes ;; --exec-prefix) echo_exec_prefix=yes ;; --version) echo 1.3.7 ;; --cflags) echo_cflags=yes ;; --libs) echo_libs=yes ;; gtk) lib_gtk=yes ;; gthread) lib_gthread=yes ;; *) usage 1 1>&2 ;; esac shift done if test "$echo_prefix" = "yes"; then echo $prefix fi if test "$echo_exec_prefix" = "yes"; then echo $exec_prefix fi if test "$lib_gthread" = "yes"; then glib_cflags="$glib_thread_cflags" glib_libs="$glib_thread_libs" fi if test "$echo_cflags" = "yes"; then # echo -I/usr/include/gtk-1.2 $glib_cflags -I/usr/X11R6/include echo `pkg-config gtk+-2.0 --cflags` fi if test "$echo_libs" = "yes"; then my_glib_libs= libdirs=-L/usr/lib for i in $glib_libs ; do if test $i != -L/usr/lib ; then if test -z "$my_glib_libs" ; then my_glib_libs="$i" else my_glib_libs="$my_glib_libs $i" fi fi done # echo $libdirs -L/usr/X11R6/lib -lgtk -lgdk $my_glib_libs -lXext -lX11 -lm echo `pkg-config gtk+-2.0 --libs` fi --=-CYk0BJZM1LkgXCEhrsBr Content-ID: 1012914763.1129.0.camel@flavio.maqplas Content-Description: Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile_new Content-Transfer-Encoding: 7bit # Generated automatically from Makefile.in by configure. # Makefile.in generated automatically by automake 1.4a from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. SHELL = /bin/sh srcdir = . top_srcdir = .. prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin libexecdir = ${exec_prefix}/libexec datadir = ${prefix}/share sysconfdir = ${prefix}/etc sharedstatedir = ${prefix}/com localstatedir = ${prefix}/var libdir = ${exec_prefix}/lib infodir = ${prefix}/info mandir = ${prefix}/man includedir = ${prefix}/include oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/ihm_princ pkglibdir = $(libdir)/ihm_princ pkgincludedir = $(includedir)/ihm_princ top_builddir = .. ACLOCAL = aclocal -I macros AUTOCONF = autoconf AUTOMAKE = automake AUTOHEADER = autoheader INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL_PROGRAM} INSTALL_STRIP_FLAG = transform = s,x,x, NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_alias = i686-pc-linux host_triplet = i686-pc-linux-gnu BUILD_INCLUDED_LIBINTL = no CATALOGS = CATOBJEXT = .gmo CC = gcc DATADIRNAME = share GENCAT = gencat GLIBC21 = yes GMOFILES = GMSGFMT = /usr/bin/msgfmt GNOMEGNORBA_LIBS = -rdynamic -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOMEUI_LIBS = -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOME_APPLETS_LIBS = GNOME_CAPPLET_LIBS = GNOME_CONFIG = /usr/bin/gnome-config GNOME_DOCKLETS_LIBS = GNOME_INCLUDEDIR = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNOME_LIBDIR = -rdynamic -L/usr/lib -L/usr/X11R6/lib GNOME_LIBS = -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNORBA_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNORBA_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GTKXMHTML_LIBS = -rdynamic -lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 GTK_CONFIG = /usr/bin/gtk-config GTK_LIBS = -lSM -lICE -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 INSTOBJEXT = .mo INTLBISON = bison INTLLIBS = INTLOBJS = INTL_LIBTOOL_SUFFIX_PREFIX = LIBICONV = MAKEINFO = makeinfo MKINSTALLDIRS = ./mkinstalldirs MSGFMT = /usr/bin/msgfmt ORBIT_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib/include -I/usr/include ORBIT_CONFIG = /usr/bin/orbit-config ORBIT_IDL = /usr/bin/orbit-idl ORBIT_LIBS = -L/usr/lib -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lglib -lnsl -lm PACKAGE = ihm_princ POFILES = POSUB = po PTHREAD_LIB = -lpthread RANLIB = ranlib USE_INCLUDED_LIBINTL = no USE_NLS = yes VERSION = 0.1 XPM_LIBS = -lXpm ZVT_LIBS = -rdynamic -lzvt -lutil -lSM -lICE -lgdk_imlib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm cflags_set = yes cxxflags_set = @cxxflags_set@ INCLUDES = -I$(top_srcdir)/intl $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = main.c support.c support.h interface.c interface.h callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = PROGRAMS = $(bin_PROGRAMS) DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. CPPFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 LDFLAGS = LIBS = ihm_princ_OBJECTS = main.o support.o interface.o callbacks.o auxiliar.o \ parametro.o ihm_princ_DEPENDENCIES = ihm_princ_LDFLAGS = CFLAGS = -g -O2 -Wall -Wunused COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best DEP_FILES = .deps/auxiliar.P .deps/callbacks.P .deps/interface.P \ .deps/main.P .deps/parametro.P .deps/support.P SOURCES = $(ihm_princ_SOURCES) OBJECTS = $(ihm_princ_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) distclean-binPROGRAMS: maintainer-clean-binPROGRAMS: install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) list='$(bin_PROGRAMS)'; for p in $$list; do \ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: ihm_princ: $(ihm_princ_OBJECTS) $(ihm_princ_DEPENDENCIES) @rm -f ihm_princ $(LINK) $(ihm_princ_LDFLAGS) $(ihm_princ_OBJECTS) $(ihm_princ_LDADD) $(LIBS) tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = src distdir: $(DISTFILES) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(top_distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; \ cd $(top_srcdir) \ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) -include $(DEP_FILES) mostlyclean-depend: clean-depend: distclean-depend: -rm -rf .deps maintainer-clean-depend: %.o: %.c @echo '$(COMPILE) -c $<'; \ $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.lo: %.c @echo '$(LTCOMPILE) -c $<'; \ $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ < .deps/$(*F).pp > .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-binPROGRAMS install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-binPROGRAMS uninstall: uninstall-am all-am: Makefile $(PROGRAMS) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ mostlyclean-tags mostlyclean-depend mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \ distclean-depend distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-tags \ maintainer-clean-depend maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile tags mostlyclean-tags distclean-tags \ clean-tags maintainer-clean-tags distdir mostlyclean-depend \ distclean-depend clean-depend maintainer-clean-depend info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: --=-CYk0BJZM1LkgXCEhrsBr-- From inimss@yahoo.com Tue Feb 5 09:03:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by mail.gnome.org (Postfix) with SMTP id 61A9918162 for ; Tue, 5 Feb 2002 09:03:38 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 5 Feb 2002 14:03:31 -0000 Message-ID: <3C5FE62B.719F9B40@yahoo.com> Date: Tue, 05 Feb 2002 19:33:24 +0530 From: Dino CK X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: [INIMSS] How to add a pixmap to a toggle button? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Anybody please help me in adding a pixmap to a toggle button. I added it from the glade interface but it is not showing up not when compiled and run, or while editing in glade. Thankyou Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From lnx1138@us.ibm.com Tue Feb 5 09:50:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.129]) by mail.gnome.org (Postfix) with ESMTP id AFDA6182EE for ; Tue, 5 Feb 2002 09:50:04 -0500 (EST) Received: from westrelay01.boulder.ibm.com (westrelay01.boulder.ibm.com [9.99.140.22]) by e31.co.us.ibm.com (8.9.3/8.9.3) with ESMTP id JAA69826 for ; Tue, 5 Feb 2002 09:46:55 -0500 Received: from chavez.austin.ibm.com (chavez.austin.ibm.com [9.53.216.228]) by westrelay01.boulder.ibm.com (8.11.1m3/NCO v5.01) with ESMTP id g15Eo3T64486 for ; Tue, 5 Feb 2002 07:50:03 -0700 Subject: Re: [INIMSS] How to avoid focusing on CList column titles. From: Luciano Chavez To: gtk-list@gnome.org In-Reply-To: <200202051221.g15CLpF01961@localhost.localdomain> References: <200202051221.g15CLpF01961@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 05 Feb 2002 08:49:49 -0600 Message-Id: <1012920590.2358.23.camel@chavez> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, 2002-02-05 at 06:21, Dino wrote: > Hi, > > How can I avoid the focusing of the column titles in a CList when i go thru the widgets in a window using the TAB key. > > Thank You > Dino CK > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list Dino, Try gtk_clist_column_titles_passive (). -- regards, Luciano Chavez lnx1138@us.ibm.com http://sf.net/projects/evms From hp@redhat.com Tue Feb 5 11:12:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 08CD918283 for ; Tue, 5 Feb 2002 11:12:02 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g15GBxY17829; Tue, 5 Feb 2002 11:11:59 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Volkan Arslan Cc: gtk-list@gnome.org Subject: Re: Release date of GTK+ 2.0 ? References: <3C5FA856.F49CECF1@gmx.net> From: Havoc Pennington Date: 05 Feb 2002 11:11:58 -0500 In-Reply-To: <3C5FA856.F49CECF1@gmx.net> Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Volkan Arslan writes: > > does someone know, when GTK+ 2.0 will be released ? I have looked at > www.gtk.org, but couldn't find anything regarding the release date of > GTK+ 2.0. > Look at developer.gnome.org/dotplan, it will be out before GNOME 2 is. Havoc From Volkan_Arslan@gmx.net Tue Feb 5 11:16:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id 5FE861841A for ; Tue, 5 Feb 2002 11:16:13 -0500 (EST) Received: (qmail 11472 invoked by uid 0); 5 Feb 2002 16:16:12 -0000 Received: from ru-pc11.inf.ethz.ch (HELO gmx.net) (129.132.12.191) by mail.gmx.net (mp011-rz3) with SMTP; 5 Feb 2002 16:16:12 -0000 Message-ID: <3C60053D.1BA7880B@gmx.net> Date: Tue, 05 Feb 2002 17:15:57 +0100 From: Volkan Arslan X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: Release date of GTK+ 2.0 ? References: <3C5FA856.F49CECF1@gmx.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Havoc, thanks for the information. Regards, Volkan Havoc Pennington wrote: > Volkan Arslan writes: > > > > does someone know, when GTK+ 2.0 will be released ? I have looked at > > www.gtk.org, but couldn't find anything regarding the release date of > > GTK+ 2.0. > > > > Look at developer.gnome.org/dotplan, it will be out before GNOME 2 is. > > Havoc From leidola@newcon.de Tue Feb 5 16:59:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (mail-1.newcon.de [195.145.56.9]) by mail.gnome.org (Postfix) with ESMTP id 8DA1B186CB for ; Tue, 5 Feb 2002 16:59:38 -0500 (EST) Received: from [213.70.108.83] ([213.70.108.83]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id WAA31184; Tue, 5 Feb 2002 22:59:30 +0100 Subject: Re: Run time error in gtk1.3 application From: Olaf Leidinger To: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares , GTK Mailing List In-Reply-To: <1012927235.1141.4.camel@flavio.maqplas> References: <1012915087.1142.1.camel@flavio.maqplas> <1012919654.791.18.camel@attic> <1012927235.1141.4.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution/0.12 (Preview Release) Date: 05 Feb 2002 23:01:55 +0100 Message-Id: <1012946521.2645.14.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Well, I think you need something like gnome 2.0.=20 Your gnome version (and mine too) uses gtk+-1.2 and when you link your app with the gnome libs it will also use gtk+-1.2 Have a look at=20 gnome-config --libs gnomeui or =09 gnome-config --libs gnome glib+-1.2 and gtk+-1.2 are always linked to your executable. But have a look at this http://developer.gnome.org/dotplan/porting/ it might help you with your work. Ciao, Olaf Am 05 Feb 2002 14:40:34 -0200 schrieb Fl=E1vio Alberto Lopes Soares: > Is true that to compile gtk+2.0 I need Gnome 2.0 ? >=20 > If true I'm crashing my head in wall ! >=20 > I need to install all gnome2.0 to correctly compile my program ????? >=20 > Thanks for all help >=20 > Flavio Alberto=20 >=20 >=20 From doc@deadvirgins.org.uk Tue Feb 5 18:55:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand3.global.net.uk (sand3.global.net.uk [195.147.246.249]) by mail.gnome.org (Postfix) with ESMTP id 81AB918D44 for ; Tue, 5 Feb 2002 18:55:33 -0500 (EST) Received: from p6ds08a06.client.global.net.uk ([195.147.216.110] helo=deadvirgins.org.uk) by sand3.global.net.uk with esmtp (Exim 3.22 #1) id 16YFQx-00073x-00 for gtk-list@gnome.org; Tue, 05 Feb 2002 23:55:32 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g15NtTs00427 for gtk-list@gnome.org; Tue, 5 Feb 2002 23:55:29 GMT Message-Id: <200202052355.g15NtTs00427@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: gtk-list@gnome.org Subject: auto repeat Date: Tue, 5 Feb 2002 23:55:28 +0000 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Can anyone give me some pointers on implementing a form of auto-repeat...? I've looked through the FAQ and the Tutorial, but it's only mentioned as a "things to add later" when talking about designing custom widgets... I don't want to add repeat to buttons or similar type widgets, but instead to a GDK drawing area. I have 'hotspots' in my drawing area that the user can click in to increment a value, and I'd like to have an autorepeat so the user doesn't wear his mouse button out.... Anyone give me any pointers...? -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From pbd@op.net Tue Feb 5 19:01:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id CCB0318D44 for ; Tue, 5 Feb 2002 19:01:08 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-43.phlpa.fast.net [209.92.96.43]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id TAA21564; Tue, 5 Feb 2002 19:01:04 -0500 (EST) Message-Id: <200202060001.TAA21564@renoir.op.net> To: doc@deadvirgins.org.uk Cc: gtk-list@gnome.org Subject: Re: auto repeat In-reply-to: Your message of "Tue, 05 Feb 2002 23:55:28 GMT." <200202052355.g15NtTs00427@deadvirgins.org.uk> Date: Tue, 05 Feb 2002 18:59:41 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > >Hi > >Can anyone give me some pointers on implementing a form of auto-repeat...? >I've looked through the FAQ and the Tutorial, but it's only mentioned as a >"things to add later" when talking about designing custom widgets... > >I don't want to add repeat to buttons or similar type widgets, but instead to >a GDK drawing area. I have 'hotspots' in my drawing area that the user can >click in to increment a value, and I'd like to have an autorepeat so the user >doesn't wear his mouse button out.... > >Anyone give me any pointers...? look at the spinbutton code, which users timers to achieve this. i have a generic C++ class called AutoSpinner which splits the spinbutton code out into a distinct object that can be used for other things besides spinbuttons. let me know if you're interested. --p From inodal@teleline.es Tue Feb 5 20:05:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp5.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 12788182D6 for ; Tue, 5 Feb 2002 20:05:25 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp5.mail.isp (Netscape Messaging Server 4.15 tsmtp5 Jul 26 2001 13:10:38) with ESMTP id GR370E00.89D for ; Wed, 6 Feb 2002 02:05:02 +0100 Message-ID: <3C608153.9050404@teleline.es> Date: Wed, 06 Feb 2002 01:05:23 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: GTK+ equivalent to Motif "XtAppProcessEvent()" Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want my aplication to stop the gtk_main() until the user press a button, which change the value of a variable called "state": while(state == EXIT_WAIT) { ....**stop gtk_main**.... } if (state == EXIT_OK) { [...] } else { [...] } ------ In Motif I used: while (state == EXIT_WAIT) XtAppProcessEvent(GB_context, XtIMAll); if (state == EXIT_OK) { [...] } else { [...] } ----- Which is the GTK+ equivalent? Thanks, Ignacio Nodal From seberino@dt092n42.san.rr.com Wed Feb 6 03:23:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 7B6DE183A4 for ; Wed, 6 Feb 2002 03:23:59 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNMx-00009n-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:23:55 -0800 Date: Wed, 6 Feb 2002 00:23:55 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How initialize pixmap to something besides NULL? Message-ID: <20020206002355.A588@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: For various reasons I want to initialize a pixmap (GdkPixmap*) to something besides NULL. Is there another quick and easy thing I can initialize pixmap object too? (There is a command to return a pointer to a new pixmap object but I did not understand the first arg.) Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 03:25:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 3142E1879A for ; Wed, 6 Feb 2002 03:25:50 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNOo-00009r-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:25:50 -0800 Date: Wed, 6 Feb 2002 00:25:50 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: What's purpose of returned boolean in expose/configure event functions? Message-ID: <20020206002550.B588@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Examples of expose and configure event functions regarding pixmaps seem to return either TRUE or FALSE. What is the meaning of this return value and the purpose? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 03:29:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id B2CCB18170 for ; Wed, 6 Feb 2002 03:29:43 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNSZ-0000AD-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:29:43 -0800 Date: Wed, 6 Feb 2002 00:29:43 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: Please explain 1st arg of configure & expose event functions... Message-ID: <20020206002943.C588@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Examples of configure and expose event functions have a mysterious GtkWidget for the first arg. I cannot seem to discern what it is. Please explain... Here is an example of an expose event function: gint middleMassTimeSeriesPlotPatch(GtkWidget* widget, GdkEventExpose* event) { gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], Pixmaps::middleMassTimeSeriesPlot, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return FALSE; }; Here is an example of a configure event function: gint middleMassTimeSeriesPlotDraw(GtkWidget* widget, GdkEventConfigure* event) { gdk_pixmap_unref(Pixmaps::middleMassTimeSeriesPlot); Pixmaps::middleMassTimeSeriesPlot = gdk_pixmap_new(widget->window, widget->allocation.width, widget->allocation.height, -1); gdk_draw_rectangle(Pixmaps::middleMassTimeSeriesPlot, widget->style->black_gc, TRUE, 0, 0, widget->allocation.width, widget->allocation.height); gdk_draw_line(Pixmaps::middleMassTimeSeriesPlot, widget->style->white_gc, 0, 0, widget->allocation.width, widget->allocation.height); gdk_draw_line(Pixmaps::middleMassTimeSeriesPlot, widget->style->white_gc, 0, widget->allocation.height, widget->allocation.width, 0); return TRUE; }; What is all this widget->allocation.height, widget->window stuff and where did it come from and why is it useful? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 03:32:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 4E82E187D4 for ; Wed, 6 Feb 2002 03:32:38 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNVO-0000Ad-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:32:38 -0800 Date: Wed, 6 Feb 2002 00:32:38 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: vertical or rotated gtk_label_new("TEXT") possible??? Message-ID: <20020206003238.A656@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible to have gtk_label_new("TEXT") be vertical or rotated??? Since one cannot put letters in a pixmap this is my only hope for vertical/sideways letters. Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From blue_pion@hotmail.com Wed Feb 6 03:42:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f62.pav1.hotmail.com [64.4.31.62]) by mail.gnome.org (Postfix) with ESMTP id 62AD518472 for ; Wed, 6 Feb 2002 03:42:53 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 6 Feb 2002 00:42:52 -0800 Received: from 137.132.3.9 by pv1fd.pav1.hotmail.msn.com with HTTP; Wed, 06 Feb 2002 08:42:52 GMT X-Originating-IP: [137.132.3.9] From: "Ricky Foo" To: gtk-list@gnome.org Subject: help! Date: Wed, 06 Feb 2002 08:42:52 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 06 Feb 2002 08:42:52.0495 (UTC) FILETIME=[43BA55F0:01C1AEEA] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I have this graph that is to show the traffic throughput. It updates every 2 secs. What should be the correct way to do this so that the axes can update dynamically, i.e it progress from right to left, showing the time. The diagram below shows the x-axis. now: ---+----+----+----+---- 20 22 24 26 later: ---+----+----+----+---- 22 24 26 28 Ricky _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From root@localhost.localdomain Wed Feb 6 04:09:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.225.173]) by mail.gnome.org (Postfix) with ESMTP id 5CE8C185B0 for ; Wed, 6 Feb 2002 04:09:15 -0500 (EST) Received: (from root@localhost) by localhost.localdomain (8.11.2/8.11.2) id g16997q03907; Wed, 6 Feb 2002 14:39:07 +0530 Date: Wed, 6 Feb 2002 14:39:07 +0530 Message-Id: <200202060909.g16997q03907@localhost.localdomain> To: gtk-list@gnome.org From: inimss@yahoo.com Subject: Problem with select_row signal of CList Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). Please help me to find out a way to make it trigger the signal. ThankYou Dino CK From root@localhost.localdomain Wed Feb 6 04:10:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.225.173]) by mail.gnome.org (Postfix) with ESMTP id 85BEC186D6 for ; Wed, 6 Feb 2002 04:10:26 -0500 (EST) Received: (from root@localhost) by localhost.localdomain (8.11.2/8.11.2) id g169A1g03915; Wed, 6 Feb 2002 14:40:01 +0530 Date: Wed, 6 Feb 2002 14:40:01 +0530 Message-Id: <200202060910.g169A1g03915@localhost.localdomain> To: gtk-list@gnome.org From: inimss@yahoo.com Subject: [INIMSS] Problem with select_row signal of CList Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). Please help me to find out a way to make it trigger the signal. ThankYou Dino CK From coframi.balr001@rd.francetelecom.com Wed Feb 6 04:53:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id 1B47418132 for ; Wed, 6 Feb 2002 04:53:42 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M416640>; Wed, 6 Feb 2002 10:52:54 +0100 Message-ID: From: zze-coframi balr001 To: "'inimss@yahoo.com'" , gtk-list@gnome.org Subject: RE: [INIMSS] Problem with select_row signal of CList Date: Wed, 6 Feb 2002 10:53:08 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-94cab528-1acd-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-94cab528-1acd-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AEF4.146151A0" ------_=_NextPart_001_01C1AEF4.146151A0 Content-Type: text/plain Hello, try GTK_SELECTION_BROWSE Isabelle -----Message d'origine----- De : inimss@yahoo.com [mailto:inimss@yahoo.com] Envoye : mercredi 6 fevrier 2002 10:10 A : gtk-list@gnome.org Objet : [INIMSS] Problem with select_row signal of CList Hi In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). Please help me to find out a way to make it trigger the signal. ThankYou Dino CK _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AEF4.146151A0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] Problem with select_row signal of CList

Hello,

try GTK_SELECTION_BROWSE

Isabelle

-----Message d'origine-----
De : inimss@yahoo.com [mailto:inimss@yahoo.com]
Envoye : mercredi 6 fevrier 2002 10:10
A : gtk-list@gnome.org
Objet : [INIMSS] Problem with select_row signal of = CList


Hi

In my gtk app I tried to handle the select_row signal = of GtkCList. When I changed the row selection with my mouse, it worked = fine, but when I do it with the keyboard's arrow keys, its not working, = ie the signal is not triggered for the keyboard. I had made the CList = Selection Mode to Single (glade term).

Please help me to find out a way to make it trigger = the signal.

ThankYou
Dino CK


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

------_=_NextPart_001_01C1AEF4.146151A0-- ------=_NextPartTM-000-94cab528-1acd-11d6-b1e5-00508b69ab48-- From switk@yahoo.com Wed Feb 6 06:20:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p100.localdomain (24-216-38-22.hsacorp.net [24.216.38.22]) by mail.gnome.org (Postfix) with ESMTP id 0DB6A18130 for ; Wed, 6 Feb 2002 06:20:57 -0500 (EST) Received: from [192.168.1.3] (ada.localdomain [192.168.1.3]) by p100.localdomain (8.9.3/8.9.3) with ESMTP id GAA17474 for ; Wed, 6 Feb 2002 06:28:31 -0500 Subject: Re: [INIMSS] Problem with select_row signal of CList From: Stephen Witkop To: gtk-list In-Reply-To: <200202060910.g169A1g03915@localhost.localdomain> References: <200202060910.g169A1g03915@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 06 Feb 2002 06:20:55 -0500 Message-Id: <1012994456.6610.3.camel@ada.localdomain> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-06 at 04:10, inimss@yahoo.com wrote: > Hi > > In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). > > Please help me to find out a way to make it trigger the signal. > The "select_row" signal is generated when you use the on a row, not just when it is highlighted moving through the list with the arrow keys. Stephen From John.Cupitt@ng-london.org.uk Wed Feb 6 07:13:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 6C10018A17 for ; Wed, 6 Feb 2002 07:13:16 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HN1G>; Wed, 6 Feb 2002 12:13:15 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HN1F; Wed, 6 Feb 2002 12:13:13 -0000 Message-ID: <3C611A9A.7090201@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: inodal@teleline.es Cc: gtk-list@gnome.org Subject: Re: GTK+ equivalent to Motif "XtAppProcessEvent()" Date: Wed, 6 Feb 2002 11:59:22 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal wrote: > I want my aplication to stop the gtk_main() until the user press a > button, which change the value of a variable called "state": Hi Ignacio, there are two gtk equivalents. First, you can call gtk_main() recursively. In your button callback, call gtk_main_quit(), and the enclosing gtk_main() will terminate. Second, you can call gtk_main_iteration() repeatedly, and stop when your button callback sets a flag. http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-MAIN-QUIT HTH, John ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From pbd@op.net Wed Feb 6 10:04:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 0E22F18344 for ; Wed, 6 Feb 2002 10:04:19 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA15617; Wed, 6 Feb 2002 10:04:10 -0500 (EST) Message-Id: <200202061504.KAA15617@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: vertical or rotated gtk_label_new("TEXT") possible??? In-reply-to: Your message of "Wed, 06 Feb 2002 00:32:38 PST." <20020206003238.A656@spawar.navy.mil> Date: Wed, 06 Feb 2002 10:02:55 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Is it possible to have gtk_label_new("TEXT") >be vertical or rotated??? no. X (which GDK relies on in the version of GTK+ that you are almost certainly using) provides no facilities for text rotation. if you want to do this, you have to put each letter into a pixmap using tricks that will be revealed in the file gnome-canvas-text-item.c in the gnome canvas code in GNOME CVS. its ugly, disgusting stuff. then you can pack the pixmaps into boxes or whatever. i don't know if Pango, which GTK+ 1.3/2.0 uses for text can do a better job on this. i have a feeling it can, but i am not sure. From pbd@op.net Wed Feb 6 10:07:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3018C18F78 for ; Wed, 6 Feb 2002 10:07:41 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA16080; Wed, 6 Feb 2002 10:07:38 -0500 (EST) Message-Id: <200202061507.KAA16080@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: Please explain 1st arg of configure & expose event functions... In-reply-to: Your message of "Wed, 06 Feb 2002 00:29:43 PST." <20020206002943.C588@spawar.navy.mil> Date: Wed, 06 Feb 2002 10:06:24 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Examples of configure and expose event functions >have a mysterious GtkWidget for the first arg. >I cannot seem to discern what it is. often, a signal is emitted because of an event occuring in/on the widget. the handler(s) for the signal receive a pointer to the widget as their first argument. this allows them to know which widget they are dealing with (since the same function might be used to handle similar signals for many different widgets). >What is all this widget->allocation.height, widget->window stuff and where >did it come from and why is it useful? if you are going to do "low level" drawing in a widget, you need to know how big the widget is, and you need access to the GdkWindow that is actually the object in which drawing occurs. these are members of all GtkWidgets (though the GdkWindow member is only valid after the widget has been realized - it corresponds (when using XWindow) to an actual X window). --p From pbd@op.net Wed Feb 6 10:10:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D007318CB1 for ; Wed, 6 Feb 2002 10:10:30 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA16411; Wed, 6 Feb 2002 10:10:27 -0500 (EST) Message-Id: <200202061510.KAA16411@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? In-reply-to: Your message of "Wed, 06 Feb 2002 00:25:50 PST." <20020206002550.B588@spawar.navy.mil> Date: Wed, 06 Feb 2002 10:09:12 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Examples of expose and configure event functions >regarding pixmaps seem to return either TRUE or FALSE. > >What is the meaning of this return value and the purpose? *all* signal handlers for signals that have a non-void return type must return TRUE or FALSE to indicate whether or not they have handled the signal. its up to the handler code to decide what "handled" might mean, given the following awareness of what their return value will mean: if they return TRUE, then generally other handlers that were connected later will not be called. if they return FALSE, the other handlers will be called. the way this all works is a bit muddied in GTK+ 1.2; it appears to be much cleaner in GTK+ 1.3/2.0. --p From davidgn@servidor.unam.mx Wed Feb 6 10:23:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id E4C9218CC4 for ; Wed, 6 Feb 2002 10:23:48 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.176]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g16FMXk06370 for ; Wed, 6 Feb 2002 09:22:34 -0600 (CST) Date: Wed, 6 Feb 2002 09:39:19 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: Button press Message-Id: <20020206093919.003da1d9.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times 20 times at once or so. (The button is supossed to increment the content of a label). How can i make it so that if i held the button pressed, the signal will repeat itself, but with a small, but noticeable, delay? or is this in the FAQ? Thank you in advance. -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From sven@gimp.org Wed Feb 6 10:40:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id D759818344 for ; Wed, 6 Feb 2002 10:40:38 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16YUBK-0002zG-00; Wed, 06 Feb 2002 16:40:22 +0100 To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: Button press References: <20020206093919.003da1d9.davidgn@servidor.unam.mx> From: Sven Neumann Date: 06 Feb 2002 16:40:22 +0100 In-Reply-To: <20020206093919.003da1d9.davidgn@servidor.unam.mx> Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, David Eduardo Gomez Noguera writes: > I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. > Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times 20 times at once or so. (The button is supossed to increment the content of a label). > How can i make it so that if i held the button pressed, the signal will repeat itself, but with a small, but noticeable, delay? or is this in the FAQ? > use a timeout: http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-TIMEOUT-ADD Salut, Sven From pbd@op.net Wed Feb 6 10:41:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id EA67019047 for ; Wed, 6 Feb 2002 10:41:09 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA20200; Wed, 6 Feb 2002 10:41:06 -0500 (EST) Message-Id: <200202061541.KAA20200@renoir.op.net> To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: Button press In-reply-to: Your message of "Wed, 06 Feb 2002 09:39:19 CST." <20020206093919.003da1d9.davidgn@servidor.unam.mx> Date: Wed, 06 Feb 2002 10:39:51 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I wanted to make a button behave lika a keyboard key, in that if i leave the k >ey pressed, it will repeat. >Thus i connected a button widget to a pressed signal, but when i press it its >like sometimes it was kust once, and other times 20 times at once or so. (The >button is supossed to increment the content of a label). >How can i make it so that if i held the button pressed, the signal will repea >t itself, but with a small, but noticeable, delay? or is this in the FAQ? search the archives for yesterday. i answered a similar question then. From sven@gimp.org Wed Feb 6 10:51:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 5E0EF18F22 for ; Wed, 6 Feb 2002 10:51:32 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16YU93-0002z6-00; Wed, 06 Feb 2002 16:38:01 +0100 To: Paul Davis Cc: Chris Seberino , gtk-list@gnome.org Subject: Re: vertical or rotated gtk_label_new("TEXT") possible??? References: <200202061504.KAA15617@renoir.op.net> From: Sven Neumann Date: 06 Feb 2002 16:38:01 +0100 In-Reply-To: <200202061504.KAA15617@renoir.op.net> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Paul Davis writes: > >Is it possible to have gtk_label_new("TEXT") > >be vertical or rotated??? > > no. X (which GDK relies on in the version of GTK+ that you are almost > certainly using) provides no facilities for text rotation. this is not the full truth since X11R6 does support rotated glyphs, see http://www.faqs.org/faqs/x-faq/part7/section-45.html > i don't know if Pango, which GTK+ 1.3/2.0 uses for text can do a > better job on this. i have a feeling it can, but i am not sure. while the layers below Pango probably have this feature (at least FreeType2 allows to specify a transformation matrix), Pango itself has no API for rotations or other transformations. Salut, Sven From pbd@op.net Wed Feb 6 10:56:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 29C8418D92 for ; Wed, 6 Feb 2002 10:56:29 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA21863; Wed, 6 Feb 2002 10:56:24 -0500 (EST) Message-Id: <200202061556.KAA21863@renoir.op.net> To: Sven Neumann Cc: Chris Seberino , gtk-list@gnome.org Subject: Re: vertical or rotated gtk_label_new("TEXT") possible??? In-reply-to: Your message of "06 Feb 2002 16:38:01 +0100." Date: Wed, 06 Feb 2002 10:55:10 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> >Is it possible to have gtk_label_new("TEXT") >> >be vertical or rotated??? >> >> no. X (which GDK relies on in the version of GTK+ that you are almost >> certainly using) provides no facilities for text rotation. > >this is not the full truth since X11R6 does support rotated glyphs, see > > http://www.faqs.org/faqs/x-faq/part7/section-45.html rotated glyphs do not make for rotated text :) to get vertical text you still have to place each glyph individually. xvertext can take care of this, i suppose. From davidgn@servidor.unam.mx Wed Feb 6 11:14:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id E879418FA4 for ; Wed, 6 Feb 2002 11:14:10 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.176]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g16GCnk26012 for ; Wed, 6 Feb 2002 10:12:51 -0600 (CST) Date: Wed, 6 Feb 2002 10:29:59 -0600 From: David Eduardo Gomez Noguera To: gtk-list@gnome.org Subject: Re: Button press Message-Id: <20020206102959.1b232283.davidgn@servidor.unam.mx> In-Reply-To: References: <20020206093919.003da1d9.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 06 Feb 2002 16:40:22 +0100 Sven Neumann wrote: > Hi, > > David Eduardo Gomez Noguera writes: > > > I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. > > Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times 20 times at once or so. (The button is supossed to increment the content of a label). > > How can i make it so that if i held the button pressed, the signal will repeat itself, but with a small, but noticeable, delay? or is this in the FAQ? > > > > use a timeout: > http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-TIMEOUT-ADD > > Thank you. I was just thinking what would be the best way of action. Have the function registered on a button pressed event, and removed on a button realeased event? or have a gtlobal static variable set to TRUE, and the function registered on a button press, and have the button release set the var to FALSE? (that variable would be the return fariable. I guess the firstone is better (more secure and less error prone), but would like to hear some advices. Thank you again. > Salut, Sven > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From pbd@op.net Wed Feb 6 11:20:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D0EBA190D0 for ; Wed, 6 Feb 2002 11:20:17 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA24829; Wed, 6 Feb 2002 11:20:14 -0500 (EST) Message-Id: <200202061620.LAA24829@renoir.op.net> To: davidgn@servidor.unam.mx Cc: gtk-list@gnome.org Subject: Re: Button press In-reply-to: Your message of "Wed, 06 Feb 2002 10:29:59 CST." <20020206102959.1b232283.davidgn@servidor.unam.mx> Date: Wed, 06 Feb 2002 11:19:01 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Thank you. >I was just thinking what would be the best way of action. >Have the function registered on a button pressed event, and removed on a butto >n realeased event? >or have a gtlobal static variable set to TRUE, and the function registered on >a button press, and have the button release set the var to FALSE? (that variab >le would be the return fariable. >I guess the firstone is better (more secure and less error prone), but would l >ike to hear some advices. globals are always a bad idea. look at the code in gtkspinbutton.c --p From hp@redhat.com Wed Feb 6 12:11:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 09774182C5 for ; Wed, 6 Feb 2002 12:11:04 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g16HAr624653; Wed, 6 Feb 2002 12:10:53 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "satyajit kanungo" Cc: Subject: Re: gtk+1.3 library References: From: Havoc Pennington Date: 06 Feb 2002 12:10:53 -0500 In-Reply-To: Message-ID: Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "satyajit kanungo" writes: > Well, I see gtk+ using lot of deprecated calls. I also saw many patches submitted > in bugzilla (#52790) but not yet gone into the source. > > I have replaced all the GtkType & GtkTypeInfo to GType & GTypeInfo. > The attached diff contains the changes. I 'm planning to do all signal changes > (replacing gtk_signal_* calls) also in the library. > > Expecting your comments. Thanks! Please be sure your patches are in bugzilla, so they won't be forgotten. Havoc From inodal@teleline.es Wed Feb 6 13:03:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp4.mail.isp (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id A964318761 for ; Wed, 6 Feb 2002 13:03:25 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp4.mail.isp (Netscape Messaging Server 4.15 tsmtp4 Jul 26 2001 13:10:38) with ESMTP id GR4I4Y00.5RB for ; Wed, 6 Feb 2002 19:02:58 +0100 Message-ID: <3C616FE8.4060309@teleline.es> Date: Wed, 06 Feb 2002 18:03:20 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: don't wanna see this CRITICAL Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way to avoid this message from being prompt? ** CRITICAL **: file gtkglarea.c: line 184 (gtk_gl_area_make_current): assertion `GTK_WIDGET_REALIZED(gl_area)' failed. I just want to call glViewport() in my InitGL() function. I know my "gl_area" isn't still realized, but I don't care... Does anybody know if I can call glViewport() without caring of the if (gtk_gl_area_make_current (glarea)) result?? I'm only using one GtkGLArea in my program. Thanks Ignacio Nodal From seberino@dt092n42.san.rr.com Wed Feb 6 13:05:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id DAA4A18F9A for ; Wed, 6 Feb 2002 13:04:59 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YWRE-00004u-00; Wed, 06 Feb 2002 10:04:56 -0800 Date: Wed, 6 Feb 2002 10:04:56 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? Message-ID: <20020206100456.A266@spawar.navy.mil> References: <20020206002550.B588@spawar.navy.mil> <200202061510.KAA16411@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202061510.KAA16411@renoir.op.net>; from pbd@op.net on Wed, Feb 06, 2002 at 10:09:12AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Feb 06, 2002 at 10:09:12AM -0500, Paul Davis wrote: > >Examples of expose and configure event functions > >regarding pixmaps seem to return either TRUE or FALSE. > > > >What is the meaning of this return value and the purpose? > > *all* signal handlers for signals that have a non-void return type > must return TRUE or FALSE to indicate whether or not they have > handled the signal. its up to the handler code to decide what > "handled" might mean, given the following awareness of what their > return value will mean: > > if they return TRUE, then generally other handlers that were connected > later will not be called. if they return FALSE, the other handlers > will be called. > > the way this all works is a bit muddied in GTK+ 1.2; it appears to be > much cleaner in GTK+ 1.3/2.0. > > --p Thanks for reply. So it sounds like some signal handlers are only the first of many functions to handle an event. (Most of which we don't see or deal with?) If our function does ALL work then we return TRUE but if it is only one of many then we return FALSE. How are we to know if there are other functions GTK+ will want to call for an event? Thanks again, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 13:13:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id AF08B18246 for ; Wed, 6 Feb 2002 13:13:31 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA07323; Wed, 6 Feb 2002 13:13:28 -0500 (EST) Message-Id: <200202061813.NAA07323@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? In-reply-to: Your message of "Wed, 06 Feb 2002 10:04:56 PST." <20020206100456.A266@spawar.navy.mil> Date: Wed, 06 Feb 2002 13:12:15 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Thanks for reply. So it sounds like some signal handlers >are only the first of many functions to handle an event. >(Most of which we don't see or deal with?) >If our function does ALL work then we return TRUE >but if it is only one of many then we return FALSE. >How are we to know if there are other functions GTK+ >will want to call for an event? you don't. thats why you have to decide if you think the signal has been handled or not. that will depend hugely on the circumstances of your program. sometimes i know i have to return TRUE, sometimes i know i have to return FALSE and sometimes it really doesn't matter. for GTK+ 1.2, there happens to be a default handler which will be called whether or not yours returns TRUE or FALSE. but my understanding is that in 1.3/2.0, returning TRUE will stop even the default handler from being called. there are also so-called "after" handlers (connected with gtk_signal_connect_after()) which are called after the default handler. its not clear to me if these will still be called in 1.3/2.0 if a "before" handler returns TRUE. owen/havoc and others will know. --p From pbd@op.net Wed Feb 6 13:14:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id EFFDA18E29 for ; Wed, 6 Feb 2002 13:14:34 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA07411; Wed, 6 Feb 2002 13:14:27 -0500 (EST) Message-Id: <200202061814.NAA07411@renoir.op.net> To: Ignacio Nodal Cc: GTK-List Subject: Re: don't wanna see this CRITICAL In-reply-to: Your message of "Wed, 06 Feb 2002 18:03:20 GMT." <3C616FE8.4060309@teleline.es> Date: Wed, 06 Feb 2002 13:13:15 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Is there any way to avoid this message from being prompt? > >** CRITICAL **: file gtkglarea.c: line 184 (gtk_gl_area_make_current): >assertion `GTK_WIDGET_REALIZED(gl_area)' failed. > > >I just want to call glViewport() in my InitGL() function. I know my >"gl_area" isn't still realized, but I don't care... you don't, but gtkglarea.c does. just call gtk_widget_realize() on your glarea before calling InitGL(). --p From seberino@dt092n42.san.rr.com Wed Feb 6 13:22:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F12B91821B for ; Wed, 6 Feb 2002 13:22:08 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YWhL-00005w-00; Wed, 06 Feb 2002 10:21:35 -0800 Date: Wed, 6 Feb 2002 10:21:35 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: Please explain 1st arg of configure & expose event functions... Message-ID: <20020206102135.B266@spawar.navy.mil> References: <20020206002943.C588@spawar.navy.mil> <200202061507.KAA16080@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202061507.KAA16080@renoir.op.net>; from pbd@op.net on Wed, Feb 06, 2002 at 10:06:24AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Feb 06, 2002 at 10:06:24AM -0500, Paul Davis wrote: > >Examples of configure and expose event functions > >have a mysterious GtkWidget for the first arg. > >I cannot seem to discern what it is. > > often, a signal is emitted because of an event occuring in/on the > widget. the handler(s) for the signal receive a pointer to the widget > as their first argument. this allows them to know which widget they > are dealing with (since the same function might be used to handle > similar signals for many different widgets). > > >What is all this widget->allocation.height, widget->window stuff and where > >did it come from and why is it useful? > > if you are going to do "low level" drawing in a widget, you need to > know how big the widget is, and you need access to the GdkWindow that > is actually the object in which drawing occurs. these are members of > all GtkWidgets (though the GdkWindow member is only valid after the > widget has been realized - it corresponds (when using XWindow) to an > actual X window). > > --p P. Thanks again! This widget that is the first argument seems to be the window that _contains_ the pixmap drawing from what you are saying. I'm confused because some elements of this window object are used to give information about the _pixmap_?!?!? Let me explain if you don't mind... I know that following command ends up drawing a rectangle in the pixmap which is NOT the same size as the window it is in. Yet, notice that all dimensions given are the dimensions of the window?!?!? (This is inside a configure event signal handler so widget is the first arg we are talking about.) gdk_draw_rectangle(Pixmaps::middleMassTimeSeriesPlot, widget->style->black_gc, TRUE, 0, 0, widget->allocation.width, widget->allocation.height); And... The following command redraws a pixmap after an expose event. Notice the second argument seems to be saying "Use the style of the widget (window)". Shouldn't we be using the "style" of the pixmap?? (By the way, unrelated: why do we need event->area.x * event->area.y args twice?) gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], Pixmaps::powerSpectralDensityPlot, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 13:47:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 156AB180E8 for ; Wed, 6 Feb 2002 13:47:05 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA11202; Wed, 6 Feb 2002 13:47:00 -0500 (EST) Message-Id: <200202061847.NAA11202@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: Please explain 1st arg of configure & expose event functions... In-reply-to: Your message of "Wed, 06 Feb 2002 10:21:35 PST." <20020206102135.B266@spawar.navy.mil> Date: Wed, 06 Feb 2002 13:45:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >This widget that is the first argument seems to be the window >that _contains_ the pixmap drawing from what you are saying. no. its the widget for which the event took place and for which the signal is being emitted. this mistake has caused you much later confusion. >I'm confused because some elements of this window object >are used to give information about the _pixmap_?!?!? it seems you don't have much of a grounding in XWindow basics, which is leading to your confusion (you could think of them as GDK basics, but GDK's model comes mostly from XWindow). anything that gets drawn on the screen must be drawn on an object called a "window". that includes text, lines, pixmaps, rectangles, whatever. a pixmap itself is really just a set of data containing pixel values. by itself, that won't cause anything to appear on the screen. for it to be visible, it has to be drawn. for it to be drawn, there has to be a window to draw it into. thus, the widget (i.e. a C struct) that is used to display pixmaps contains both info about the pixmap itself, and info about a window (a GdkWindow, specifically) into which it is drawn. now, this window has *nothing* to do with the kind of window you are thinking about. its just a rectangular area of the screen. specifically, it is *not* a GtkWindow (notice the "t" instead of the "d"), it is not a widget, and it is not managed by your window manager. its just a part of the screen where things may be drawn. most widgets have a window associated with them, though a number of them do not, and draw onto their container/parent's window (or their grand-parent's window, or whatever). to repeat: you cannot draw without a GdkWindow. the GdkWindow does not contain the pixmap the way a GtkWindow would, it is where the pixmap is drawn. a pixmap widget contains info about the pixmap and a pointer to the GdkWindow where the data in the pixmap will be drawn. >Shouldn't we be using the "style" of the pixmap?? (By the way, unrelated: >why do we need event->area.x * event->area.y args twice?) > > gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widge >t)], > Pixmaps::powerSpectralDensityPlot, event->area.x, event->area.y, > event->area.x, event->area.y, event->area.width, event->area.height); look at the docs for gdk_draw_pixmap, and it will be clear. --p From seberino@dt092n42.san.rr.com Wed Feb 6 14:08:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 7B21D18761 for ; Wed, 6 Feb 2002 14:08:38 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YXQr-000084-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 11:08:37 -0800 Date: Wed, 6 Feb 2002 11:08:37 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How get NEW value for "value_changed" event? (from GtkAdjustment object?) Message-ID: <20020206110837.A495@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "value_changed" events are when someone changes value with a slider bar. (I think.) This calls a signal handler that gets the GtkAdjustment object as a parameter. How/where can I pull out the value that slider bar value was changed to. I need to do something with the NEW value! Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 14:14:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 379A318761 for ; Wed, 6 Feb 2002 14:14:04 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA14219; Wed, 6 Feb 2002 14:14:00 -0500 (EST) Message-Id: <200202061914.OAA14219@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How get NEW value for "value_changed" event? (from GtkAdjustment object?) In-reply-to: Your message of "Wed, 06 Feb 2002 11:08:37 PST." <20020206110837.A495@spawar.navy.mil> Date: Wed, 06 Feb 2002 14:12:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >"value_changed" events are when someone changes >value with a slider bar. (I think.) > >This calls a signal handler that gets the GtkAdjustment >object as a parameter. How/where can I pull out the value >that slider bar value was changed to. I need to do >something with the NEW value! sorry chris. this one is definitely an RTFM. the tutorial is a good place to start. --p From seberino@dt092n42.san.rr.com Wed Feb 6 14:19:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 508F0180D9 for ; Wed, 6 Feb 2002 14:19:06 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YXaz-00009D-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 11:19:05 -0800 Date: Wed, 6 Feb 2002 11:19:05 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-ID: <20020206111905.A566@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I need to sometimes initialize an object to NULL and get this message. How avoid??? warning: ANSI C++ forbids implicit conversion from `void *' in initialization Here is the pixmap class that causes this (outside of main() ) class Pixmaps { private: public: static GdkPixmap* middleMassTimeSeriesPlot; static GdkPixmap* phaseSpacePlot; static GdkPixmap* totalTimeSeriesPlot; static GdkPixmap* powerSpectralDensityPlot; }; GdkPixmap* Pixmaps::middleMassTimeSeriesPlot = NULL; GdkPixmap* Pixmaps::phaseSpacePlot = NULL; GdkPixmap* Pixmaps::totalTimeSeriesPlot = NULL; GdkPixmap* Pixmaps::powerSpectralDensityPlot = NULL; CS -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 14:24:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id EDAB3182C5 for ; Wed, 6 Feb 2002 14:24:02 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA15372; Wed, 6 Feb 2002 14:24:00 -0500 (EST) Message-Id: <200202061924.OAA15372@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? In-reply-to: Your message of "Wed, 06 Feb 2002 11:19:05 PST." <20020206111905.A566@spawar.navy.mil> Date: Wed, 06 Feb 2002 14:22:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I need to sometimes initialize an object to NULL and get this >message. How avoid??? this is getting too close to generic programming questions for this list. if you don't understand how to fix this yourself, i worry about future progress on your software. SomeObject *someObject = (SomeObject *) 0; you should never use "NULL" in a C++ program. look it up with google to understand why. --p From inodal@teleline.es Wed Feb 6 14:24:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp10.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 96EAE180D9 for ; Wed, 6 Feb 2002 14:24:51 -0500 (EST) Received: from paranoia ([213.97.141.171]) by tsmtp10.mail.isp (Netscape Messaging Server 4.15 tsmtp10 Jul 26 2001 13:10:38) with SMTP id GR4LWS00.4WB; Wed, 6 Feb 2002 20:24:28 +0100 Message-ID: <000f01c1af43$f3fb3200$0a01a8c0@paranoia> From: "Ignacio Nodal" To: "Paul Davis" Cc: "GTK-List" References: <200202061814.NAA07411@renoir.op.net> Subject: Re: don't wanna see this CRITICAL Date: Wed, 6 Feb 2002 19:24:47 -0000 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ----- Original Message ----- From: "Paul Davis" To: "Ignacio Nodal" Cc: "GTK-List" Sent: Wednesday, February 06, 2002 6:13 PM Subject: Re: don't wanna see this CRITICAL > >Is there any way to avoid this message from being prompt? > > > >** CRITICAL **: file gtkglarea.c: line 184 (gtk_gl_area_make_current): > >assertion `GTK_WIDGET_REALIZED(gl_area)' failed. > > > > > >I just want to call glViewport() in my InitGL() function. I know my > >"gl_area" isn't still realized, but I don't care... > > you don't, but gtkglarea.c does. just call gtk_widget_realize() on > your glarea before calling InitGL(). > > --p I know it does, hehehe, but if I call gtk_widget_realize() the glarea will be shown, and I don't want it to be shown so soon.. even if I use gtk_widget_unrealize() inmediatelly after calling glViewport() I can see the glarea.Is there anyway to realize it without been shown? :) Thanks From hp@redhat.com Wed Feb 6 14:41:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 7A4C418307 for ; Wed, 6 Feb 2002 14:41:04 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g16Jf3124717; Wed, 6 Feb 2002 14:41:03 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Chris Seberino , gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? References: <200202061813.NAA07323@renoir.op.net> From: Havoc Pennington Date: 06 Feb 2002 14:41:03 -0500 In-Reply-To: <200202061813.NAA07323@renoir.op.net> Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > there are also so-called "after" handlers (connected with > gtk_signal_connect_after()) which are called after the default > handler. its not clear to me if these will still be called in 1.3/2.0 > if a "before" handler returns TRUE. owen/havoc and others will know. > No, they won't be called. TRUE stops the entire emission in 2.0. Havoc From Dexter.Filmore@gmx.de Wed Feb 6 16:15:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id AC057181A1 for ; Wed, 6 Feb 2002 16:15:28 -0500 (EST) Received: (qmail 17047 invoked by uid 0); 6 Feb 2002 21:15:27 -0000 Received: from pd952d1c4.dip.t-dialin.net (HELO shodan) (217.82.209.196) by mail.gmx.net (mp011-rz3) with SMTP; 6 Feb 2002 21:15:27 -0000 Date: Wed, 6 Feb 2002 22:13:20 +0100 From: Dexter Filmore To: gtklist Subject: wrong location? (n00b question) Message-Id: <20020206221320.07f2dfae.Dexter.Filmore@gmx.de> Organization: SCHWA Corporation X-Mailer: Sylpheed version 0.7.0 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: So I installed gtk on my Slack 8 recently for I thought "whatever was installed, maybe get the latest version". Then I discovered that 1.2.10 is already enclosured in Slack 8 and friend told me it's not too good having 2 packages of it simultaneously installed. So I kicked the one I installed myself out, deleted the package from Slack and reinstalled it. I'm still kinda linux noob, so one may forgive me that. Funny thing is: on a tty "echo $PATH" displays full path with /opt/gnome in it, on X as user as well, but in a terminal in X as root via su command the /opt/gnome path does not apper. How come? Next thing: is this the right location anyway? Tried to compile gtoaster recently, ./configure said "hey u dont have gtk" and other apps, too - they all look for gtk and devel stuff in /usr/local/somewhere as it seems. If someone could please shed some light on this? I'm close to insanity spending days on the simplest things. Dexter Filmore From seberino@dt092n42.san.rr.com Wed Feb 6 18:37:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 1EDE518141 for ; Wed, 6 Feb 2002 18:37:21 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16Ybcw-0000OU-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 15:37:22 -0800 Date: Wed, 6 Feb 2002 15:37:22 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How change color, draw border, change other stylistics of SLIDERS??? Message-ID: <20020206153722.A1515@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a list of sliders that sort of all blend together. * A nice border around each one would be nice to distinguish different slider components. * Different colors would serve same purpose. * Sliders DO NOT have arrows on each side like scroll bars do!!! How get arrow buttons back????? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 18:37:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F260C18141 for ; Wed, 6 Feb 2002 18:37:54 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YbdU-0000OY-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 15:37:56 -0800 Date: Wed, 6 Feb 2002 15:37:56 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How change size/font of gtk_label_new("TEXT")??? Message-ID: <20020206153756.B1515@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How change font or size of text for gtk_label_new("TEXT")??? cs -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 21:32:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id F169F18541 for ; Wed, 6 Feb 2002 21:32:07 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-230.phlpa.fast.net [209.92.227.230]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id VAA28700; Wed, 6 Feb 2002 21:32:04 -0500 (EST) Message-Id: <200202070232.VAA28700@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How change color, draw border, change other stylistics of SLIDERS??? In-reply-to: Your message of "Wed, 06 Feb 2002 15:37:22 PST." <20020206153722.A1515@spawar.navy.mil> Date: Wed, 06 Feb 2002 21:30:57 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: killing two birds with one stone: 1) >How change font or size of text for gtk_label_new("TEXT")??? 2) >* Different colors would serve same purpose. GtkWidget *label = gtk_label_new ("foo"); gtk_widget_set_name (label, "SuperlativeLabel"); GtkWidget *slider = gtk_hslider_new (....); gtk_widget_set_name (slider, "SuperlativeSlider"); then see Havoc's FAQ on colors: http://pobox.com/~hp/gtk-colors.html >I have a list of sliders that sort of all blend together. > >* A nice border around each one would be nice to > distinguish different slider components. put them in a frame in a box having called gtk_container_set_spacing() on the box. >* Sliders DO NOT have arrows on each side like > scroll bars do!!! How get arrow buttons back????? use scrollbars, i guess .... --p From pbd@op.net Wed Feb 6 21:34:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 16DB318FF2 for ; Wed, 6 Feb 2002 21:34:21 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-230.phlpa.fast.net [209.92.227.230]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id VAA28900; Wed, 6 Feb 2002 21:34:18 -0500 (EST) Message-Id: <200202070234.VAA28900@renoir.op.net> To: "Ignacio Nodal" Cc: "GTK-List" Subject: Re: don't wanna see this CRITICAL In-reply-to: Your message of "Wed, 06 Feb 2002 19:24:47 GMT." <000f01c1af43$f3fb3200$0a01a8c0@paranoia> Date: Wed, 06 Feb 2002 21:33:11 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> >I just want to call glViewport() in my InitGL() function. I know my >> >"gl_area" isn't still realized, but I don't care... >> >> you don't, but gtkglarea.c does. just call gtk_widget_realize() on >> your glarea before calling InitGL(). >> >> --p > >I know it does, hehehe, but if I call gtk_widget_realize() the glarea will >be shown, and I don't want it to be shown so soon.. even if I use >gtk_widget_unrealize() inmediatelly after calling glViewport() I can see the >glarea.Is there anyway to realize it without been shown? :) i don't know one. however, you could invert the problem and call InitGL() from a realize signal handler for the glarea. --p From Steph.Fox@btinternet.com Wed Feb 6 21:37:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium.btinternet.com (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id 071B718541 for ; Wed, 6 Feb 2002 21:37:27 -0500 (EST) Received: from host62-7-30-93.dial.btopenworld.com ([62.7.30.93] helo=t2r1o8) by protactinium.btinternet.com with smtp (Exim 3.22 #8) id 16YeR4-0003Hy-00; Thu, 07 Feb 2002 02:37:18 +0000 Message-ID: <017b01c1af80$2aee0080$b54c073e@t2r1o8> From: "Steph" To: "Chris Seberino" , "Paul Davis" Cc: References: <200202070232.VAA28700@renoir.op.net> Subject: Re: How change color, draw border, change other stylistics of SLIDERS??? Date: Thu, 7 Feb 2002 02:35:52 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: can't you use gtk_paint_arrow()? ----- Original Message -----=20 From: "Paul Davis" To: "Chris Seberino" Cc: Sent: Thursday, February 07, 2002 2:30 AM Subject: Re: How change color, draw border, change other stylistics of = SLIDERS???=20 > killing two birds with one stone: >=20 > 1) >How change font or size of text for gtk_label_new("TEXT")??? > 2) >* Different colors would serve same purpose. >=20 > GtkWidget *label =3D gtk_label_new ("foo"); > gtk_widget_set_name (label, "SuperlativeLabel"); >=20 > GtkWidget *slider =3D gtk_hslider_new (....); > gtk_widget_set_name (slider, "SuperlativeSlider"); >=20 > then see Havoc's FAQ on colors: >=20 > http://pobox.com/~hp/gtk-colors.html >=20 > >I have a list of sliders that sort of all blend together. > > > >* A nice border around each one would be nice to > > distinguish different slider components. >=20 > put them in a frame in a box having called > gtk_container_set_spacing() on the box. >=20 > >* Sliders DO NOT have arrows on each side like > > scroll bars do!!! How get arrow buttons back????? >=20 > use scrollbars, i guess .... >=20 > --p > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From rhfreeman@micron.com Thu Feb 7 04:53:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id 34EEB185F2 for ; Thu, 7 Feb 2002 04:53:38 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g179rbu14851 for ; Thu, 7 Feb 2002 02:53:37 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g179raV14846 for ; Thu, 7 Feb 2002 02:53:37 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 02:53:35 -0700 Message-ID: From: rhfreeman To: GTK Mailing List Subject: RE: Paned questions Date: Thu, 7 Feb 2002 02:53:35 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes thanks Olaf (and Thomas) for your input. The solution I used in the end was to have vpaneds in vpaneds to give all the levels I need. So in Olaf's example, hpaned2's pack1 widget was infact hpaned1! I can have as many hboxes as I need now and have some sort of paned control over them. Just one question now. My hboxes have a drawing_area in them which I need to resize. However, I can't tell the difference between the main window being re-sized and the paned widget re-sizing the hbox. I need to handle these differently! Does the paned widget give out a different signal or something similar I can use to tell the two events apart? Thanks!!! Rich > -----Original Message----- > From: Olaf Leidinger [mailto:leidola@newcon.de] > Sent: 04 February 2002 15:26 > To: rhfreeman; GTK Mailing List > Subject: Re: Paned questions > > > Am 04 Feb 2002 03:54:58 -0700 schrieb rhfreeman: > > Hi folks, > > > > I'm wanting to use the paned widgets to re-size my current > widgets but I'm a > > bit unsure about how it works. > > > > My program is quite simple. It has a window with a vbox in > it. It keeps > > adding hboxes to the vbox like this: > > > > (no hboxes) > > > > +------------+ > > | | > > | | > > | | > > | | > > | | > > +------------+ > > > > +------------+ > > | | > > | | > > | (hbox) | > > | | > > | | > > +------------+ > > > > +------------+ > > | hbox 1 | > > | | > > |------------| > > | hbox 2 | > > | | > > +------------+ > > > > +------------+ > > | hbox 1 | > > |------------| > > | hbox 2 | > > |------------| > > | hbox 3 | > > +------------+ > > > > I want a paned widget on the separator between hboxes. So I > want a paned > > widget controlling hbox1/hbox2 and another one controlling > hbox2/hbox3. > > > > So my questions are: > > > > 1. Can a widget have multiple paned widgets attached to it? > > 2. Can a paned widget control any widget type? As most > example code I've > > seen seems to be re-sizing a frame. > > > > Thanks!!! > > > > Rich > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > Hello! > > As I understood it a paned widget has two containers where you can add > widgets, a left side and a right one (or an upper and a lower). > > +--------------+ > | | > | container 1 | > | | > +=== gutter ===+ > | | > | container 2 | > | | > +--------------+ > > You can surely make a hbox to be child of a container. > And I think you don't have to set all the two childs of a paned widget > so you might create the following combination: > > +----vbox----------+ > | +- hpaned 1----+ | > | | | | > | | child 1 | | > | | | | > | +=== gutter ===+ | > | | | | > | | child 2 | | > | | | | > | +--------------+ | > | +- hpaned 2 ---+ | > | | | | > | | empty/not | | > | | visible | | > | | | | > | +=== gutter ===+ | > | | | | > | | child 2 | | > | | | | > | +--------------+ | > +------------------+ > > or something similar. > > Ciao > > Olaf > From rhfreeman@micron.com Thu Feb 7 05:47:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id 837C218319 for ; Thu, 7 Feb 2002 05:47:13 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g17AlCu08143 for ; Thu, 7 Feb 2002 03:47:12 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g17AlCV08139 for ; Thu, 7 Feb 2002 03:47:12 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 03:47:11 -0700 Message-ID: From: rhfreeman To: GTK Mailing List Subject: RE: Paned questions Date: Thu, 7 Feb 2002 03:47:09 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: As much as I hate to follow myself up! I've got the resizing working properly now thanks to using the resize event. A lot easier than I thought it would be. Now the other problem I've got also exists in the paned.c example program that comes with GTK. When you maximise the window, only the bottom widget gets expanded and the top widget remains the same size. I'd like them to be expanded proportionally together! Is there anyway of doing this? Thanks again! Rich > -----Original Message----- > From: rhfreeman [mailto:rhfreeman@micron.com] > Sent: 07 February 2002 09:54 > To: GTK Mailing List > Subject: RE: Paned questions > > > Yes thanks Olaf (and Thomas) for your input. The solution I > used in the end > was to have vpaneds in vpaneds to give all the levels I need. > So in Olaf's > example, hpaned2's pack1 widget was infact hpaned1! I can have as many > hboxes as I need now and have some sort of paned control over them. > > Just one question now. My hboxes have a drawing_area in them > which I need to > resize. However, I can't tell the difference between the main > window being > re-sized and the paned widget re-sizing the hbox. I need to > handle these > differently! Does the paned widget give out a different > signal or something > similar I can use to tell the two events apart? > > Thanks!!! > > Rich > > > -----Original Message----- > > From: Olaf Leidinger [mailto:leidola@newcon.de] > > Sent: 04 February 2002 15:26 > > To: rhfreeman; GTK Mailing List > > Subject: Re: Paned questions > > > > > > Am 04 Feb 2002 03:54:58 -0700 schrieb rhfreeman: > > > Hi folks, > > > > > > I'm wanting to use the paned widgets to re-size my current > > widgets but I'm a > > > bit unsure about how it works. > > > > > > My program is quite simple. It has a window with a vbox in > > it. It keeps > > > adding hboxes to the vbox like this: > > > > > > (no hboxes) > > > > > > +------------+ > > > | | > > > | | > > > | | > > > | | > > > | | > > > +------------+ > > > > > > +------------+ > > > | | > > > | | > > > | (hbox) | > > > | | > > > | | > > > +------------+ > > > > > > +------------+ > > > | hbox 1 | > > > | | > > > |------------| > > > | hbox 2 | > > > | | > > > +------------+ > > > > > > +------------+ > > > | hbox 1 | > > > |------------| > > > | hbox 2 | > > > |------------| > > > | hbox 3 | > > > +------------+ > > > > > > I want a paned widget on the separator between hboxes. So I > > want a paned > > > widget controlling hbox1/hbox2 and another one controlling > > hbox2/hbox3. > > > > > > So my questions are: > > > > > > 1. Can a widget have multiple paned widgets attached to it? > > > 2. Can a paned widget control any widget type? As most > > example code I've > > > seen seems to be re-sizing a frame. > > > > > > Thanks!!! > > > > > > Rich > > > _______________________________________________ > > > gtk-list mailing list > > > gtk-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > > > > Hello! > > > > As I understood it a paned widget has two containers where > you can add > > widgets, a left side and a right one (or an upper and a lower). > > > > +--------------+ > > | | > > | container 1 | > > | | > > +=== gutter ===+ > > | | > > | container 2 | > > | | > > +--------------+ > > > > You can surely make a hbox to be child of a container. > > And I think you don't have to set all the two childs of a > paned widget > > so you might create the following combination: > > > > +----vbox----------+ > > | +- hpaned 1----+ | > > | | | | > > | | child 1 | | > > | | | | > > | +=== gutter ===+ | > > | | | | > > | | child 2 | | > > | | | | > > | +--------------+ | > > | +- hpaned 2 ---+ | > > | | | | > > | | empty/not | | > > | | visible | | > > | | | | > > | +=== gutter ===+ | > > | | | | > > | | child 2 | | > > | | | | > > | +--------------+ | > > +------------------+ > > > > or something similar. > > > > Ciao > > > > Olaf > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From jyothi@ncoretech.com Thu Feb 7 07:25:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id EFD0C180EC for ; Thu, 7 Feb 2002 07:25:39 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CPWY14193 for ; Thu, 7 Feb 2002 17:55:32 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g17CPWM17065 for gtk-list@gnome.org.VIRCHECK; Thu, 7 Feb 2002 17:55:32 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CPTK16974 for ; Thu, 7 Feb 2002 17:55:31 +0530 Message-ID: <3C627D7D.14BCF07F@ncoretech.com> Date: Thu, 07 Feb 2002 18:43:33 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Differentiating between Entry and Text Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 7 17:55:31 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a function for which I am getting Widget reference from some other function. >From this reference, I have to check whether this widget is GtkEntry or GtkText. How can I do it?? Thanks in Advance, Jyothi. From jyothi@ncoretech.com Thu Feb 7 07:28:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id 111FD184BE for ; Thu, 7 Feb 2002 07:28:04 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CRxY14219 for ; Thu, 7 Feb 2002 17:57:59 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g17CRxE17782 for gtk-list@gnome.org.VIRCHECK; Thu, 7 Feb 2002 17:57:59 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CRwK17693 for ; Thu, 7 Feb 2002 17:57:58 +0530 Message-ID: <3C627E13.7BB09226@ncoretech.com> Date: Thu, 07 Feb 2002 18:46:03 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Scribble in gtk tutorial Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 7 17:57:58 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In the scribble-xinput, when I press on Input-dialog, it say no input devices with a close button. How to solve this problem ??? What are these input devices ? Is it the mouse or stylus ??. If so how do I specify it ??.. Thanks in Advance, Jyothi. From jyothi@ncoretech.com Thu Feb 7 07:31:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id 5F52518758 for ; Thu, 7 Feb 2002 07:30:59 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CUsY14246 for ; Thu, 7 Feb 2002 18:00:54 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g17CUsM18212 for gtk-list@gnome.org.VIRCHECK; Thu, 7 Feb 2002 18:00:54 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CUsK18123 for ; Thu, 7 Feb 2002 18:00:54 +0530 Message-ID: <3C627EC3.7D550AF0@ncoretech.com> Date: Thu, 07 Feb 2002 18:48:59 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Regarding Scribble Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 7 18:00:54 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In gtk tutorial , scribble program is written to draw anything on the Drawing area. How do I capture the data written in the scribbling pad as soon as a button-release-event occurs ??..... Thanks in advance, Jyothi. From Padraig.Obriain@Sun.COM Thu Feb 7 07:36:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34]) by mail.gnome.org (Postfix) with ESMTP id E6FED18655 for ; Thu, 7 Feb 2002 07:36:11 -0500 (EST) Received: from dub-mail1.Ireland.Sun.COM ([129.156.220.70]) by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id FAA22891; Thu, 7 Feb 2002 05:35:44 -0700 (MST) Received: from maxfly (maxfly [129.156.238.23]) by dub-mail1.Ireland.Sun.COM (8.10.2+Sun/8.10.2/ENSMAIL,v2.1p1) with SMTP id g17CZZu08973; Thu, 7 Feb 2002 12:35:36 GMT Message-Id: <200202071235.g17CZZu08973@dub-mail1.Ireland.Sun.COM> Date: Thu, 7 Feb 2002 12:35:35 +0000 (GMT) From: "Padraig O'Briain" Reply-To: "Padraig O'Briain" Subject: Re: Differentiating between Entry and Text To: gtk-list@gnome.org, jyothi@ncoretech.com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: zJaRscvW169XYD6ZS0zrDQ== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4 SunOS 5.8 sun4u sparc Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: if (GTK_IS_ENTRY (widget)) { ... } else if (GTK_IS_TEXT (widget)) { ... } Padraig > Hi, > > I have a function for which I am getting Widget reference from some > other function. > >From this reference, I have to check whether this widget is GtkEntry or > GtkText. How can I do it?? > > Thanks in Advance, > Jyothi. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From inimss@yahoo.com Thu Feb 7 09:36:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp016.mail.yahoo.com (smtp016.mail.yahoo.com [216.136.174.113]) by mail.gnome.org (Postfix) with SMTP id 1BA981888C for ; Thu, 7 Feb 2002 09:36:53 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 7 Feb 2002 14:36:50 -0000 Message-ID: <3C61B4BF.2CF01D34@yahoo.com> Date: Thu, 07 Feb 2002 04:27:03 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list Subject: [INIMSS] Which is the best place to initialize widgets in a window. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Which is the best event handler to be used for initializing the widgets in a window, (to load data into it). Thanks Dino Cherian K _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From inimss@yahoo.com Thu Feb 7 10:23:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by mail.gnome.org (Postfix) with SMTP id EBB2D18500 for ; Thu, 7 Feb 2002 10:23:16 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 7 Feb 2002 15:23:15 -0000 Message-ID: <3C61BFA3.C19E3133@yahoo.com> Date: Thu, 07 Feb 2002 05:13:31 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list Subject: [INIMSS] Where can I find help for editing gtkrc? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Anybody please help me in editing a gtkrc file? What is the basic syntax of the file? Where can I find answer for these questions? Thanks Dino _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From coframi.balr001@rd.francetelecom.com Thu Feb 7 10:35:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id CE3EA188C4 for ; Thu, 7 Feb 2002 10:35:54 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M417RQ5>; Thu, 7 Feb 2002 16:29:00 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , gtk-list Subject: RE: [INIMSS] Where can I find help for editing gtkrc? Date: Thu, 7 Feb 2002 16:28:57 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-94cad57a-1acd-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-94cad57a-1acd-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AFEC.28E4A3E0" ------_=_NextPart_001_01C1AFEC.28E4A3E0 Content-Type: text/plain Hello, look at http://developer.gnome.org/doc/API/2.0/gtk/gtk-resource-files.html Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : jeudi 7 fevrier 2002 00:44 A : gtk-list Objet : [INIMSS] Where can I find help for editing gtkrc? Hi Anybody please help me in editing a gtkrc file? What is the basic syntax of the file? Where can I find answer for these questions? Thanks Dino _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AFEC.28E4A3E0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] Where can I find help for editing gtkrc?

Hello,

look at http://developer.gnome.org/doc/API/2.0/gtk/gtk-resourc= e-files.html

Isabelle

-----Message d'origine-----
De : Dino Cherian K [mailto:inimss@yahoo.com]
Envoye : jeudi 7 fevrier 2002 00:44
A : gtk-list
Objet : [INIMSS] Where can I find help for editing = gtkrc?


Hi

Anybody please help me in editing a gtkrc = file?
What is the basic syntax of the file?
Where can I find answer for these questions?

Thanks
Dino

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

------_=_NextPart_001_01C1AFEC.28E4A3E0-- ------=_NextPartTM-000-94cad57a-1acd-11d6-b1e5-00508b69ab48-- From coframi.balr001@rd.francetelecom.com Thu Feb 7 11:18:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id A0B3A185E9 for ; Thu, 7 Feb 2002 11:18:09 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M417R6S>; Thu, 7 Feb 2002 16:42:37 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , gtk-list Subject: RE: [INIMSS] Where can I find help for editing gtkrc? Date: Thu, 7 Feb 2002 16:42:34 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-94cad60f-1acd-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-94cad60f-1acd-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AFEE.0F9ED7F0" ------_=_NextPart_001_01C1AFEE.0F9ED7F0 Content-Type: text/plain Hi again, Look also at http://www106.pair.com/rhp/gtk-colors.html Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : jeudi 7 fevrier 2002 00:44 A : gtk-list Objet : [INIMSS] Where can I find help for editing gtkrc? Hi Anybody please help me in editing a gtkrc file? What is the basic syntax of the file? Where can I find answer for these questions? Thanks Dino _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AFEE.0F9ED7F0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] Where can I find help for editing gtkrc?

Hi again,

Look also at  http://www106.pair.com/rhp/gtk-colors.html

Isabelle

-----Message d'origine-----
De : Dino Cherian K [mailto:inimss@yahoo.com]
Envoye : jeudi 7 fevrier 2002 00:44
A : gtk-list
Objet : [INIMSS] Where can I find help for editing = gtkrc?


Hi

Anybody please help me in editing a gtkrc = file?
What is the basic syntax of the file?
Where can I find answer for these questions?

Thanks
Dino

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

------_=_NextPart_001_01C1AFEE.0F9ED7F0-- ------=_NextPartTM-000-94cad60f-1acd-11d6-b1e5-00508b69ab48-- From stonybrk@ix.netcom.com Thu Feb 7 11:27:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mclean.mail.mindspring.net (mclean.mail.mindspring.net [207.69.200.57]) by mail.gnome.org (Postfix) with ESMTP id E52D1185E9 for ; Thu, 7 Feb 2002 11:27:52 -0500 (EST) Received: from user-2iniv4a.dialup.mindspring.com ([165.121.124.138] helo=norman) by mclean.mail.mindspring.net with smtp (Exim 3.33 #1) id 16YrOU-0005a6-00; Thu, 07 Feb 2002 11:27:30 -0500 Message-ID: <005701c1aff4$5802e3f0$0200a8c0@norman> From: "Norman Black" To: "Chris Seberino" Cc: "gtk-list" References: <20020206153756.B1515@spawar.navy.mil> Subject: Re: How change size/font of gtk_label_new("TEXT")??? Date: Thu, 7 Feb 2002 08:27:31 -0800 Organization: Stony Brook Software 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a Modula-2 code snip, but I think you get the idea. rc_style := gtk_rc_style_new(); rc_style^.font_name := YourFontNameGoesHere; gtk_widget_modify_style(YourWidget, rc_style); gtk_rc_style_unref(rc_style); The font name is just like a Gdk font name used for gdk_font_load Best Regards, Norman Black Stony Brook Software ----- Original Message ----- From: "Chris Seberino" To: Sent: Wednesday, February 06, 2002 3:37 PM Subject: How change size/font of gtk_label_new("TEXT")??? > How change font or size of text for gtk_label_new("TEXT")??? > > cs > -- > ======================================================= > | Dr. Christian Seberino || (619) 553-7940 (office) | > | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | > | 53560 HULL ST || | > | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | > ======================================================= > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From rtk@cmed.com Thu Feb 7 11:32:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.cmed.com (mail.cmed.com [12.147.70.66]) by mail.gnome.org (Postfix) with SMTP id BF75B18B29 for ; Thu, 7 Feb 2002 11:32:41 -0500 (EST) Received: from no.name.available by mail.cmed.com via smtpd (for moniker.gnome.org [209.116.70.73]) with SMTP; 7 Feb 2002 16:32:41 UT Received: by exchange.cmed.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 09:32:40 -0700 Message-ID: From: Ronald Kneusel To: "'gtk-list@gnome.org'" Subject: GtkEntry not accepting keyboard input (GTK+ 1.2)? Date: Thu, 7 Feb 2002 09:32:31 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a GtkEntry which is attached to a fixed widget and that is attached to a frame in another fixed widget. The entry box appears and I can set the text, highlight the text with the mouse, but cannot type in the box. Anything typed appears at the shell prompt. Why? Am I missing a step? I've set the widget to "editable" with no appearant effect. Ron Kneusel rtk@cmed.com From pbd@op.net Thu Feb 7 11:39:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 1C5C618822 for ; Thu, 7 Feb 2002 11:39:49 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-105.phlpa.fast.net [209.92.99.105]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA09652; Thu, 7 Feb 2002 11:39:41 -0500 (EST) Message-Id: <200202071639.LAA09652@renoir.op.net> To: Dino Cherian K Cc: gtk-list Subject: Re: [INIMSS] Which is the best place to initialize widgets in a window. In-reply-to: Your message of "Thu, 07 Feb 2002 04:27:03 +0530." <3C61B4BF.2CF01D34@yahoo.com> Date: Thu, 07 Feb 2002 11:38:41 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Which is the best event handler to be used for initializing the widgets >in a window, (to load data into it). the expose event is where the widget gets drawn, so that would be the obvious place. just do your stuff, and return FALSE. the regular drawing code will then happen as expected, using your data. i sometimes use map_event for widgets that need to be rebuilt every time they are "mapped" (XWindow terminology for the step of taking the X server data structure for a window and making its contents appear on a display). however, in general, i think you should be using the expose event. --p From eg_hyy@stu.ust.hk Thu Feb 7 12:16:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx3.ust.hk (mx3.ust.hk [143.89.13.11]) by mail.gnome.org (Postfix) with ESMTP id 266BE1819C for ; Thu, 7 Feb 2002 12:16:00 -0500 (EST) Received: from webmaild.ust.hk (webmaild.ust.hk [143.89.14.206]) by mx3.ust.hk (8.11.5/8.11.5) with ESMTP id g17HFvB09001 for ; Fri, 8 Feb 2002 01:15:57 +0800 Received: from localhost (localhost [[UNIX: localhost]]) by webmaild.ust.hk (8.9.3/8.9.3) id BAA08796; Fri, 8 Feb 2002 01:15:56 +0800 Message-Id: <200202071715.BAA08796@webmaild.ust.hk> User-Agent: IMHO/0.97.1 (HKUST Webmail 1.0b) MIME-Version: 1.0 X-Originating-IP: [61.15.163.60] To: gtk-list@gnome.org Content-Transfer-Encoding: 8bit Date: Fri, 08 Feb 2002 01:15:56 +0800 Content-Type: text/plain; charset=iso-8859-1 From: Subject: callbacks function of apply in glade Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear all, I am a newbie and I have some question about the callbacks function of "apply" signal in glade. I have a propertybox which have 3 pages with one "apply" button automatically created by glade. I set something in the apply callbacks function, and I find that each time I press the apply button, the program go into the apply callbacks function serveral times!! I afraid that this will slow down my program. Because my apply callbacks function is quite complicated and long...and i afraid that if each time user click "apply" for once, but the program go into the apply callbacks function serveral times, this will really slow down my program. I would be very pleased that u have some suggestion for me. From hp@redhat.com Thu Feb 7 12:40:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id DC21A18306 for ; Thu, 7 Feb 2002 12:40:05 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g17HdtU24886; Thu, 7 Feb 2002 12:39:55 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Kneusel Cc: "'gtk-list@gnome.org'" Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? References: From: Havoc Pennington Date: 07 Feb 2002 12:39:55 -0500 In-Reply-To: Message-ID: Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Kneusel writes: > I have a GtkEntry which is attached to a fixed widget and that is > attached to a frame in another fixed widget. > > The entry box appears and I can set the text, highlight the text > with the mouse, but cannot type in the box. Anything typed appears > at the shell prompt. > > Why? Am I missing a step? I've set the widget to "editable" with > no appearant effect. > Sounds like your window manager still has focus on the terminal console window, instead of your GTK app. Why that is, I don't know. Havoc From rtk@cmed.com Thu Feb 7 12:44:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.cmed.com (mail.cmed.com [12.147.70.66]) by mail.gnome.org (Postfix) with SMTP id 4298318CB2 for ; Thu, 7 Feb 2002 12:44:13 -0500 (EST) Received: from no.name.available by mail.cmed.com via smtpd (for moniker.gnome.org [209.116.70.73]) with SMTP; 7 Feb 2002 17:44:13 UT Received: by exchange.cmed.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 10:44:07 -0700 Message-ID: From: Ronald Kneusel To: Cc: "'gtk-list@gnome.org'" Subject: RE: GtkEntry not accepting keyboard input (GTK+ 1.2)? Date: Thu, 7 Feb 2002 10:44:06 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > -----Original Message----- > From: Havoc Pennington [SMTP:hp@redhat.com] > Sent: Thursday, February 07, 2002 10:40 AM > To: Ronald Kneusel > Cc: 'gtk-list@gnome.org' > Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? > > > Ronald Kneusel writes: > > I have a GtkEntry which is attached to a fixed widget and that is > > attached to a frame in another fixed widget. > > > > The entry box appears and I can set the text, highlight the text > > with the mouse, but cannot type in the box. Anything typed appears > > at the shell prompt. > > > > Why? Am I missing a step? I've set the widget to "editable" with > > no appearant effect. > > > >Sounds like your window manager still has focus on the terminal >console window, instead of your GTK app. Why that is, I don't know. You were correct! I created a full screen window as a POPUP window and it wasn't getting keyboard focus. I made it a TOPLEVEL window without decorations and all it well. Thanks! Ron From flavio@maqplas.com.br Thu Feb 7 13:21:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id 535F218519 for ; Thu, 7 Feb 2002 13:21:41 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g17ILPD1021073; Thu, 7 Feb 2002 16:21:26 -0200 (BRST) Subject: RE: GtkEntry not accepting keyboard input (GTK+ 1.2)? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Ronald Kneusel Cc: "'gtk-list@gnome.org'" In-Reply-To: References: Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 07 Feb 2002 16:17:31 -0200 Message-Id: <1013105854.1178.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I had this same problem! I wanna create a full window popup (modal for my applications) but it didn't have focus... The solution, I don't know if is elegant, but works, I create a window TOPLEVEL with 0x0 dimension and I atached this big popup Window, when I run the program, the focus came in to this little window and my window has focus. Good Lucky Good Work Success Flavio Alberto Em 07 Feb 2002 10:44:06 -0700, Ronald Kneusel escreveu: > > > > -----Original Message----- > > From: Havoc Pennington [SMTP:hp@redhat.com] > > Sent: Thursday, February 07, 2002 10:40 AM > > To: Ronald Kneusel > > Cc: 'gtk-list@gnome.org' > > Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? > > > > > > Ronald Kneusel writes: > > > I have a GtkEntry which is attached to a fixed widget and that is > > > attached to a frame in another fixed widget. > > > > > > The entry box appears and I can set the text, highlight the text > > > with the mouse, but cannot type in the box. Anything typed appears > > > at the shell prompt. > > > > > > Why? Am I missing a step? I've set the widget to "editable" with > > > no appearant effect. > > > > > > >Sounds like your window manager still has focus on the terminal > >console window, instead of your GTK app. Why that is, I don't know. > > You were correct! I created a full screen window as a POPUP window > and it wasn't getting keyboard focus. I made it a TOPLEVEL window > without decorations and all it well. > > Thanks! > > Ron > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From doc@deadvirgins.org.uk Thu Feb 7 14:01:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand3.global.net.uk (sand3.global.net.uk [195.147.246.249]) by mail.gnome.org (Postfix) with ESMTP id 66DF5181AA for ; Thu, 7 Feb 2002 14:01:25 -0500 (EST) Received: from pacs13a06.client.global.net.uk ([195.147.221.173] helo=deadvirgins.org.uk) by sand3.global.net.uk with esmtp (Exim 3.22 #1) id 16YtnO-0000bb-00 for gtk-list@gnome.org; Thu, 07 Feb 2002 19:01:23 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g17J0Sx00202 for gtk-list@gnome.org; Thu, 7 Feb 2002 19:00:28 GMT Message-Id: <200202071900.g17J0Sx00202@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: gtk-list@gnome.org Subject: Creating widgets with auto-repeat Date: Thu, 7 Feb 2002 19:00:28 +0000 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks to the people who pointed me in the right direction regarding my question about auto-repeating buttons. The spinbutton source code did indeed gave me some ideas and I've hacked together the following "code" which I thought others might find useful as a starting point, particularly in light of the fact that someone asked a similar question straight after me. The auto-repeat starts after the button is held for 500ms, then goes through two levels of speedup if the button is still pressed. Perhaps someone with a bit more experience of this sort of thing could point out a neat way to avoid all the globals here, so this code could be reused in a more generic way... Perosnally, I *like* globals... :-) /******** CODE BEGINS *********************************/ #include #include #define REPEAT_STAGE0_DELAY 500 #define REPEAT_STAGE1_DELAY 50 #define REPEAT_STAGE2_DELAY 3 guint32 timer_id = 0; gint timer_state = 0; gint timer_count = 0; gint value = 0; /* Timer callback function! */ static gint timer_func ( void ) { /* Autorepeat state machine */ switch (timer_state) { case 0: /* Enable slow auto-repeat */ gtk_timeout_remove(timer_id); timer_id = gtk_timeout_add( REPEAT_STAGE1_DELAY, (GtkFunction)timer_func, NULL); timer_state = 1; timer_count = 0; break; case 1: /* Check if it's time for fast repeat yet */ if (timer_count++ > 50) timer_state = 2; break; case 2: /* Start fast auto-repeat */ gtk_timeout_remove(timer_id); timer_id = gtk_timeout_add( REPEAT_STAGE2_DELAY, (GtkFunction)timer_func, NULL); timer_state = 3; break; default: break; } /* Increment value */ printf("value: %d\n", value++); return TRUE; } void button_press_proc( GtkWidget *widget, gpointer data ) { /* Increment value */ printf("VALUE: %d\n", value++); /* Remove an existing timer */ if (timer_id) gtk_timeout_remove(timer_id); /* Setup a timer */ timer_id = gtk_timeout_add( REPEAT_STAGE0_DELAY, (GtkFunction)timer_func, NULL); timer_state = 0; } void button_release_proc( GtkWidget *widget, gpointer data ) { /* Remove timer */ gtk_timeout_remove(timer_id); timer_id = 0; timer_state = 0; } int main( int argc, char *argv[] ) { GtkWidget *window; GtkWidget *button; gtk_init(&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_set_border_width (GTK_CONTAINER (window), 10); button = gtk_button_new_with_label (" INCREMENT "); gtk_signal_connect (GTK_OBJECT (button), "button_press_event", GTK_SIGNAL_FUNC (button_press_proc), NULL); gtk_signal_connect (GTK_OBJECT (button), "button_release_event", GTK_SIGNAL_FUNC (button_release_proc), NULL); gtk_container_add (GTK_CONTAINER (window), button); gtk_widget_show (button); gtk_widget_show (window); gtk_main (); return(0); } /***************** END OF CODE *********************************/ -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From pbd@op.net Thu Feb 7 14:22:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 8AE96183E5 for ; Thu, 7 Feb 2002 14:22:19 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-24.phlpa.fast.net [209.92.99.24]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA27978; Thu, 7 Feb 2002 14:22:14 -0500 (EST) Message-Id: <200202071922.OAA27978@renoir.op.net> To: doc@deadvirgins.org.uk Cc: gtk-list@gnome.org Subject: Re: Creating widgets with auto-repeat In-reply-to: Your message of "Thu, 07 Feb 2002 19:00:28 GMT." <200202071900.g17J0Sx00202@deadvirgins.org.uk> Date: Thu, 07 Feb 2002 14:21:16 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Perhaps someone with a bit more experience of this sort of thing could point >out a neat way to avoid all the globals here, so this code could be reused >in a more generic way... > >Perosnally, I *like* globals... :-) you are right about needing a bit more experience :) >guint32 timer_id = 0; >gint timer_state = 0; >gint timer_count = 0; >gint value = 0; typedef struct timer_func_info { guint32 timer_id; gint timer_state; gint timer_count; gint value; } timer_func_info_t; >/* Timer callback function! */ >static gint timer_func (gpointer data ) >{ timer_func_info_t *info = (timer_func_info_t *) data; ... now use info-> instead of the globals. > return TRUE; > >} > >void button_press_proc( GtkWidget *widget, gpointer data ) >{ timer_func_info_t *info = (timer_func_info_t *) data; > /* Increment value */ > printf("VALUE: %d\n", value++); > > /* Setup a timer */ info->value++; info->count = 0; info->state = 0; > info->timer_id = gtk_timeout_add(REPEAT_STAGE0_DELAY, (GtkFunction)timer_func, info); >} > >void button_release_proc( GtkWidget *widget, gpointer data ) >{ > > /* Remove timer */ timer_func_info_t *info = (timer_func_info_t *) data; gtk_timeout_remove(info->timer_id); >} > >int main( int argc, char *argv[] ) >{ > GtkWidget *window; > GtkWidget *button; timer_func_info_t info; > > gtk_init(&argc, &argv); info->value = 0; > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > gtk_container_set_border_width (GTK_CONTAINER (window), 10); > button = gtk_button_new_with_label (" INCREMENT "); gtk_signal_connect (GTK_OBJECT (button), "button_press_event", GTK_SIGNAL_FUNC (button_press_proc), &info); gtk_signal_connect (GTK_OBJECT (button), "button_release_event", GTK_SIGNAL_FUNC (button_release_proc), &info); > gtk_container_add (GTK_CONTAINER (window), button); > gtk_widget_show (button); > gtk_widget_show (window); > gtk_main (); > > return(0); >} all clear? --p From hp@redhat.com Thu Feb 7 15:00:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id A5E5118110 for ; Thu, 7 Feb 2002 15:00:52 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g17K0fS14001; Thu, 7 Feb 2002 15:00:41 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Kneusel Cc: "'gtk-list@gnome.org'" Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? References: From: Havoc Pennington Date: 07 Feb 2002 15:00:41 -0500 In-Reply-To: Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Kneusel writes: > You were correct! I created a full screen window as a POPUP window > and it wasn't getting keyboard focus. I made it a TOPLEVEL window > without decorations and all it well. Right, POPUP windows should never be used if you need to type into the window. POPUP means the window manager does not know about the window, so can't focus it. Havoc From ramses@computer.org Thu Feb 7 22:14:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id 6D49D180E1 for ; Thu, 7 Feb 2002 22:14:11 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020208031430.UJLR480.sv16@adsl50> for ; Thu, 7 Feb 2002 22:14:30 -0500 Subject: A better way to get a widget from a GnomeDialog pointer??? From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 07 Feb 2002 22:21:52 -0500 Message-Id: <1013138513.2696.18.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, check this callback: void on_add_magazine_button_clicked(GtkButton *button, gpointer user_data) { GtkWidget *dialog = create_add_magazine_dialog(); GtkWidget *entry; struct _GtkBoxChild *child; int result; GList *dialog_children = GTK_BOX(GNOME_DIALOG(dialog)->vbox)->children; result = gnome_dialog_run(GNOME_DIALOG(dialog)); if ( result == 0 ) { child = ((struct _GtkBoxChild *)(g_list_nth_data(dialog_children, 3))); entry = child->widget; g_print("%s\n", gtk_entry_get_text(GTK_ENTRY(entry))); child = ((struct _GtkBoxChild *)(g_list_nth_data(dialog_children, 5))); entry = child->widget; g_print("%s\n", gtk_entry_get_text(GTK_ENTRY(entry))); } gtk_widget_destroy(GTK_WIDGET(dialog)); } In short, this callback runs a gnome dialog and gets the data inside the two GtkEntry included on that dialog. Inside this function I only have access to the dialog widget. As you can see, I have harcoded the positions of the GtkEntry widgets inside the GList. If I modify the dialog, adding another widget, then this function will break because the entries won't be at the index 3 and 5. What can I do to have a more elegant, not harcoded way, to reference the GtkEntry widgets?? ALSO: Is it a good idea to mess around directly with struct _GtkBoxChild??? Thanks for your help. From inimss@yahoo.com Fri Feb 8 01:22:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by mail.gnome.org (Postfix) with SMTP id A537F18161 for ; Fri, 8 Feb 2002 01:22:16 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.117) by smtp.mail.vip.sc5.yahoo.com with SMTP; 8 Feb 2002 06:22:14 -0000 Message-ID: <3C621201.4C140F05@yahoo.com> Date: Thu, 07 Feb 2002 11:04:57 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Paul Davis , gtk-list Subject: Re: [INIMSS] Which is the best place to initialize widgets in a window. References: <200202071639.LAA09652@renoir.op.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Will the events, map_event & expose be triggered multiple times in the life of a window? My understanding is that the map event will be triggered only once, during the creation of the window for the first time, but the other one, expose, will be triggered each time the window or widget comes to the foreground (ie, its visible on the screen). Thanks Dino Paul Davis wrote: > > >Which is the best event handler to be used for initializing the widgets > >in a window, (to load data into it). > > the expose event is where the widget gets drawn, so that would be the > obvious place. just do your stuff, and return FALSE. the regular > drawing code will then happen as expected, using your data. > > i sometimes use map_event for widgets that need to be rebuilt every > time they are "mapped" (XWindow terminology for the step of taking the > X server data structure for a window and making its contents appear on > a display). however, in general, i think you should be using the > expose event. > > --p > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From zanac_fake@libero.it Fri Feb 8 02:43:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by mail.gnome.org (Postfix) with ESMTP id 1C088181ED for ; Fri, 8 Feb 2002 02:43:59 -0500 (EST) Received: from libero.it (193.70.192.44) by smtp2.libero.it (6.0.040) id 3C584044005AF09D for gtk-list@gnome.org; Fri, 8 Feb 2002 08:43:57 +0100 Date: Fri, 8 Feb 2002 08:43:56 +0100 Message-Id: Subject: =?iso-8859-1?Q?GTK_2.0_GtkTreeViewColumn_buggy=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?iso-8859-1?Q?zanac=5Ffake?=" To: gtk-list@gnome.org X-XaM3-API-Version: 2.5 X-type:0 X-SenderIP: 193.227.212.161 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SSdtIHRyeWluZyB0byBhZGQgc29tZSB3aWRnZXQgdG8gYSBHdGtUcmVlVmlldyAgdXNpbmcg IHRoZSAgZnVuY3Rpb24NCmd0a190cmVlX3ZpZXdfY29sdW1uX3NldF93aWRnZXQuIElmIGkg YWRkIGEgR3RrTGFiZWwgYWxsIHdvcmsgIGZpbmUsDQpidXQgaWYgYSBhZGQsIGZvciBleGFt cGxlLCBhIEd0a0J1dHRvbiB1c2luZyBndGtfYnV0dG9uX25ld19tbmVtb25pYw0KdGhlIGJ1 dHRvbiBkb2Vzbid0IGNhbGxiYWNrIHRvIHRoZSBjbGlja2VkIHNpZ25hbC4uLiAgYnV0IHIg ZXBseSAgdG8NCnRoZSBtbmVtb25pYyA8YWx0LXM+Lg0KDQpFdmVuIGlmIGEgYWRkIGEgR3Rr RW50cnkgdGhlIHByb2JsZW0gcGVyc2lzdC4uLg0KDQpIb3cgY2FuIGkgc29sdmUgaXQ/ From deepa.chacko@wipro.com Fri Feb 8 04:20:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id BFCA8180D8; Fri, 8 Feb 2002 04:20:49 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g189JjX20626; Fri, 8 Feb 2002 14:49:45 +0530 (IST) Received: from wipro.com ([10.114.9.180]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GR7J9300.4TQ; Fri, 8 Feb 2002 14:49:51 +0530 Message-ID: <3C639AF8.B378AA0@wipro.com> Date: Fri, 08 Feb 2002 15:01:36 +0530 From: Deepa X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org, desktop-devel-list Subject: Equivalents for gdk_input_remove,gdk_input_add etc Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi I am encountering these deprecated calls in libzvt: gdk_input_remove () gdk_input_add () gdk_rgb_init () Could anyone please tell me what is the replacement for these. Thanks in advance Deepa ------=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8 Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ******************************************************************** ------=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8-- From Ulrich.Kerber@faidor.de Fri Feb 8 06:38:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailrelay.faidor.de (mailrelay.faidor.de [195.126.215.15]) by mail.gnome.org (Postfix) with ESMTP id A9815181E3 for ; Fri, 8 Feb 2002 06:38:11 -0500 (EST) Received: from faiopf2005.faidor.de (xmail.faidor.de [195.126.215.2]) by mailrelay.faidor.de (8.9.3/8.9.3) with ESMTP id LAA20355 for ; Fri, 8 Feb 2002 11:29:39 +0100 Received: by faiopf2005.faidor.de with Internet Mail Service (5.5.2653.19) id <1Q3L7PTY>; Fri, 8 Feb 2002 12:38:10 +0100 Received: from dshpc004.opf.debis.de ([53.140.8.78]) by faiopf2005.faidor.de with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1Q3L7PTW; Fri, 8 Feb 2002 12:38:08 +0100 From: "Kerber, Ulrich" To: gtk-list@gnome.org Subject: Memory problems while using a clist Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 08 Feb 2002 12:39:55 +0100 Message-Id: <1013168395.2884.11.camel@dshpc004> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I wrote an app with a clist showing the contents of a log file; the clist is updated every 60 seconds. Although i do a gtk_clist_clear, the memory used is increasing with every run, even if no element is added. After a day of work the amount reaches up to 40 MB! Does anybody know a solution to this problem? Thanks, Uli From nicholas.allen@ireland.sun.com Fri Feb 8 09:24:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36]) by mail.gnome.org (Postfix) with ESMTP id A9419190CB for ; Fri, 8 Feb 2002 09:24:25 -0500 (EST) Received: from ireserver.Ireland.Sun.COM ([129.156.220.7]) by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id HAA06534 for ; Fri, 8 Feb 2002 07:24:24 -0700 (MST) Received: from ireland.sun.com (ledzep [129.156.220.79]) by ireserver.Ireland.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.2) with ESMTP id OAA19986 for ; Fri, 8 Feb 2002 14:24:23 GMT Message-ID: <3C63DF90.1090104@ireland.sun.com> Date: Fri, 08 Feb 2002 14:24:16 +0000 From: nicholas allen Organization: Sun Microsystems User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011226 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Iconify/deioconfy gtk windows Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I can't find any API to iconify and deiconify a GtkWindow. Does anyone know how to do this? How do I listen in for an iconify/deioconify signal as well as there doesn't seem to be a signal to connect to for this event? I can't find anything useful in the Gdk library either. I thought there would be a gtk_window_iconify function or something similar. Thanks in advance for any help anyone can offer. -- Nick Allen Software Engineer Sun Microsystems Ireland Ltd Hamilton House East Point Business Park Dublin 3 email: nicholas.allen@ireland.sun.com From pbd@op.net Fri Feb 8 10:00:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id A848518165 for ; Fri, 8 Feb 2002 10:00:46 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-323.phlpa.fast.net [209.92.228.69]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA28790; Fri, 8 Feb 2002 10:00:43 -0500 (EST) Message-Id: <200202081500.KAA28790@renoir.op.net> To: Dino Cherian K Cc: gtk-list Subject: Re: [INIMSS] Which is the best place to initialize widgets in a window. In-reply-to: Your message of "Thu, 07 Feb 2002 11:04:57 +0530." <3C621201.4C140F05@yahoo.com> Date: Fri, 08 Feb 2002 09:59:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi > >Will the events, map_event & expose be triggered multiple times in the >life of a window? > >My understanding is that the map event will be triggered only once, the map event will occur every time the window is mapped, for example, when it is de-iconfied. >during the creation of the window for the first time, but the other one, >expose, will be triggered each time the window or widget comes to the >foreground (ie, its visible on the screen). the expose event will occur anytime there is an "increase" in the visibility of any part of the widget. this will include de-iconfication, raising above other windows, an occluding window being moved out of the way, etc. to repeat a point thats been several times in the last few days, since many people new to X and GTK+ don't fully grok this: with the XWindow system, the X server does *not* maintain the contents of your window on your behalf. any time visibility increases in some part of your window, *you* must be able to redraw that part from scratch. this is apparently a little different from the situation with win32, but i wouldn't know anything about that. some X servers support "save under", which will handle the redrawing for you under some circumstances, but not all, and my impression is that most people don't use this feature these days. --p From pbd@op.net Fri Feb 8 10:04:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3204A18285 for ; Fri, 8 Feb 2002 10:04:06 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-323.phlpa.fast.net [209.92.228.69]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA29100; Fri, 8 Feb 2002 10:04:03 -0500 (EST) Message-Id: <200202081504.KAA29100@renoir.op.net> To: nicholas allen Cc: gtk-list@gnome.org Subject: Re: Iconify/deioconfy gtk windows In-reply-to: Your message of "Fri, 08 Feb 2002 14:24:16 GMT." <3C63DF90.1090104@ireland.sun.com> Date: Fri, 08 Feb 2002 10:03:18 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I can't find any API to iconify and deiconify a GtkWindow. Does anyone >know how to do this? How do I listen in for an iconify/deioconify signal >as well as there doesn't seem to be a signal to connect to for this >event? I can't find anything useful in the Gdk library either. i would imagine that map_event and unmap event will correspond more or less to these changes. >I thought there would be a gtk_window_iconify function or something similar. i doubt it. under X, (de)iconification is *generally* considered to be a function of the window manager, not the application. --p From sven@gimp.org Fri Feb 8 10:28:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 2DBDD18165 for ; Fri, 8 Feb 2002 10:28:09 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZCjY-00069m-00; Fri, 08 Feb 2002 16:14:40 +0100 To: Paul Davis Cc: nicholas allen , gtk-list@gnome.org Subject: Re: Iconify/deioconfy gtk windows References: <200202081504.KAA29100@renoir.op.net> From: Sven Neumann Date: 08 Feb 2002 16:14:40 +0100 In-Reply-To: <200202081504.KAA29100@renoir.op.net> Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Paul Davis writes: > >I thought there would be a gtk_window_iconify function or something similar. > > i doubt it. under X, (de)iconification is *generally* considered to be > a function of the window manager, not the application. GTK+-2.0 has this function. Basically it calls XIconifyWindow (if using the X11 backend). Salut, Sven From hp@redhat.com Fri Feb 8 11:19:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id F07851810E; Fri, 8 Feb 2002 11:19:27 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18GJIT29439; Fri, 8 Feb 2002 11:19:18 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Deepa Cc: gtk-list@gnome.org, desktop-devel-list Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc References: <3C639AF8.B378AA0@wipro.com> From: Havoc Pennington Date: 08 Feb 2002 11:19:18 -0500 In-Reply-To: <3C639AF8.B378AA0@wipro.com> Message-ID: Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Deepa writes: > gdk_input_remove () g_source_remove() > gdk_input_add () g_io_channel_add_watch () > gdk_rgb_init () No longer required, simply delete all instances of this. Havoc From pbd@op.net Fri Feb 8 11:25:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9481318331; Fri, 8 Feb 2002 11:25:13 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-341.phlpa.fast.net [209.92.231.87]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA08014; Fri, 8 Feb 2002 11:24:52 -0500 (EST) Message-Id: <200202081624.LAA08014@renoir.op.net> To: Havoc Pennington Cc: Deepa , gtk-list@gnome.org, desktop-devel-list Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc In-reply-to: Your message of "08 Feb 2002 11:19:18 EST." Date: Fri, 08 Feb 2002 11:24:07 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> gdk_input_remove () > >g_source_remove() > >> gdk_input_add () > >g_io_channel_add_watch () last time i looked at the replacement functions, their interface was intimidating in the extreme. it required me to understand a *LOT* more about glib than i wanted to. by contrast, gdk_input_*() were pitched at exactly the right level. i spent 10 minutes or so trying to understand g_io_channel_add_watch() and gave up. --p From hp@redhat.com Fri Feb 8 11:45:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 748AA192B6 for ; Fri, 8 Feb 2002 11:45:35 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18GjXf32623; Fri, 8 Feb 2002 11:45:33 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Kerber, Ulrich" Cc: gtk-list@gnome.org Subject: Re: Memory problems while using a clist References: <1013168395.2884.11.camel@dshpc004> From: Havoc Pennington Date: 08 Feb 2002 11:45:33 -0500 In-Reply-To: <1013168395.2884.11.camel@dshpc004> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Kerber, Ulrich" writes: > I wrote an app with a clist showing the contents of a log file; the > clist is updated every 60 seconds. Although i do a gtk_clist_clear, > the memory used is increasing with every run, even if no element is > added. After a day of work the amount reaches up to 40 MB! > Does anybody know a solution to this problem? > You just need to debug it. Use a tool such as "memprof" to see where the memory is leaked. Havoc From hp@redhat.com Fri Feb 8 11:46:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id BB639192CB for ; Fri, 8 Feb 2002 11:46:35 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18GkV132627; Fri, 8 Feb 2002 11:46:31 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: nicholas allen Cc: gtk-list@gnome.org Subject: Re: Iconify/deioconfy gtk windows References: <3C63DF90.1090104@ireland.sun.com> From: Havoc Pennington Date: 08 Feb 2002 11:46:31 -0500 In-Reply-To: <3C63DF90.1090104@ireland.sun.com> Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: nicholas allen writes: > I thought there would be a gtk_window_iconify function or something > similar. GTK 2 has this function. In 1.2, you probably want to look at the GTK 2 source and copy what it does. Check out the ICCCM to understand why it does it. Havoc From hp@redhat.com Fri Feb 8 12:30:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 51D0C180F8; Fri, 8 Feb 2002 12:30:38 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18HUat32647; Fri, 8 Feb 2002 12:30:36 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Deepa , gtk-list@gnome.org, desktop-devel-list Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc References: <200202081624.LAA08014@renoir.op.net> From: Havoc Pennington Date: 08 Feb 2002 12:30:36 -0500 In-Reply-To: <200202081624.LAA08014@renoir.op.net> Message-ID: Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > last time i looked at the replacement functions, their interface was > intimidating in the extreme. it required me to understand a *LOT* more > about glib than i wanted to. by contrast, gdk_input_*() were pitched > at exactly the right level. i spent 10 minutes or so trying to > understand g_io_channel_add_watch() and gave up. > I agree there should be a g_input_add() type of thing. One for bugzilla. It's really not hard though (you just create an IO channel using g_io_channel_unix_new(), g_io_channel_add_watch(), then g_io_channel_unref()). The only difference is having to wrap the file descriptor in the IOChannel deal. Havoc From zanac_fake@libero.it Fri Feb 8 13:18:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by mail.gnome.org (Postfix) with ESMTP id 46E20181E8 for ; Fri, 8 Feb 2002 13:18:59 -0500 (EST) Received: from libero.it (193.70.192.58) by smtp2.libero.it (6.0.040) id 3C5840440061FB84 for gtk-list@gnome.org; Fri, 8 Feb 2002 19:18:57 +0100 Date: Fri, 8 Feb 2002 19:18:49 +0100 Message-Id: Subject: =?iso-8859-1?Q?sample_source_of_buggy_gtk_2.0_function?= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?iso-8859-1?Q?zanac=5Ffake?=" To: gtk-list@gnome.org X-XaM3-API-Version: 2.5 X-type:0 X-SenderIP: 151.25.54.250 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQoNCmFzIGkgbWVudGlvbmVkIGluIGFub3RoZXIgcG9zdCBpIHRoaW5rIHRoYXQgR3Rr VHJlZVZpZXdDb2x1bW4gaXMgYnVnZ3ksDQpidXQgbm8gb25lIGhlbHBlZCBtZS4uLiBzbyBp IGhhdmUganVzdCB3cml0ZSB0aGlzIHNtYWxsIHNhbXBsZSB0aGF0IHlvdQ0KY2FuIHVzZSB0 byB0cnkgdGhpcyBwcm9ibGVtLiBJbiB0aGlzIHNhbXBsZSBpZiB5b3UgcHJlc3MgPGFsdCt1 PiB0aGUNCmJ1dHRvbjIgd29yaywgYnV0IGlmIHlvdSB1c2UgdGhlIG1vdXNlLi4uLi4uLi4u Lg0KDQpieWVaIQ0KDQpfX19fX19fX19fX19fX19fX19jdXQgaGVyZSEhIV9fX19fX19fX19f X19fX19fX19fX19fX19fDQoNCg0KI2luY2x1ZGUgPGd0ay9ndGsuaD4NCg0KdHlwZWRlZiBz dHJ1Y3QNCnsNCiAgZ2ludCAgICAgbnVtYmVyOw0KICBnY2hhciAgICpwcm9kdWN0Ow0KfQ0K SXRlbTsNCg0KZW51bQ0Kew0KICBDT0xVTU5fTlVNQkVSLA0KICBDT0xVTU5fUFJPRFVDVCwN CiAgTlVNX0NPTFVNTlMNCn07DQoNCnN0YXRpYyBHQXJyYXkgKmFydGljbGVzID0gTlVMTDsN Cg0KDQoNCmludCBmbGFnID0gMDsNCmludCBmbGFnMiA9IDE7DQoNCkd0a1dpZGdldCAqYnV0 dG9uMTsNCkd0a1dpZGdldCAqYnV0dG9uMjsNCkd0a1dpZGdldCAqdmlldzsNCg0KLyogT3Vy IG5ldyBpbXByb3ZlZCBjYWxsYmFjay4gIFRoZSBkYXRhIHBhc3NlZCB0byB0aGlzIGZ1bmN0 aW9uDQogKiBpcyBwcmludGVkIHRvIHN0ZG91dC4gKi8NCnZvaWQgY2FsbGJhY2soIEd0a1dp ZGdldCAqd2lkZ2V0LA0KICAgICAgICAgICAgICAgZ3BvaW50ZXIgICBkYXRhICkNCnsNCglp ZiAoc3RyY21wKGRhdGEsICJidXR0b24gMSIpKQ0KCXsNCgkJZmxhZyA9IDEtZmxhZzsNCg0K CQlpZiAoZmxhZykNCgkJCWd0a193aWRnZXRfaGlkZShidXR0b24xKTsNCgkJZWxzZSBndGtf d2lkZ2V0X3Nob3coYnV0dG9uMSk7DQoJCWdfcHJpbnQgKCJIZWxsbyBhZ2FpbiAtICVzIHdh cyBwcmVzc2VkXG4iLCAoY2hhciAqKSBkYXRhKTsNCgl9IGVsc2Ugew0KCQlmbGFnMiA9IDEt ZmxhZzI7DQoJCWd0a193aWRnZXRfc2V0X3NlbnNpdGl2ZShidXR0b24yLCBmbGFnMik7DQoJ fQ0KfQ0KDQpnaW50IGRlbGV0ZV9ldmVudCggR3RrV2lkZ2V0ICp3aWRnZXQsDQogICAgICAg ICAgICAgICAgICAgR2RrRXZlbnQgICpldmVudCwNCiAgICAgICAgICAgICAgICAgICBncG9p bnRlciAgIGRhdGEgKQ0Kew0KICAgIGd0a19tYWluX3F1aXQoKTsNCiAgICByZXR1cm4oRkFM U0UpOw0KfQ0KDQoNCnN0YXRpYyB2b2lkDQphZGRfaXRlbXMgKHZvaWQpDQp7DQogIEl0ZW0g Zm9vOw0KDQogIGdfcmV0dXJuX2lmX2ZhaWwgKGFydGljbGVzICE9IE5VTEwpOw0KDQogIGZv by5udW1iZXIgPSAzOw0KICBmb28ucHJvZHVjdCA9IGdfc3RyZHVwICgiYm90dGxlcyBvZiBj b2tlIik7DQogIGdfYXJyYXlfYXBwZW5kX3ZhbHMgKGFydGljbGVzLCAmZm9vLCAxKTsNCg0K ICBmb28ubnVtYmVyID0gNTsNCiAgZm9vLnByb2R1Y3QgPSBnX3N0cmR1cCAoInBhY2thZ2Vz IG9mIG5vb2RsZXMiKTsNCiAgZ19hcnJheV9hcHBlbmRfdmFscyAoYXJ0aWNsZXMsICZmb28s IDEpOw0KDQogIGZvby5udW1iZXIgPSAyOw0KICBmb28ucHJvZHVjdCA9IGdfc3RyZHVwICgi cGFja2FnZXMgb2YgY2hvY29sYXRlIGNoaXAgY29va2llcyIpOw0KICBnX2FycmF5X2FwcGVu ZF92YWxzIChhcnRpY2xlcywgJmZvbywgMSk7DQoNCiAgZm9vLm51bWJlciA9IDE7DQogIGZv by5wcm9kdWN0ID0gZ19zdHJkdXAgKCJjYW4gdmFuaWxsYSBpY2UgY3JlYW0iKTsNCiAgZ19h cnJheV9hcHBlbmRfdmFscyAoYXJ0aWNsZXMsICZmb28sIDEpOw0KDQogIGZvby5udW1iZXIg PSA2Ow0KICBmb28ucHJvZHVjdCA9IGdfc3RyZHVwICgiZWdncyIpOw0KICBnX2FycmF5X2Fw cGVuZF92YWxzIChhcnRpY2xlcywgJmZvbywgMSk7DQp9DQoNCnN0YXRpYyBHdGtUcmVlTW9k ZWwgKg0KY3JlYXRlX21vZGVsICh2b2lkKQ0Kew0KICBnaW50IGkgPSAwOw0KICBHdGtMaXN0 U3RvcmUgKm1vZGVsOw0KICBHdGtUcmVlSXRlciBpdGVyOw0KDQogIC8qIGNyZWF0ZSBhcnJh eSAqLw0KICBhcnRpY2xlcyA9IGdfYXJyYXlfc2l6ZWRfbmV3IChGQUxTRSwgRkFMU0UsIHNp emVvZiAoSXRlbSksIDEpOw0KDQogIGFkZF9pdGVtcyAoKTsNCg0KICAvKiBjcmVhdGUgbGlz dCBzdG9yZSAqLw0KICBtb2RlbCA9IGd0a19saXN0X3N0b3JlX25ldyAoTlVNX0NPTFVNTlMs IEdfVFlQRV9JTlQsIEdfVFlQRV9TVFJJTkcsDQoJCQkgICAgICBHX1RZUEVfQk9PTEVBTik7 DQoNCiAgLyogYWRkIGl0ZW1zICovDQogIGZvciAoaSA9IDA7IGkgPCBhcnRpY2xlcy0+bGVu OyBpKyspDQogICAgew0KICAgICAgZ3RrX2xpc3Rfc3RvcmVfYXBwZW5kIChtb2RlbCwgJml0 ZXIpOw0KDQogICAgICBndGtfbGlzdF9zdG9yZV9zZXQgKG1vZGVsLCAmaXRlciwNCgkJCSAg Q09MVU1OX05VTUJFUiwNCgkJCSAgZ19hcnJheV9pbmRleCAoYXJ0aWNsZXMsIEl0ZW0sIGkp Lm51bWJlciwNCgkJCSAgQ09MVU1OX1BST0RVQ1QsDQoJCQkgIGdfYXJyYXlfaW5kZXggKGFy dGljbGVzLCBJdGVtLCBpKS5wcm9kdWN0LA0KCQkJICAtMSk7DQogICAgfQ0KDQogIHJldHVy biBHVEtfVFJFRV9NT0RFTCAobW9kZWwpOw0KfQ0KDQoNCnN0YXRpYyB2b2lkDQphZGRfY29s dW1ucyAoR3RrVHJlZVZpZXcgKnRyZWV2aWV3KQ0Kew0KICBHdGtDZWxsUmVuZGVyZXIgKnJl bmRlcmVyOw0KICBHdGtUcmVlTW9kZWwgKm1vZGVsID0gZ3RrX3RyZWVfdmlld19nZXRfbW9k ZWwgKHRyZWV2aWV3KTsNCiAgR3RrVHJlZVZpZXdDb2x1bW4gKmNvbHVtbjsNCg0KICAvKiBu dW1iZXIgY29sdW1uICovDQogIHJlbmRlcmVyID0gZ3RrX2NlbGxfcmVuZGVyZXJfdGV4dF9u ZXcgKCk7DQogIGdfb2JqZWN0X3NldF9kYXRhIChHX09CSkVDVCAocmVuZGVyZXIpLCAiY29s dW1uIiwgKGdpbnQgKilDT0xVTU5fTlVNQkVSKTsNCg0KICBjb2x1bW4gPSBndGtfdHJlZV92 aWV3X2NvbHVtbl9uZXdfd2l0aF9hdHRyaWJ1dGVzICgiRGlyZWN0b3J5IiwNCiAgICAgICAg ICBndGtfY2VsbF9yZW5kZXJlcl90ZXh0X25ldyAoKSwNCiAgICAgICAgICAidGV4dCIsIDAs DQogICAgICAgICAgTlVMTCk7DQoNCiAgZ3RrX3RyZWVfdmlld19jb2x1bW5fc2V0X3dpZGdl dCAoY29sdW1uLCBidXR0b24yKTsNCi8vICBndGtfdHJlZV92aWV3X2NvbHVtbl9zZXRfY2xp Y2thYmxlIChjb2x1bW4sIGJ1dHRvbjIpOw0KICBndGtfdHJlZV92aWV3X2NvbHVtbl9zZXRf c2l6aW5nIChjb2x1bW4sIEdUS19UUkVFX1ZJRVdfQ09MVU1OX0dST1dfT05MWSk7DQogIGd0 a190cmVlX3ZpZXdfYXBwZW5kX2NvbHVtbiAoR1RLX1RSRUVfVklFVyAodmlldyksIGNvbHVt bik7DQoNCiAgLyogcHJvZHVjdCBjb2x1bW4gKi8NCiAgcmVuZGVyZXIgPSBndGtfY2VsbF9y ZW5kZXJlcl90ZXh0X25ldyAoKTsNCiAgZ19vYmplY3Rfc2V0X2RhdGEgKEdfT0JKRUNUIChy ZW5kZXJlciksICJjb2x1bW4iLCAoZ2ludCAqKUNPTFVNTl9QUk9EVUNUKTsNCg0KICBndGtf dHJlZV92aWV3X2luc2VydF9jb2x1bW5fd2l0aF9hdHRyaWJ1dGVzIChHVEtfVFJFRV9WSUVX ICh0cmVldmlldyksDQoJCQkJCSAgICAgICAtMSwgIlByb2R1Y3QiLCByZW5kZXJlciwNCgkJ CQkJICAgICAgICJ0ZXh0IiwgQ09MVU1OX1BST0RVQ1QsDQoJCQkJCSAgICAgICBOVUxMKTsN Cn0NCg0Kdm9pZCBjcmVhKCkNCnsNCiAgICBHdGtUcmVlTW9kZWwgKm1vZGVsOw0KDQogICAg LyogY3JlYXRlIG1vZGVsICovDQogICAgbW9kZWwgPSBjcmVhdGVfbW9kZWwgKCk7DQoNCiAg ICB2aWV3ID0gZ3RrX3RyZWVfdmlld19uZXdfd2l0aF9tb2RlbCAobW9kZWwpOw0KDQogICAg Z19vYmplY3RfdW5yZWYgKEdfT0JKRUNUIChtb2RlbCkpOw0KICAgIGd0a190cmVlX3ZpZXdf c2V0X3J1bGVzX2hpbnQgKEdUS19UUkVFX1ZJRVcgKHZpZXcpLCBUUlVFKTsNCiAgICBndGtf dHJlZV9zZWxlY3Rpb25fc2V0X21vZGUgKGd0a190cmVlX3ZpZXdfZ2V0X3NlbGVjdGlvbg0K KEdUS19UUkVFX1ZJRVcgKHZpZXcpKSwgR1RLX1NFTEVDVElPTl9TSU5HTEUpOw0KDQogICAg YWRkX2NvbHVtbnMgKEdUS19UUkVFX1ZJRVcgKHZpZXcpKTsNCiAgICANCiAgICBndGtfd2lk Z2V0X3Nob3codmlldyk7DQogICAgDQp9DQoNCg0KDQppbnQgbWFpbiggaW50ICAgYXJnYywN CiAgICAgICAgICBjaGFyICphcmd2W10gKQ0Kew0KICAgIEd0a1dpZGdldCAqd2luZG93Ow0K ICAgIEd0a1dpZGdldCAqYm94MTsNCg0KICAgIGd0a19pbml0ICgmYXJnYywgJmFyZ3YpOw0K DQogICAgd2luZG93ID0gZ3RrX3dpbmRvd19uZXcgKEdUS19XSU5ET1dfVE9QTEVWRUwpOw0K DQogICAgZ3RrX3dpbmRvd19zZXRfdGl0bGUgKEdUS19XSU5ET1cgKHdpbmRvdyksICJIZWxs byBCdXR0b25zISIpOw0KDQogICAgZ3RrX3NpZ25hbF9jb25uZWN0IChHVEtfT0JKRUNUICh3 aW5kb3cpLCAiZGVsZXRlX2V2ZW50IiwNCgkJCUdUS19TSUdOQUxfRlVOQyAoZGVsZXRlX2V2 ZW50KSwgTlVMTCk7DQoNCiAgICBndGtfY29udGFpbmVyX3NldF9ib3JkZXJfd2lkdGggKEdU S19DT05UQUlORVIgKHdpbmRvdyksIDEwKTsNCg0KICAgIGJveDEgPSBndGtfdmJveF9uZXco RkFMU0UsIDApOw0KDQogICAgZ3RrX2NvbnRhaW5lcl9hZGQgKEdUS19DT05UQUlORVIgKHdp bmRvdyksIGJveDEpOw0KDQogICAgYnV0dG9uMSA9IGd0a19idXR0b25fbmV3X3dpdGhfbW5l bW9uaWMgKCJfQnV0dG9uIDEiKTsNCg0KICAgIGd0a19zaWduYWxfY29ubmVjdCAoR1RLX09C SkVDVCAoYnV0dG9uMSksICJjbGlja2VkIiwNCgkJCUdUS19TSUdOQUxfRlVOQyAoY2FsbGJh Y2spLCAoZ3BvaW50ZXIpICJidXR0b24gMSIpOw0KDQogICAgZ3RrX2JveF9wYWNrX3N0YXJ0 KEdUS19CT1goYm94MSksIGJ1dHRvbjEsIFRSVUUsIFRSVUUsIDApOw0KDQogICAgZ3RrX3dp ZGdldF9zaG93KGJ1dHRvbjEpOw0KDQogICAgYnV0dG9uMiA9IGd0a19idXR0b25fbmV3X3dp dGhfbW5lbW9uaWMoImJfdXR0b24yIik7DQoNCiAgICBndGtfc2lnbmFsX2Nvbm5lY3QgKEdU S19PQkpFQ1QgKGJ1dHRvbjIpLCAiY2xpY2tlZCIsDQoJCQlHVEtfU0lHTkFMX0ZVTkMgKGNh bGxiYWNrKSwgKGdwb2ludGVyKSAiYnV0dG9uIDIiKTsNCg0KICAgIGd0a193aWRnZXRfc2hv dyhidXR0b24yKTsNCg0KICAgIGNyZWEoKTsNCiAgICBndGtfd2lkZ2V0X3Nob3codmlldyk7 DQogICAgZ3RrX2JveF9wYWNrX3N0YXJ0KEdUS19CT1goYm94MSksIHZpZXcsIFRSVUUsIFRS VUUsIDApOw0KDQogICAgZ3RrX3dpZGdldF9zaG93KGJveDEpOw0KDQogICAgZ3RrX3dpZGdl dF9zaG93ICh3aW5kb3cpOw0KDQogICAgZ3RrX21haW4gKCk7DQoNCiAgICByZXR1cm4oMCk7 DQp9DQoNCg== From eric.thierry@finconsult.fr Fri Feb 8 13:31:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from argyre.fr.uu.net (mail.iway.fr [194.98.0.9]) by mail.gnome.org (Postfix) with ESMTP id 29AA818413 for ; Fri, 8 Feb 2002 13:31:26 -0500 (EST) Received: from finconsult.fr ([212.208.176.166]) by argyre.fr.uu.net (8.9.3/8.8.7) with ESMTP id TAA28095 for ; Fri, 8 Feb 2002 19:38:16 +0100 (MET) Message-ID: <3C641977.5299747B@finconsult.fr> Date: Fri, 08 Feb 2002 19:31:19 +0100 From: Eric THIERRY X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Colored scrolled_window Content-Type: multipart/mixed; boundary="------------F54ED5736F99664E1C8C76A9" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. --------------F54ED5736F99664E1C8C76A9 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I create a scrolled window and a tree that I add in with a viewport. I'd like the background of the viewport to be colored, but it desperately remains white. Could someone help me about it ? Thanks a lot. -- Salutations, Eric THIERRY --------------F54ED5736F99664E1C8C76A9 Content-Type: text/x-vcard; charset=us-ascii; name="eric.thierry.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Eric THIERRY Content-Disposition: attachment; filename="eric.thierry.vcf" begin:vcard n:THIERRY;Eric tel;fax:01-53-45-32-99 tel;work:01-53-45-32-80 x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:eric.thierry@finconsult.fr fn:Eric THIERRY end:vcard --------------F54ED5736F99664E1C8C76A9-- From mmotta@guest.net Fri Feb 8 14:11:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from riccione.guest.net (server.guest.net [80.17.82.2]) by mail.gnome.org (Postfix) with ESMTP id 75B75190C7 for ; Fri, 8 Feb 2002 14:11:19 -0500 (EST) Received: from guest.net (dialup-08.guest.net [80.17.82.200] (may be forged)) by riccione.guest.net (8.8.8/8.8.8) with ESMTP id UAA13743 for ; Fri, 8 Feb 2002 20:18:03 +0100 (CET) (envelope-from mmotta@guest.net) Message-ID: <3C64317A.8030502@guest.net> Date: Fri, 08 Feb 2002 21:13:46 +0100 From: mario motta User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 X-Accept-Language: en-us, it MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: sample source of buggy gtk 2.0 function References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: zanac_fake wrote: > Hi, > > as i mentioned in another post i think that GtkTreeViewColumn is buggy, > but no one helped me... so i have just write this small sample that you > can use to try this problem. In this sample if you press the > button2 work, but if you use the mouse.......... > > byeZ! > $ cat > http://bugzilla.gnome.org/ /mario -- Mario Motta AI Research Group - Rimini http://vdkbuilder.sourceforge.net From emonsler@beamreachnetworks.com Fri Feb 8 17:48:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from newman.BEAMREACHNETWORKS.COM (unknown [209.11.118.10]) by mail.gnome.org (Postfix) with ESMTP id C3ED518189 for ; Fri, 8 Feb 2002 17:48:53 -0500 (EST) Received: from beamreachnetworks.com (e_monsler.beamreachnetworks.com [172.31.40.59]) by newman.BEAMREACHNETWORKS.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 4TNW0W0J; Fri, 8 Feb 2002 14:46:03 -0800 Message-ID: <3C6455BA.11ABCBC0@beamreachnetworks.com> Date: Fri, 08 Feb 2002 14:48:26 -0800 From: "Eric M. Monsler" X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: "Kerber, Ulrich" , gtk-list@gnome.org Subject: Re: Memory problems while using a clist References: <1013168395.2884.11.camel@dshpc004> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > "Kerber, Ulrich" writes: > > I wrote an app with a clist showing the contents of a log file; the > > clist is updated every 60 seconds. Although i do a gtk_clist_clear, > > the memory used is increasing with every run, even if no element is > > added. After a day of work the amount reaches up to 40 MB! > > Does anybody know a solution to this problem? > > > > You just need to debug it. Use a tool such as "memprof" to see where > the memory is leaked. > > Havoc A tool I found very useful was GSK, (GNU Server Kit), which can replace the g_malloc type GLib calls with debug versions, and keeps a record of all outstanding allocations. I used essentially just the gskdebug facility, and it worked great. gsk.sourceforge.net, IIRC Eric From doc@deadvirgins.org.uk Sat Feb 9 10:01:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand7.global.net.uk (sand7.global.net.uk [195.147.246.253]) by mail.gnome.org (Postfix) with ESMTP id 7F72D182C9 for ; Sat, 9 Feb 2002 10:01:20 -0500 (EST) Received: from [195.147.236.28] (helo=deadvirgins.org.uk) by sand7.global.net.uk with esmtp (Exim 3.22 #1) id 16ZZ0K-0003U3-00 for gtk-list@gnome.org; Sat, 09 Feb 2002 15:01:29 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g19F1G600458 for gtk-list@gnome.org; Sat, 9 Feb 2002 15:01:16 GMT Message-Id: <200202091501.g19F1G600458@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: gtk-list@gnome.org Subject: Re: Creating widgets with auto-repeat Date: Sat, 9 Feb 2002 15:01:16 +0000 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks to Pauk for the pointers on how to make my autorepeat code a bit more elegant, but having looked at the suggestions I'm a bit puzzled... info->value++; info->count = 0; info->state = 0; info->timer_id = gtk_timeout_add(REPEAT_STAGE0_DELAY, (GtkFunction)timer_func, info); The "gtk_timeout_add" line doesn't work, becasue you're *passing* the value of info->timer *before* it gets assigned. Hence the timeout function doesn't know the ID of the timer.... This was why I resorted to globals! :-) -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From sven@gimp.org Sat Feb 9 10:23:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E0DDCB.dip.t-dialin.net [217.224.221.203]) by mail.gnome.org (Postfix) with ESMTP id 65C13180E7 for ; Sat, 9 Feb 2002 10:23:00 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZZKh-0004fX-00; Sat, 09 Feb 2002 16:22:31 +0100 To: doc@deadvirgins.org.uk Cc: gtk-list@gnome.org Subject: Re: Creating widgets with auto-repeat References: <200202091501.g19F1G600458@deadvirgins.org.uk> From: Sven Neumann Date: 09 Feb 2002 16:22:31 +0100 In-Reply-To: <200202091501.g19F1G600458@deadvirgins.org.uk> Message-ID: Lines: 26 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "David J. Singer" writes: > Thanks to Pauk for the pointers on how to make my autorepeat > code a bit more elegant, but having looked at the suggestions > I'm a bit puzzled... > > info->value++; > info->count = 0; > info->state = 0; > info->timer_id = gtk_timeout_add(REPEAT_STAGE0_DELAY, > (GtkFunction)timer_func, info); > > The "gtk_timeout_add" line doesn't work, becasue you're *passing* > the value of info->timer *before* it gets assigned. Hence the timeout > function doesn't know the ID of the timer.... I don't see the problem. You are passing a pointer to the info structure and of course you can change it's contents later and the timer_func will get the current value when it accesses info->timer_id. Apart from that, I don't think you need the timer_id since you can remove the timeout by returning FALSE from timer_func. Salut, Sven From davidgn@servidor.unam.mx Sat Feb 9 11:56:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id ECFCF18154 for ; Sat, 9 Feb 2002 11:56:25 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.113.17]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g19GtCk15022 for ; Sat, 9 Feb 2002 10:55:12 -0600 (CST) Date: Sat, 9 Feb 2002 11:12:46 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: sleeping Message-Id: <20020209111246.58756e22.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello again. I am writing a program to control two steppers. To control its speed, i would need to sleep the function that moves them. Is it safe to use sleep/nanosleep? or are there safer functions or a better way to do it than a callback from an Entry widget (where i get the command from)? (I was just thinking a long coulback could hang the app, am i right?) -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From hunchback@netcabo.pt Sat Feb 9 12:16:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 579E618154 for ; Sat, 9 Feb 2002 12:16:44 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 9 Feb 2002 17:11:04 +0000 Content-Class: urn:content-classes:message From: To: , Subject: RE: sleeping Date: Sat, 9 Feb 2002 17:11:04 -0000 Message-ID: <0b6b01c1b18c$c1c6bed0$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcGxjMHEHg2jUh12EdaCdgBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi,=20 >I am writing a program to control two steppers. To control its speed, i = would need to >sleep the function that moves them. i have a similar problem, i'm doing a movement of a pixmap, but i want = to slow it down, so that the image runs move smothly... i made the signal connect for the mouse events and on the handler i made = it sleep with the GTimer (glib), but the problem is that even putting it = to sleep, it remembers the events, so if i go left, then right, then = left, it always does this movements, but not synchronized with the = mouse... is there some way to do this, or do i have to disconnect the = signal while i put it to sleep? Afonso From sven@gimp.org Sat Feb 9 13:12:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E0D9CC.dip.t-dialin.net [217.224.217.204]) by mail.gnome.org (Postfix) with ESMTP id B55AF1811B for ; Sat, 9 Feb 2002 13:12:54 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZbzL-0004hi-00; Sat, 09 Feb 2002 19:12:39 +0100 To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: sleeping References: <20020209111246.58756e22.davidgn@servidor.unam.mx> From: Sven Neumann Date: 09 Feb 2002 19:12:38 +0100 In-Reply-To: <20020209111246.58756e22.davidgn@servidor.unam.mx> Message-ID: Lines: 13 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, David Eduardo Gomez Noguera writes: > I am writing a program to control two steppers. To control its speed, i would need to sleep the function that moves them. > Is it safe to use sleep/nanosleep? or are there safer functions or a better way to do it than a callback from an Entry widget (where i get the command from)? (I was just thinking a long coulback could hang the app, am i right?) I'd suggest you use the GTK+ main loop instead and install a timeout. Have a look at gtk_timeout_add(). Salut, Sven From davidgn@servidor.unam.mx Sat Feb 9 13:30:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id 960C61879C for ; Sat, 9 Feb 2002 13:30:26 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.110]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g19ITDk26269 for ; Sat, 9 Feb 2002 12:29:13 -0600 (CST) Date: Sat, 9 Feb 2002 12:46:46 -0600 From: David Eduardo Gomez Noguera To: gtk-list@gnome.org Subject: Re: sleeping Message-Id: <20020209124646.0bbf4278.davidgn@servidor.unam.mx> In-Reply-To: References: <20020209111246.58756e22.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 09 Feb 2002 19:12:38 +0100 Sven Neumann wrote: > Hi, > > David Eduardo Gomez Noguera writes: > > > I am writing a program to control two steppers. To control its speed, i would need to sleep the function that moves them. > > Is it safe to use sleep/nanosleep? or are there safer functions or a better way to do it than a callback from an Entry widget (where i get the command from)? (I was just thinking a long coulback could hang the app, am i right?) > > I'd suggest you use the GTK+ main loop instead and install a timeout. > Have a look at gtk_timeout_add(). what do you mean with the GTK+ main loop? havent done much with gtk, so my knowledge about gtk_main is limited to think that i run it only once. I have seen gtk_timeout_add. my function needs the two steppers to start and stop moving at the same time, so i use a line algorithm, and would need static variables there. Also, i get the command to move the steppers from a GtkEntry widget, then i would need some way to not enable execution of new commands until the lastone ends (was thinking of gtk_object_set_data on the Entry, and a check each time to see if the timer exists.) Can i "temporary" block signals from other widgets? I also have a few buttons that affect the steppers, and would have to block them while executing a command. Any help or pointer would be very appreciated... (i have a bad bad english) Thank you. > > > Salut, Sven > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From sven@gimp.org Sat Feb 9 14:17:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E0D9CC.dip.t-dialin.net [217.224.217.204]) by mail.gnome.org (Postfix) with ESMTP id 11E9218360 for ; Sat, 9 Feb 2002 14:17:14 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZczF-0005Vj-00; Sat, 09 Feb 2002 20:16:37 +0100 To: davidgn@servidor.unam.mx Cc: gtk-list@gnome.org Subject: Re: sleeping References: <20020209111246.58756e22.davidgn@servidor.unam.mx> <20020209124646.0bbf4278.davidgn@servidor.unam.mx> From: Sven Neumann Date: 09 Feb 2002 20:16:37 +0100 In-Reply-To: <20020209124646.0bbf4278.davidgn@servidor.unam.mx> Message-ID: Lines: 30 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, David Eduardo Gomez Noguera writes: > > I'd suggest you use the GTK+ main loop instead and install a timeout. > > Have a look at gtk_timeout_add(). > > what do you mean with the GTK+ main loop? havent done much with gtk, so my knowledge about gtk_main is limited to think that i run it only once. you start it once and then it's running. You should not sleep since that would block the main loop. Instead you should hook your functionality into the main loop. > I have seen gtk_timeout_add. > my function needs the two steppers to start and stop moving at the same time, so i use a line algorithm, and would need static variables there. > Also, i get the command to move the steppers from a GtkEntry widget, then i would need some way to not enable execution of new commands until the lastone ends (was thinking of gtk_object_set_data on the Entry, and a check each time to see if the timer exists.) > Can i "temporary" block signals from other widgets? gtk_signal_handler_block() gtk_signal_handler_block_by_func() gtk_signal_handler_block_by_data() gtk_signal_handler_unblock() gtk_signal_handler_unblock_by_func() gtk_signal_handler_unblock_by_data() Salut, Sven From toni.moreno.gimenez@wanadoo.es Sun Feb 10 01:49:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.wanadoo.es (unknown [62.37.236.151]) by mail.gnome.org (Postfix) with ESMTP id 1380C180FE for ; Sun, 10 Feb 2002 01:49:49 -0500 (EST) Received: from Telemaco (62-36-160-2.dialup.uni2.es [62.36.160.2]) by smtp.wanadoo.es (8.11.6/8.10.2) with SMTP id g1A6o4Y12164 for ; Sun, 10 Feb 2002 07:50:05 +0100 (MET) Content-Type: text/plain; charset="iso-8859-1" From: Toni Moreno =?iso-8859-1?q?Gim=E9nez?= To: gtk-list@gnome.org Subject: Thread Safe GLib ? object/message Date: Sun, 10 Feb 2002 07:55:13 +0100 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02021007551301.02239@Telemaco> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: A single question: are GObject (Glib2) and (Glib 1-2) message system thread safe ? -- ================= Toni Moreno Giménez ================= Pje de las rosas nº 22 Vilassar de Mar (Barcelona) España CP: 08340 From neofolk@yahoo.de Sat Feb 2 00:23:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by mail.gnome.org (Postfix) with SMTP id 934A7180EC for ; Sat, 2 Feb 2002 00:23:40 -0500 (EST) Received: from pc19f2f41.dip.t-dialin.net (HELO p3desktop) (193.159.47.65) by smtp.mail.vip.sc5.yahoo.com with SMTP; 2 Feb 2002 05:23:38 -0000 Message-ID: <001201c1aba9$756ac9c0$6600a8c0@p3desktop> Reply-To: "Oliver Kroll :ALT EUROPA: - Magazin" From: "Oliver Kroll :ALT EUROPA: - Magazin" To: Subject: CList: how to change column-count at runtime Date: Sat, 2 Feb 2002 06:21:22 +0100 Organization: :ALT EUROPA: - Magazin MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000F_01C1ABB1.D5D12860" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C1ABB1.D5D12860 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi all, i created a form (clist included) with glade. i filled a ctree with databases and tables from the mysql-server, now i = like to read the data stored in a mysql-table into the clist. this is no problem so far. but how can i change the column-count from the gtk-clist at runtime, so = that it will fit to the column-count of the mysql-resultset? thanks a lot for your help. sincerly oliver k. ------=_NextPart_000_000F_01C1ABB1.D5D12860 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi all,
 
i created a form (clist included) with=20 glade.
 
i filled a ctree with databases and = tables from the=20 mysql-server, now i like to read the data stored in a mysql-table into = the=20 clist.
this is no problem so far.
 
but how can i change the column-count = from the=20 gtk-clist at runtime, so that it will fit to the column-count of the=20 mysql-resultset?
 
thanks a lot for your = help.
 
sincerly
 
oliver k.
------=_NextPart_000_000F_01C1ABB1.D5D12860-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From nitin.yewale@wipro.com Mon Feb 4 01:22:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 68B04180E7; Mon, 4 Feb 2002 01:22:39 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g146LYX05552; Mon, 4 Feb 2002 11:51:38 +0530 (IST) Received: from M33COM793 ([10.114.9.178]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GQZWBZ00.5CN; Mon, 4 Feb 2002 11:51:35 +0530 Reply-To: From: "Nitin Madhukar Yewale" To: "Desktop-Devel-List" , Subject: Help required on "GMenu" implementation using Model/View architecture. Date: Mon, 4 Feb 2002 11:57:34 +0530 Message-ID: <002b01c1ad45$0823b0f0$b209720a@M33COM793> 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am going through the source code of "GMenu" application. As per the GTK 2.0, GtkTree and GtkList widgets are deprecated and we have to use GtkTreeView,GtkTreeModel widgets to adopt Model/View architecture. In the above application we will have to use gtktreestore as a model which will store information in terms of GtkTreeIter and at the same time we need to update GtkTreeView to show on the GUI so that both of them will be in sync. As per my understanding to extract information of selected column of GtkTreeView we have to use following steps :- 1> Get selected item using GtkTreeSelection from GtkTreeView. 2> Get selected GtkTreeIter of GtkTreeStore from above GtkTreeSelection. Please suggest better way for extracting data from GtkTreeView. Thanks in Advance, Nitin NOTE: I have not subscribed gtk-list mailing list so please send your suggestions to nitin.yewale@wipro.com . From falconer@falconer.best.vwh.net Wed Feb 6 20:48:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id A2B15181CC for ; Wed, 6 Feb 2002 20:48:30 -0500 (EST) Received: (qmail 27095 invoked by uid 25889); 7 Feb 2002 01:48:29 -0000 Date: 7 Feb 2002 01:48:29 -0000 Message-ID: <20020207014829.27094.qmail@falconer.best.vwh.net> From: falconer@falconer.best.vwh.net To: gtk-list@gnome.org Subject: catching unix signals from Gtk Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all; here's a problem I can't find a solution to in any of the docs nor by searching the email database. How can a Gtk-based application respond to unix signals? In particular, I have an app that may receive a SIGUSR1 from another program which tells my app to re-read some files and update its display. I could write an ordinary unix signal handler and register it with signal(2), but it's not safe to call GTK functions from within such a handler. I could write an ordinary unix signal handler and have it set a flag, and then use a timer callback to poll that flag once a second or so. But I don't want to keep a timer running for an event that happens only rarely. I could open a pipe and have the unix signal handler write a single byte to it when there's an interrupt, and then have GTK attach an input handler to the output side of the pipe. These all seem to be kludges to me; is there a better way to do it? -ed falk From jerryxu@kinposh.com.cn Fri Feb 8 00:06:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 1B87C180E1 for ; Fri, 8 Feb 2002 00:06:50 -0500 (EST) Subject: a problem Date: Fri, 8 Feb 2002 13:06:33 +0800 MIME-Version: 1.0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F82228EAF@kes01.kinposh.com.cn> X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: a problem Thread-Index: AcGwXl+cNgiQdONyQMGCqmuYNjbjJA== X-Priority: 1 Priority: Urgent Importance: high From: =?gb2312?B?0Oy4/SBKZXJyeSBYdQ==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: a problem

 

      Now I have a problem: I want to make the = focus  element  more  obvious .For example, I want to = make the focus-rectangle's edges(line)  wider  and wider. Do I = need to revise the file  "gtkstyle.h"? Can you give me = some advice?

     E.G.: There are four buttons in = the dailog. When the key "tab" is pressed, one of them has the = "focus". And
I want = to make the focus button more distinctness. That is, I want to make the = focus rectangel's frame thicker
than the = default, what can I do? 

From twanger@bluetwanger.de Fri Feb 8 04:52:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from leela.one-2-one.net (leela.one-2-one.net [217.115.142.65]) by mail.gnome.org (Postfix) with ESMTP id 80A12180EA; Fri, 8 Feb 2002 04:52:07 -0500 (EST) Received: from [192.168.0.14] (p3E9EC020.dip.t-dialin.net [62.158.192.32]) by leela.one-2-one.net (8.11.0/8.11.0) with ESMTP id g189sOR23427; Fri, 8 Feb 2002 10:54:24 +0100 Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc From: Markus Bertheau To: Deepa Cc: gtk-list@gnome.org, desktop-devel-list In-Reply-To: <3C639AF8.B378AA0@wipro.com> References: <3C639AF8.B378AA0@wipro.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-R4vu62aHORSrIevoFL+2" X-Mailer: Evolution/1.0.2 Date: 08 Feb 2002 10:51:33 +0100 Message-Id: <1013161894.29366.2.camel@entwicklung01.cenes.de> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-R4vu62aHORSrIevoFL+2 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2002-02-08 at 10:31, Deepa wrote: > Hi >=20 > I am encountering these deprecated calls in libzvt: > gdk_input_remove () > gdk_input_add () > gdk_rgb_init () >=20 > Could anyone please tell me what is the replacement for these. =20 http://cvs.gnome.org/lxr/source/gtk+/gdk/gdkevents.c#852 Markus Bertheau --=-R4vu62aHORSrIevoFL+2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8Y5+lKNEjAb345r4RAo3bAJ44OwYVZunHOsHi5kfmJl5vI+9FmgCaAl7R 61pMNNP2u841np5N2YIwZrg= =SxC5 -----END PGP SIGNATURE----- --=-R4vu62aHORSrIevoFL+2-- From jamesv@galleon.co.uk Tue Feb 5 08:02:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from finch-post-12.mail.demon.net (finch-post-12.mail.demon.net [194.217.242.41]) by mail.gnome.org (Postfix) with ESMTP id 2F47918180 for ; Tue, 5 Feb 2002 08:02:06 -0500 (EST) Received: from gallsubs.demon.co.uk ([158.152.242.244] helo=galmss01.960.local) by finch-post-12.mail.demon.net with esmtp (Exim 2.12 #1) id 16Y5Bo-000Ktn-0C for gtk-list@gnome.org; Tue, 5 Feb 2002 12:59:13 +0000 Received: from james_pc.960.local (Jim@james_pc.960.local [192.168.12.103]) by galmss01.960.local (8.8.5/SCA-6.6) with ESMTP id MAA23544 for ; Tue, 5 Feb 2002 12:57:15 GMT Subject: At the end of my tether with gtk_adjustment_value_changed() From: James Vanns To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 05 Feb 2002 12:52:19 +0000 Message-Id: <1012913539.2024.33.camel@james_pc.960.local> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am getting a little frustrated now: I have a signal handler setup to do stuff when an adjustment receives a value_changed signal. This works except when I want to explicitly want to emit a value_changed signal. I have set the adjustment value two ways: gtk_adjustment_set_value (adjustment, (float) key); /* key was an int originally && >= 0) */ and also adjustment->value = (float) key; and then tried to different ways to send out the signal so my callback would be run: gtk_signal_emit_by_name (GTK_OBJECT (adjustment), "value_changed")); and gtk_adjustment_value_changed (adjustment); none of them seem to emit a value_changed signal cos my callback is not called. What am I doing wrong ?? Am I completely misunderstanding the use of these functions!!??? Cheers for any help James Vanns -- James Vanns BSc (Hons) MCP Software Engineer (UNIX / C) Galleon Ltd. From unicorn@minet.uni-jena.de Sat Feb 9 11:31:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fsuj20.rz.uni-jena.de (fsuj20.rz.uni-jena.de [141.35.1.18]) by mail.gnome.org (Postfix) with ESMTP id 0E2C9181DB for ; Sat, 9 Feb 2002 11:31:54 -0500 (EST) Received: from virusscan.rz.uni-jena.de (virusscan.rz.uni-jena.de [141.35.1.23]) by fsuj20.rz.uni-jena.de (8.12.0.Beta7/8.11.1) with ESMTP id g19GVQ2I027442 for ; Sat, 9 Feb 2002 17:31:42 +0100 (MET) Received: from virusscan.rz.uni-jena.de (localhost [127.0.0.1]) by virusscan.rz.uni-jena.de (8.11.6/8.11.6) with ESMTP id g19GVQl05234 for ; Sat, 9 Feb 2002 17:31:26 +0100 Received: from pax10e3.mipool.uni-jena.de (daemon@pax10e2.mipool.uni-jena.de [141.35.13.142]) by pax08e3.mipool.uni-jena.de (8.11.6/8.11.6) with ESMTP id g19GVNk25838 for ; Sat, 9 Feb 2002 17:31:23 +0100 (CET) From: Randy Rueckner Received: (from unicorn@localhost) by pax10e3.mipool.uni-jena.de (8.11.6/8.11.6) id g19GVHK288465 for gtk-list@gnome.org; Sat, 9 Feb 2002 17:31:17 +0100 (MET) Message-Id: <200202091631.g19GVHK288465@pax10e3.mipool.uni-jena.de> Subject: GtkCTreeNode row_data To: gtk-list@gnome.org Date: Sat, 9 Feb 2002 17:31:17 +0100 (MET) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello there! i have a little question. how can i get the row_data from a node (its a leaf) in a GtkCTree if i only know the label from this node? thanks in advance randy r. From doc@deadvirgins.org.uk Sun Feb 10 12:08:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand7.global.net.uk (sand7.global.net.uk [195.147.246.253]) by mail.gnome.org (Postfix) with ESMTP id DE92C18283 for ; Sun, 10 Feb 2002 12:08:50 -0500 (EST) Received: from [195.147.237.170] (helo=deadvirgins.org.uk) by sand7.global.net.uk with esmtp (Exim 3.22 #1) id 16ZxTH-0006cc-00; Sun, 10 Feb 2002 17:09:00 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g1AH8kn00417; Sun, 10 Feb 2002 17:08:46 GMT Message-Id: <200202101708.g1AH8kn00417@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: Sven Neumann Subject: Re: Creating widgets with auto-repeat Date: Sun, 10 Feb 2002 17:08:46 +0000 X-Mailer: KMail [version 1.3.2] Cc: gtk-list@gnome.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > I don't see the problem. You are passing a pointer to the info > structure and of course you can change it's contents later and the > timer_func will get the current value when it accesses info->timer_id. > Apart from that, I don't think you need the timer_id since you can > remove the timeout by returning FALSE from timer_func. I think I must have been having a "slow" day. You're absolutely right, of course... :-) Oops. -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From hp@redhat.com Sun Feb 10 12:16:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 23BA8180F4 for ; Sun, 10 Feb 2002 12:16:39 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1AHGZ710921; Sun, 10 Feb 2002 12:16:35 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: falconer@falconer.best.vwh.net Cc: gtk-list@gnome.org Subject: Re: catching unix signals from Gtk References: <20020207014829.27094.qmail@falconer.best.vwh.net> From: Havoc Pennington Date: 10 Feb 2002 12:16:35 -0500 In-Reply-To: <20020207014829.27094.qmail@falconer.best.vwh.net> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: falconer@falconer.best.vwh.net writes: > I could open a pipe and have the unix signal handler write a > single byte to it when there's an interrupt, and then have > GTK attach an input handler to the output side of the pipe. This is in general the best way to do it we've come up with. > These all seem to be kludges to me; is there a better way to > do it? Another way to do it is to write a custom main loop source that checks a flag in its prepare/check methods to see whether a dispatch is needed. But this relies on the fact that your signal wakes up the main loop poll() or select() with an EINTR, and there was some issue with that which I don't remember now. If you search the gtk-devel-list archives you can probably find at least a little bit of discussion on the topic. Havoc From hp@redhat.com Sun Feb 10 12:18:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 5D1DE18283 for ; Sun, 10 Feb 2002 12:18:34 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1AHIWY10925; Sun, 10 Feb 2002 12:18:32 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: James Vanns Cc: gtk-list@gnome.org Subject: Re: At the end of my tether with gtk_adjustment_value_changed() References: <1012913539.2024.33.camel@james_pc.960.local> From: Havoc Pennington Date: 10 Feb 2002 12:18:32 -0500 In-Reply-To: <1012913539.2024.33.camel@james_pc.960.local> Message-ID: Lines: 9 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: James Vanns writes: > What am I doing wrong ?? Am I completely misunderstanding the use of > these functions!!??? No, they should work as you described. I'm guessing you're looking at the wrong piece of code for the bug. Havoc From davidgn@servidor.unam.mx Sun Feb 10 13:23:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id 3BB7118183 for ; Sun, 10 Feb 2002 13:23:51 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.137]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g1AIMbk10258 for ; Sun, 10 Feb 2002 12:22:37 -0600 (CST) Date: Sun, 10 Feb 2002 12:40:17 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: threads Message-Id: <20020210124017.52703751.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. I was thining on a program, and gtk_timeout is not the way to go. So i read a bit on the faq and the "api", and i couldn understand well threads on gtk/gdk/glib. I remember some articles on linux magazine about threads, and i though they were created after a function (passing the funcion as an argument), i dont get what gdk_thread_enter/leave work, and if i can start a thread from a user signal callback. (the examples i have seen so far, start threads from the main, aoutside the gtk_main loop, and put gdk_thread_enter/leave around the gtk_main(). Is there any faq or documentation centered on it? on the mails i read, it seemed as if everybody already understand it. Thank you. -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From davidgn@servidor.unam.mx Sun Feb 10 21:02:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id C657C18340 for ; Sun, 10 Feb 2002 21:02:39 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.56]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g1B21Pk03780 for ; Sun, 10 Feb 2002 20:01:25 -0600 (CST) Date: Sun, 10 Feb 2002 20:19:09 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: threads again. Message-Id: <20020210201909.7c263505.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. Its me asking about the use of threads with gtk again. Why is gdk_treads_enter/leave function? to restrict access to some structures? I was writing this, and i get segfaults. All examples i have seen so far, start threads on main(), but i started a thread on a callback. Is that not possible to do? if so, why? The best i could find is a pointer to check the gftp source, which i am about to do... Well, any explanation would be apreciated. Thank you again. -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From scurveedog@yahoo.com Sun Feb 10 22:07:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13701.mail.yahoo.com (web13701.mail.yahoo.com [216.136.175.134]) by mail.gnome.org (Postfix) with SMTP id 3DEEC182D5 for ; Sun, 10 Feb 2002 22:07:51 -0500 (EST) Message-ID: <20020211030750.54810.qmail@web13701.mail.yahoo.com> Received: from [209.253.230.249] by web13701.mail.yahoo.com via HTTP; Sun, 10 Feb 2002 19:07:50 PST Date: Sun, 10 Feb 2002 19:07:50 -0800 (PST) From: Jim Adams Subject: GList in a list box To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I am a beginner who has become very confused. I have a data file and can transfer it to a GList which I can then print out. Can anyone help me display the complete GList in a gtk+ list box? My test program to load a GList and then print it out: #include #include /***** FUNC TO DISPLAY GList *****/ void PrintList( GList *list ) { list = g_list_first( list ); while( list != NULL ) { g_print( "%s", (gchar *)list -> data ); list = g_list_next( list ); } } gint main( ) { GList *list = NULL; FILE *infile; gchar buffer[5][81]; gint i = 0; /***** OPEN DATA FILE *****/ if( ( infile = fopen( "/home/jim/gnome/data.dat", "r" )) == NULL ) { g_print( "\nfopen() failed!\n" ); exit( 0 ); } /***** LOAD BUFFER WITH DATA *****/ while( ( fgets( buffer[i], 81, infile ) ) != NULL ) { i++; } /***** ADD BUFFER DATA TO GList *****/ for( i = 0; i < 5; i++ ) { list = g_list_append( list, buffer[i] ); } PrintList( list ); g_list_free( list ); fclose( infile ); return 0; } thank you, jim, scurveedog@yahoo.com __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com From jgotts@ann-arbor.fmfts.com Mon Feb 11 09:57:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ann-arbor.fmfts.com (fmfts.com [64.9.213.97]) by mail.gnome.org (Postfix) with ESMTP id D568E18E08 for ; Mon, 11 Feb 2002 09:57:36 -0500 (EST) Received: from ann-arbor.fmfts.com (jgotts@localhost) by ann-arbor.fmfts.com (8.11.6/8.11.6) with ESMTP id g1BEuWM27570 for ; Mon, 11 Feb 2002 09:56:32 -0500 Message-Id: <200202111456.g1BEuWM27570@ann-arbor.fmfts.com> To: gtk-list@gnome.org From: jgotts@linuxsavvy.com Reply-To: jgotts@linuxsavvy.com Subject: Repeating mouse button widget Date: Mon, 11 Feb 2002 09:56:32 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there some kind of widget that I can use to report new events or at least trigger some handler repeatedly after some time interval while a mouse button is being held down? John -- John GOTTS http://linuxsavvy.com/staff/jgotts From pbd@op.net Mon Feb 11 10:13:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 043C11812D for ; Mon, 11 Feb 2002 10:13:39 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-203.phlpa.fast.net [209.92.99.203]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA06439; Mon, 11 Feb 2002 10:13:35 -0500 (EST) Message-Id: <200202111513.KAA06439@renoir.op.net> To: jgotts@linuxsavvy.com Cc: gtk-list@gnome.org Subject: Re: Repeating mouse button widget In-reply-to: Your message of "Mon, 11 Feb 2002 09:56:32 EST." <200202111456.g1BEuWM27570@ann-arbor.fmfts.com> Date: Mon, 11 Feb 2002 10:13:33 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Is there some kind of widget that I can use to report new events or at least >trigger some handler repeatedly after some time interval while a mouse button >is being held down? read the list archive for the last 5-6 days. for some reason, 2 other people asked much the same question, and one of them posted code after i gave them some pointers. --p From lynn.lin@boeing.com Mon Feb 11 13:41:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from blv-smtpout-01.boeing.com (blv-smtpout-01.boeing.com [192.161.36.5]) by mail.gnome.org (Postfix) with ESMTP id 795A11915D for ; Mon, 11 Feb 2002 13:41:09 -0500 (EST) Received: from blv-av-02.boeing.com ([192.54.3.92]) by blv-smtpout-01.boeing.com (8.9.2/8.8.5-M2) with ESMTP id KAA15882 for ; Mon, 11 Feb 2002 10:41:08 -0800 (PST) Received: from slb-hub-01.boeing.com (localhost [127.0.0.1]) by blv-av-02.boeing.com (8.9.3/8.9.2/MBS-AV-01) with ESMTP id KAA08288 for ; Mon, 11 Feb 2002 10:41:07 -0800 (PST) Received: from xch-swbh-02.sw.nos.boeing.com (xch-swbh-02.sw.nos.boeing.com [129.172.87.58]) by slb-hub-01.boeing.com (8.11.3/8.11.3/MBS-LDAP-01) with ESMTP id g1BIf6T17552 for ; Mon, 11 Feb 2002 10:41:06 -0800 (PST) Received: by xch-swbh-02.sw.nos.boeing.com with Internet Mail Service (5.5.2650.21) id <1LVJCA6F>; Mon, 11 Feb 2002 10:41:03 -0800 Message-ID: From: "Lin, Lynn" To: gtk-list@gnome.org Subject: Does GTK+ controls the "feel and look theme" ? Date: Mon, 11 Feb 2002 10:40:56 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, Do you know by chance if GTK+ has the "feel and look" choice that can be made at runtime (for example: windows look, Motif look, Swing/Metal look or Macintosh look) Thank you :) Lynn From lynn.lin@boeing.com Mon Feb 11 19:32:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from blv-smtpout-01.boeing.com (blv-smtpout-01.boeing.com [192.161.36.5]) by mail.gnome.org (Postfix) with ESMTP id 06725186EA for ; Mon, 11 Feb 2002 19:32:28 -0500 (EST) Received: from slb-av-01.boeing.com ([129.172.13.4]) by blv-smtpout-01.boeing.com (8.9.2/8.8.5-M2) with ESMTP id QAA24464 for ; Mon, 11 Feb 2002 16:32:26 -0800 (PST) Received: from slb-hub-01.boeing.com (localhost [127.0.0.1]) by slb-av-01.boeing.com (8.9.3/8.9.2/MBS-AV-01) with ESMTP id QAA00729 for ; Mon, 11 Feb 2002 16:32:26 -0800 (PST) Received: from xch-swbh-02.sw.nos.boeing.com (xch-swbh-02.sw.nos.boeing.com [129.172.87.58]) by slb-hub-01.boeing.com (8.11.3/8.11.3/MBS-LDAP-01) with ESMTP id g1C0WPT08182 for ; Mon, 11 Feb 2002 16:32:25 -0800 (PST) Received: by xch-swbh-02.sw.nos.boeing.com with Internet Mail Service (5.5.2650.21) id <1LVJCV9Y>; Mon, 11 Feb 2002 16:32:24 -0800 Message-ID: From: "Lin, Lynn" To: "'gtk-list@gnome.org'" Subject: glib.h ?? Where is it ? Date: Mon, 11 Feb 2002 16:32:22 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, I am compiling GTK+ source code on Win32 and got this compilation error: "Cannot opened include file glib.h". I ran "Find" to search glib.h but not found. What *zip file that contains glib.h I should download in order to use glib.h ? Thanks a lot for your help, Lynn From pbd@op.net Mon Feb 11 19:43:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id AFCA1186EA for ; Mon, 11 Feb 2002 19:43:52 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-341.phlpa.fast.net [209.92.231.87]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id TAA11248; Mon, 11 Feb 2002 19:43:13 -0500 (EST) Message-Id: <200202120043.TAA11248@renoir.op.net> To: "Lin, Lynn" Cc: gtk-list@gnome.org Subject: Re: Does GTK+ controls the "feel and look theme" ? In-reply-to: Your message of "Mon, 11 Feb 2002 10:40:56 PST." Date: Mon, 11 Feb 2002 19:37:54 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi there, > >Do you know by chance if GTK+ has the "feel and look" choice that can be >made at runtime (for example: windows look, Motif look, Swing/Metal look or >Macintosh look) yes. visit www.themes.org/gtk --p From mallum@10.am Mon Feb 11 19:57:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost (pc-62-30-165-220-hw.blueyonder.co.uk [62.30.165.220]) by mail.gnome.org (Postfix) with ESMTP id 5460D18FB3 for ; Mon, 11 Feb 2002 19:57:40 -0500 (EST) Received: from mallum by localhost with local (Exim 3.34 #1 (Debian)) id 16aRGL-0000JZ-00 for ; Tue, 12 Feb 2002 00:57:37 +0000 Date: Tue, 12 Feb 2002 00:57:36 +0000 From: mallum To: gtk-list@gnome.org Subject: synthetic button press event in GTK1.2 Message-ID: <20020212005736.GC486@10.am> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I need to send a 'synthetic' button release event. Im under the impression I can only do this with a call to Xlibs XSendEvent. However Im not having much luck :( My main problem seems to be translating GDK Xlib representations back to actual Xlib ones; My XSendEvent looks something like; XSendEvent((Display*)GDK_DISPLAY(), GDK_WINDOW_XWINDOW(((GdkEventAny*)event)->window) ,False, ButtonReleaseMask, (XEvent *)&syn_event); Does that look right ? Event better does anyone have an example of accomplishing this actual feat with GTK ? -- mallum From sven@gimp.org Mon Feb 11 20:37:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (A0cfa.pppool.de [213.6.12.250]) by mail.gnome.org (Postfix) with ESMTP id 3C096195BB for ; Mon, 11 Feb 2002 20:37:05 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16aRsN-00006A-00; Tue, 12 Feb 2002 02:36:55 +0100 To: mallum Cc: gtk-list@gnome.org Subject: Re: synthetic button press event in GTK1.2 References: <20020212005736.GC486@10.am> From: Sven Neumann Date: 12 Feb 2002 02:36:54 +0100 In-Reply-To: <20020212005736.GC486@10.am> Message-ID: Lines: 11 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, mallum writes: > I need to send a 'synthetic' button release event. Im under the > impression I can only do this with a call to Xlibs XSendEvent. do you really need to do that? What are you trying to acomplish? Salut, Sven From rtriay@avantel.net Mon Feb 11 21:02:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h004.c003.snv.cp.net [209.228.32.218]) by mail.gnome.org (Postfix) with SMTP id 2FE8F18118 for ; Mon, 11 Feb 2002 21:02:21 -0500 (EST) Received: (cpmta 9470 invoked from network); 11 Feb 2002 18:02:14 -0800 Received: from 148.240.116.144 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.218) with SMTP; 11 Feb 2002 18:02:14 -0800 X-Sent: 12 Feb 2002 02:02:14 GMT Received: from galatazarai [10.0.0.2] by Proxy+; Mon, 11 Feb 2002 19:57:37 -0600 for multiple recipients Message-ID: <004701c1b369$9a589880$0200000a@galatazarai> From: =?iso-8859-1?Q?Ram=F3n_Triay_Espinosa?= To: "Jim Adams" , References: <20020211030750.54810.qmail@web13701.mail.yahoo.com> Subject: Re: GList in a list box Date: Mon, 11 Feb 2002 20:04:27 -0600 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 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ----- Original Message ----- From: "Jim Adams" To: Sent: Sunday, February 10, 2002 9:07 PM Subject: GList in a list box > Hello, > > I am a beginner who has become very confused. > > I have a data file and can transfer it to a GList which I can then print > out. Can anyone help me display the complete GList in a gtk+ list box? > > My test program to load a GList and then print it out: > > #include > #include > > /***** FUNC TO DISPLAY GList *****/ > void PrintList( GList *list ) > { > list = g_list_first( list ); > > while( list != NULL ) > { > g_print( "%s", (gchar *)list -> data ); > list = g_list_next( list ); > } > } > > gint main( ) > { > GList *list = NULL; > > FILE *infile; > gchar buffer[5][81]; > gint i = 0; > > /***** OPEN DATA FILE *****/ > if( ( infile = fopen( "/home/jim/gnome/data.dat", "r" )) == NULL ) > { > g_print( "\nfopen() failed!\n" ); > exit( 0 ); > } > > /***** LOAD BUFFER WITH DATA *****/ > while( ( fgets( buffer[i], 81, infile ) ) != NULL ) > { > i++; > } > > /***** ADD BUFFER DATA TO GList *****/ > for( i = 0; i < 5; i++ ) > { > list = g_list_append( list, buffer[i] ); > } > > PrintList( list ); > g_list_free( list ); > fclose( infile ); > > return 0; > } > > thank you, > jim, scurveedog@yahoo.com > Hi Jim: What you have to do to get your values in a Listbox is very similar to what you did to get them in the GList, just declare and make an instance of a GtkWindow and GtkList widgets, then put your values in the GList using the gtk_list_insert_items function. The resulting code should look like this. #include /* gtk.h includes glib.h*/ > #include > > /***** FUNC TO DISPLAY GList *****/ > void PrintList( GList *list ) > { > list = g_list_first( list ); > > while( list != NULL ) > { > g_print( "%s", (gchar *)list -> data ); > list = g_list_next( list ); > } > } > /****This is how the function should look like****/ void GListInWindow (GList *list) { GtkWindow *MyWin; GtkList *MyList; MyWin=gtk_window_new(GTK_WINDOW_TOPLEVEL); MyList=gtk_list_new(); gtk_list_insert_items(MyList, list, 0); gtk_window_add(GTK_CONTAINER(MyWin), GTK_WIDGET(MyList)); gtk_widget_show(MyList); gtk_widget_show(MyWin); } /* In order to use gtk.h is necesary to get the command line parameters */ gint main( &argc, &argv[]) > { > GList *list = NULL; > > FILE *infile; > gchar buffer[5][81]; > gint i = 0; > > /***** OPEN DATA FILE *****/ > if( ( infile = fopen( "/home/jim/gnome/data.dat", "r" )) == NULL ) > { > g_print( "\nfopen() failed!\n" ); > exit( 0 ); > } > > /***** LOAD BUFFER WITH DATA *****/ > while( ( fgets( buffer[i], 81, infile ) ) != NULL ) > { > i++; > } > > /***** ADD BUFFER DATA TO GList *****/ > for( i = 0; i < 5; i++ ) > { > list = g_list_append( list, buffer[i] ); > } > > PrintList( list ); /*You MUST include this line before doing ANYTHNG with GTK*/ gtk_init (argc,argv); /*Start infinite loop*/ GListInWindow ( list ); gtk_main(); g_list_free( list ); > fclose( infile ); > > return 0; > } > Of course, to you'll need to kill this program in order to end it. That's because we haven't implementes any event callback to manage the "delete" signal from our main window so let's use kill-9 PID :o) I hope this helps!!!!! rtriay :) _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From leidola@newcon.de Tue Feb 12 05:00:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 8EE9F18237 for ; Tue, 12 Feb 2002 05:00:13 -0500 (EST) Received: from [213.70.108.94] ([213.70.108.94]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id LAA05144; Tue, 12 Feb 2002 11:00:12 +0100 Subject: Re: glib.h ?? Where is it ? From: Olaf Leidinger To: "Lin, Lynn" , GTK Mailing List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 12 Feb 2002 11:02:54 +0100 Message-Id: <1013508175.782.6.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 11 Feb 2002 16:32:22 -0800 schrieb Lin, Lynn: > Hi there, > > I am compiling GTK+ source code on Win32 and got this compilation error: > "Cannot opened include file glib.h". I ran "Find" to search glib.h but not > found. What *zip file that contains glib.h I should download in order to > use glib.h ? > > Thanks a lot for your help, > > Lynn > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hello!!! Glib.h is in glib-1.x.y.tar.gz or .zip. But why do you wanna compile gtk yourself. You can download precompiled binaries from http://www.gimp.org/~tml/gimp/win32//new-downloads.html There you find the latest win32 developer binaries. I think 1.3.12 is the version. Good luck, Olaf From maa@sparc.spb.su Tue Feb 12 06:10:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from guard.sparc.spb.su (guard.sparc.spb.su [195.19.226.98]) by mail.gnome.org (Postfix) with ESMTP id 2FC611905F for ; Tue, 12 Feb 2002 06:10:58 -0500 (EST) Received: from mail.sparc.spb.su (mail.sparc.spb.su [192.168.205.210]) by guard.sparc.spb.su (8.11.4/8.10.1) with ESMTP id g1CBAuN01207 for ; Tue, 12 Feb 2002 14:10:56 +0300 (MSK) Received: from london.sparc.spb.su (london.sparc.spb.su [192.168.205.229]) by mail.sparc.spb.su (8.11.4/8.11.1) with ESMTP id g1CB5lA87262 for ; Tue, 12 Feb 2002 14:05:47 +0300 (MSK) (envelope-from maa@sparc.spb.su) Date: Tue, 12 Feb 2002 14:14:00 +0300 From: "Aleksey A. Malyshev" X-Mailer: The Bat! (v1.53d) Reply-To: "Aleksey A. Malyshev" X-Priority: 3 (Normal) Message-ID: <1921074525.20020212141400@sparc.spb.su> To: gtk-list@gnome.org Subject: Problem with gtk_im_context_get_surrounding () MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a problem with gtk_im_context_get_surrounding (). Test case: #include int main (int argc, char** argv) { GtkIMContext *context; gint *index; gchar **text; gboolean res; gtk_init (&argc, &argv); context = gtk_im_multicontext_new (); res = gtk_im_context_get_surrounding (GTK_IM_CONTEXT(context),text ,index); if (res) printf ("\nResult True\n"); } Output: Segmentation fault What's wrong in this case? What I am doing wrong? Thanks, Aleksey. From mallum@10.am Tue Feb 12 06:32:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost (lan.ipc.co.uk [193.119.160.10]) by mail.gnome.org (Postfix) with ESMTP id E9E661888B for ; Tue, 12 Feb 2002 06:32:45 -0500 (EST) Received: from mallum by localhost with local (Exim 3.34 #1 (Debian)) id 16abA9-00009Q-00; Tue, 12 Feb 2002 11:31:53 +0000 Date: Tue, 12 Feb 2002 11:31:52 +0000 From: mallum To: Sven Neumann Cc: gtk-list@gnome.org Subject: Re: synthetic button press event in GTK1.2 Message-ID: <20020212113152.GB529@10.am> References: <20020212005736.GC486@10.am> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Via an emmision hook, Im writing a gtk module that catches 'held down' button 1 events and on release tranforms them into a button 3 press event. This works fine, but the app is now missing a button release event which is causing problems. Im trying to create this via XSendEvent . This is for touchscreen devices running gtk. Can suggest a better way of accomplishing this ? -- mallum on Tue, Feb 12, 2002 at 02:36:54AM +0100, Sven Neumann wrote: > Hi, > > mallum writes: > > > I need to send a 'synthetic' button release event. Im under the > > impression I can only do this with a call to Xlibs XSendEvent. > > do you really need to do that? What are you trying to acomplish? > > > Salut, Sven > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From hp@redhat.com Tue Feb 12 10:14:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 77E9E1845C for ; Tue, 12 Feb 2002 10:14:39 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1CFEad12548; Tue, 12 Feb 2002 10:14:36 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Aleksey A. Malyshev" Cc: gtk-list@gnome.org Subject: Re: Problem with gtk_im_context_get_surrounding () References: <1921074525.20020212141400@sparc.spb.su> From: Havoc Pennington Date: 12 Feb 2002 10:14:35 -0500 In-Reply-To: <1921074525.20020212141400@sparc.spb.su> Message-ID: Lines: 37 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Aleksey A. Malyshev" writes: > > I have a problem with gtk_im_context_get_surrounding (). > > Test case: > #include > > int > main (int argc, char** argv) > { > GtkIMContext *context; > gint *index; > gchar **text; > gboolean res; > > gtk_init (&argc, &argv); > > context = gtk_im_multicontext_new (); > > res = gtk_im_context_get_surrounding (GTK_IM_CONTEXT(context),text ,index); > if (res) > printf ("\nResult True\n"); > > } > > Output: > Segmentation fault > > > What's wrong in this case? > What I am doing wrong? "text" and "index" are uninitialized. If you turn on warnings (-Wall flag with gcc) then your compiler will tell you these things. Havoc From jeff@sigmaitsolutions.com Tue Feb 12 16:30:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from webmail.greatbasin.net (webmail.greatbasin.net [207.228.37.201]) by mail.gnome.org (Postfix) with ESMTP id DF22A182D0 for ; Tue, 12 Feb 2002 16:30:22 -0500 (EST) Received: from greatbasin.net (localhost.localdomain [127.0.0.1]) by webmail.greatbasin.net (8.11.6/8.11.6) with SMTP id g1CLULI01863 for ; Tue, 12 Feb 2002 13:30:22 -0800 From: "Jeff Payne" Reply-To: jeff@sigmaitsolutions.com To: gtk-list@gnome.org Date: Tue, 12 Feb 2002 13:30:22 -0800 Subject: problem builduing gtk+2.0 (1.3.13) X-Mailer: CWMail Web to Mail Gateway 2.7t, http://netwinsite.com/top_mail.htm Message-id: <3c69896e.745.0@greatbasin.net> X-User-Info: 216.210.203.32 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Forgive my ignorance as I am new to GTK. I'm attempting to build the latest development release of gtk along with the supporting packages. After building the glib, atk, and pango packages, the gtk+2.0 configure script doesn't find the pango package when pkg-config is called. I've checked the /usr/lib/pkgconfig directory and verified that pango.pc is there and pointing to the correct lib and include dirs, but when I manually check for installed packages with pkg-config only the glib and atk packages come up. Has anyone else had this problem? Any help would be greatly appreciated. Jeff Payne Sigma Solutions, Inc. (775)544-3618 From inodal@teleline.es Tue Feb 12 16:33:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp7.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id C336318CE4 for ; Tue, 12 Feb 2002 16:33:07 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp7.mail.isp (Netscape Messaging Server 4.15 tsmtp7 Jul 26 2001 13:10:38) with ESMTP id GRFVUB01.Q6O for ; Tue, 12 Feb 2002 22:32:35 +0100 Message-ID: <3C698A1F.7080500@teleline.es> Date: Tue, 12 Feb 2002 21:33:19 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: problems with the redraw of widgets and callbacks with long operation time Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In my program I have a window where I select a VRML file to load, press OK and in the button callback, I hide this window and call my function to read the VRML file (I use CyberVRML97 for this). The problem is that my GTK+ application seems to be freezed during the load. The main window doesn't care about my "expose_event" callback until the load ends. I don't like this behaviour, how could I avoid this? Thanks in advance, Ignacio Nodal From rsteinke@w-link.net Tue Feb 12 16:48:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id A115919292 for ; Tue, 12 Feb 2002 16:48:51 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16aknC-0003LK-00; Tue, 12 Feb 2002 13:48:50 -0800 Date: Tue, 12 Feb 2002 13:48:50 -0800 From: rsteinke@w-link.net To: inodal@teleline.es, gtk-list@gnome.org Subject: Re: problems with the redraw of widgets and callbacks with long operation time Message-ID: <3C698DC2.nail9WM1QYQMD@w-link.net> References: <3C698A1F.7080500@teleline.es> In-Reply-To: <3C698A1F.7080500@teleline.es> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Ignacio Nodal > > Hi, > > In my program I have a window where I select a VRML file to load, press > OK and in the button callback, I hide this window and call my function > to read the VRML file (I use CyberVRML97 for this). > > The problem is that my GTK+ application seems to be freezed during the > load. The main window doesn't care about my "expose_event" callback > until the load ends. > > I don't like this behaviour, how could I avoid this? You're probably not giving the mainloop any time to run during the load. Look at the documentation on the gtk mainloop (or, better, the glib mainloop) for instructions on how to do this. Ron Steinke From inodal@teleline.es Tue Feb 12 17:29:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp7.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id C8EA2181D7 for ; Tue, 12 Feb 2002 17:29:16 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp7.mail.isp (Netscape Messaging Server 4.15 tsmtp7 Jul 26 2001 13:10:38) with ESMTP id GRFYFW00.FAD; Tue, 12 Feb 2002 23:28:44 +0100 Message-ID: <3C69973A.2030908@teleline.es> Date: Tue, 12 Feb 2002 22:29:14 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: rsteinke@w-link.net Cc: gtk-list@gnome.org Subject: Re: problems with the redraw of widgets and callbacks with long operation time References: <3C698A1F.7080500@teleline.es> <3C698DC2.nail9WM1QYQMD@w-link.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: rsteinke@w-link.net wrote: > From: Ignacio Nodal > >>Hi, >> >>In my program I have a window where I select a VRML file to load, press >>OK and in the button callback, I hide this window and call my function >>to read the VRML file (I use CyberVRML97 for this). >> >>The problem is that my GTK+ application seems to be freezed during the >>load. The main window doesn't care about my "expose_event" callback >>until the load ends. >> >>I don't like this behaviour, how could I avoid this? >> > > You're probably not giving the mainloop any time to run during the load. > Look at the documentation on the gtk mainloop (or, better, the glib mainloop) > for instructions on how to do this. > > Ron Steinke > > I've tried with: while (gtk_events_pending()) gtk_main_iteration(); before calling my VRML load function, but gtk_events_pending returns 0. I've also asked for gdk_events_pending, since i'm working with GtkGLArea, being a "subclass" of GtkDrawingArea , but this one returns 0 also. I'm a bit lost... Thanks in advance, Ignacio From pfeiffer@viper.cs.nmsu.edu Tue Feb 12 17:37:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viper.cs.nmsu.edu (viper.cs.nmsu.edu [128.123.64.113]) by mail.gnome.org (Postfix) with ESMTP id A9A9F1891C for ; Tue, 12 Feb 2002 17:37:50 -0500 (EST) Received: (from pfeiffer@localhost) by viper.cs.nmsu.edu (8.11.6/8.11.6) id g1CMbmj09967; Tue, 12 Feb 2002 15:37:48 -0700 From: Joe Pfeiffer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15465.39228.317499.779151@cs.nmsu.edu> Date: Tue, 12 Feb 2002 15:37:48 -0700 To: Ignacio Nodal Cc: rsteinke@w-link.net, gtk-list@gnome.org Subject: Re: problems with the redraw of widgets and callbacks with long operation time In-Reply-To: <3C69973A.2030908@teleline.es> References: <3C698A1F.7080500@teleline.es> <3C698DC2.nail9WM1QYQMD@w-link.net> <3C69973A.2030908@teleline.es> X-Mailer: VM 7.00 under Emacs 21.1.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > > I've tried with: > > while (gtk_events_pending()) > gtk_main_iteration(); > > before calling my VRML load function, but gtk_events_pending returns 0. > > I've also asked for gdk_events_pending, since i'm working with > GtkGLArea, being a "subclass" of GtkDrawingArea , but this one returns 0 > also. Not before, during. You need to find a point in your load function that is executed fairly frequently (like once per outer loop iteration or something) and look for events there. What's going on is exactly what you're suspecting: once you get into that loop, it's not looking for expose (or any other) events any more, until the function returns. So that's what you need to fix. -- Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605 Department of Computer Science FAX -- (505) 646-1002 New Mexico State University http://www.cs.nmsu.edu/~pfeiffer Southwestern NM Regional Science and Engr Fair: http://www.nmsu.edu/~scifair From rwan@cs.mu.oz.au Tue Feb 12 18:27:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from vike.cs.mu.OZ.AU (vike.cs.mu.OZ.AU [128.250.36.73]) by mail.gnome.org (Postfix) with ESMTP id 6919C1834A for ; Tue, 12 Feb 2002 18:27:06 -0500 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 5A06075C0; Wed, 13 Feb 2002 10:27:04 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 57F70ACA9; Wed, 13 Feb 2002 10:27:04 +1100 (EST) Date: Wed, 13 Feb 2002 10:27:04 +1100 (EST) From: Raymond Wan Reply-To: Raymond Wan To: Jeff Payne Cc: gtk-list@gnome.org Subject: Re: problem builduing gtk+2.0 (1.3.13) In-Reply-To: <3c69896e.745.0@greatbasin.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Jeff, On Tue, 12 Feb 2002, Jeff Payne wrote: > Forgive my ignorance as I am new to GTK. I'm attempting to build the latest > development release of gtk along with the supporting packages. After building > the glib, atk, and pango packages, the gtk+2.0 configure script doesn't find > the pango package when pkg-config is called. I've checked the /usr/lib/pkgconfig > directory and verified that pango.pc is there and pointing to the correct lib > and include dirs, but when I manually check for installed packages with pkg-config > only the glib and atk packages come up. One warning; I installed GTK+ as a non-root user, so there may be some variations. Before you built anything, did you set these environment variables: export GTK_DIR=/home/rwan export PATH="$PATH":$GTK_DIR/bin export LD_LIBRARY_PATH=$GTK_DIR/lib export PKG_CONFIG_PATH=$GTK_DIR/lib/pkgconfig Of course, GTK_DIR can be anything; and that's what I had to do because I was a non-root [that's my home directory]. When you configured pango, did you add a --prefix like this: ./configure --prefix=$GTK_DIR I don't know if you have to do this, but if you didn't, you can give it a try... Ray From inodal@teleline.es Tue Feb 12 19:37:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp1.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id AA03318426 for ; Tue, 12 Feb 2002 19:37:55 -0500 (EST) Received: from paranoia ([213.97.141.171]) by tsmtp1.mail.isp (Netscape Messaging Server 4.15 tsmtp1 Jul 26 2001 13:10:38) with SMTP id GRG4EA01.6MR; Wed, 13 Feb 2002 01:37:22 +0100 Message-ID: <000b01c1b426$aceb8e40$0a01a8c0@paranoia> From: "Ignacio Nodal" To: "Joe Pfeiffer" Cc: References: <3C698A1F.7080500@teleline.es><3C698DC2.nail9WM1QYQMD@w-link.net><3C69973A.2030908@teleline.es> <15465.39228.317499.779151@cs.nmsu.edu> Subject: Re: problems with the redraw of widgets and callbacks with long operation time Date: Wed, 13 Feb 2002 00:37:51 -0000 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Oh, I see... well, then I'll have to be patient and wait for my VRML to end loading. The main computation time takes place in functions from the CyberVRML97 library. It's not my source, and I don't think I want to modify/hack it hehehe :-) Thanks for all, Ignacio Nodal ----- Original Message ----- From: "Joe Pfeiffer" To: "Ignacio Nodal" Cc: ; Sent: Tuesday, February 12, 2002 10:37 PM Subject: Re: problems with the redraw of widgets and callbacks with long operation time > > > > before calling my VRML load function, but gtk_events_pending returns 0. > Not before, during. You need to find a point in your load function > that is executed fairly frequently (like once per outer loop iteration > or something) and look for events there. What's going on is exactly > what you're suspecting: once you get into that loop, it's not looking > for expose (or any other) events any more, until the function > returns. So that's what you need to fix. > > Ignacio Nodal writes: > > > > I've tried with: > > > > while (gtk_events_pending()) > > gtk_main_iteration(); From yogeeshappa.mathighatta@wipro.com Wed Feb 13 01:43:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 5002B180E1 for ; Wed, 13 Feb 2002 01:43:47 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g1D6gCX06172 for ; Wed, 13 Feb 2002 12:12:14 +0530 (IST) Received: from m2foe301975 ([10.114.9.182]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GRGLAO00.926; Wed, 13 Feb 2002 12:12:24 +0530 Message-ID: <030d01c1b459$59695990$b609720a@m2foe301975> Reply-To: "Yogeesh MB" From: "Yogeesh MB" To: "Yogeesh M B" Cc: References: <3C4D5E3B.5010904@ng-london.org.uk> Subject: GtkObject in gnome-utils/Gnome-Calculator Date: Wed, 13 Feb 2002 12:10:38 +0530 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit Hi, In gnome-utils/Gnome-calculator has both GTK_OBJECT_CLASS destroy call :gnome_calc_destroy(GtkObject * gobject), and G_OBJECT_CLASS finalize :gnome_calc_finalize(GObject * gobject). GTK_OBJECT_CLASS is deprecated and there is no destroy call in G_OBJECT_CLASS. I would like to know why the destroy call is still retained. Isn't finalize a substitute for destroy? Regards, Yogeesh MB. Kevin wrote: Hi Yogeesh. I hate to do this, but you should probably ask on the gtk-list mailing list since this is a very general porting question. I'm not familiar with the changes needed to port from GtkObject to GObject so the gtk list will give a better answer. Regards, Kevin ----- Original Message ----- From: Yogeesh MB To: kfv101@psu.edu Sent: Saturday, February 09, 2002 1:47 AM Subject: GtkObject in Gnome-Calculator Hi Kevin, I was testing the ported gnome-utils/gnome-calculator, I found there is GtkObject function call gnome_calc_destroy(GtkObject * gobject) used. In GTK_OBJECT_CALSS there is a destroy call. but in (deprecated) G_OBJECT_CLASS as such there is no destroy call (except finalize) I have build the gnome-calulator by commenting destroy call, Its working fine. Let me know the reason why still GTK_OBJECT_CLASS(destroy) exists. I mailed Bastien Nocera in this regard, below is the mail from him. Awaiting for ur reply, Regards, Yogeesh MB. ****************************************** Hi, Kevin Vandersloot is responsible for the gnome-utils port these days. Mail him. Cheers On Fri, 2002-02-08 at 14:54, Yogeesh MB wrote: > Hi George, > > I was testing the ported gnome-utils/gnome-calculator, > I found there is GtkObject function call gnome_calc_destroy(GtkObject * gobject) used. > In GTK_OBJECT_CALSS there is a destroy call. but in (deprecated) > G_OBJECT_CLASS as such there is no destroy call (except finalize) > I have build the gnome-calulator by commenting destroy call, Its working fine. > > Let me know the reason why still GTK_OBJECT_CLASS(destroy) exists. > > awaiting for ur reply, > Regards, > > Yogeesh MB. > Sr. Software Engineer, > Wipro Technologies, > #53/1, Ganapa Complex, > Madivala(M3), Hosur Road, > Bangalore-68. > Ph:5502001-8, X 5127 > Res:6728996. > > > /Bastien Nocera http://hadess.net Bangalore-68. Ph:5502001-8, X 5127 Res:6728996. ------=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8 Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ******************************************************************** ------=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8-- From db@zigo.dhs.org Wed Feb 13 02:46:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cosmo.zigo.dhs.org (as2-4-3.an.g.bonet.se [194.236.34.191]) by mail.gnome.org (Postfix) with ESMTP id 2102518108 for ; Wed, 13 Feb 2002 02:46:18 -0500 (EST) Received: from localhost (db@localhost) by cosmo.zigo.dhs.org (8.11.6/8.11.6) with ESMTP id g1D7k3t09662 for ; Wed, 13 Feb 2002 08:46:03 +0100 X-Authentication-Warning: cosmo.zigo.dhs.org: db owned process doing -bs Date: Wed, 13 Feb 2002 08:46:02 +0100 (CET) From: Dennis Bjorklund To: Subject: scrolling gtktextview Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I add lines at the end of the textview and would like it to scroll down to the bottom so I can see the new lines. But I can't get it to work. I tried: gtk_text_buffer_get_end_iter (buf, &iter); gtk_text_view_scroll_to_iter (view, &iter, 0.0, FALSE, 0.0, 0.0); but the does not scroll all the way, it can leave 5-6 lines that are not visible after scroll. Next attempt is to have a mark in the very end of the buffer and doing gtk_text_view_scroll_mark_onscreen (view, mark); but this have similar problems as the first try. The last thing I tried was to get the GtkAdjustment out of the GtkScrolledWindow. When I set this, then it works. But if flickers so badly that it's not usable. I don't understand why I can't get the gtk_text_view_scroll_xxxxxx to work. -- /Dennis From morten@rh-data.com Wed Feb 13 05:15:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.pc-cons.no (mail.pc-cons.no [193.69.57.47]) by mail.gnome.org (Postfix) with ESMTP id C31E2183AC for ; Wed, 13 Feb 2002 05:15:57 -0500 (EST) Received: from www.rh-data.com (rh-data-gw.online.no [194.143.84.10]) by mail.pc-cons.no (8.9.3/8.9.3) with ESMTP id LAA14096 for ; Wed, 13 Feb 2002 11:23:55 +0100 Received: from whitestar.kontor.rh-data.com (whitestar.kontor.rh-data.com [192.168.1.58]) by www.rh-data.com (8.8.7/8.8.7) with ESMTP id LAA05964 for ; Wed, 13 Feb 2002 11:11:41 +0100 Subject: How do I change the default language in GTK / GNOME? From: Morten Andersen To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary="=-eut4Defdr0g8zcD3SnW5" X-Mailer: Evolution/1.0.2 Date: 13 Feb 2002 11:15:44 +0100 Message-Id: <1013595344.8972.18.camel@whitestar.kontor.rh-data.com> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-eut4Defdr0g8zcD3SnW5 Content-Type: text/plain Content-Transfer-Encoding: 7bit Somehow my default language changed from english to polish or something on almost all of my gnome apps and all GTK apps. Does anyone know how to change it back to english?? ------------------------------------------------------------------------------- With best regards from Morten Andersen System Consultant RH-Data AS email: morten@rh-data.com tlf: 32770906 fax: 32770901 mobil: 41600026 web: http://www.rh-data.com Also take a look at these web sites: http://www.redhat.com http://www.ximian.com ------------------------------------------------------------------------------- --=-eut4Defdr0g8zcD3SnW5 Content-Type: text/html; charset=utf-8
Somehow my default language changed from english to polish or something on almost all of my gnome apps and all GTK apps.
Does anyone know how to change it back to english??
-------------------------------------------------------------------------------
With best regards from
Morten Andersen
System Consultant RH-Data AS
email: morten@rh-data.com
tlf: 32770906
fax: 32770901
mobil: 41600026
web: http://www.rh-data.com


Also take a look at these web sites:
http://www.redhat.com
http://www.ximian.com
-------------------------------------------------------------------------------
--=-eut4Defdr0g8zcD3SnW5-- From hp@redhat.com Wed Feb 13 11:36:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 141A81810E for ; Wed, 13 Feb 2002 11:36:00 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1DGZpI00939; Wed, 13 Feb 2002 11:35:51 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Yogeesh MB" Cc: Subject: Re: GtkObject in gnome-utils/Gnome-Calculator References: <3C4D5E3B.5010904@ng-london.org.uk> <030d01c1b459$59695990$b609720a@m2foe301975> From: Havoc Pennington Date: 13 Feb 2002 11:35:51 -0500 In-Reply-To: <030d01c1b459$59695990$b609720a@m2foe301975> Message-ID: Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Yogeesh MB" writes: > > In gnome-utils/Gnome-calculator has both GTK_OBJECT_CLASS destroy call > :gnome_calc_destroy(GtkObject * gobject), and G_OBJECT_CLASS finalize > :gnome_calc_finalize(GObject * gobject). > GTK_OBJECT_CLASS is deprecated and there is no destroy call in > G_OBJECT_CLASS. I would like to know why the destroy call is still > retained. Isn't finalize a substitute for destroy? > GtkObject and gtk_object_destroy aren't marked deprecated in my copy of GTK. These are still needed in many cases. finalize means free memory; destroy means return the widget to an uninitialized state, e.g. removing any container-child relationships. Havoc From hp@redhat.com Wed Feb 13 11:37:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id A29D618B97 for ; Wed, 13 Feb 2002 11:37:45 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1DGbhU00943; Wed, 13 Feb 2002 11:37:43 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Morten Andersen Cc: gtk-list@gnome.org Subject: Re: How do I change the default language in GTK / GNOME? References: <1013595344.8972.18.camel@whitestar.kontor.rh-data.com> From: Havoc Pennington Date: 13 Feb 2002 11:37:43 -0500 In-Reply-To: <1013595344.8972.18.camel@whitestar.kontor.rh-data.com> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Morten Andersen writes: > Somehow my default language changed from english to polish or something > on almost all of my gnome apps and all GTK apps. > Does anyone know how to change it back to english?? > This is a function of the desktop or operating system, not GTK. Maybe the login screen has an option to choose a language? Havoc From hp@redhat.com Wed Feb 13 11:38:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id C37BA190C6 for ; Wed, 13 Feb 2002 11:38:48 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1DGcjB00948; Wed, 13 Feb 2002 11:38:45 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Dennis Bjorklund Cc: Subject: Re: scrolling gtktextview References: From: Havoc Pennington Date: 13 Feb 2002 11:38:45 -0500 In-Reply-To: Message-ID: Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dennis Bjorklund writes: > I add lines at the end of the textview and would like it to scroll down to > the bottom so I can see the new lines. But I can't get it to work. I > tried: > > gtk_text_buffer_get_end_iter (buf, &iter); > > gtk_text_view_scroll_to_iter (view, &iter, 0.0, > FALSE, 0.0, 0.0); > > but the does not scroll all the way, it can leave 5-6 lines that are not > visible after scroll. Next attempt is to have a mark in the very end of > the buffer and doing > > gtk_text_view_scroll_mark_onscreen (view, mark); > > but this have similar problems as the first try. It's supposed to work, can you write out a small test program that fails, and file the bug on bugzilla.gnome.org? I will investigate. Havoc From vmail@excite.com Wed Feb 13 14:36:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.10]) by mail.gnome.org (Postfix) with ESMTP id 4188319010 for ; Wed, 13 Feb 2002 14:36:26 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id 74885F661; Wed, 13 Feb 2002 14:36:18 -0500 (EST) To: gtk-list@gnome.org Subject: Removing elements from a gtkTree Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: wdulyea@qualcomm.com Message-Id: <20020213193618.74885F661@xprdmailfe.excite.com> Date: Wed, 13 Feb 2002 14:36:18 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How do remove elements from a gtkTree obj?

tree
|--item
|--subtree
|--subitem

I wish to actually remove/add subitems on the fly, How do I accomplish this?

Thanks in advance,

-W


From seberino@dt092n42.san.rr.com Wed Feb 13 16:28:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 9F7B818232 for ; Wed, 13 Feb 2002 16:28:12 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16b6xG-0001F3-00; Wed, 13 Feb 2002 13:28:42 -0800 Date: Wed, 13 Feb 2002 13:28:42 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: How put text in pixmap? How put vertical (rotate 90 degrees) text? Message-ID: <20020213132842.A4746@spawar.navy.mil> References: <20020131135557.A12603@spawar.navy.mil> <200201312200.RAA18251@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200201312200.RAA18251@renoir.op.net>; from pbd@op.net on Thu, Jan 31, 2002 at 04:57:48PM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul This comment broke my heart for the last 2 weeks. :) But, then I stumbled upon something.... What about gdk_draw_text and gdk_draw_string? Chris On Thu, Jan 31, 2002 at 04:57:48PM -0500, Paul Davis wrote: > >How put text in pixmap, horizontal and vertical text??? > > you have no choice but to draw the text 1 character at a time. XWindow > has no primitives for drawing anything except horizontally arranged > text. > > --p -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 13 16:36:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 31ED31862F for ; Wed, 13 Feb 2002 16:36:07 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16b74w-0001FK-00; Wed, 13 Feb 2002 13:36:38 -0800 Date: Wed, 13 Feb 2002 13:36:38 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-ID: <20020213133638.B4746@spawar.navy.mil> References: <20020206111905.A566@spawar.navy.mil> <200202061924.OAA15372@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202061924.OAA15372@renoir.op.net>; from pbd@op.net on Wed, Feb 06, 2002 at 02:22:48PM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul I may sometimes give impression I'm smart but looks can be deceiving. :) (Ph.D. in physics not computing) I have ZERO X experience! I looked for NULL explanation about why "= NULL" bad but could not anything. Can you give me a 1-2 sentence explanation? Is it a security risk somehow or something? By the way, someone should tell the GTK+ tutorial author that "= NULL" is bad since it has this in scribble.c and apparently he hasn't learned it either. :) I'm glad I have input by all these great experts on this mailing list. Thanks for everything! Chris On Wed, Feb 06, 2002 at 02:22:48PM -0500, Paul Davis wrote: > >I need to sometimes initialize an object to NULL and get this > >message. How avoid??? > > this is getting too close to generic programming questions for this > list. if you don't understand how to fix this yourself, i worry about > future progress on your software. > > SomeObject *someObject = (SomeObject *) 0; > > you should never use "NULL" in a C++ program. look it up with google > to understand why. > > --p -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From rsteinke@w-link.net Wed Feb 13 16:42:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id C702118764 for ; Wed, 13 Feb 2002 16:42:09 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16b7A8-0002uE-00; Wed, 13 Feb 2002 13:42:00 -0800 Date: Wed, 13 Feb 2002 13:42:00 -0800 From: rsteinke@w-link.net To: seberino@spawar.navy.mil, pbd@op.net Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Cc: gtk-list@gnome.org Message-ID: <3C6ADDA8.nail8M311ICGL@w-link.net> References: <20020206111905.A566@spawar.navy.mil> <200202061924.OAA15372@renoir.op.net> <20020213133638.B4746@spawar.navy.mil> In-Reply-To: <20020213133638.B4746@spawar.navy.mil> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Chris Seberino > > Paul > > I may sometimes give impression I'm smart but looks can > be deceiving. :) (Ph.D. in physics not computing) > I have ZERO X experience! > > I looked for NULL explanation about why "= NULL" bad > but could not anything. Can you give me a 1-2 sentence > explanation? Is it a security risk somehow or something? It's got something to do with the stronger typecasting in C++, relative to C. > By the way, someone should tell the GTK+ tutorial author > that "= NULL" is bad since it has this in scribble.c and > apparently he hasn't learned it either. :) That's because it's C and not C++. NULL is completely appropriate in C. > I'm glad I have input by all these great experts on this mailing list. > > Thanks for everything! > > Chris > > On Wed, Feb 06, 2002 at 02:22:48PM -0500, Paul Davis wrote: > > >I need to sometimes initialize an object to NULL and get this > > >message. How avoid??? > > > > this is getting too close to generic programming questions for this > > list. if you don't understand how to fix this yourself, i worry about > > future progress on your software. > > > > SomeObject *someObject = (SomeObject *) 0; > > > > you should never use "NULL" in a C++ program. look it up with google > > to understand why. > > > > --p From pbd@op.net Wed Feb 13 18:02:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 4680A180F2 for ; Wed, 13 Feb 2002 18:02:02 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-71.phlpa.fast.net [209.92.96.71]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id SAA16775; Wed, 13 Feb 2002 18:01:53 -0500 (EST) Message-Id: <200202132301.SAA16775@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? In-reply-to: Your message of "Wed, 13 Feb 2002 13:36:38 PST." <20020213133638.B4746@spawar.navy.mil> Date: Wed, 13 Feb 2002 17:57:11 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I looked for NULL explanation about why "= NULL" bad >but could not anything. Can you give me a 1-2 sentence >explanation? Is it a security risk somehow or something? no, not a security problem. consider how you'd define NULL. #define NULL ((void *)0) now try to use this: SomeObject *ptr = NULL; because C++ is much stricter about types, the compiler will/may complain that it cannot perform an implicit cast of void * to SomeObject *. So in fact, the only acceptable definitions of NULL are 0 or 0L or 0UL or 0U, with no type casting. Since the definitions in a C header file nearly always include the type cast, and since no type cast is acceptable, using NULL is a bad idea. [ quote from a message i found with google]: the C++ standard guarantees that if you use 0 in a pointer context, it will be converted to whatever that platform uses for the "null pointer", even if it happens not to have a bit pattern of all zeroes. (Section 4.10) Therefore, it's safe to use 0 to mean "the null pointer". so, just stick to 0. --p From pfeiffer@viper.cs.nmsu.edu Wed Feb 13 18:21:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viper.cs.nmsu.edu (viper.cs.nmsu.edu [128.123.64.113]) by mail.gnome.org (Postfix) with ESMTP id 97842184CB for ; Wed, 13 Feb 2002 18:21:20 -0500 (EST) Received: (from pfeiffer@localhost) by viper.cs.nmsu.edu (8.11.6/8.11.6) id g1DNLIj15466; Wed, 13 Feb 2002 16:21:18 -0700 From: Joe Pfeiffer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15466.62702.466412.964873@cs.nmsu.edu> Date: Wed, 13 Feb 2002 16:21:18 -0700 To: Chris Seberino , gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? In-Reply-To: <200202132301.SAA16775@renoir.op.net> References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> X-Mailer: VM 7.00 under Emacs 21.1.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It's because the C standard contains an error (I'm sure somebody out there is going to disagree with me as to whether it's an error or not!), and has defined NULL as an integer instead of as a pointer. While it can be cast to a null pointer, if you have an overloaded function that will accept either a null pointer or an int, it'll call the int version. A good description of the problem can be found at http://groups.google.com/groups?q=null+group:comp.lang.c%2B%2B&hl=en&selm=36ca3f75.517359233%40nntp.ix.netcom.com&rnum=5 You can almost always get away with using NULL, and using it does a better job of conveying what your code is trying to do (IMHO). But when you do run into this subtlty, it will take weeks to find the bug... Using 0 has some remote hope of reminding you... -- Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605 Department of Computer Science FAX -- (505) 646-1002 New Mexico State University http://www.cs.nmsu.edu/~pfeiffer Southwestern NM Regional Science and Engr Fair: http://www.nmsu.edu/~scifair From britten@caris.com Wed Feb 13 18:26:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from caris.universal.ca (universal.ca [198.164.13.1]) by mail.gnome.org (Postfix) with ESMTP id 60C31184CB for ; Wed, 13 Feb 2002 18:26:07 -0500 (EST) Received: from dilbert.uslnet.com (proxy.caris.com [198.164.13.3]) by caris.universal.ca (8.11.0/8.11.0) with SMTP id g1DNQ4R03840 for ; Wed, 13 Feb 2002 19:26:04 -0400 Date: Wed, 13 Feb 2002 19:25:55 -0400 From: Ian Britten To: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-Id: <20020213192555.79184ba5.britten@caris.com> In-Reply-To: <200202132301.SAA16775@renoir.op.net> References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> Organization: USL X-Mailer: Sylpheed version 0.6.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 13 Feb 2002 17:57:11 -0500 Paul Davis wrote: > no, not a security problem. consider how you'd define NULL. > > #define NULL ((void *)0) Although this form is allowed, it is *only* valid for C (not C++), and is not how most compilers define NULL. > now try to use this: > > SomeObject *ptr = NULL; > > because C++ is much stricter about types, the compiler will/may > complain that it cannot perform an implicit cast of void * to > SomeObject *. Correct. It's because of this (questionable) NULL #define in the GTK code that C++ developers have problems using GTK... (I've tried to point this out before, but it doesn't seem like anyone wants to fix the problem... (sigh)) > So in fact, the only acceptable definitions of NULL are > 0 or 0L or 0UL or 0U, with no type casting. Correct. This is how every compiler I've seen defines it. [ Granted, I only have access to 6 distinct compilers, from 6 different vendors.... :-/ ] > Since the definitions in a > C header file nearly always include the type cast, and since no type ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This may have been the case years ago, but any compiler doing that now is pretty rare... > cast is acceptable, using NULL is a bad idea. [ quote from a message > found with google]: > > the C++ standard guarantees that if you use 0 in a pointer context, > it will be converted to whatever that platform uses for the "null > pointer", even if it happens not to have a bit pattern of all > zeroes. (Section 4.10) Therefore, it's safe to use 0 to mean "the > null pointer". > > so, just stick to 0. Using NULL is perfectably acceptable, as long as NULL is correctly defined. It is a notational form that adds clarity to the intent of the code (and is easy to search for!). There is absolutely nothing wrong with using NULL in code. Please review the comp.lang.c FAQ, section 5 http://www.eskimo.com/~scs/C-faq/s5.html Summary: GTK has an poor/incorrect definition of NULL that breaks C++ code. At a minimum, the definition should be fixed. However, the better fix would be to simply remove the definition, and use the one provided by the compiler. Ian From rbultje@ronald.bitfreak.net Wed Feb 13 18:38:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id D101B180F2 for ; Wed, 13 Feb 2002 18:38:41 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1DNTp4K008039 for ; Thu, 14 Feb 2002 00:29:51 +0100 (CET) Subject: highlighted button with image gives warning From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 14 Feb 2002 00:38:39 +0100 Message-Id: <1013643520.3834.36.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm trying to get some things done using gtk2. If I create a button (gtk_button_new()) and I put a GtkImage inside it with gtk_container_add() (Gtkmage was created using gtk_image_new_from_pixbuf()) and I go over the button with my mouse (to click it), I get a warning and the image disappears: lt-gst-record (pid:16438): Gtk-WARNING **: gtkstyle.c:1905:gtk_default_render_icon(): invalid icon size `-1' lt-gst-record (pid:16438): Gtk-CRITICAL **: file gtkstyle.c: line 1790 (gtk_style_render_icon): assertion `pixbuf != NULL' failed When leaving the button with my mouse, the image re-appears. It seems as if I need to specify a separate image for the 'highlight' state or tell it to use the same image for that state, so my question: how do I do that? Or is this a bug? In gtk1.2, this worked automagically. Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From markrubn@pacbell.net Wed Feb 13 20:24:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id AF0D51815C for ; Wed, 13 Feb 2002 20:24:27 -0500 (EST) Received: from pacbell.net ([63.201.208.99]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRI007QO18QUA@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Wed, 13 Feb 2002 17:24:27 -0800 (PST) Date: Wed, 13 Feb 2002 17:24:01 -0800 From: "Mark R. Rubin" Subject: Forcing update of widgets To: GTK mailing list Message-id: <3C6B11B1.1AC9DD52@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: o I am attempting to force GTK to update all widgets in a realtime display application using the following code fragment (which I first read about on this mailing list): while (g_main_iteration(FALSE)) ; o There are two problems. First, some widgets, in some cases, do not update. The example I have is a label which is updated from an overloaded motion_notify_event_impl() method in a class derived from Gtk::DrawingArea. (Yes, this is in GTK--, which may or may not be the problem.) o Second problem is that I have a TCP socket connected to the GTK main loop (again GTK--, using Gtk::Main.input.connect()) and doing the above g_main_iteration() loop exposes me to an unwanted re-entrancy. In the middle of processing a user or TCP input and updating the widgets, I can "signal" back to the same or another handler before finishing the current input. o Is there any other/better way to force an update of widgets? I've tried gdk_flush(), by itself and in addition to g_main_iteration(), without success. -- MARK markrubn@pacbell.net From pbd@op.net Wed Feb 13 20:44:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BC9A71856A for ; Wed, 13 Feb 2002 20:44:46 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-157.phlpa.fast.net [209.92.99.157]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA00718; Wed, 13 Feb 2002 20:44:43 -0500 (EST) Message-Id: <200202140144.UAA00718@renoir.op.net> To: "Mark R. Rubin" Cc: GTK mailing list Subject: Re: Forcing update of widgets In-reply-to: Your message of "Wed, 13 Feb 2002 17:24:01 PST." <3C6B11B1.1AC9DD52@pacbell.net> Date: Wed, 13 Feb 2002 20:40:02 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >o I am attempting to force GTK to update all widgets in a realtime > display application using the following code fragment (which I > first read about on this mailing list): > > while (g_main_iteration(FALSE)) > ; this is the wrong design for "realtime display applications". if you want the GUI to update while other activity is happening, you should be using either idle handlers or threads. idle handlers work if the "other activity" is short lived. threads are necessary for other situations. with threads come some extra complications, as well as better performance. >o Second problem is that I have a TCP socket connected to the GTK > main loop (again GTK--, using Gtk::Main.input.connect()) and doing > the above g_main_iteration() loop exposes me to an unwanted > re-entrancy. In the middle of processing a user or TCP input and > updating the widgets, I can "signal" back to the same or another > handler before finishing the current input. this will go away when you correct your design. >o Is there any other/better way to force an update of widgets? I've > tried gdk_flush(), by itself and in addition to g_main_iteration(), > without success. widget->queue_draw() will mark a widget as needing an expose_event to be synthesized for it. the expose_event will be delivered during the next iteration of the GTK main loop. --p From pbd@op.net Wed Feb 13 20:46:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id B01D918501 for ; Wed, 13 Feb 2002 20:46:07 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-157.phlpa.fast.net [209.92.99.157]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA00853; Wed, 13 Feb 2002 20:46:04 -0500 (EST) Message-Id: <200202140146.UAA00853@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How put text in pixmap? How put vertical (rotate 90 degrees) text? In-reply-to: Your message of "Wed, 13 Feb 2002 13:28:42 PST." <20020213132842.A4746@spawar.navy.mil> Date: Wed, 13 Feb 2002 20:41:24 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Paul > >This comment broke my heart for the last 2 weeks. :) > >But, then I stumbled upon something.... > >What about gdk_draw_text and gdk_draw_string? these draw horizontal text. its valentines day tomorrow (perhaps today, depending on where you are); the heartbreak continues :) --p From markrubn@pacbell.net Wed Feb 13 22:55:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by mail.gnome.org (Postfix) with ESMTP id A47461897B for ; Wed, 13 Feb 2002 22:55:38 -0500 (EST) Received: from pacbell.net ([63.201.208.99]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRI00GWN88P5T@mta6.snfc21.pbi.net> for gtk-list@gnome.org; Wed, 13 Feb 2002 19:55:38 -0800 (PST) Date: Wed, 13 Feb 2002 19:55:11 -0800 From: "Mark R. Rubin" Subject: Re: Forcing update of widgets To: Paul Davis Cc: GTK mailing list Message-id: <3C6B351F.5B64540@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202140144.UAA00718@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > while (g_main_iteration(FALSE)) > > ; > > this is the wrong design for "realtime display applications". if you > want the GUI to update while other activity is happening, you should > be using either idle handlers or threads. idle handlers work if the > "other activity" is short lived. threads are necessary for other > situations. with threads come some extra complications, as well as > better performance. o Thanks, Paul. But I *don't* want "the GUI to update while other activity is happening". I want to call something that will update the widgets all the way down to an XFlush() before returning control to the caller (me), all without accepting any input. o BTW, the application has many independent flows of control (at the process, not Posix thread, level). > widget->queue_draw() will mark a widget as needing an expose_event to > be synthesized for it. the expose_event will be delivered during the > next iteration of the GTK main loop. o widget->queue_draw() sounds good if in fact an expose_event, synthetic or otherwise, is needed in additon to a widget state change to force a real redraw. Re-entering the main loop (and risking asynchonous input) is the problem. o Is there an API-exposed call for just that portion of the GTK main loop that does drawing? I seem to recall that the old XtMainLoop() could be manually coded with a while loop calling a half-dozen lower-level functions. -- MARK markrubn@pacbell.net From knishida@sky.sannet.ne.jp Thu Feb 14 02:31:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from svan18.sannet.ne.jp (svan18.sannet.ne.jp [134.180.49.18]) by mail.gnome.org (Postfix) with ESMTP id 1BC1F1856C for ; Thu, 14 Feb 2002 02:31:33 -0500 (EST) Received: from xp.netlab.jp (eaa1-ppp2138.tokyo.sannet.ne.jp [211.133.188.75]) by svan18.sannet.ne.jp (Postfix) with ESMTP id 3E2322BE69 for ; Thu, 14 Feb 2002 16:31:31 +0900 (JST) Date: Thu, 14 Feb 2002 16:32:58 +0900 Message-ID: From: Keisuke Nishida To: gtk-list@gnome.org Subject: problem with grab_focus User-Agent: Wanderlust/2.6.0 (Twist And Shout) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.1 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: multipart/mixed; boundary="Multipart_Thu_Feb_14_16:32:58_2002-1" Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --Multipart_Thu_Feb_14_16:32:58_2002-1 Content-Type: text/plain; charset=US-ASCII Hi there, I have a problem with using gtk_widget_grab_focus in a focus_out_event hander, using gtk+-1.2.10. The attached program has three GtkEntry's, vertically aligned, and tries to grab focus on entry1 when I leave entry2. If I press key `GDK_Down' in the second entry (i.e., entry2), the default action of GTK+ moves cursor to entry3, while my handler moves cursor to entry1. Thus, two cursors appear simultaneously. How could I have only entry1 focused? Thanks in advance. Keisuke Nishida --Multipart_Thu_Feb_14_16:32:58_2002-1 Content-Type: text/plain; charset=US-ASCII #include guint handler; GtkWidget *entry1; GtkWidget *entry2; GtkWidget *entry3; static void on_focus_out (GtkEntry *entry) { gtk_signal_handler_block (GTK_OBJECT (entry), handler); gtk_widget_grab_focus (entry1); gtk_signal_handler_unblock (GTK_OBJECT (entry), handler); } static GtkWidget * create_window1 () { GtkWidget *window1; GtkWidget *vbox1; entry1 = gtk_entry_new (); entry2 = gtk_entry_new (); entry3 = gtk_entry_new (); handler = gtk_signal_connect (GTK_OBJECT (entry2), "focus_out_event", GTK_SIGNAL_FUNC (on_focus_out), NULL); vbox1 = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry1, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry2, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry3, FALSE, FALSE, 0); window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_add (GTK_CONTAINER (window1), vbox1); return window1; } int main (int argc, char **argv) { gtk_init (&argc, &argv); gtk_widget_show_all (create_window1 ()); gtk_main (); return 0; } --Multipart_Thu_Feb_14_16:32:58_2002-1-- From bursted@iam.uni-bonn.de Thu Feb 14 04:21:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ovid.iam.uni-bonn.de (ovid.iam.uni-bonn.de [131.220.32.59]) by mail.gnome.org (Postfix) with ESMTP id 9CC34181AB for ; Thu, 14 Feb 2002 04:21:48 -0500 (EST) Received: from iam.uni-bonn.de (sisyphos.iam.uni-bonn.de [131.220.223.38]) by ovid.iam.uni-bonn.de (980427.SGI.8.8.8/8.6.9) with ESMTP id KAA10514 for ; Thu, 14 Feb 2002 10:21:40 +0100 (CET) Message-ID: <3C6B819D.D732F54D@iam.uni-bonn.de> Date: Thu, 14 Feb 2002 10:21:33 +0100 From: Carsten Burstedde X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.3 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Null Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, what would be wrong with #define null (0) and using that (Java-style)? Then people got their readibility, the c++ standard is saved, and peace. Carsten (I do c and java, so don't kill me if this is junk.) From eg_hyy@stu.ust.hk Thu Feb 14 05:00:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx3.ust.hk (mx3.ust.hk [143.89.13.11]) by mail.gnome.org (Postfix) with ESMTP id 534681824F for ; Thu, 14 Feb 2002 05:00:34 -0500 (EST) Received: from webmaild.ust.hk (webmaild.ust.hk [143.89.14.206]) by mx3.ust.hk (8.11.5/8.11.5) with ESMTP id g1EA0V016090; Thu, 14 Feb 2002 18:00:31 +0800 Received: from localhost (localhost [[UNIX: localhost]]) by webmaild.ust.hk (8.9.3/8.9.3) id SAA23820; Thu, 14 Feb 2002 18:00:31 +0800 Message-Id: <200202141000.SAA23820@webmaild.ust.hk> Date: Thu, 14 Feb 2002 18:00:31 +0800 User-Agent: IMHO/0.97.1 (HKUST Webmail 1.0b) MIME-Version: 1.0 To: gtk-list@gnome.org Content-Transfer-Encoding: 8bit X-Originating-IP: [61.15.163.60] Content-Type: text/plain; charset=iso-8859-1 From: Subject: program organization Cc: eg_hyy@stu.ust.hk Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear all, I would like to ask which organization is better. Thx a lot~ Method 1: GtkWidget widget0; //entry A GtkWidget widget1; //entry B GtkWidget widget2; //entry C widget0=lookup_widget(...); widget1=lookup_widget(...); widget2=lookup_widget(...); gtk_entry_set_text(widget0,...); gtk_entry_set_text(widget1,...); gtk_entry_set_text(widget2,...); Method 2: GtkWidget widget; widget=lookup_widget(...); //entry A gtk_..._set(widget,...); widget=lookup_widget(...); //entry B gtk_..._set(widget,...); widget=lookup_widget(...); //entry C gtk_..._set(widget,...); From sven@gimp.org Thu Feb 14 08:49:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id CA03B182C2 for ; Thu, 14 Feb 2002 08:49:48 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16bMGO-0006UG-00; Thu, 14 Feb 2002 14:49:28 +0100 To: Ian Britten Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> <20020213192555.79184ba5.britten@caris.com> From: Sven Neumann Date: 14 Feb 2002 14:49:28 +0100 In-Reply-To: <20020213192555.79184ba5.britten@caris.com> Message-ID: Lines: 34 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, > Summary: > GTK has an poor/incorrect definition of NULL that breaks C++ code. At a > minimum, the definition should be fixed. However, the better fix would be > to simply remove the definition, and use the one provided by the compiler. here's how glib-2.0 defines NULL: /* We include stddef.h to get the system's definition of NULL */ #include #ifndef NULL # ifdef __cplusplus # define NULL (0L) # else /* !__cplusplus */ # define NULL ((void*) 0) # endif /* !__cplusplus */ #endif this looks much better, doesn't it? BTW, glib-1.2 does not redefine NULL neither: #ifndef NULL #define NULL ((void*) 0) #endif so if you run into problems because of this definition, you should probably define NULL before you include glib.h (or even include an appropriate header that defines NULL more correctly). Salut, Sven From mallum@10.am Thu Feb 14 08:50:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost (lan.ipc.co.uk [193.119.160.10]) by mail.gnome.org (Postfix) with ESMTP id C4A06186E6 for ; Thu, 14 Feb 2002 08:50:46 -0500 (EST) Received: from mallum by localhost with local (Exim 3.34 #1 (Debian)) id 16bMGj-0000H1-00; Thu, 14 Feb 2002 13:49:49 +0000 Date: Thu, 14 Feb 2002 13:49:48 +0000 From: mallum To: Sven Neumann Cc: gtk-list@gnome.org Subject: Re: synthetic button press event in GTK1.2 Message-ID: <20020214134948.GE478@10.am> References: <20020212005736.GC486@10.am> <20020212113152.GB529@10.am> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020212113152.GB529@10.am> User-Agent: Mutt/1.3.27i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I figured it out now, XTest to the resuce :) -- mallum on Tue, Feb 12, 2002 at 11:31:52AM +0000, mallum wrote: > Via an emmision hook, Im writing a gtk module that catches 'held down' > button 1 events and on release tranforms them into a button 3 press event. > > This works fine, but the app is now missing a button release event > which is causing problems. Im trying to create this via XSendEvent . > > This is for touchscreen devices running gtk. > > Can suggest a better way of accomplishing this ? > > -- mallum > > > on Tue, Feb 12, 2002 at 02:36:54AM +0100, Sven Neumann wrote: > > Hi, > > > > mallum writes: > > > > > I need to send a 'synthetic' button release event. Im under the > > > impression I can only do this with a call to Xlibs XSendEvent. > > > > do you really need to do that? What are you trying to acomplish? > > > > > > Salut, Sven > > _______________________________________________ > > 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 britten@caris.com Thu Feb 14 09:10:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from caris.universal.ca (universal.ca [198.164.13.1]) by mail.gnome.org (Postfix) with ESMTP id CB82918834 for ; Thu, 14 Feb 2002 09:10:07 -0500 (EST) Received: from dilbert.uslnet.com (proxy.caris.com [198.164.13.3]) by caris.universal.ca (8.11.0/8.11.0) with SMTP id g1EEA5R04001 for ; Thu, 14 Feb 2002 10:10:05 -0400 Date: Thu, 14 Feb 2002 10:10:02 -0400 From: Ian Britten To: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-Id: <20020214101002.66778e05.britten@caris.com> In-Reply-To: References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> <20020213192555.79184ba5.britten@caris.com> Organization: USL X-Mailer: Sylpheed version 0.6.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 14 Feb 2002 14:49:28 +0100 Sven Neumann wrote: > > Summary: > > GTK has an poor/incorrect definition of NULL that breaks C++ code. At a > > minimum, the definition should be fixed. However, the better fix would be > > to simply remove the definition, and use the one provided by the compiler. > > here's how glib-2.0 defines NULL: > > /* We include stddef.h to get the system's definition of NULL > */ > #include [ snip ] That looks better! That (critical) #include isn't in v1.2, meaning that (C++) must ensure they #include explicitely themselves before #including any GTK header files (Very tedious and error prone...) [ Sorry, I guess I should have clarified that I was referring to GTK 1.2. I haven't had time to look at 1.3/2.0 yet... ] If that little change could be back-ported to v1.2 (hint, hint!), I think (C++) users might be happier... ;-) (After all, v1.2 is still the defacto, stable, standard version. v2.0 may be coming Real Soon, but I suspect v1.2 will still be around for awhile...) Ian From cosminb@saguaro.ro Thu Feb 14 09:30:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from terminus.dnttm.ro (terminus.dnttm.ro [193.226.98.11]) by mail.gnome.org (Postfix) with ESMTP id 8A51118111 for ; Thu, 14 Feb 2002 09:30:08 -0500 (EST) Received: from main.saguaro.ro (main.saguaro.ro [193.226.88.117]) by terminus.dnttm.ro (8.9.3/8.9.3) with ESMTP id QAA15476 for ; Thu, 14 Feb 2002 16:30:06 +0200 Received: from saguaro.ro (samba.spr [192.168.1.100]) by main.saguaro.ro (8.11.2/8.11.2) with ESMTP id g1EEDEH17913 for ; Thu, 14 Feb 2002 16:13:14 +0200 Received: from saguaro.ro (IDENT:cosmin@cosminb.spr [192.168.1.154]) by saguaro.ro (8.11.2/8.11.2) with ESMTP id g1EEPxW32264 for ; Thu, 14 Feb 2002 16:25:59 +0200 X-RAV-AntiVirus: This e-mail has been scanned for viruses on host: saguaro.ro Message-ID: <3C6BCB26.39E5B75D@saguaro.ro> Date: Thu, 14 Feb 2002 16:35:18 +0200 From: cosminb X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: destroy-event ??? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I don't know what signal is emited in the following situation. Right-click in the upper-right corner on a X window. A menu appears. There is a destroy option. Selecting this option will emit a "destroy-event" to that window? If yes, I want to catch it(from my gtk app., if posible), but I don't know how. Thanks in advance Cosmin Bonea From John.Cupitt@ng-london.org.uk Thu Feb 14 09:54:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 0D3EC18111 for ; Thu, 14 Feb 2002 09:54:29 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXLYTX>; Thu, 14 Feb 2002 14:54:22 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXLYTW; Thu, 14 Feb 2002 14:54:18 -0000 Message-ID: <3C6BCC53.1020906@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: cosminb@saguaro.ro Cc: gtk-list@gnome.org Subject: Re: destroy-event ??? Date: Thu, 14 Feb 2002 14:40:19 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: cosminb wrote: > Right-click in the upper-right corner on a X window. A menu appears. > There is a destroy option. Selecting this option will emit a > "destroy-event" to that window? If yes, I want to catch it(from my gtk > app., if posible), but I don't know how. Hi, connect to "delete-event" and return TRUE to block the destroy. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From pbd@op.net Thu Feb 14 09:56:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 81C3E186DB for ; Thu, 14 Feb 2002 09:56:04 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-22.phlpa.fast.net [209.92.227.22]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA04261; Thu, 14 Feb 2002 09:55:56 -0500 (EST) Message-Id: <200202141455.JAA04261@renoir.op.net> To: cosminb Cc: gtk-list@gnome.org Subject: Re: destroy-event ??? In-reply-to: Your message of "Thu, 14 Feb 2002 16:35:18 +0200." <3C6BCB26.39E5B75D@saguaro.ro> Date: Thu, 14 Feb 2002 09:51:24 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi all, > >I don't know what signal is emited in the following situation. > >Right-click in the upper-right corner on a X window. A menu appears. >There is a destroy option. Selecting this option will emit a >"destroy-event" to that window? If yes, I want to catch it(from my gtk >app., if posible), but I don't know how. it will generate a "delete_event" first, which is what actually corresponds to the window manager's "destroy" operation. if that is not handled by a handler that returns TRUE, then the widget in question will more or less immediately be "destroyed" in the GTK+ sense, which involves returning it to an uninitialized state. this is accompanied by a "destroy_event" for the window. --p From Esteban.Quijano@artinsoft.com Thu Feb 14 10:02:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id B6A3518111 for ; Thu, 14 Feb 2002 10:02:35 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id <1L3Q0YHC>; Wed, 13 Feb 2002 17:30:02 -0600 Message-ID: From: Esteban Quijano To: gtk-list@gnome.org Subject: RE: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? Date: Wed, 13 Feb 2002 16:31:30 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It is not true that NULL cannot be used in C++. I don't have to google anything to understand basic things about stricter type casting. I have tons of C++ lines of code running perfectly on Windows and Linux without any trouble. NULL is just a macro you can define as you want in your project: /* Define NULL pointer value */ #ifndef NULL #ifdef __cplusplus #define NULL 0 #else #define NULL ((void *)0) #endif #endif Esteban Quijano QA dept. Artinsoft corp. > -----Original Message----- > From: Chris Seberino [mailto:seberino@spawar.navy.mil] > Sent: Wednesday, February 13, 2002 3:37 PM > To: Paul Davis > Cc: gtk-list@gnome.org > Subject: Re: ?? warning: ANSI C++ forbids implicit conversion > from `void > *' in initialization ??? > > > Paul > > I may sometimes give impression I'm smart but looks can > be deceiving. :) (Ph.D. in physics not computing) > I have ZERO X experience! > > I looked for NULL explanation about why "= NULL" bad > but could not anything. Can you give me a 1-2 sentence > explanation? Is it a security risk somehow or something? > > By the way, someone should tell the GTK+ tutorial author > that "= NULL" is bad since it has this in scribble.c and > apparently he hasn't learned it either. :) > > I'm glad I have input by all these great experts on this mailing list. > > Thanks for everything! > > Chris > > On Wed, Feb 06, 2002 at 02:22:48PM -0500, Paul Davis wrote: > > >I need to sometimes initialize an object to NULL and get this > > >message. How avoid??? > > > > this is getting too close to generic programming questions for this > > list. if you don't understand how to fix this yourself, i > worry about > > future progress on your software. > > > > SomeObject *someObject = (SomeObject *) 0; > > > > you should never use "NULL" in a C++ program. look it up with google > > to understand why. > > > > --p > > -- > ======================================================= > | Dr. Christian Seberino || (619) 553-7940 (office) | > | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | > | 53560 HULL ST || | > | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | > ======================================================= > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From Esteban.Quijano@artinsoft.com Thu Feb 14 10:02:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id BA500189EF for ; Thu, 14 Feb 2002 10:02:36 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id <1L3Q0YJL>; Wed, 13 Feb 2002 19:15:15 -0600 Message-ID: From: Esteban Quijano To: Paul Davis Cc: gtk-list@gnome.org Subject: RE: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? Date: Wed, 13 Feb 2002 18:17:43 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If you see the ANSI ISO/IEC C++ International Standard(14882) at page 699 it says: C.2.2.3 Macro NULL The macro NULL, defined in any of , , , , , , or , is an implementation-defined C++ null pointer constant in this International Standard(18.1). And if you see section 18.1: 4. The macro NULL is an implementation-deined C++ null pointer constant in this International Standard (4.10).180 -> This footnote says: Possible definitions include 0 and OL, but not (void*)0. - I admit I was wrong about "(void *)0". However, the stdio.h microsoft version uses it. It seems that it is left to each compiler (with its .h files) which #define to select. And 4.10 Pointer Convertion says: 1. A null pointer constant is an integral constant expression (5.19) rvalue of integer type that evaluates to zero. A null pointer constant can be converted to a pointer type; the result is the null pointer value of that type and is distinguishable from every other value of pointer to object or pointer to function type. Two null pointer values of the same type shall compare equal. The conversion of a null pointer constant to a pointer to cv-qualified type is a single conversion, and not the sequence of a pointer conversion followed by a qualification conversion (4.4). It is always better to use macros for portability reasons. A single #define line is easier to change than thousands of 0 or 0L in a complex project. You can even #undefine and #define again NULL if needed. Esteban Quijano Artinsoft corp. > -----Original Message----- > From: Paul Davis [mailto:pbd@Op.Net] > Sent: Wednesday, February 13, 2002 4:57 PM > To: Chris Seberino > Cc: gtk-list@gnome.org > Subject: Re: ?? warning: ANSI C++ forbids implicit conversion > from `void > *' in initialization ??? > > > >I looked for NULL explanation about why "= NULL" bad > >but could not anything. Can you give me a 1-2 sentence > >explanation? Is it a security risk somehow or something? > > no, not a security problem. consider how you'd define NULL. > > #define NULL ((void *)0) > > now try to use this: > > SomeObject *ptr = NULL; > > because C++ is much stricter about types, the compiler will/may > complain that it cannot perform an implicit cast of void * to > SomeObject *. So in fact, the only acceptable definitions of NULL are > 0 or 0L or 0UL or 0U, with no type casting. Since the definitions in a > C header file nearly always include the type cast, and since no type > cast is acceptable, using NULL is a bad idea. [ quote from a message i > found with google]: > > the C++ standard guarantees that if you use 0 in a pointer context, > it will be converted to whatever that platform uses for the "null > pointer", even if it happens not to have a bit pattern of all > zeroes. (Section 4.10) Therefore, it's safe to use 0 to mean "the > null pointer". > > so, just stick to 0. > > --p > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From pbd@op.net Thu Feb 14 10:16:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 7B27018111 for ; Thu, 14 Feb 2002 10:16:33 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-22.phlpa.fast.net [209.92.227.22]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA06755; Thu, 14 Feb 2002 10:16:30 -0500 (EST) Message-Id: <200202141516.KAA06755@renoir.op.net> To: Esteban Quijano Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? In-reply-to: Your message of "Wed, 13 Feb 2002 18:17:43 CST." Date: Thu, 14 Feb 2002 10:11:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >It is always better to use macros for portability reasons. A single #define this is nonsense. there has only ever been one meaning of a null pointer. the fact that certain projects have mis-defined it from the perspective of a C++ programmer doesn't change that. assuming that the macro is correctly defined, there is absolutely no difference in any way between writing ptr = NULL; and ptr = 0; if the compiler does not support the standard for null pointer conversion (i.e. an integer value of 0 will converted to a null pointer), there is no possible definition of NULL that will work, so the macro isn't buying you anything. if you happen to be a person who likes to look for "NULL" in code because you think it provides some kind of semantic guidance, feel free to use "NULL". i'm not one of those people. --p From mark@mark.mielke.cc Thu Feb 14 10:26:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mark.mielke.cc (mark.mielke.cc [216.209.85.42]) by mail.gnome.org (Postfix) with ESMTP id D0C2C180E9 for ; Thu, 14 Feb 2002 10:26:20 -0500 (EST) Received: (from mark@localhost) by mark.mielke.cc (8.11.6/linuxconf) id g1EFMOv04787; Thu, 14 Feb 2002 10:22:24 -0500 Date: Thu, 14 Feb 2002 10:22:24 -0500 From: Mark Mielke To: Paul Davis Cc: Esteban Quijano , gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? Message-ID: <20020214102224.A4715@mark.mielke.cc> Mail-Followup-To: Mark Mielke , Paul Davis , Esteban Quijano , gtk-list@gnome.org References: <200202141516.KAA06755@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200202141516.KAA06755@renoir.op.net>; from pbd@Op.Net on Thu, Feb 14, 2002 at 10:11:58AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Feb 14, 2002 at 10:11:58AM -0500, Paul Davis wrote: > >It is always better to use macros for portability reasons. A single #define > this is nonsense. there has only ever been one meaning of a null > pointer. the fact that certain projects have mis-defined it from the > perspective of a C++ programmer doesn't change that. "There has only ever been one meaning of a null pointer on known sensible systems." Just like, one should be able to assume that "p++" and "--p" should always work, although very strictly one cannot. The following code: char s[100]; char *p = &s[-2]; p[2]; May not actually work on some systems. Why? Because C only guarantees that s[-1] will work. I've never stumbled on one of these machines, but I suspect these limitations may apply to systems without a real OS underneath them, such as the Palm Pilot. The C/C++ standards define NULL such that the onus is left to the implementation to define NULL as something that "works". Therefore, unless you plan on stating that "our tools only work on 'sensible' systems", for your own definition of sensible, "NULL" actually is more portable than "0". (perhaps not by very much at all... but is it really worth fighting over?) mark -- mark@mielke.cc/markm@ncf.ca/markm@nortelnetworks.com __________________________ . . _ ._ . . .__ . . ._. .__ . . . .__ | Neighbourhood Coder |\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ | | | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, Ontario, Canada One ring to rule them all, one ring to find them, one ring to bring them all and in the darkness bind them... http://mark.mielke.cc/ From Valdis.Kletnieks@vt.edu Thu Feb 14 10:52:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 44287193A2 for ; Thu, 14 Feb 2002 10:52:14 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1EFqDVj026110; Thu, 14 Feb 2002 10:52:13 -0500 Message-Id: <200202141552.g1EFqDVj026110@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Mark Mielke Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? In-Reply-To: Your message of "Thu, 14 Feb 2002 10:22:24 EST." <20020214102224.A4715@mark.mielke.cc> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ <200202141516.KAA06755@renoir.op.net> <20020214102224.A4715@mark.mielke.cc> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1869010785P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 14 Feb 2002 10:52:13 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_1869010785P Content-Type: text/plain; charset=us-ascii On Thu, 14 Feb 2002 10:22:24 EST, Mark Mielke said: > Just like, one should be able to assume that "p++" and "--p" should > always work, although very strictly one cannot. The following code: > > char s[100]; > char *p = &s[-2]; > > p[2]; > > May not actually work on some systems. Why? Because C only guarantees that > s[-1] will work. > > I've never stumbled on one of these machines, but I suspect these > limitations may apply to systems without a real OS underneath them, > such as the Palm Pilot. Actually, it's not necessarily "without a real OS". There have existed weird architectures that have strange views on memory access (see the Intel 432, or IBM's S/38-AS/400 series, for example), where memory is referenced in an object-oriented manner enforced by the hardware. On these types of machines, dereferencing p[2] is safe *only* if p is referenced through a pointer that accesses a descriptor that says "yes, this is an array of at least 3 in size". And of course, trying to assign p a value of &s[-2] gets you a SIGSEGV or moral equivalent, because s is a pointer to a descriptor that limits the array to indices 0 through 99. And I believe everybody's favorite CISC system, the DEC VAX, had a BOUNDS instruction that checked if a pointer was within limits - and there's no reason why a compiler couldn't/shouldn't have included a BOUNDS opcode in the computation of &s[-2]. I believe the Intel x86 series has a similar opcode, but I am *NOT* positive of that.... -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_1869010785P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8a90tcC3lWbTT17ARAu7eAJ4sjXxdkdlmP4y9I6K2HLQqD2Kp4QCfRPHW t1iIoi45mqXqgRTtc6OrXxA= =hDxm -----END PGP SIGNATURE----- --==_Exmh_1869010785P-- From pfeiffer@viper.cs.nmsu.edu Thu Feb 14 12:48:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viper.cs.nmsu.edu (viper.cs.nmsu.edu [128.123.64.113]) by mail.gnome.org (Postfix) with ESMTP id 72697189D1 for ; Thu, 14 Feb 2002 12:48:44 -0500 (EST) Received: (from pfeiffer@localhost) by viper.cs.nmsu.edu (8.11.6/8.11.6) id g1EHmIS18590; Thu, 14 Feb 2002 10:48:18 -0700 From: Joe Pfeiffer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15467.63585.827662.889816@cs.nmsu.edu> Date: Thu, 14 Feb 2002 10:48:17 -0700 To: Carsten Burstedde Cc: gtk-list@gnome.org Subject: Null In-Reply-To: <3C6B819D.D732F54D@iam.uni-bonn.de> References: <3C6B819D.D732F54D@iam.uni-bonn.de> X-Mailer: VM 7.00 under Emacs 21.1.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Carsten Burstedde writes: > > what would be wrong with > #define null (0) > and using that (Java-style)? It's got the same problem as the definition of NULL in the standard (after all, it is the definition of NULL from the standard!). -- Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605 Department of Computer Science FAX -- (505) 646-1002 New Mexico State University http://www.cs.nmsu.edu/~pfeiffer Southwestern NM Regional Science and Engr Fair: http://www.nmsu.edu/~scifair From maldonado@ibiquity.com Thu Feb 14 14:58:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from radioflyer.ibocradio.com (unknown [208.33.57.98]) by mail.gnome.org (Postfix) with ESMTP id EB106180DD for ; Thu, 14 Feb 2002 14:58:16 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message Subject: pixmap "shadow" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1B591.F143D9AE" Date: Thu, 14 Feb 2002 14:58:16 -0500 Message-ID: <6AC325EB1D98F84B986D83F985121C1F16FDB7@radioflyer.ibocradio.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: pixmap "shadow" Thread-Index: AcG1kfE9SsRDGOiNTh6obLAh7goSmw== From: "Lourdes Maldonado" To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1B591.F143D9AE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 Using Glade I insert a pixmap widget into a container (the pixmap widget is not pointing to a file). Then at runtime I create a GdkPixmap with some xpm_data local to the code and use gtk_pixmap_set to set my Glade pixmap widget to the locally created pixmap. =20 static const char * myXpmData[] =3D (data not include in e-mail) =20 GdkPixmap *pixmap; GdkBitmap *mask; GtkStyle *style; =20 style =3D gtk_widget_get_style(myWindow); =20 pixmap =3D gdk_pixmap_create_from_xpm_d(myWindow, &mask, =20 &style->bg[GTK_STATE_NORMAL], (gchar **)myXmpData); =20 gtk_pixmap-set(GTK_PIXMAP(myPixmapWidgetFromGlade), pixmap, mask); =20 The first time the pixmap is displayed it has a shadow (it looks like another pixmap (same image) is behind it and offset to one side). If I cover the pixmap with a window and then remove the window it looks fine. =20 Thanks for any help, =20 Lourdes T. Maldonado ------_=_NextPart_001_01C1B591.F143D9AE Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

Using Glade I insert a pixmap widget into a container = (the pixmap widget is not pointing to a file).  Then at runtime I create a = GdkPixmap with some xpm_data local

to the code and use gtk_pixmap_set to set my Glade = pixmap widget to the locally created pixmap.

 

static const char * myXpmData[] =3D (data not include = in e-mail)

 

GdkPixmap *pixmap;

GdkBitmap *mask;

GtkStyle *style;

 

style =3D = gtk_widget_get_style(myWindow);

 

pixmap =3D gdk_pixmap_create_from_xpm_d(myWindow, = &mask,

         =             &= nbsp;           &n= bsp;              =             &= nbsp;   &style->bg[GTK_STATE_NORMAL],=

         =             &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;     (gchar **)myXmpData);

 

gtk_pixmap-set(GTK_PIXMAP(myPixmapWidgetFromGlade),

         =             &= nbsp;  pixmap,

         =             &= nbsp;  mask);

 

The first time the pixmap is displayed it has a = shadow (it looks like another pixmap (same image) is behind it and offset to one side).  If I cover the pixmap with a window and then remove the = window it looks fine.

 

Thanks for any help,

 

Lourdes T. = Maldonado

=00 ------_=_NextPart_001_01C1B591.F143D9AE-- From pbd@op.net Thu Feb 14 15:36:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id E1D62181A5 for ; Thu, 14 Feb 2002 15:36:49 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-402.phlpa.fast.net [209.92.100.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA15289; Thu, 14 Feb 2002 15:36:43 -0500 (EST) Message-Id: <200202142036.PAA15289@renoir.op.net> To: Mark Mielke Cc: Esteban Quijano , gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? In-reply-to: Your message of "Thu, 14 Feb 2002 10:22:24 EST." <20020214102224.A4715@mark.mielke.cc> Date: Thu, 14 Feb 2002 15:32:14 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >The C/C++ standards define NULL such that the onus is left to the >implementation to define NULL as something that "works". That may be true. However, the C++ standard, such as it is, is quite specific about what it means to assign an integral value of zero to a pointer lvalue, or when testing a pointer value against an integer value of zero. This is precisely why many C++ programmers, myself included, prefer to use 0 rather than NULL. NULL may or may not be the right thing, whereas 0 almost certainly is. >Therefore, unless you plan on stating that "our tools only work on >'sensible' systems", for your own definition of sensible, "NULL" actually >is more portable than "0". (perhaps not by very much at all... Its the other way around. The standards do not pin down a definition of NULL because there is no standard definition that can be guaranteed to work. Thus, using 0 is actually much more portable because its operation/semantics are defined by the standard. Actually, as Joseph pointed out here yesterday, even 0 has problems for cases where there is an overloaded function with both pointer and integer variants. > but is it >really worth fighting over?) No. Just worth getting right. --p From crazycrusoe@yahoo.com Thu Feb 14 17:02:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11505.mail.yahoo.com (web11505.mail.yahoo.com [216.136.172.37]) by mail.gnome.org (Postfix) with SMTP id 51C9018766 for ; Thu, 14 Feb 2002 17:02:24 -0500 (EST) Message-ID: <20020214220223.27386.qmail@web11505.mail.yahoo.com> Received: from [202.180.83.6] by web11505.mail.yahoo.com via HTTP; Thu, 14 Feb 2002 14:02:23 PST Date: Thu, 14 Feb 2002 14:02:23 -0800 (PST) From: Syed Irfan Subject: need help with some queries To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi i need some help understanding some things, i am through to chapter 6 in the gtk tutorial :-) /* my program 5, button.button */ #include //#define INFO /usr/share/doc/gtk+-devel-1.2.10/examples/buttons/info.xpm why cant i define the above and use INFO in the program ? instead of giving the whole path to the file ? gint my_delete_cb(GtkWidget *widget, GdkEvent *event, gpointer data) { g_print("\nyou pressed the %s \n", (char*) data); gtk_main_quit(); return (TRUE); } gint my_clicked_button_cb(GtkWidget *widget, gpointer data) { g_print("\n pressed the %s\n", (char *) data); return (FALSE); } //gint my_leave_button_cb(GtkWidget *widget, GdkEvent *event, gpointer data) //gives output " uhooo this ones good; Ã) " //i mean the strange character "Ã" instead of "pointer moved away from button" ? //bugger, but removing GdkEvent *event from the function declaration //does da trick, dunno why ? any explanation here ? gint my_leave_button_cb(GtkWidget *widget, gpointer data) { g_print("\nuhooo this ones good; %s\n",(char*) data); return (TRUE); } GtkWidget *my_xpm_label_box(GtkWidget *parent, gchar *xpm_filename, gchar *label_text) { GtkWidget *box_1; GtkWidget *label; GtkWidget *pixmapwid; GdkPixmap *pixmap; GdkBitmap *mask; GtkStyle *style; //create box for xpm and label box_1=gtk_hbox_new(FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(box_1), 2); //setting style of the button style = gtk_widget_get_style(parent); //the display of the pixmap pixmap = gdk_pixmap_create_from_xpm(parent->window, &mask, &style->bg[GTK_STATE_NORMAL], xpm_filename); pixmapwid = gtk_pixmap_new(pixmap, mask); //create label for the button label = gtk_label_new(label_text); //packing the pixmap into box gtk_box_pack_start(GTK_BOX(box_1), pixmapwid, FALSE, FALSE, 3); //packing the label into the box gtk_box_pack_start(GTK_BOX(box_1), label, FALSE, FALSE, 3); gtk_widget_show(pixmapwid); gtk_widget_show(label); return (box_1); } int main(int argc, char *argv[]) { //gtk widgets first GtkWidget *window; GtkWidget *button; GtkWidget *box_1; //dont forget to initialize gtk_init(&argc, &argv); //create the window window = gtk_window_new(GTK_WINDOW_TOPLEVEL); //connect the x with close gtk_signal_connect(GTK_OBJECT(window), "delete_event", GTK_SIGNAL_FUNC(my_delete_cb), (gpointer) "x button on the top right corner"); gtk_container_set_border_width(GTK_CONTAINER(window), 20); //what the heck is that realize thingy ? below //whats the diff between gtk_widget_show() and //gtk_widget_realize() ?? gtk_widget_realize(window); // gtk_widget_show(window); // now creating the button button = gtk_button_new(); //connecting the button to an event, basically the button callback gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(my_clicked_button_cb), (gpointer) "cool button"); gtk_signal_connect(GTK_OBJECT(button), "leave", GTK_SIGNAL_FUNC(my_leave_button_cb), (gpointer) "pointer moved away from button"); //the strange thing about, when the mouse pointer clicks the //button, this is the output i get uhooo this ones good; pointer moved away from button pressed the cool button but shouldnt i get only "pressed the cool button" why am i getting the uhooo this ones good as well ? box_1 = my_xpm_label_box(window, "/usr/lib/kde1-compat/share/icons/large/info.xpm", "cool button"); gtk_widget_show(box_1); gtk_container_add(GTK_CONTAINER(button), box_1); gtk_widget_show(button); gtk_container_add(GTK_CONTAINER(window), button); gtk_widget_show(window); gtk_main(); return(0); } thankyou verymuch guys ===== ===================================== CrazyCrusoe Hackerd00d http://members.linuxstart.com/openweb ===================================== __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com From lynn.lin@boeing.com Thu Feb 14 18:25:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from slb-smtpout-01.boeing.com (slb-smtpout-01.boeing.com [12.13.237.21]) by mail.gnome.org (Postfix) with ESMTP id 3855C186BF for ; Thu, 14 Feb 2002 18:25:22 -0500 (EST) Received: from stl-av-02.boeing.com ([192.76.190.7]) by slb-smtpout-01.boeing.com (8.9.2/8.8.5-M2) with ESMTP id PAA07564 for ; Thu, 14 Feb 2002 15:23:31 -0800 (PST) Received: from slb-hub-01.boeing.com (localhost [127.0.0.1]) by stl-av-02.boeing.com (8.9.3/8.9.2/MBS-AV-01) with ESMTP id RAA29281 for ; Thu, 14 Feb 2002 17:25:20 -0600 (CST) Received: from xch-swbh-02.sw.nos.boeing.com (xch-swbh-02.sw.nos.boeing.com [129.172.87.58]) by slb-hub-01.boeing.com (8.11.3/8.11.3/MBS-LDAP-01) with ESMTP id g1ENPIT04857 for ; Thu, 14 Feb 2002 15:25:18 -0800 (PST) Received: by xch-swbh-02.sw.nos.boeing.com with Internet Mail Service (5.5.2650.21) id <169NBMLJ>; Thu, 14 Feb 2002 15:25:18 -0800 Message-ID: From: "Lin, Lynn" To: "'gtk-list@gnome.org'" Subject: gui builder Date: Thu, 14 Feb 2002 15:25:12 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, Does GTK+ has a GUI builder ? If yes, what is the name of it ? Thank you :) Lynn From dreed@capital.edu Thu Feb 14 18:51:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by mail.gnome.org (Postfix) with ESMTP id 113211847B for ; Thu, 14 Feb 2002 18:51:12 -0500 (EST) Received: from localhost.localdomain (dhcp065-024-120-162.columbus.rr.com [65.24.120.162]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id g1ENkDb14143; Thu, 14 Feb 2002 18:46:13 -0500 (EST) Received: (from dreed@localhost) by localhost.localdomain (8.11.6/8.11.6) id g1ENoLn18340; Thu, 14 Feb 2002 18:50:21 -0500 Date: Thu, 14 Feb 2002 18:50:21 -0500 Message-Id: <200202142350.g1ENoLn18340@localhost.localdomain> X-Authentication-Warning: localhost.localdomain: dreed set sender to dreed@capital.edu using -f From: Dave Reed To: lynn.lin@boeing.com Cc: gtk-list@gnome.org In-reply-to: (lynn.lin@boeing.com) Subject: Re: gui builder References: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > From: "Lin, Lynn" > > Hi there, > > Does GTK+ has a GUI builder ? If yes, what is the name of it ? > > Thank you :) > > Lynn Yes, glade. If you're running Linux, you probably already have it. If not, see: http://glade.pn.org Dave From caspar@cbothmer.org Thu Feb 14 18:58:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cbothmer.org (pD95199DF.dip.t-dialin.net [217.81.153.223]) by mail.gnome.org (Postfix) with SMTP id 49786181D2 for ; Thu, 14 Feb 2002 18:58:53 -0500 (EST) Received: (qmail 25263 invoked from network); 14 Feb 2002 23:58:50 -0000 Received: from marvin.cbothmer.org (HELO cbothmer.org) () by trillian.cbothmer.org with SMTP; 14 Feb 2002 23:58:50 -0000 Message-ID: <3C6C4F8B.B4EA2826@cbothmer.org> Date: Fri, 15 Feb 2002 01:00:11 +0100 From: Caspar Bothmer X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: gui builder References: <200202142350.g1ENoLn18340@localhost.localdomain> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dave Reed wrote: > > Yes, glade. > If you're running Linux, you probably already have it. If not, see: > http://glade.pn.org New address: http://glade.gnome.org. You can find it from http://www.gtk.org, topic "Applications". Is a nice tool. Check the tutorial from Jan, 18th. bye caspar From vmail@excite.com Thu Feb 14 20:33:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.9]) by mail.gnome.org (Postfix) with ESMTP id 96A65181F8 for ; Thu, 14 Feb 2002 20:33:18 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id 8EF5B29A19; Thu, 14 Feb 2002 20:33:13 -0500 (EST) To: gtk-list@gnome.org Subject: memory leaks Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Message-Id: <20020215013313.8EF5B29A19@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 20:33:13 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am using a notebook with several pages, each page is packed with n_ widgets, each time I switch between pages I want the container of pages I am switch from and all its children to be destroyed or un referenced if you prefer. Simply destroying the widget parent does not accomplish this as I thought by propagation, oops. In the mean time I watch my application consume more and more memory:(

Any ideas on how to resolve this issue?

-William



From konno@hkd.esc.east.ntt.co.jp Thu Feb 14 21:37:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail3.noc.ntt.co.jp (mail3.noc.ntt.co.jp [210.163.32.58]) by mail.gnome.org (Postfix) with ESMTP id D1B131816C for ; Thu, 14 Feb 2002 21:37:00 -0500 (EST) Received: from vscan2.noc.east.ntt.co.jp (vscan2.noc.east.ntt.co.jp) by mail3.noc.ntt.co.jp (8.9.3/NOC-MAIL3) id LAA04084 for ; Fri, 15 Feb 2002 11:36:58 +0900 (JST) Received: from mail2.noc.east.ntt.co.jp by vscan2.noc.east.ntt.co.jp (3.7W/vscan2_v01) id LAA26081; Fri, 15 Feb 2002 11:36:58 +0900 (JST) Received: from hkd.esc.east.ntt.co.jp by mail2.noc.east.ntt.co.jp (8.9.3/3.7W/mail2_v01) id LAA07925; Fri, 15 Feb 2002 11:36:59 +0900 (JST) Received: by hkd.esc.east.ntt.co.jp (8.8.8/3.6W/99120320) with SMTP id LAA20224; Fri, 15 Feb 2002 11:36:57 +0900 (JST) From: "tadashi konno" To: "gtk-list" Subject: =?iso-2022-jp?B?R1RLGyRCJEc0SkMxJEolPSUxJUMlSCVXJW0lMCVpJWAkcjpuJGobKEI=?= =?iso-2022-jp?B?GyRCJD8kJBsoQg==?= Date: Fri, 15 Feb 2002 11:34:37 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: $B=i$a$F$NEj9F$G$9!#:#Ln$H?=$7$^$9!#(B GTK$B$d(BX$B$r;O$a$?$P$+$j$G!"$h$/J,$+$j$^$;$s!#(B $BA0$K$b!";w$?l9g$O!"$4$a$s$J$5$$!#(B GTK$B$G4JC1$J%=%1%C%H%W%m%0%i%`$r:n$C$F8+$?$N$G$9$,!"(B socket$B$N(Bconnect$B$H(Bgtk_input_add_full$B$N;H$$J}$,$o$+$j$^$;$s!#(B $BAw?.It$He Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 846191816C for ; Thu, 14 Feb 2002 22:14:35 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-31.fast.net [209.92.60.31]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id WAA25803; Thu, 14 Feb 2002 22:14:33 -0500 (EST) Message-Id: <200202150314.WAA25803@renoir.op.net> To: wdulyea1@excite.com Cc: gtk-list@gnome.org Subject: Re: memory leaks In-reply-to: Your message of "Thu, 14 Feb 2002 20:33:13 EST." <20020215013313.8EF5B29A19@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 22:10:09 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > >I am using a notebook with several pages, each page is packed with n_ widgets, > each time I switch between pages I want the container of pages I am switch f >rom and all its children to be destroyed or un referenced if you prefer. then you'll have to do this explicitly by removing it from the notebook, which should reduce its reference count to zero and thus destroy it. just switching pages won't accomplish this. --p From vmail@excite.com Thu Feb 14 23:06:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.5]) by mail.gnome.org (Postfix) with ESMTP id E1CA4188CE for ; Thu, 14 Feb 2002 23:06:40 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id CCE1C3E0E; Thu, 14 Feb 2002 23:06:36 -0500 (EST) To: Paul Davis , Subject: Re: memory leaks Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Message-Id: <20020215040636.CCE1C3E0E@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 23:06:36 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Aahh ...but this is my problem. I should have detailed a little more with the original mail.

The routine that handles switching pages is also getting the widget in the current page prior to switching, once I have the widget I implicitly call gtk_?_destroy(), this should do as stated and destroy the object. However I am still seeing my application grow in size as I continually switch from one notebook page to another.

Any Ideas?

-William


From pbd@op.net Thu Feb 14 23:10:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D9FF0181E9 for ; Thu, 14 Feb 2002 23:10:39 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-31.fast.net [209.92.60.31]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id XAA00771; Thu, 14 Feb 2002 23:10:29 -0500 (EST) Message-Id: <200202150410.XAA00771@renoir.op.net> To: wdulyea1@excite.com Cc: gtk-list@gnome.org Subject: Re: memory leaks In-reply-to: Your message of "Thu, 14 Feb 2002 23:06:36 EST." <20020215040636.CCE1C3E0E@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 23:06:05 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: just a quick note to point out that whether you know it or not, the email program you are using is sending out copies of your mail in both plain text and HTML formats. increasingly on the net, there are filters being put in place that silently dump HTML-formatted email. some mailing lists will not ever accept such posts. as long as you do this, you are (1) wasting network bandwidth by sending messages that are typically more than twice as long as they could be (2) making it harder for people using traditional email readers to read them (3) risking the chance that people will never see your mail because its filtered before reaching their email inbox. >Aahh ...but this is my problem. I should have detailed a little more with the > original mail.
>
>The routine that handles switching pages is also getting the widget in the cur >rent page prior to switching, once I have the widget I implicitly call gtk_?_d >estroy(), this should do as stated and destroy the object. However I am still > seeing my application grow in size as I continually switch from one notebook >page to another.
>
>Any Ideas?
you cannot just destroy an object that is held by a container and expect the destroy to work. GTK objects are reference counted, and unless you remove it from the container, it will continue to exist until the refcnt drops to zero. --p From kh_naba@yahoo.com Thu Feb 14 23:45:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by mail.gnome.org (Postfix) with SMTP id 1A684186FD for ; Thu, 14 Feb 2002 23:45:35 -0500 (EST) Received: from unknown (HELO ?192.168.1.3?) (61.11.30.46) by smtp.mail.vip.sc5.yahoo.com with SMTP; 15 Feb 2002 04:45:33 -0000 Subject: Anjuta 0.1.9 released! From: Naba Kumar To: anjuta-announce@lists.sourceforge.net Cc: linux-india-help@lists.sourceforge.net, linux-india-general@lists.sourceforge.net, gnome-devel-list@gnome.org, gtk-devel@gnome.org, gnome-list@gnme.org, gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 15 Feb 2002 10:15:50 +0530 Message-Id: <1013748360.1318.4.camel@Dragon> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Announcing the latest stable release of Anjuta, 0.1.9. The Anjuta website can be found at: http://anjuta.sourceforge.net What is Anjuta? Anjuta is a versatile Integrated Development Environment (IDE). It has been written for GTK+/GNOME, and features a number of advanced programming facilities. These include project management, application wizards, an interactive debugger and a powerful source code editor, with source browsing and syntax highlighting. What is new / changed in this release? * rewritten symbol and tag browsing support, * new message manager, * embedded terminal (using zvt), * Project Import Wizard, making it easier to migrate existing projects to Anjuta (experimental), * new look Application Wizard, * libglade project support, * Class Creator plugin, * UI enhancements, * many, many bug fixes. Requirements * libxml, * scrollkeeper, * standard GNU development tools, * gdb (for debugging sessions) * autoconf/automake. Optional tools * gnome-help-browser (or Nautilus), to display the included documentation, * grep, for research in files, * ctags, in order to have class browsing, * indent, for automatic source code indenting, * DevHelp, for context sensitive API browser support (http://devhelp.codefactory.se). Availability * http://prdownloads.sourceforge.net/anjuta/anjuta-0.1.9.tar.gz * http://prdownloads.sourceforge.net/anjuta/anjuta-0.1.9-1.src.rpm * http://prdownloads.sourceforge.net/anjuta/anjuta-0.1.9-1.i386.rpm (.deb and other formats coming soon) Feedback Although much of the development effort is going into the new version of Anjuta, we'd really like to continue to hear your comments on the 0.1.x series - remember that forums, mailing lists, bug reporting and feature request facilities may be found at the Anjuta project page: http://www.sourceforge.net/projects/anjuta -- Regards, -naba Forgive him, for he believes that the customs of his tribe are the laws of nature! -- G.B. Shaw _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From podd@prodigy.net Sun Feb 10 18:43:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pimout3-int.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102]) by mail.gnome.org (Postfix) with ESMTP id 26AD31823C for ; Sun, 10 Feb 2002 18:43:07 -0500 (EST) Received: from default (A020-0842.SKT3.splitrock.net [209.253.233.80]) by pimout3-int.prodigy.net (8.11.0/8.11.0) with SMTP id g1ANh59202946 for ; Sun, 10 Feb 2002 18:43:06 -0500 Message-ID: <000701c1b283$bbbd74a0$50e9fdd1@default> From: "SCOTT D ADAMS" To: Subject: GList Date: Sun, 10 Feb 2002 14:38:58 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01C1B240.AC6D9B80" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0004_01C1B240.AC6D9B80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all; How can you open a data file and add the contents to a GList and then = show the=20 complete list in a gtk+ listbox? I've been able to do everything except = display the=20 items in a listbox. thanks, jim scurveedog@yahoo.com ------=_NextPart_000_0004_01C1B240.AC6D9B80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all;
 
How can you open a data file and add the contents to = a GList=20 and then show the
complete list in a gtk+ listbox?  I've been = able to do=20 everything except display the
items in a listbox.
 
thanks,
jim scurveedog@yahoo.com
 
 
 
------=_NextPart_000_0004_01C1B240.AC6D9B80-- From knishida@sky.sannet.ne.jp Thu Feb 14 02:26:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from svan18.sannet.ne.jp (svan18.sannet.ne.jp [134.180.49.18]) by mail.gnome.org (Postfix) with ESMTP id DE6CE1856C for ; Thu, 14 Feb 2002 02:26:38 -0500 (EST) Received: from xp.netlab.jp (eaa1-ppp2138.tokyo.sannet.ne.jp [211.133.188.75]) by svan18.sannet.ne.jp (Postfix) with ESMTP id 0D9C52BE69 for ; Thu, 14 Feb 2002 16:26:37 +0900 (JST) Date: Thu, 14 Feb 2002 16:28:04 +0900 Message-ID: From: Keisuke Nishida To: gtk-list@gnome.org Subject: problem with grab_focus User-Agent: Wanderlust/2.6.0 (Twist And Shout) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.1 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: multipart/mixed; boundary="Multipart_Thu_Feb_14_16:28:04_2002-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --Multipart_Thu_Feb_14_16:28:04_2002-1 Content-Type: text/plain; charset=US-ASCII Hi there, I have a problem with using gtk_widget_grab_focus in a focus_out_event hander, using gtk+-1.2.10. The attached program has three GtkEntry's, vertically aligned, and tries to grab focus on entry1 when I leave entry2. If I press key `GDK_Down' in the second entry (i.e., entry2), the default action of GTK+ moves cursor to entry3, while my handler moves cursor to entry1. Thus, two cursors appear simultaneously. How could I have only entry1 focused? Thanks in advance. Keisuke Nishida --Multipart_Thu_Feb_14_16:28:04_2002-1 Content-Type: text/plain; charset=US-ASCII #include guint handler; GtkWidget *entry1; GtkWidget *entry2; GtkWidget *entry3; static void on_focus_out (GtkEntry *entry) { gtk_signal_handler_block (GTK_OBJECT (entry), handler); gtk_widget_grab_focus (entry1); gtk_signal_handler_unblock (GTK_OBJECT (entry), handler); } static GtkWidget * create_window1 () { GtkWidget *window1; GtkWidget *vbox1; entry1 = gtk_entry_new (); entry2 = gtk_entry_new (); entry3 = gtk_entry_new (); handler = gtk_signal_connect (GTK_OBJECT (entry2), "focus_out_event", GTK_SIGNAL_FUNC (on_focus_out), NULL); vbox1 = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry1, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry2, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry3, FALSE, FALSE, 0); window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_add (GTK_CONTAINER (window1), vbox1); return window1; } int main (int argc, char **argv) { gtk_init (&argc, &argv); gtk_widget_show_all (create_window1 ()); gtk_main (); return 0; } --Multipart_Thu_Feb_14_16:28:04_2002-1-- From wdulyea@qualcomm.com Thu Feb 14 18:23:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from numenor.qualcomm.com (numenor.qualcomm.com [129.46.51.58]) by mail.gnome.org (Postfix) with ESMTP id BC6FB18272 for ; Thu, 14 Feb 2002 18:23:48 -0500 (EST) Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149]) by numenor.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1ENNWkQ027548 for ; Thu, 14 Feb 2002 15:23:32 -0800 (PST) Received: from wdulyea.qualcomm.com (wdulyea.qualcomm.com [129.46.73.119]) by neophyte.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1ENNUu4012923 for ; Thu, 14 Feb 2002 15:23:31 -0800 (PST) Message-Id: <5.1.0.14.2.20020214151555.02464940@jittlov.qualcomm.com> X-Sender: wdulyea@jittlov.qualcomm.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 14 Feb 2002 15:23:26 -0800 To: gtk-list@gnome.org From: William Dulyea Subject: memory leaks Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am using a notebook with several pages, each page is backed with n_ widgets, each time I switch between pages I want the container of pages I am switch from and all its children to be destroyed or un referenced if you prefer. Simply destroying the widget parent does not accomplish this as I thought by propagation, oops. In the mean time I watch my application consume more and more memory:( -William From pbd@op.net Fri Feb 15 00:12:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3BA44183C4 for ; Fri, 15 Feb 2002 00:12:26 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-31.fast.net [209.92.60.31]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id AAA06390; Fri, 15 Feb 2002 00:12:21 -0500 (EST) Message-Id: <200202150512.AAA06390@renoir.op.net> To: Keisuke Nishida Cc: gtk-list@gnome.org Subject: Re: problem with grab_focus In-reply-to: Your message of "Thu, 14 Feb 2002 16:28:04 +0900." Date: Fri, 15 Feb 2002 00:07:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I have a problem with using gtk_widget_grab_focus in a >focus_out_event hander, using gtk+-1.2.10. > >The attached program has three GtkEntry's, vertically aligned, >and tries to grab focus on entry1 when I leave entry2. > >If I press key `GDK_Down' in the second entry (i.e., entry2), >the default action of GTK+ moves cursor to entry3, while my >handler moves cursor to entry1. Thus, two cursors appear >simultaneously. > >How could I have only entry1 focused? its a kludge, but you can catch keypress events in entry{1,2,3}, and gtk_signal_emit_stop_by_name() for GDK_{Down,Up,Left,Right} etc. this will block the default (and often silly) GTK focus mechanism from being driven by keystrokes in those widgets. --p From cosminb@saguaro.ro Fri Feb 15 06:03:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from terminus.dnttm.ro (terminus.dnttm.ro [193.226.98.11]) by mail.gnome.org (Postfix) with ESMTP id 1A177180FE for ; Fri, 15 Feb 2002 06:03:07 -0500 (EST) Received: from main.saguaro.ro (main.saguaro.ro [193.226.88.117]) by terminus.dnttm.ro (8.9.3/8.9.3) with ESMTP id NAA30224 for ; Fri, 15 Feb 2002 13:03:05 +0200 Received: from saguaro.ro (samba.spr [192.168.1.100]) by main.saguaro.ro (8.11.2/8.11.2) with ESMTP id g1FAk7H21174 for ; Fri, 15 Feb 2002 12:46:07 +0200 Received: from saguaro.ro (IDENT:cosmin@cosminb.spr [192.168.1.154]) by saguaro.ro (8.11.2/8.11.2) with ESMTP id g1FAwfW17154 for ; Fri, 15 Feb 2002 12:58:41 +0200 X-RAV-AntiVirus: This e-mail has been scanned for viruses on host: saguaro.ro Message-ID: <3C6CEC14.816DE09D@saguaro.ro> Date: Fri, 15 Feb 2002 13:08:04 +0200 From: cosminb X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: destroy-event ??? References: <200202141455.JAA04261@renoir.op.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis wrote: > > >Hi all, > > > >I don't know what signal is emited in the following situation. > > > >Right-click in the upper-right corner on a X window. A menu appears. > >There is a destroy option. Selecting this option will emit a > >"destroy-event" to that window? If yes, I want to catch it(from my gtk > >app., if posible), but I don't know how. > > it will generate a "delete_event" first, which is what actually > corresponds to the window manager's "destroy" operation. > > if that is not handled by a handler that returns TRUE, then the widget > in question will more or less immediately be "destroyed" in the GTK+ > sense, which involves returning it to an uninitialized state. this is > accompanied by a "destroy_event" for the window. > > --p Hi, It works for delete option but not for destroy. Here is my code. Am I doing something wrong? void main() { ... AddWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (AddWindow), "AddWindow", AddWindow); gtk_widget_set_usize (AddWindow, 427, 371); gtk_window_set_modal (GTK_WINDOW (AddWindow), TRUE); gtk_window_set_policy (GTK_WINDOW (AddWindow), FALSE, FALSE, FALSE); /* catch the delete event */ gtk_signal_connect(GTK_OBJECT (AddWindow), "delete_event", GTK_SIGNAL_FUNC (DestroyEventHandler), NULL); ... return; } int DestroyEventHandler(GtkWidget * widget, GdkEvent *event, gpointer data) { return TRUE; } Thanks again > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From yogeeshappa.mathighatta@wipro.com Fri Feb 15 06:09:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 5AFB5180FE for ; Fri, 15 Feb 2002 06:09:16 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g1FB7YX29564 for ; Fri, 15 Feb 2002 16:37:34 +0530 (IST) Received: from m2foe301975 ([10.114.9.182]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GRKMX000.GPP; Fri, 15 Feb 2002 16:37:48 +0530 Message-ID: <06f701c1b610$bfe8c6c0$b609720a@m2foe301975> Reply-To: "Yogeesh MB" From: "Yogeesh MB" To: , Cc: Subject: Required info on Bug#60132 Date: Fri, 15 Feb 2002 16:35:58 +0530 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8 Content-Type: multipart/alternative; boundary="----=_NextPart_000_06F4_01C1B63E.D91C1B50" ------=_NextPart_000_06F4_01C1B63E.D91C1B50 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I would like to know about Bug# 60132, from where it is originating. under which appication this bug lies.=20 This will help me in fixing this at the earliest. If any one knows about this bug in detail please let me know. thanks in advance, Yogeesh MB ------=_NextPart_000_06F4_01C1B63E.D91C1B50 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
I would like to know about Bug#=20 60132,  from where it is=20 originating.
under which appication this bug lies. =
This will help me in fixing = this at the=20 earliest.
If any one knows about this bug in = detail please=20 let me know.
 
thanks in advance,
 
Yogeesh MB
------=_NextPart_000_06F4_01C1B63E.D91C1B50-- ------=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8 Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ******************************************************************** ------=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8-- From inodal@teleline.es Fri Feb 15 07:26:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp4.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id C0EB718153 for ; Fri, 15 Feb 2002 07:26:39 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp4.mail.isp (Netscape Messaging Server 4.15 tsmtp4 Jul 26 2001 13:10:38) with ESMTP id GRKQHM01.D51 for ; Fri, 15 Feb 2002 13:24:58 +0100 Message-ID: <3C6CFE41.9080500@teleline.es> Date: Fri, 15 Feb 2002 12:25:37 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: Update of GtkRadioMenuItems wihtout emitting any signal Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a set of 3D Objects defined in my application, but I only show one of it. Let's call it the CURRENT_GLOBJECT. I can change the CURRENT_GLOBJECT by code or selecting it from a Menu of GtkRadioMenuItems, one GtkRadioMenuItem for each object. When I select a different CURRENT_GLOBJECT I want to update the selected active GtkRadioMenuItem, but without emitting the "activate" signal, so the menuitems callback isn't call. I use a function which returns me the widget I have to activate: GtkWidget *GetMenuItemWidget(GtkWidget* widget,gint num_object) (in my function, "widget" can be any of the GtkRadioMenuItems since they belong all to the same group) How can I activate the widget returned by GtkMenuItemWidget() without emitting the activate signal? may I use something like: gtk_menu_item_activate(GTK_MENU_ITEM(act_widget)); gtk_signal_emit_stop_by_name(GTKOBJECT(act_widget), "activate"); or which is the correct way? Thanks in advance, Ignacio Nodal From coframi.balr001@rd.francetelecom.com Fri Feb 15 07:41:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id D9D2B18153 for ; Fri, 15 Feb 2002 07:41:11 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M410QY0>; Fri, 15 Feb 2002 13:40:56 +0100 Message-ID: From: zze-coframi balr001 To: 'Havoc Pennington' Cc: "'otaylor@redhat.com'" , gtk-list@gnome.org Subject: Memprof Date: Fri, 15 Feb 2002 13:40:45 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-70b42653-215f-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-70b42653-215f-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1B61D.FCFE8510" ------_=_NextPart_001_01C1B61D.FCFE8510 Content-Type: text/plain Hello, Is there a memprof version using GTK 1.3.X ?? Isabelle -----Message d'origine----- De : Havoc Pennington [mailto:hp@redhat.com] Envoye : vendredi 8 fevrier 2002 17:46 A : Kerber, Ulrich Cc : gtk-list@gnome.org Objet : Re: Memory problems while using a clist "Kerber, Ulrich" writes: > I wrote an app with a clist showing the contents of a log file; the > clist is updated every 60 seconds. Although i do a gtk_clist_clear, > the memory used is increasing with every run, even if no element is > added. After a day of work the amount reaches up to 40 MB! > Does anybody know a solution to this problem? > You just need to debug it. Use a tool such as "memprof" to see where the memory is leaked. Havoc _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1B61D.FCFE8510 Content-Type: text/html Content-Transfer-Encoding: quoted-printable Memprof

Hello,

Is there a memprof version using  GTK 1.3.X = ??

Isabelle



-----Message d'origine-----
De : Havoc Pennington [mailto:hp@redhat.com]
Envoye : vendredi 8 fevrier 2002 17:46
A : Kerber, Ulrich
Cc : gtk-list@gnome.org
Objet : Re: Memory problems while using a = clist



"Kerber, Ulrich" = <Ulrich.Kerber@faidor.de> writes:
> I wrote an app with a clist showing the = contents of a log file; the
> clist is updated every 60 seconds. Although i = do a gtk_clist_clear,
> the memory used is increasing with every run, = even if no element is
> added. After a day of work the amount reaches = up to 40 MB!
> Does anybody know a solution to this = problem?
>

You just need to debug it. Use a tool such as = "memprof" to see where
the memory is leaked.

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

------_=_NextPart_001_01C1B61D.FCFE8510-- ------=_NextPartTM-000-70b42653-215f-11d6-b1e5-00508b69ab48-- From leidola@newcon.de Fri Feb 15 09:04:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 2BE1D184BB for ; Fri, 15 Feb 2002 09:04:53 -0500 (EST) Received: from [213.70.108.88] ([213.70.108.88]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id PAA17776; Fri, 15 Feb 2002 15:04:50 +0100 Subject: Re: gui builder From: Olaf Leidinger To: "Lin, Lynn" , GTK Mailing List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 15 Feb 2002 15:07:39 +0100 Message-Id: <1013782060.784.3.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 14 Feb 2002 15:25:12 -0800 schrieb Lin, Lynn: > Hi there, > > Does GTK+ has a GUI builder ? If yes, what is the name of it ? > > Thank you :) > > Lynn > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hi Lynn, Glade might be what you're looking for. You can get it from http://glade.gnome.org Ciao, Olaf From otaylor@redhat.com Fri Feb 15 09:14:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 3BDBC1837D for ; Fri, 15 Feb 2002 09:14:30 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 7A87A241BE2; Fri, 15 Feb 2002 09:14:16 -0500 (EST) To: zze-coframi balr001 Cc: "'Havoc Pennington'" , gtk-list@gnome.org Subject: Re: Memprof References: From: Owen Taylor In-Reply-To: zze-coframi balr001's message of "Fri, 15 Feb 2002 13:40:45 +0100" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 12 Message-Id: <20020215141416.7A87A241BE2@fresnel.labs.redhat.com> Date: Fri, 15 Feb 2002 09:14:16 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: zze-coframi balr001 writes: > Hello, > > Is there a memprof version using GTK 1.3.X ?? The version in GNOME CVS (http://cvs.gnome.org/tools/cvs.html) is ported to GTK+-1.3.x. There hasn't been a release yet. Regards, Owen From ramses@computer.org Fri Feb 15 11:31:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id ADC4F1834E; Fri, 15 Feb 2002 11:31:09 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020215163130.VJBD480.sv16@adsl50>; Fri, 15 Feb 2002 11:31:30 -0500 Subject: strange pop up menu behaviour from a clist From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-list@gnome.org, gtk-app-devel-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 15 Feb 2002 11:38:56 -0500 Message-Id: <1013791136.1176.12.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi. I set up the third mouse button as GTK_BUTTON_SELECTS on a clist. I connect "select_row" to a callback that displays a pop up menu when the third mouse button is pressed: void select_row_callback(GtkWidget *widget, gint row, gint column, GdkEventButton *bevent, gpointer menu) { if ( bevent->button == 3 ) { gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, bevent->time); } } if I click the third mouse button on that menu, it works immediately, but if I press the first mouse button, I have to do it twice to activate a menu option. I have to do this to make it work as expected, but it contradicts the purpose of the button parameter on gtk_menu_popup: void select_row_callback(GtkWidget *widget, gint row, gint column, GdkEventButton *bevent, gpointer menu) { if ( bevent->button == 3 ) { gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, bevent->time); } } Is this a bug, a feature, or am I misunderstanding something???? Thanks for your help. From pbd@op.net Fri Feb 15 12:35:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9E6BC18C8E; Fri, 15 Feb 2002 12:35:11 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-188.phlpa.fast.net [209.92.99.188]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA28338; Fri, 15 Feb 2002 12:35:09 -0500 (EST) Message-Id: <200202151735.MAA28338@renoir.op.net> To: Rams s Morales Cc: gtk-list@gnome.org, gtk-app-devel-list@gnome.org Subject: Re: strange pop up menu behaviour from a clist In-reply-to: Your message of "15 Feb 2002 11:38:56 EST." <1013791136.1176.12.camel@adsl50> Date: Fri, 15 Feb 2002 12:30:53 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, > 0, bevent->time); pass in the correct button ID of the button you want to drive the menu. 1 should do it. --p From markrubn@pacbell.net Fri Feb 15 12:58:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id 85A95181A0 for ; Fri, 15 Feb 2002 12:58:28 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRL004555XFM6@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Fri, 15 Feb 2002 09:58:27 -0800 (PST) Date: Fri, 15 Feb 2002 09:57:49 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Ignacio Nodal Cc: GTK-List Message-id: <3C6D4C1D.27A3FAF6@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <3C6CFE41.9080500@teleline.es> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > When I select a different CURRENT_GLOBJECT I want to update the selected > active GtkRadioMenuItem, but without emitting the "activate" signal, so > the menuitems callback isn't call. and: > How can I activate the widget returned by GtkMenuItemWidget() without > emitting the activate signal? > > may I use something like: > > gtk_menu_item_activate(GTK_MENU_ITEM(act_widget)); > gtk_signal_emit_stop_by_name(GTKOBJECT(act_widget), "activate"); o I have had the same question for over a year now. I've tried searching the list archives, but never found the right keyword to use. o The problem isn't limited to menus. It happens any time you use the same widget for both input (the user is supplying information to the program) and output (the program is displaying information to the user). o In the "input" case, I obviously want the signal to be emitted. For "output", I don't because the program already knows it's changing the widget's value. o At minimum, the unwanted signal causes unnecessary/redundant computation to take place. At worst, it can cause an infinite loop. Last year I wrote, but never posted, a simple example program to illustrate this. It's my own "hello world" test program for GUI toolkits: A fahrenheit-to-celcius temperature converter. It has two spinputtons, one for F and one for C. The user changes either one, and the other displays the correct matching temperature. For example, when the user inputs a C temperature, a signal is emitted, the program calculates F and displays it in the other spinbutton ... which then emits a signal causing a conversion back to F, and an update of the F spinputton. (In this case, because the conversion is invertible, the F value is the same as what the user inputted, so the F spinbutton doesn't emit a signal. No infinite loop, just redundant calculation.) o My workaround -- for real-world programs, not toy F-to-C converters -- is to set a flag when changing a widget. Then, in the signal handler: if (flag) { flag = FALSE ; return ; } else // really handle the signal o In C and Gtk this gets ugly very fast (global variables). I use C++ and Gtk--, so I wrap (for example) Gtk::Adjustment in my own class which handles the flag internally. It's still pretty ugly. o Someone (Havoc??) must know the right solution to this problem. -- MARK markrubn@pacbell.net From hp@redhat.com Fri Feb 15 14:24:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 8838818153 for ; Fri, 15 Feb 2002 14:24:27 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1FJOKp17164; Fri, 15 Feb 2002 14:24:20 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Mark R. Rubin" Cc: Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal References: <3C6CFE41.9080500@teleline.es> <3C6D4C1D.27A3FAF6@pacbell.net> From: Havoc Pennington Date: 15 Feb 2002 14:24:20 -0500 In-Reply-To: <3C6D4C1D.27A3FAF6@pacbell.net> Message-ID: Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Mark R. Rubin" writes: > o Someone (Havoc??) must know the right solution to this problem. > It depends on the situation. Some approaches are: - gtk_signal_handler_block (g_signal_handlers_block, and by_func variants) - don't do anything in the callback if the value hasn't changed: if (current_state == gtk_toggle_button_get_active (toggle)) return; - fill in the default state of controls before you connect the callbacks to them You can also use a global flag or a flag specific to a class/object, but I don't like that approach much personally. Most signals indicate that the state of an object has changed, not that it has changed due to some specific cause (e.g. user input). This is the right thing IMO for reasons of conceptual cleanliness; there would be lots of subtle tricky bugs otherwise. In any case it's too late to change this aspect of GTK. Havoc From vmail@excite.com Fri Feb 15 15:57:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.8]) by mail.gnome.org (Postfix) with ESMTP id 34AE7180E4 for ; Fri, 15 Feb 2002 15:57:40 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id 8412E109EB9; Fri, 15 Feb 2002 15:57:35 -0500 (EST) To: gtk-list@gnome.org Subject: memory leaks (continued) Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: wdulyea@qualcomm.com Message-Id: <20020215205735.8412E109EB9@xprdmailfe.excite.com> Date: Fri, 15 Feb 2002 15:57:35 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: An expansion to an earlier mail I sent... In this code snippet below I can observ that removing(destroying) container widgets does not have the desired effect. Please comment:>

Code snippet...........................................
cur_page = gtk_notebook_get_current_page( notebook );
fprintf( stderr, "on_notebook_switch_page,
switching from:%i to:%i\n", cur_page, page_n );

child = gtk_container_children(
GTK_CONTAINER(notebookpage[cur_page].widget));
while( child ) {
GtkWidget *widget;

widget = GTK_WIDGET(child->data);
gtk_container_remove(
GTK_CONTAINER(notebookpages[cur_page].widget),widget );

fprintf( stderr, "on_notebook_switch_page,
destroy widget:%p", widget);
gtk_widget_destroy( widget );

if( widget )
fprintf( stderr, " widget still referenced:%p\n", widget);
else
fprintf( stderr, "\n" );

child = child->next;
}
create_page_item( notebook, page_n );


example page item created..................................
case HDWR_CONF:
page_item = create_hardware_config();
gtk_container_add(GTK_CONTAINER(notebookpages[page_n].widget),
page_item);


To further enlighten, the widget returded by this routine as with all others does have reference count of at least 1 and sig connect is set for destroy_event on the top-level widget or this one returned.


From seberino@dt092n42.san.rr.com Fri Feb 15 16:10:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 9D758180E4 for ; Fri, 15 Feb 2002 16:10:05 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16bpdA-0003TA-00 for gtk-list@gnome.org; Fri, 15 Feb 2002 13:10:56 -0800 Date: Fri, 15 Feb 2002 13:10:55 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: What means "callback function" and "signal handler" - are they DIFFERENT? Message-ID: <20020215131055.A13335@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I know that signals are tied to functions. These are called "signal handlers" I believe. Is this also called a "callback function" or does that mean something else? Callback seems like a strange name since nothing is being called back to anywhere. chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From Valdis.Kletnieks@vt.edu Fri Feb 15 16:16:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 63CD6180E4 for ; Fri, 15 Feb 2002 16:16:17 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1FLGEVj024456; Fri, 15 Feb 2002 16:16:15 -0500 Message-Id: <200202152116.g1FLGEVj024456@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What means "callback function" and "signal handler" - are they DIFFERENT? In-Reply-To: Your message of "Fri, 15 Feb 2002 13:10:55 PST." <20020215131055.A13335@spawar.navy.mil> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-1993187116P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 15 Feb 2002 16:16:14 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-1993187116P Content-Type: text/plain; charset=us-ascii On Fri, 15 Feb 2002 13:10:55 PST, Chris Seberino said: > Callback seems like a strange name since > nothing is being called back to anywhere. It makes more sense if you think of it like this: 1) Registering your callback is like calling your boss on the phone and saying "Give me a call back if the package from Smith Inc shows up". 2) When the package shows up, you get a call back..... -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_-1993187116P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8bXqecC3lWbTT17ARAmkQAJwMfYsm4oLCo6gyWoxdCLbh6ohLvQCbB6/Z Goxw1r4BLUS1aQx3lVa7pyA= =W6HR -----END PGP SIGNATURE----- --==_Exmh_-1993187116P-- From seberino@dt092n42.san.rr.com Fri Feb 15 16:16:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 040DF180E4 for ; Fri, 15 Feb 2002 16:16:48 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16bpjd-0003UA-00 for gtk-list@gnome.org; Fri, 15 Feb 2002 13:17:37 -0800 Date: Fri, 15 Feb 2002 13:17:32 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing Message-ID: <20020215131731.B13335@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: pthread_t thread; pthread_create(&thread, NULL, (void*) &doSimulation, NULL); Help! I trying to assign a function to a thread in my amateur PThread calls above. Without (void*) before function name I get an error and WITH (void*) I get following warning: warning: ANSI C++ forbids implicit conversion from `void *' in argument passing This would all be harmless except I believe newer GTK+ or something in my Linux distro upgrade causes BOTH (with and without (void*)) to return an error!!! NEITHER WORKS!! Is there someway to fix this to avoid errors and warnings?? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Fri Feb 15 16:27:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9525A1876C for ; Fri, 15 Feb 2002 16:27:24 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-228.fast.net [209.92.60.228]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA23968; Fri, 15 Feb 2002 16:27:18 -0500 (EST) Message-Id: <200202152127.QAA23968@renoir.op.net> To: wdulyea1@excite.com Cc: gtk-list@gnome.org, wdulyea@qualcomm.com Subject: Re: memory leaks (continued) In-reply-to: Your message of "Fri, 15 Feb 2002 15:57:35 EST." <20020215205735.8412E109EB9@xprdmailfe.excite.com> Date: Fri, 15 Feb 2002 16:23:05 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: generic note------- just a quick note to point out that whether you know it or not, the email program you are using is sending out copies of your mail in both plain text and HTML formats. increasingly on the net, there are filters being put in place that silently dump HTML-formatted email. some mailing lists will not ever accept such posts. as long as you do this, you are (1) wasting network bandwidth by sending messages that are typically more than twice as long as they could be (2) making it harder for people using traditional email readers to read them (3) risking the chance that people will never see your mail because its filtered before reaching their email inbox. specific note-------- i cannot even bear to look at your email. if it was plain text, i would have tried to read the code and come up with an answer. --p From pbd@op.net Fri Feb 15 16:30:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BC86E1890D for ; Fri, 15 Feb 2002 16:30:15 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-228.fast.net [209.92.60.228]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA24306; Fri, 15 Feb 2002 16:30:11 -0500 (EST) Message-Id: <200202152130.QAA24306@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing In-reply-to: Your message of "Fri, 15 Feb 2002 13:17:32 PST." <20020215131731.B13335@spawar.navy.mil> Date: Fri, 15 Feb 2002 16:25:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > > pthread_t thread; > > pthread_create(&thread, NULL, (void*) &doSimulation, NULL); the correct declaration for a thread function is: void *the_function_name (void *); if your function is not declared like that, you will need to cast it: pthread_create (&thread, NULL, (void *()(void*)) the_function, NULL); but its generally a bad idea to be calling functions which have the wrong prototype. in ANSI C and C++, you do NOT need to dereference the name of a function object to use it as a pointer: pthread_create(&thread, NULL, doSimulation, NULL); --p From pbd@op.net Fri Feb 15 16:34:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 73F5818A10 for ; Fri, 15 Feb 2002 16:34:36 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-228.fast.net [209.92.60.228]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA24778; Fri, 15 Feb 2002 16:34:33 -0500 (EST) Message-Id: <200202152134.QAA24778@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What means "callback function" and "signal handler" - are they DIFFERENT? In-reply-to: Your message of "Fri, 15 Feb 2002 13:10:55 PST." <20020215131055.A13335@spawar.navy.mil> Date: Fri, 15 Feb 2002 16:30:20 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I know that signals are tied to functions. >These are called "signal handlers" I believe. > >Is this also called a "callback function" or >does that mean something else? > >Callback seems like a strange name since >nothing is being called back to anywhere. "callback" is a somewhat older term that comes from the idea of registering a function (by passing the address of the function) with some object/system; later, when certain conditions arise, the object/system will "call you back" by calling the function you registered, passing (variously) its own arguments and/or any that you supplied when registering it. GTK+ signal handlers are just one example of a callback system; because the GTK+ design adds some additional semantics to the simplest model of a callback system, and for other reasons, they decided to call it something else. BTW, if you're working in C++, I don't know why you're not using gtkmm instead of straight GTK+. its a thin wrapper that provides a much more C++-style idiom for programming in, plus it comes with one of the most awesome and useful callback systems ever written (libsigc++) that uses the power of C++'s template programming to make things possible that have always been (and continue to be) an annoyance in C. --p From sven@gimp.org Fri Feb 15 16:45:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E6B03D.dip.t-dialin.net [217.230.176.61]) by mail.gnome.org (Postfix) with ESMTP id 9B44518CCD for ; Fri, 15 Feb 2002 16:45:45 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16bqAX-00060E-00; Fri, 15 Feb 2002 22:45:25 +0100 To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing References: <20020215131731.B13335@spawar.navy.mil> From: Sven Neumann Date: 15 Feb 2002 22:45:24 +0100 In-Reply-To: <20020215131731.B13335@spawar.navy.mil> Message-ID: Lines: 32 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Chris Seberino writes: > pthread_t thread; > > pthread_create(&thread, NULL, (void*) &doSimulation, NULL); > > Help! I trying to assign a function to a thread in my amateur > PThread calls above. Without (void*) before function name I get > an error and WITH (void*) I get following warning: > > warning: ANSI C++ forbids implicit conversion from `void *' in argument passing > > This would all be harmless except I believe newer GTK+ > or something in my Linux distro upgrade causes BOTH > (with and without (void*)) to return an error!!! > > NEITHER WORKS!! > > Is there someway to fix this to avoid errors and warnings?? yes, make doSimulation a void * function that takes a void * parameter: static void * doSimulation (void *data); or the equivalent glib-style static gpointer doSimulation (gpointer data); Salut, Sven From markrubn@pacbell.net Fri Feb 15 18:31:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by mail.gnome.org (Postfix) with ESMTP id 980EF18C58 for ; Fri, 15 Feb 2002 18:31:17 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRL00MUDLC3C4@mta7.pltn13.pbi.net> for gtk-list@gnome.org; Fri, 15 Feb 2002 15:31:16 -0800 (PST) Date: Fri, 15 Feb 2002 15:30:35 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Havoc Pennington Cc: Ignacio Nodal , GTK-List Message-id: <3C6D9A1B.3DEACEF9@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <3C6CFE41.9080500@teleline.es> <3C6D4C1D.27A3FAF6@pacbell.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington writes: > It depends on the situation. Some approaches are: > > - gtk_signal_handler_block (g_signal_handlers_block, and by_func variants) > - don't do anything in the callback if the value hasn't changed: > if (current_state == gtk_toggle_button_get_active (toggle)) > return; > - fill in the default state of controls before you connect the > callbacks to them > > You can also use a global flag or a flag specific to a class/object, > but I don't like that approach much personally. o I don't like it much, either. (That's why I wrote "it's [still] pretty ugly".) o Thanks for weighing in on this. I didn't know about gtk_signal_handler_block(), etc., and will look into them. Unfortunately, a quick check seems to say they're not exposed in GTK-- (gtkmm), which is what I mostly use. o I need to test the performance of various solutions. Amongst: 1) Set a flag, change the widget, let the signal happen, test the flag. 2) Check current state in callback, do nothing if unchanged. (Requires maintaining a separate copy of the widget state -- isn't the XXX_get_YYY() or the adjustment value already changed by the time you're in the callback?) 3) gtk_signal_handler_block(), change the widget, gtk_signal_handler_unblock() 4) disconnect the signal, change the widget, re-connect the signal my guess is that #1 or #2 are still the most efficient. I do have cases where performance is important. Example: CAD program where user can set the current object's position by inputting x,y in spinbuttons, but can also drag the object around in its drawing area while the spinbuttons display x,y. > Most signals indicate that the state of an object has changed, not > that it has changed due to some specific cause (e.g. user input). > This is the right thing IMO for reasons of conceptual cleanliness; > there would be lots of subtle tricky bugs otherwise. In any case it's > too late to change this aspect of GTK. o I agree on conceptual cleanliness and that it's "too late" (would break huge number of programs). I do wonder what it would take to add a widget specific (and/or global-affect-all-widgets) command to optionally change the behavior to "emit signal only on user input". Default stays the way it is now; no programs break. Someday I'll look through the source and see. o I also have trouble believing that Ignacio Nodal and myself are the only ones who've ever been bitten by this. Screen real estate is always precious, and re-using a widget for input and output always helps (and is easier on the user than "click this togglebutton to change from "input values" to "display values" mode). -- MARK markrubn@pacbell.net From pbd@op.net Fri Feb 15 19:52:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 4BE0B1823C for ; Fri, 15 Feb 2002 19:52:53 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-219.fast.net [209.92.60.219]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id TAA13523; Fri, 15 Feb 2002 19:52:13 -0500 (EST) Message-Id: <200202160052.TAA13523@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Fri, 15 Feb 2002 15:30:35 PST." <3C6D9A1B.3DEACEF9@pacbell.net> Date: Fri, 15 Feb 2002 19:48:02 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >o I also have trouble believing that Ignacio Nodal and myself are the > only ones who've ever been bitten by this. Screen real estate is > always precious, and re-using a widget for input and output always > helps (and is easier on the user than "click this togglebutton to > change from "input values" to "display values" mode). you're not the only ones; i've discussed this issue several times on this list in the past. however, if you're really doing Model-View-Controller style programming, which is highly desirable and it sounds as if you are, then Havoc's suggestion of: handle_widget_state_change () { if (widget->representation_of_object_state() != object->state()) widget->set_state (object->state()); } is the *only* correct route to take here. in my C++ code, i tend to use a void * (aka gpointer) as an extra arg to all functions that change the state of my objects ("models"), an arg i call "src". when the objects emit signals as a result of the change, they include the "src" argument. as a result, widgets ("views" and/or "controllers") can do things like: handle_widget_state_change (void *src) { if (src == this) { /* ignore */ return; } .... } this lets a widget set the state of its underlying object (when acting as a controller), supplying "itself" as the src pointer, and thus ignore any notifications from the object when they are sent following the object's state change. however ... despite the fact that i found this to be a rather elegant solution, i think that there are hardly any places in my code where i make this check, and that number is going down all the time. the explicit comparison of widget state and object state now dominates my code, and it generally feels "right". your suggestion for "emit only on user input" will break proper MVC programming as soon as there are non-X-based methods of changing object or widget state. most of my programs accept MIDI input, for example, that can be used to change object states, and i expect my widgets to follow those changes. unless you provide a way to say "change this GtkAdjustment as if i were a user" and "change this GtkAdjustment as if i were not a user", which is deeply cumbersome, somewhere down the line, there has to be a call to "change this GtkAdjustment", and that *must* emit a signal that can be caught. anything less will, as Havoc intimated, and as i now emphasize, break a good MVC design in many subtle and not so subtle ways. --p From hunchback@netcabo.pt Fri Feb 15 20:30:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id CB05A18106 for ; Fri, 15 Feb 2002 20:30:16 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 01:27:02 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 01:26:52 +0000 Content-Class: urn:content-classes:message From: To: Subject: Signal when window is shown Date: Sat, 16 Feb 2002 01:26:51 -0000 Message-ID: <0c2b01c1b689$02f37910$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2iQLx3to8GCJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 01:27:02.0667 (UTC) FILETIME=[0958BDB0:01C1B689] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, does anyone know what signal is triggered when a window appears? Afonso From pbd@op.net Fri Feb 15 20:43:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 7C2BE1815F for ; Fri, 15 Feb 2002 20:43:07 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-219.fast.net [209.92.60.219]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA17501; Fri, 15 Feb 2002 20:43:04 -0500 (EST) Message-Id: <200202160143.UAA17501@renoir.op.net> To: hunchback@netcabo.pt Cc: gtk-list@gnome.org Subject: Re: Signal when window is shown In-reply-to: Your message of "Sat, 16 Feb 2002 01:26:51 GMT." <0c2b01c1b689$02f37910$0814a8c0@netcabo.net> Date: Fri, 15 Feb 2002 20:38:53 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >does anyone know what signal is triggered when a window appears? realize show map the first one is only emitted when the window is first shown; the second is emitted for any call to gtk_widget_show() on the window; the third is called any time the window has been unmapped (e.g. minimized or the WM switched workspaces) and its now displayed again. --p From iain@ximian.com Fri Feb 15 20:52:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from peabody.ximian.com (peabody.ximian.com [141.154.95.10]) by mail.gnome.org (Postfix) with ESMTP id C7B5D1823B for ; Fri, 15 Feb 2002 20:52:24 -0500 (EST) Received: (qmail 7143 invoked from network); 16 Feb 2002 01:52:24 -0000 Received: from peabody.ximian.com (HELO localhost.localdomain) (141.154.95.10) by peabody.ximian.com with SMTP; 16 Feb 2002 01:52:24 -0000 Subject: Re: memory leaks (continued) From: iain To: wdulyea1@excite.com Cc: gtk-list@gnome.org, wdulyea@qualcomm.com In-Reply-To: <20020215205735.8412E109EB9@xprdmailfe.excite.com> References: <20020215205735.8412E109EB9@xprdmailfe.excite.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Ximian, Inc X-Mailer: Evolution/1.1.0.99 (Preview Release) Date: 16 Feb 2002 02:53:25 +0000 Message-Id: <1013828006.2185.0.camel@discomachinegun.prettypeople.org> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Fri, 2002-02-15 at 20:57, wdulyea1@excite.com wrote: An expansion to an earlier mail I sent... In this code snippet below I can observ that removing(destroying) container widgets does not have the desired effect. Please comment:> What specific reason do you need to delete the widgets on a page when the page is changed? iain -- "All men of conscience or prudence ply to windward, to maintain their wars to be defensive." -- Roger Williams From hunchback@netcabo.pt Fri Feb 15 21:00:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id D6CDA1879F for ; Fri, 15 Feb 2002 21:00:30 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 01:57:12 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 01:57:01 +0000 Content-Class: urn:content-classes:message From: To: "Paul Davis" Cc: Subject: RE: Signal when window is shown Date: Sat, 16 Feb 2002 01:57:01 -0000 Message-ID: <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2jTmq3to+YCJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 01:57:12.0550 (UTC) FILETIME=[401EF860:01C1B68D] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >realize i tried it but it never happens! >show i tried it but nothing happened again... >map i tried the map_event and it worked, but not on the first time.. i have a drawing area and i want to draw somethings on it when the = window appears, but nothing is working! the only one that entered the = signal handler was the map_event, but the first time it entered the = signal handler it didn't paint, only on the second time. From pbd@op.net Fri Feb 15 21:03:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 4023C18D24 for ; Fri, 15 Feb 2002 21:03:58 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-219.fast.net [209.92.60.219]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id VAA19158; Fri, 15 Feb 2002 21:03:55 -0500 (EST) Message-Id: <200202160203.VAA19158@renoir.op.net> To: hunchback@netcabo.pt Cc: gtk-list@gnome.org Subject: Re: Signal when window is shown In-reply-to: Your message of "Sat, 16 Feb 2002 01:57:01 GMT." <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> Date: Fri, 15 Feb 2002 20:59:44 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>realize > >i tried it but it never happens! > >>show > >i tried it but nothing happened again... > >>map > >i tried the map_event and it worked, but not on the first time.. > >i have a drawing area and i want to draw somethings on it when the window appe >ars, but nothing is working! the only one that entered the signal handler was >the map_event, but the first time it entered the signal handler it didn't pain >t, only on the second time. you must be making a mistake at a different level. realize is always emitted for every widget with a GdkWindow (e.g. a GtkWindow) - nothing can be drawn unless the widget is realized, and being realized emits that signal. are you sure you connected to the correct signals at the correct time? --p From rsteinke@w-link.net Fri Feb 15 21:09:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id F064E18759 for ; Fri, 15 Feb 2002 21:09:19 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16buHu-0008PS-00; Fri, 15 Feb 2002 18:09:18 -0800 Date: Fri, 15 Feb 2002 18:09:18 -0800 From: rsteinke@w-link.net To: hunchback@netcabo.pt, pbd@Op.Net Subject: Re: Signal when window is shown Cc: gtk-list@gnome.org Message-ID: <3C6DBF4E.nailOUA11K7IM@w-link.net> References: <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> In-Reply-To: <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: > > >realize > > i tried it but it never happens! > > >show > > i tried it but nothing happened again... > > >map > > i tried the map_event and it worked, but not on the first time.. > > i have a drawing area and i want to draw somethings on it when the > window appears, but nothing is working! the only one that entered > the signal handler was the map_event, but the first time it > entered the signal handler it didn't paint, only on the second time. You need to do your drawing in the expose handler. All drawing comes after the window has been mapped to the screen. Ron Steinke From hunchback@netcabo.pt Fri Feb 15 21:19:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 0657118D2C for ; Fri, 15 Feb 2002 21:19:03 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 02:15:49 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 02:15:38 +0000 Content-Class: urn:content-classes:message From: To: Cc: Subject: RE: Signal when window is shown Date: Sat, 16 Feb 2002 02:15:38 -0000 Message-ID: <0f9201c1b68f$d35fbd10$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2j9Nd3to/niJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 02:15:49.0599 (UTC) FILETIME=[D9EF1EF0:01C1B68F] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >You need to do your drawing in the expose handler. All drawing comes = after >the window has been mapped to the screen. when i tried the expose_event the program occurs segmentation fault when = it tries to paint... From hunchback@netcabo.pt Fri Feb 15 21:24:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id CAF2418D4A for ; Fri, 15 Feb 2002 21:24:02 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 02:20:49 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 02:20:38 +0000 Content-Class: urn:content-classes:message From: To: Cc: Subject: RE: Signal when window is shown Date: Sat, 16 Feb 2002 02:20:38 -0000 Message-ID: <0fd601c1b690$86112160$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2kIYR3to/1yJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 02:20:49.0267 (UTC) FILETIME=[8C8CD430:01C1B690] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >You need to do your drawing in the expose handler. All drawing comes = after >the window has been mapped to the screen. >when i tried the expose_event the program occurs segmentation fault = when it tries >to paint... ups.. sorry, my mistake, it doesn't crash anymore, but it stell doesn't = paint... the window is all grey like if it was a new window with nothing = in... Afonso From rsteinke@w-link.net Fri Feb 15 21:27:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id A98BE18D87 for ; Fri, 15 Feb 2002 21:27:38 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16buZd-0008TS-00; Fri, 15 Feb 2002 18:27:37 -0800 Date: Fri, 15 Feb 2002 18:27:37 -0800 From: rsteinke@w-link.net To: hunchback@netcabo.pt Subject: Re: Signal when window is shown Cc: gtk-list@gnome.org Message-ID: <3C6DC399.nailP4K1548Z3@w-link.net> References: <0f9201c1b68f$d35fbd10$0814a8c0@netcabo.net> In-Reply-To: <0f9201c1b68f$d35fbd10$0814a8c0@netcabo.net> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: hunchback@netcabo.pt > > >You need to do your drawing in the expose handler. All drawing comes after > >the window has been mapped to the screen. > > when i tried the expose_event the program occurs segmentation fault > when it tries to paint... That's probably an error with your code. Try commenting out everything except for the "return" statement at the end of the function, and it shouldn't seg fault. (Of course, it won't draw either). Then go back and add your code a piece at a time until you find the error. Ron Steinke P.S. Please try to stick line breaks in your messages every 60-70 characters. From scherfa@web.de Sat Feb 16 04:44:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id F367F18137 for ; Sat, 16 Feb 2002 04:44:40 -0500 (EST) Received: from [143.93.58.13] (helo=rmpc11.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.25 #15) id 16c1OL-0001Ti-00 for gtk-list@gnome.org; Sat, 16 Feb 2002 10:44:26 +0100 Subject: GIOChannel + GtkTreeModel length From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 16 Feb 2002 10:43:33 +0100 Message-Id: <1013852614.1080.4.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, i want to transfer some printing datas via a giochannel to the lpr system command. Today i'm doing that via pipes and closed stdout ... How could i do that via the giochannel support ? Any hints ? 2. Is there a method for getting the number of lines from a GtkTreeModel like the clist->rows element in gtk1.2 ?? Thats because i want to get the number of lines before catching all row datas via gtk_tree_model_iter_next(GTK_TREE_MODEL(p_obj->main_list),&iter) So how could i get the number of rows before ?? Thanks Andreas -- Andreas Scherf ICQ: 52910964 scherfa@web.de From leidola@newcon.de Sat Feb 16 05:36:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 7354A1819E for ; Sat, 16 Feb 2002 05:36:35 -0500 (EST) Received: from [213.70.108.66] ([213.70.108.66]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id LAA09228 for ; Sat, 16 Feb 2002 11:36:36 +0100 Subject: Re: GIOChannel + GtkTreeModel length From: Olaf Leidinger To: GTK Mailing List Content-Type: multipart/mixed; boundary="=-s+xrUELm2124OVdCIE+9" X-Mailer: Evolution/0.12 (Preview Release) Date: 16 Feb 2002 11:39:26 +0100 Message-Id: <1013855967.880.50.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-s+xrUELm2124OVdCIE+9 Content-Type: text/plain Content-Transfer-Encoding: 7bit --=-s+xrUELm2124OVdCIE+9 Content-Disposition: inline Content-Description: Weitergeleitete Nachricht - Re: GIOChannel + GtkTreeModel length Content-Type: message/rfc822 Subject: Re: GIOChannel + GtkTreeModel length From: Olaf Leidinger To: Andreas Scherf In-Reply-To: <1013852614.1080.4.camel@xerxes> References: <1013852614.1080.4.camel@xerxes> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 16 Feb 2002 11:37:41 +0100 Message-Id: <1013855861.880.48.camel@attic> Mime-Version: 1.0 X-Evolution-Account: leidola@newcon.de X-Evolution-Source: X-Evolution: 00000063-0010 Am 16 Feb 2002 10:43:33 +0100 schrieb Andreas Scherf: > Hello, > i want to transfer some printing datas via a giochannel to the lpr > system command. Today i'm doing that via pipes and closed stdout ... > How could i do that via the giochannel support ? Any hints ? > 2. Is there a method for getting the number of lines from a GtkTreeModel > like the clist->rows element in gtk1.2 ?? Thats because i want to get > the number of lines before catching all row datas via > gtk_tree_model_iter_next(GTK_TREE_MODEL(p_obj->main_list),&iter) > So how could i get the number of rows before ?? > > Thanks > Andreas > -- > Andreas Scherf > ICQ: 52910964 > scherfa@web.de > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > 1. GIOChannel You can run lpr using something like this bRunning = g_spawn_async_with_pipes (NULL, /* workingdir*/ gargv, /* arguments*/ NULL, /* enviroment*/ G_SPAWN_SEARCH_PATH | /* options */ G_SPAWN_LEAVE_DESCRIPTORS_OPEN, NULL, /* creationfunc*/ NULL, /* daten */ &pid, /* pid */ &in_desc, /* stdin*/ &out_desc, /* stdo*/ &err_desc, /* stderr*/ NULL); /* error*/ Your gargv sould be something like gchar *gargv[2] = {"lpr", NULL}; or similar. You can also use the g_spawn_sync_with_pipes function. It depends on what you need. Now you can create the io_channels. if (in_desc) { io_in = g_io_channel_unix_new (in_desc); event_id1 = g_io_add_watch (io_in, G_IO_OUT, write_func, data); event_id2 = g_io_add_watch (io_in, G_IO_HUP, hup_func, data); } These watches are callbacks for the io_channels. You don't have to createe them. Again, it depends on what you need. But keep one thing in mind. When you use g_io_add_watch you have to remove this watch from the main event loop (or however it is called) again using the g_source_remove function. Otherwise there will be some problems when you close the channel again. That's why you have to store the event_ids somewhere. You might create a structure or an array where you save them and pass it to the hup_func as data. Oh yes, some variables you might need gboolean brunning = FALSE; GIOChannel *io_in = NULL; gint pid = 0, in_desc = 0, out_desc = 0, /*don't know whether you need them*/ err_desc = 0; /*don't know whether you need them*/ 2. Tree Don't know, sorry *g* Ciao Olaf --=-s+xrUELm2124OVdCIE+9-- From inodal@teleline.es Sat Feb 16 06:09:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp3.ldap.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 4F25718324 for ; Sat, 16 Feb 2002 06:09:25 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp3.ldap.isp (Netscape Messaging Server 4.15 tsmtp3 Jul 26 2001 13:10:38) with ESMTP id GRMHMT02.547 for ; Sat, 16 Feb 2002 12:08:53 +0100 Message-ID: <3C6E3DE7.8090404@teleline.es> Date: Sat, 16 Feb 2002 11:09:27 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: Dialog Window Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sometime ago someone told how to make a "dialog window" to get the control of the application.. I mean the dialog window being the only one to have the focus until it's closed/hided... I just can't find that mail anymore.. could anyone remind me how to do this? :) Thanks, Ignacio From npravin@servihoo.com Sat Feb 16 08:29:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servihoo.com (mail.servihoo.com [202.123.2.125]) by mail.gnome.org (Postfix) with ESMTP id 3AE0018173 for ; Sat, 16 Feb 2002 08:29:34 -0500 (EST) Received: from [202.123.10.104] (account ) by servihoo.com (CommuniGate Pro WebUser 3.3) with HTTP id 2806414 for ; Sat, 16 Feb 2002 17:26:56 +0400 From: "Pravin Nowbuth" Subject: compiling rpc and gtk To: X-Mailer: CommuniGate Pro Web Mailer v.3.3 Date: Sat, 16 Feb 2002 17:26:56 +0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi guys, Could anyone tell me how to compile a gtk C program making use of RPC. In fact, I'm using RPC in a client-server based application. I've an interface file named "file.x", and obtained the follwing files file_client.c file_server.c and so on. The client makes RPC calls to the server I'm thinking of providing a GUI to the client. therfore, i have added gtk codes to the client file. But the problem is how to compile the client file. Will it work? can I provide a GUI using gtk at all !! -------------------------------------------------- Get your free email address from Servihoo.com! http://www.servihoo.com The Portal of Mauritius From pbd@op.net Sat Feb 16 09:16:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BA6E1181C5 for ; Sat, 16 Feb 2002 09:16:22 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-149.phlpa.fast.net [209.92.99.149]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA03714; Sat, 16 Feb 2002 09:16:20 -0500 (EST) Message-Id: <200202161416.JAA03714@renoir.op.net> To: Ignacio Nodal Cc: GTK-List Subject: Re: Dialog Window In-reply-to: Your message of "Sat, 16 Feb 2002 11:09:27 GMT." <3C6E3DE7.8090404@teleline.es> Date: Sat, 16 Feb 2002 09:12:16 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Sometime ago someone told how to make a "dialog window" to get the >control of the application.. gtk_window_set_modal From inodal@teleline.es Sat Feb 16 11:11:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp2.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 7B6AC18A83 for ; Sat, 16 Feb 2002 11:11:43 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp2.mail.isp (Netscape Messaging Server 4.15 tsmtp2 Jul 26 2001 13:10:38) with ESMTP id GRMVMF00.LED for ; Sat, 16 Feb 2002 17:11:03 +0100 Message-ID: <3C6E84C5.1050706@teleline.es> Date: Sat, 16 Feb 2002 16:11:49 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 Cc: GTK-List Subject: Re: Dialog Window References: <200202161416.JAA03714@renoir.op.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis wrote: >>Sometime ago someone told how to make a "dialog window" to get the >>control of the application.. >> > > gtk_window_set_modal Mmmm, I didn't explain myself very good... My program has a main window with a GtkGLArea waiting impatiently for events to occur on it... Then I have a window (I call it file_name_window) to select the file I want to load into my GtkGLArea.. This window has just a GtkEntry, an "OK" and a "CANCEL" button, and a "BROWSE" button that being clicked opens a GtkFileSelection Window. When the file is selected (in the GtkFileSelection) it updates my file_name_window's entry. If I use gtk_window_set_modal() I cannot interact with the GtkFileSelection Window... What I want to avoid is my GtkGLArea catchin' events while I select a file. I thought it would have to do with gtk_window_set_transitent_for, but this function just keeps my "file_name_window" on top of the main window, which continues receiving events.. How should I proceed? Thanks again.. From inimss@yahoo.com Sat Feb 16 12:00:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ekm.asianetonline.net (unknown [202.88.231.2]) by mail.gnome.org (Postfix) with ESMTP id 0709118C6C for ; Sat, 16 Feb 2002 12:00:06 -0500 (EST) Received: from dino ([202.88.225.117]) by ekm.asianetonline.net (Netscape Messaging Server 4.15) with SMTP id GRMWB000.770; Sat, 16 Feb 2002 11:25:48 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: Paul Davis , Ignacio Nodal Subject: Re: Dialog Window Date: Sat, 16 Feb 2002 21:51:10 +0530 X-Mailer: KMail [version 1.2] Cc: GTK-List References: <200202161416.JAA03714@renoir.op.net> In-Reply-To: <200202161416.JAA03714@renoir.op.net> MIME-Version: 1.0 Message-Id: <02021621511000.16869@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi But it doesn't make the dialog window to stay on top of the parent window. I agree that it has the full input focus, but we can click on the parent window, even when the dialog window is visible. How can we fix that too? Will gtk_window_set_transient_for help? Thanks Dino CK On Saturday 16 February 2002 19:42, Paul Davis wrote: > >Sometime ago someone told how to make a "dialog window" to get the > >control of the application.. > > gtk_window_set_modal > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From inodal@teleline.es Sat Feb 16 12:09:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp8.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id AE95718C23 for ; Sat, 16 Feb 2002 12:09:23 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp8.mail.isp (Netscape Messaging Server 4.15 tsmtp8 Jul 26 2001 13:10:38) with ESMTP id GRMYAJ01.LPN; Sat, 16 Feb 2002 18:08:43 +0100 Message-ID: <3C6E9249.2070508@teleline.es> Date: Sat, 16 Feb 2002 17:09:29 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: Dino Cherian K Cc: GTK-List Subject: Re: Dialog Window References: <200202161416.JAA03714@renoir.op.net> <02021621511000.16869@dino> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes, I think gtk_window_set_transient_for is what you are looking for... In addition to gtk_window_set_modal your dialog window will stay on top and have the main control... The pity is, what I'm looking for is something a bit different... :( (already sent in a diferent mail) Ciao Dino Cherian K wrote: > Hi > > But it doesn't make the dialog window to stay on top of the parent window. I > agree that it has the full input focus, but we can click on the parent > window, even when the dialog window is visible. > > How can we fix that too? Will gtk_window_set_transient_for help? > > Thanks > Dino CK > > On Saturday 16 February 2002 19:42, Paul Davis wrote: > >> >Sometime ago someone told how to make a "dialog window" to get the >> >control of the application.. >> >> gtk_window_set_modal From azra_chauhdary@yahoo.com Sat Feb 16 13:59:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14801.mail.yahoo.com (web14801.mail.yahoo.com [216.136.224.217]) by mail.gnome.org (Postfix) with SMTP id BB08818221 for ; Sat, 16 Feb 2002 13:59:25 -0500 (EST) Message-ID: <20020216185924.69106.qmail@web14801.mail.yahoo.com> Received: from [202.179.146.4] by web14801.mail.yahoo.com via HTTP; Sat, 16 Feb 2002 10:59:24 PST Date: Sat, 16 Feb 2002 10:59:24 -0800 (PST) From: azra yasin Subject: how to open terminal To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: wat is the command to open ther command line terminal from gtk program __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From pbd@op.net Sat Feb 16 14:12:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BC4401829F for ; Sat, 16 Feb 2002 14:12:42 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-149.phlpa.fast.net [209.92.99.149]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA22481; Sat, 16 Feb 2002 14:12:39 -0500 (EST) Message-Id: <200202161912.OAA22481@renoir.op.net> To: azra yasin Cc: gtk-list@gnome.org Subject: Re: how to open terminal In-reply-to: Your message of "Sat, 16 Feb 2002 10:59:24 PST." <20020216185924.69106.qmail@web14801.mail.yahoo.com> Date: Sat, 16 Feb 2002 14:08:38 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >wat is the command to open ther command line terminal >from gtk program there is no such command. there is no single program that is a command line terminal. "xterm", "rxvt", "eterm" are just 3 of the possibilities. you should probably read up on the fork(2), exec(2) and/or system(3) calls. this has nothing to do with GTK, so i suggest you find a general unix programming mailing list or forum to ask your question. --p From markrubn@pacbell.net Sat Feb 16 14:31:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by mail.gnome.org (Postfix) with ESMTP id B85C018D9F for ; Sat, 16 Feb 2002 14:31:59 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRN00JW14X5WN@mta6.snfc21.pbi.net> for gtk-list@gnome.org; Sat, 16 Feb 2002 11:31:54 -0800 (PST) Date: Sat, 16 Feb 2002 11:31:08 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Paul Davis Cc: Havoc Pennington , Ignacio Nodal , GTK-List Message-id: <3C6EB37C.91043A41@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202160052.TAA13523@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > you're not the only ones; i've discussed this issue several times on > this list in the past. o Thanks for your analyses (below). As I said originally, I've searched the archives for this, but never found the right keywords. Could you provide some "Subject:" lines? Searching for your name doesn't help -- you post too much to the lists. (This is a compliment, not a complaint.) > however, if you're really doing > Model-View-Controller style programming, which is highly desirable and > it sounds as if you are, then Havoc's suggestion of: > > handle_widget_state_change () { > if (widget->representation_of_object_state() != object->state()) > widget->set_state (object->state()); > } > > is the *only* correct route to take here. o I (possibly mis-) read Havoc's: > if (current_state == gtk_toggle_button_get_active (toggle)) > return; a little differently. If his "current_state" is your "object->state()" (which makes more sense than my interpretation of "widget->previous_state()"), and if "handle_widget_state_change()" is a GTK signal-handler/callback, I would think it should be: handle_widget_state_change () { if (widget->representation_of_object_state() != object->state()) object->set_state (widget->state()); } in order to break the feedback loop that causes me problems: 1) object ("Model") state changes 2) object changes widget X ("View") state 3) widget X is also a "Controller", thus emits a signal which is caught by a signal handler which changes object's state 4) loop back to 1) > in my C++ code, i tend to use a void * (aka gpointer) as an extra arg > to all functions that change the state of my objects ("models"), an > arg i call "src". when the objects emit signals as a result of the > change, they include the "src" argument. as a result, widgets ("views" > and/or "controllers") can do things like: > > handle_widget_state_change (void *src) { > if (src == this) { > /* ignore */ > return; > } > .... > } > > this lets a widget set the state of its underlying object (when acting > as a controller), supplying "itself" as the src pointer, and thus > ignore any notifications from the object when they are sent following > the object's state change. o Is the "this" in the above code fragment the object (Model) or the widget (View/Controller)? If object/Model, I don't understand because mine don't emit signals (widgets/Controllers emit signals; objects/Models do things like gtk_toggle_button_set_active()). If "this" is the widget/Controller, when "src==this" is exactly when the action should take place. -- MARK markrubn@pacbell.net From pbd@op.net Sat Feb 16 14:58:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D437818109 for ; Sat, 16 Feb 2002 14:58:42 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-38.phlpa.fast.net [209.92.99.38]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA25474; Sat, 16 Feb 2002 14:56:41 -0500 (EST) Message-Id: <200202161956.OAA25474@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Sat, 16 Feb 2002 11:31:08 PST." <3C6EB37C.91043A41@pacbell.net> Date: Sat, 16 Feb 2002 14:52:41 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: one other comment. its worth being very careful to make sure that the Model does not emit "my state changed" signals just because "set_state()" was called upon it. i.e. actually check to make sure that the new state really is different from the old before emitting the changed signal. this may seem obvious to you - it wasn't to me. --p From pbd@op.net Sat Feb 16 15:03:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id AB2CD1858C for ; Sat, 16 Feb 2002 15:03:12 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-38.phlpa.fast.net [209.92.99.38]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA25307; Sat, 16 Feb 2002 14:52:32 -0500 (EST) Message-Id: <200202161952.OAA25307@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Sat, 16 Feb 2002 11:31:08 PST." <3C6EB37C.91043A41@pacbell.net> Date: Sat, 16 Feb 2002 14:48:32 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > searched the archives for this, but never found the right > keywords. Could you provide some "Subject:" lines? Searching for try "MVC" in the body, since i usually use that acronym when discussing this. > a little differently. If his "current_state" is your > "object->state()" (which makes more sense than my interpretation of > "widget->previous_state()"), and if "handle_widget_state_change()" > is a GTK signal-handler/callback, I would think it should be: > > handle_widget_state_change () { > if (widget->representation_of_object_state() != object->state()) > object->set_state (widget->state()); > } yes, thats right. i wasn't being careful enough as i tuped that in. sorry about that. >> handle_widget_state_change (void *src) { >> if (src == this) { >> /* ignore */ >> return; >> } >> .... >> } >> >> this lets a widget set the state of its underlying object (when acting >> as a controller), supplying "itself" as the src pointer, and thus >> ignore any notifications from the object when they are sent following >> the object's state change. > >o Is the "this" in the above code fragment the object (Model) or the > widget (View/Controller)? If object/Model, I don't understand > because mine don't emit signals (widgets/Controllers emit signals; > objects/Models do things like gtk_toggle_button_set_active()). If > "this" is the widget/Controller, when "src==this" is exactly when > the action should take place. sorry. i work in C++ and i use libsigc++ which offers me a superb system for writing MVC programs. the "this" i used above refers to the thing "on whose behalf" a member function is beind called. its an "implicit" argument in all C++ member functions.my objects all attempt to remain anonymous and ignorant of who has registered an interest in their state changes, which libsigc++ makes *phenomenally* easy to do. so, suppose we have a true MVC system that includes: Controller::do_something_to_model (Model *model) { model->set_state (foo, this); } this causes "object" to emits its "StateChanged" signal. Now, suppose that we have a view hooked up to the signal, with a handler: View::handle_model_state_change (void *src) { if (src == this) { /* we initiated the state change in the model, so presumably our visual appearance is up- to-date. relax. */ return; } ... something else changed the model's state ... ... make our appearance reflect the model's state ... } now, as you have noted, its common to use a single widget as both a "controller" and a "view". in that case, you'd have ControllerView::do_something_to_model (Model *model) { model->set_state (foo, this); ... change visual appearance if appropriate ... } this would presumably be called because of some GUI event (e.g. a button click). We will still have: ControllerView::handle_model_state_change (void *src) { } but this time, we will find out that the "src" of the change is ourselves. Presumably, our appearance is already correct (we responded to that in do_something_to_model(), so we can just return. Does this make this style any clearer? As I say, I've found that I've managed to avoid this by comparing model state to view state, but its still useful occasionally. There are other ways of tackling what ControllerView::do_something_to_model() does - its worth reading up on MVC programming and/or "Design Patterns" to get a handle on some of them. --p From pbd@op.net Sat Feb 16 15:16:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from op.net (maxtnt05-38.phlpa.fast.net [209.92.99.38]) by mail.gnome.org (Postfix) with ESMTP id 0E6B418250 for ; Sat, 16 Feb 2002 15:16:42 -0500 (EST) Received: (from pbd@localhost) by op.net (8.10.1/8.10.1) id g1GKCfV07425; Sat, 16 Feb 2002 15:12:41 -0500 Date: Sat, 16 Feb 2002 15:12:41 -0500 Message-Id: <200202162012.g1GKCfV07425@op.net> From: Paul Davis To: gtk-list@gnome.org Subject: can someone remove this chinese spammer? Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: i'm not clear on where else to send this - its admin related, but gtk-list-request doesn't seem right. most times i write to gtk-list, i get the message shown below. could someone arrange to remove what is subscribed at sina.com that is generating this? --p Received: from mail.op.net by localhost with POP3 (fetchmail-5.1.0) for pbd@localhost (single-drop); Sat, 16 Feb 2002 15:08:19 -0500 (EST) Received: from sina.com ([202.106.187.189]) by renoir.op.net (o1/$Revision: 1.18 $) with SMTP id PAA25933 for ; Sat, 16 Feb 2002 15:04:30 -0500 (EST ) Received: (qmail 16372 invoked by uid 99); 16 Feb 2002 20:11:17 -0000 Date: 16 Feb 2002 20:11:17 -0000 Message-ID: <20020216201117.16371.qmail@sina.com> From: gtk-list@gnome.org To: pbd@op.net Subject: gtk-list@gnome.orgµÄ×Ô¶¯»ØÐÅ ÒÑÊÕµ½£¬ÇëÄúÄÍÐĵȺò»ØÒô¡£ heface =================================================================== Ãâ·Ñµç×ÓÓÊÏä http://home.sina.com.cn From markrubn@pacbell.net Sat Feb 16 17:52:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id 48C32181A1 for ; Sat, 16 Feb 2002 17:52:48 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRN00AVGE7YXS@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Sat, 16 Feb 2002 14:52:47 -0800 (PST) Date: Sat, 16 Feb 2002 14:52:00 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Paul Davis Cc: Havoc Pennington , Ignacio Nodal , GTK-List Message-id: <3C6EE290.E0C54F64@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202161952.OAA25307@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > try "MVC" in the body, since i usually use that acronym when > discussing this. o 84 hits. I'll read them. Thanks. > > handle_widget_state_change () { > > if (widget->representation_of_object_state() != object->state()) > > object->set_state (widget->state()); > > } > > yes, thats right. i wasn't being careful enough as i tuped that > in. sorry about that. o No problem. Glad I'm not (totally) crazy. o This is obviously one of the workable solutions. The two relatively minor things I don't like about it are: 1) object->state() is an additional requirement on the Model object's public interface. Conceptually, what business does a View widget have knowing about the Model? It should just be told what to display. 2) Potential mismatch between Model object's internal state and View widget's represention of same. Example: Model keeps double values, GtkAdjustment uses gfloats. Or: Model keeps HTML/RTF/internationalized text, GtkText uses GtkText(??), some HTML widget uses HTML, so Model has to export multiple types of state (or maybe multiple overloads of operator!=()). > >> handle_widget_state_change (void *src) { > >> if (src == this) { > >> /* ignore */ > >> return; > >> } > >> .... > >> } > >> > ... > >o Is the "this" in the above code fragment the object (Model) or the > > widget (View/Controller)? If object/Model, I don't understand > > because mine don't emit signals (widgets/Controllers emit signals; > > objects/Models do things like gtk_toggle_button_set_active()). If > > "this" is the widget/Controller, when "src==this" is exactly when > > the action should take place. > > sorry. i work in C++ and i use libsigc++ which offers me a superb > system for writing MVC programs. the "this" i used above refers to the > thing "on whose behalf" a member function is beind called. its an > "implicit" argument in all C++ member functions. o I also use gtk++(gtkmm) and libsigc++. I think some of the nomenclature confusion here is because we're all translating back and forth between C/GTK and C++/GTK--. o In C++ terms, my question was really "is the above handle_widget_state_change() a method of the object/Model class, or of the widget/View/Controller class"? o In any case, I'm going to switch to the nomenclature you're using below. > my objects all attempt > to remain anonymous and ignorant of who has registered an interest in > their state changes, which libsigc++ makes *phenomenally* easy to > do. so, suppose we have a true MVC system that includes: > > Controller::do_something_to_model (Model *model) > { > model->set_state (foo, this); > } > > this causes "object" to emits its "StateChanged" signal. o Is "object" the Controller, or the Model? o Bigger question: Do you use libsigc++ signals for *all* your MVC communication (both Controller-to-Model and Model-to-View)? o I don't. I use it for Controller-to-Model: Model::Model() : _state1(false) { _togglebutton1 .toggled .connect(bind(slot(*this, &Model::button1_toggled), &_togglebutton1)) ; } Model::button1_toggled( const Gtk::ToggleButton *togglebutton) { _state1 = togglebutton->get_active() ; } o But for Model-to-View I just directly call the gtkmm methods: Model::some_method() { _state1 = some_computation() ; _togglebutton1.set_active(_state1) ; } o I don't write my own methods for Views and Controllers -- they're just gtkmm widgets, used as-is. I don't derive from them and extend/override (except for Gtk::DrawingArea). o So my Model objects never emit signals (they just receive them) and my View/Controller objects never receive signals (just emit). If yours go "both ways" it would explain my confusion over your (otherwise clear) descriptions. o I'm going to table further questions pending an understanding of this, and a review of the list archives and the Gang Of Four book. -- MARK markrubn@pacbell.net From pbd@op.net Sat Feb 16 18:02:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 28A3C1829B for ; Sat, 16 Feb 2002 18:02:13 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-163.phlpa.fast.net [209.92.96.163]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id SAA07624; Sat, 16 Feb 2002 18:00:12 -0500 (EST) Message-Id: <200202162300.SAA07624@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Sat, 16 Feb 2002 14:52:00 PST." <3C6EE290.E0C54F64@pacbell.net> Date: Sat, 16 Feb 2002 17:56:14 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > 1) object->state() is an additional requirement on the Model > object's public interface. Conceptually, what business does a > View widget have knowing about the Model? It should just be > told what to display. well, it has to have access to whatever parts of the state are required to display the state. > 2) Potential mismatch between Model object's internal state and > View widget's represention of same. Example: Model keeps > double values, GtkAdjustment uses gfloats. Or: Model keeps > HTML/RTF/internationalized text, GtkText uses GtkText(??), some > HTML widget uses HTML, so Model has to export multiple types of > state (or maybe multiple overloads of operator!=()). this can certainly become a problem. >> Controller::do_something_to_model (Model *model) >> { >> model->set_state (foo, this); >> } >> >> this causes "object" to emits its "StateChanged" signal. > >o Is "object" the Controller, or the Model? its the Model. >o Bigger question: Do you use libsigc++ signals for *all* your MVC > communication (both Controller-to-Model and Model-to-View)? yes, for everything. >o But for Model-to-View I just directly call the gtkmm methods: > > Model::some_method() > { > _state1 = some_computation() ; > _togglebutton1.set_active(_state1) ; > } that breaks the anonymity principle. a Model should have *zero* knowledge of the View or Controllers. if you don't do this, you cannot have multiple Views, for example, and you can't reimplement the View without reimplementing the Model. having the Model drive the View directly is not really MVC, and in my experience, not very good OOP either. >o I don't write my own methods for Views and Controllers -- they're > just gtkmm widgets, used as-is. I don't derive from them and > extend/override (except for Gtk::DrawingArea). I generally find that I have to connect to to button press/release and keypress signals and so forth, but i rarely override them. the main hack i have to do is to call gtk_signal_emit_stop_by_name() because a button press on a widget drives a change of visual appearance in the widget that cannot happen until the Model state change actually takes place (and it may never take place for reasons that the Controller doesn't know about). --p From markrubn@pacbell.net Sat Feb 16 19:53:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id 5D1B8188F7 for ; Sat, 16 Feb 2002 19:53:49 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRN00AJDJTOXR@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Sat, 16 Feb 2002 16:53:48 -0800 (PST) Date: Sat, 16 Feb 2002 16:53:01 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Paul Davis Cc: Havoc Pennington , Ignacio Nodal , GTK-List Message-id: <3C6EFEED.46F2F542@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202162300.SAA07624@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > 1) object->state() is an additional requirement on the Model > > object's public interface. Conceptually, what business does a > > View widget have knowing about the Model? It should just be > > told what to display. > > well, it has to have access to whatever parts of the state are > required to display the state. o Or, in my case, not. I have a Model which knows about and tells a View what to display. (I think) you have a View which knows about a Model and queries it for a value. Either way there's a binding. o From http://www.ootips.org/mvc-pattern.html (which I found via an archived thread of yours from over a year ago): > The model, viewport and controller are intimately related and in > constant contact. Therefore, they must reference each other. o The discussion goes on about the strongly- and weakly-typed knowledge the classes have of each other. See below. > >o But for Model-to-View I just directly call the gtkmm methods: > > > > Model::some_method() > > { > > _state1 = some_computation() ; > > _togglebutton1.set_active(_state1) ; > > } > > that breaks the anonymity principle. a Model should have *zero* > knowledge of the View or Controllers. if you don't do this, you cannot > have multiple Views, Model::some_method() { _state1 = some_computation() ; _togglebutton1.set_active(_state1) ; _reverse_togglebutton2.set_active(!_state1) ; } > for example, and you can't reimplement the View > without reimplementing the Model. having the Model drive the View > directly is not really MVC, and in my experience, not very good OOP either. o Nomenclature, nomenclature. I thought a Gtk::ToggleButton was a View (also a Controller). My "Model::some_method()" above is really called "Gui::some_method()", so maybe what I've been calling Model is really a (composite) View. o If not -- if Views are solely gtkmm widgets, not some class which contains them as member objects -- and: > >o Bigger question: Do you use libsigc++ signals for *all* your MVC > > communication (both Controller-to-Model and Model-to-View)? > > yes, for everything. o And: > I generally find that I have to connect to to button press/release > and keypress signals and so forth, but i rarely override them. o Then how do you change a togglebutton other than using Gtk::ToggleButton::set_active()? o From "ootips": > By contrast, the viewport knows > exactly what kind of model it observes. o How could a (stock, compiled-into-a-library, non-derived-from) Gtk::ToggleButton know anything about your Model? -- MARK markrubn@pacbell.net From Alain.Valleton@bigfoot.com Sun Feb 17 06:16:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto1.wanadoo.fr (smtp-out-1.wanadoo.fr [193.252.19.188]) by mail.gnome.org (Postfix) with ESMTP id BD56B180DE for ; Sun, 17 Feb 2002 06:16:01 -0500 (EST) Received: from mel-rta2.wanadoo.fr (193.252.19.152) by mel-rto1.wanadoo.fr; 17 Feb 2002 12:16:00 +0100 Received: from bigfoot.com (80.11.136.16) by mel-rta2.wanadoo.fr; 17 Feb 2002 12:15:40 +0100 Message-ID: <3C6F9117.3080006@bigfoot.com> Date: Sun, 17 Feb 2002 12:16:39 +0100 From: Alain VALLETON User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: fr-fr, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Static libraries using glib-config Content-Type: multipart/mixed; boundary="------------020908050805050305000603" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. --------------020908050805050305000603 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello, I have a simple suggestion for the (much talented ;o) developers of glib. (gtk+ developers may also be interested) By default, both static and dynamic libraries are built during glib installation: this is fine for me. At work, we want to link statically an application against glib. So I tried to use the elegant way to do that, that is to use "glib-config". But with "glib-config", there is no way to get the static libraries instead of the dynamic libraries (option "--libs"). So I suggest the little patch attached to this post, that add an option "--staticlibs" to "glib-config" in order to get something like "/usr/local/lib/libglib.a" instead of "-L/usr/local/lib -lglib". This problem had already been noticed back in 1998, but seemingly never addressed: http://mail.gnome.org/archives/gtk-list/1998-November/msg00701.html Have a nice day. --------------020908050805050305000603 Content-Type: text/plain; name="patch_glib-1.2.10_static" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch_glib-1.2.10_static" --- glib-1.2.10.old/glib-config.in Sat Oct 28 06:35:30 2000 +++ glib-1.2.10/glib-config.in Thu Feb 14 10:27:41 2002 @@ -12,7 +12,7 @@ [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] - [--libs] + [--[static]libs] [--cflags] Libraries: glib @@ -61,6 +61,9 @@ --libs) echo_libs=yes ;; + --staticlibs) + echo_staticlibs=yes + ;; glib) lib_glib=yes ;; @@ -105,4 +108,20 @@ libsa="$libsa @G_MODULE_LIBS@" fi echo -L@libdir@ $libsp $libsa +fi +if test "$echo_staticlibs" = "yes"; then + libsp="" + libsa="" + if test "$lib_glib" = "yes"; then + libsp="@libdir@/libglib.a" + fi + if test "$lib_gthread" = "yes"; then + libsp="@libdir@/libgthread.a $libsp" + libsa="$libsa -lpthread" + fi + if test "$lib_gmodule" = "yes"; then + libsp="@libdir@/libgmodule.a $libsp" + libsa="$libsa @G_MODULE_LIBS@" + fi + echo $libsp $libsa fi --------------020908050805050305000603-- From inodal@teleline.es Sun Feb 17 08:35:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp10.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 773D6180DC for ; Sun, 17 Feb 2002 08:35:01 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp10.mail.isp (Netscape Messaging Server 4.15 tsmtp10 Jul 26 2001 13:10:38) with ESMTP id GROJ1701.G6L for ; Sun, 17 Feb 2002 14:34:19 +0100 Message-ID: <3C6FB18A.40305@teleline.es> Date: Sun, 17 Feb 2002 13:35:06 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: GTK+ problems using functions I used in Motif before Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm experimenting some problems with events on my GtkGlArea. The problem occurs when I pressed my mouse button and released it very fast, moving the mouse around ONLY THE FIRST TIME. This made me think about initilization problems, but it doesn't seem to be the point. Let's see: -First of all, I have a UpdateRotation() function which uses the initial mouse position (button pressed) and the current mouse position (get by motion or released) to update my objetct in the scene. -I have one callback for the "button_press_event" where I get the initial mouse position and my initial rotation matrix. -Another one for the "motion_notify_event" where I call UpdateRotation() and update my rotation matrix in function of the initial rotation matrix get from the previous callback. -And the last one for "button_released_event" where I only call UpdateRotation. The problem is: when I press and relase the button to fast moving the mouse from it's initial position, I don't understand why, but the function which returns me my rotation matrix, sends me a matrix full of zeros (the first time, it should return the identity matrix). This doesn't happen if I don't move the mouse around. It doesn't happen neither if I repeat the same operation after rotating the object correctly for the first time... If I "g_print" the rotation matrix when I paint the scene at the beginning of my application, it seems to be ok (identity matrix). But if I "g_print" it again in my "button_press_event" callback, it seems to be full of zeros (when using the mouse as mentined above). I have solve the problem calling the function which get the initial rotation matrix in my InitGL() function, which I used at the beginning of my program... but I don't really understand why didn't it work before.. In fact.. I'm using the same functions I used in Motif before, and they worked pretty fine with Motif. What it's happening? Does it have something to do with GTK+ or am I just getting more and more crazy? Thanks in advance, Ignacio Nodal From hunchback@netcabo.pt Sun Feb 17 17:53:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 2923A181A7 for ; Sun, 17 Feb 2002 17:53:57 -0500 (EST) Received: from a213-22-1-192.netcabo.pt ([213.22.1.192]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sun, 17 Feb 2002 22:50:39 +0000 Subject: Signals... From: Nuno Afonso To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 17 Feb 2002 22:53:59 +0000 Message-Id: <1013986440.2814.9.camel@a213-22-1-192> Mime-Version: 1.0 X-OriginalArrivalTime: 17 Feb 2002 22:50:39.0830 (UTC) FILETIME=[8590EF60:01C1B805] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, i have a button that is connected to a function called restartApp(GtkWidget *widget, Tabuleiro *tabuleiro) . (Tabuleiro is a static cast of a drawing area). When the button is clicked the restartApp is called and executes the following line tabuleiro->paint(); the function paint() has the following content: void Tabuleiro::paint(){ gdk_draw_rectangle(this->window, this->style->white_gc, true, 0, 0, 100, 100); ... } when i click the button i get segmentation fault when it tries to do the gdk_draw_rectangle. It gets in Tabuleiro::paint(), but it doesn't do the gdk_draw_rectangle. Does anyone know what is the problem with this signal? i use Tabuleiro::paint on other ocasions and it works... Afonso From inimss@yahoo.com Mon Feb 18 01:35:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ekm.asianetonline.net (unknown [202.88.231.2]) by mail.gnome.org (Postfix) with ESMTP id 3B0E11812E for ; Mon, 18 Feb 2002 01:35:22 -0500 (EST) Received: from dino ([202.88.224.172]) by ekm.asianetonline.net (Netscape Messaging Server 4.15) with SMTP id GRPUIA00.IAD; Mon, 18 Feb 2002 01:39:46 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: Ignacio Nodal Subject: Re: Dialog Window Date: Mon, 18 Feb 2002 00:51:38 +0530 X-Mailer: KMail [version 1.2] Cc: GTK-List References: <200202161416.JAA03714@renoir.op.net> <02021621511000.16869@dino> <3C6E9249.2070508@teleline.es> In-Reply-To: <3C6E9249.2070508@teleline.es> MIME-Version: 1.0 Message-Id: <02021800513800.03021@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I didnt tried this out but I have a doubt regarding modal windows. In an application with more than one window having modality are present at a moment, for example window1 is the main window, window2 is created as a modal child window of window1, window3 is created as a modal child window of window2. In such a situation will it be necessary to reset the modality of window2, in order to work with window3. I know that this is not the right thread to discuss it further, but please help me. Thanks Dino CK On Saturday 16 February 2002 22:39, Ignacio Nodal wrote: > Yes, I think gtk_window_set_transient_for is what you are looking for... > > In addition to gtk_window_set_modal your dialog window will stay on top > and have the main control... > > The pity is, what I'm looking for is something a bit different... :( > (already sent in a diferent mail) > > Ciao > > Dino Cherian K wrote: > > Hi > > > > But it doesn't make the dialog window to stay on top of the parent > > window. I agree that it has the full input focus, but we can click on > > the parent window, even when the dialog window is visible. > > > > How can we fix that too? Will gtk_window_set_transient_for help? > > > > Thanks > > Dino CK > > > > On Saturday 16 February 2002 19:42, Paul Davis wrote: > >> >Sometime ago someone told how to make a "dialog window" to get the > >> >control of the application.. > >> > >> gtk_window_set_modal From bent@vsnl.net Mon Feb 18 03:25:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail01.vsnl.net (mail01.vsnl.net [203.197.12.4]) by mail.gnome.org (Postfix) with ESMTP id AAF88180F0 for ; Mon, 18 Feb 2002 03:25:51 -0500 (EST) Received: from vsnl.net ([203.197.82.202]) by mail01.vsnl.net (Netscape Messaging Server 4.15) with ESMTP id GRPZF002.E2V for ; Mon, 18 Feb 2002 13:55:48 +0530 Message-ID: <3C70C226.D09468B6@vsnl.net> Date: Mon, 18 Feb 2002 14:28:14 +0530 From: Javed X-Mailer: Mozilla 4.79 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: problem while configuring Content-Type: multipart/alternative; boundary="------------AAAAB76659545C0074B6613E" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --------------AAAAB76659545C0074B6613E Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hi, I'm unable to configure the gtk+1.2.0 as it gives an error saying: checking host system type...configure:error:cannot guess host type;you must specify one How can I solve this problem? thanks, Javed --------------AAAAB76659545C0074B6613E Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit hi,
I'm unable to configure the gtk+1.2.0 as it gives an error saying:
checking host system type...configure:error:cannot guess host type;you must specify one

How can I solve this problem?

thanks,

Javed --------------AAAAB76659545C0074B6613E-- From sven@gimp.org Mon Feb 18 05:56:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E6BB15.dip.t-dialin.net [217.230.187.21]) by mail.gnome.org (Postfix) with ESMTP id 16879180EA for ; Mon, 18 Feb 2002 05:56:45 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16clSy-0005Jo-00; Mon, 18 Feb 2002 11:56:16 +0100 To: Javed Cc: gtk-list@gnome.org Subject: Re: problem while configuring References: <3C70C226.D09468B6@vsnl.net> From: Sven Neumann Date: 18 Feb 2002 11:56:15 +0100 In-Reply-To: <3C70C226.D09468B6@vsnl.net> Message-ID: Lines: 17 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Javed writes: > I'm unable to configure the gtk+1.2.0 as it gives an error saying: > checking host system type...configure:error:cannot guess host type;you > must specify one > > How can I solve this problem? first of all: update to glib-1.2.10 and gtk+-1.2.10. If you still have problems to compile those, get back here. But please give us a little bit more information about your system (OS, CPU, compiler) next time. Salut, Sven From jean-christophe.berthon@cgey.com Mon Feb 18 06:19:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from door.cgey.com (rpapar2.cgey.com [194.3.224.26]) by mail.gnome.org (Postfix) with ESMTP id D49E318204 for ; Mon, 18 Feb 2002 06:19:04 -0500 (EST) Received: from prenoms.capgemini.fr (sdcnt1.cgey.com [194.2.91.200]) by door.cgey.com (8.12.1/8.12.1) with ESMTP id g1IBIxvo029965; Mon, 18 Feb 2002 12:18:59 +0100 (MET) Received: from prenoms.capgemini.fr (localhost [127.0.0.1]) by prenoms.capgemini.fr (8.9.3/8.9.3) with ESMTP id MAA04906; Mon, 18 Feb 2002 12:18:58 +0100 (MET) Received: from spatio1 ([10.67.211.175]) by prenoms.capgemini.fr (8.9.3/8.9.3) with SMTP id MAA04786; Mon, 18 Feb 2002 12:18:56 +0100 (MET) Message-ID: <00b001c1b86d$cb9d1520$afd3430a@sudouest.capgemini.fr> From: "Jean-Christophe Berthon" To: "Javed" , "Gtk List" References: <3C70C226.D09468B6@vsnl.net> Subject: Re: problem while configuring Date: Mon, 18 Feb 2002 12:17:01 +0100 Organization: Cap Gemini -- Ernst & Young MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00AD_01C1B876.2B6B7980" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_00AD_01C1B876.2B6B7980 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, Maybe I can help you, but I'm really new to the worl of automake and = autoconf. But I had this problem with the automake I build when porting = the package under another system : I build my package under Linux and = was testing it under Solaris. As I didn't know what was the file config.guess and ltconfig (that's the = files which are used to guess the host type, so your problem), I just = run in this problem. So to fixed it, I would advise you to copy the 'ltmain.sh', 'ltconfig', = 'config.guess' and 'config.sub' files, that you can found in = /usr/share/libtool (or maybe /usr/local/share/libtool depending on where = you installed libtool), in the installation directory of gtk and to run = again ./configure. For me it solved the problem... Sorry for my english, if I'm not clear enough write me back, I'll try to = make myself more understandable Best regards, --- Jean-Christophe Berthon Cap Gemini -- Ernst & Young France Skill IS -- Image Quality Email: Jean-Christophe.Berthon@cgey.com Tel: (+33) 561 31 6671 ----- Original Message -----=20 From: Javed=20 To: gtk-list@gnome.org=20 Sent: Monday, February 18, 2002 9:58 AM Subject: problem while configuring hi,=20 I'm unable to configure the gtk+1.2.0 as it gives an error saying:=20 checking host system type...configure:error:cannot guess host type;you = must specify one=20 How can I solve this problem?=20 thanks,=20 Javed=20 ------=_NextPart_000_00AD_01C1B876.2B6B7980 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello,
 
Maybe I can help you, but I'm really new to the worl = of=20 automake and autoconf. But I had this problem with the automake I build = when=20 porting the package under another system : I build my package under = Linux and=20 was testing it under Solaris.
As I didn't know what was the file config.guess and = ltconfig=20 (that's the files which are used to guess the host type, so your = problem), I=20 just run in this problem.
So to fixed it, I would advise you to copy the = 'ltmain.sh',=20 'ltconfig', 'config.guess' and 'config.sub' files, that you can = found in=20 /usr/share/libtool (or maybe /usr/local/share/libtool depending on where = you=20 installed libtool), in the installation directory of gtk and to run = again=20 ./configure.
For me it solved the problem...
 
Sorry for my english, if I'm not clear enough write = me back,=20 I'll try to make myself more understandable
 
Best regards,
---
Jean-Christophe Berthon
 
Cap Gemini -- Ernst & Young
France
Skill IS -- Image=20 Quality
Email: Jean-Christophe.Berthon@= cgey.com
Tel:=20 (+33) 561 31 6671
 
 
----- Original Message -----
From:=20 Javed =
Sent: Monday, February 18, 2002 = 9:58=20 AM
Subject: problem while = configuring

hi,
I'm unable to configure the gtk+1.2.0 as it = gives an=20 error saying:
checking host=20 system type...configure:error:cannot guess host type;you must specify=20 one
=20

How can I solve this=20 problem?=20

thanks,=20

Javed=20

------=_NextPart_000_00AD_01C1B876.2B6B7980-- From hp@redhat.com Mon Feb 18 08:13:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (unknown [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 879C018339 for ; Mon, 18 Feb 2002 08:13:52 -0500 (EST) Received: (from Unknown UID 2379@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1IDDdf09622; Mon, 18 Feb 2002 08:13:39 -0500 X-Authentication-Warning: icon.devel.redhat.com: Unknown UID 2379 set sender to hp@redhat.com using -f To: "Mark R. Rubin" Cc: Paul Davis , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal References: <200202160052.TAA13523@renoir.op.net> <3C6EB37C.91043A41@pacbell.net> From: Havoc Pennington Date: 18 Feb 2002 08:13:37 -0500 In-Reply-To: <3C6EB37C.91043A41@pacbell.net> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Mark R. Rubin" writes: > o I (possibly mis-) read Havoc's: > > > if (current_state == gtk_toggle_button_get_active (toggle)) > > return; > FWIW I think I did mean what Paul said, i.e. current_state is the state of the object the toggle button affects. Havoc From otaylor@redhat.com Mon Feb 18 10:23:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (unknown [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id DEBC518F56; Mon, 18 Feb 2002 10:23:41 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 62D13241BE2; Mon, 18 Feb 2002 10:23:41 -0500 (EST) To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-list@gnome.org Subject: New release of GTK+ libraries (1.3.14) Reply-To: gtk-devel-list@gnome.org, gtk-list@gnome.org From: Owen Taylor User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 155 Message-Id: <20020218152341.62D13241BE2@fresnel.labs.redhat.com> Date: Mon, 18 Feb 2002 10:23:41 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: New releases of the development versions of GTK+ and associated libraries (GLib, Pango, Atk) are available at: ftp://ftp.gtk.org/pub/gtk/v1.3/ The JPEG/PNG/TIFF libraries and pkg-config 0.8 are needed to compile this release. These are available at: ftp://ftp.gtk.org/pub/gtk/v1.3/dependencies/ (pkg-config latest canonical upstream location is at http://www.freedesktop.org/software/pkgconfig/ - note that it has moved from sourceforge. But gtk.org mirrors the 0.8 version you need to build GTK 1.3.10) You will also need "libiconv" on systems with C libraries that lack the iconv() function: http://www.gnu.org/software/libiconv/ And the libintl library from the GNU "gettext" package if your C library doesn't have gettext() functionality: http://www.gnu.org/software/gettext/ Overview of Changes in GLib 1.3.14: =================================== * Register value transformations for gint64, guint64 [Andy Wingo] * Build with large-file support [Sven Neumann, Owen Taylor] * Fix handling of hostnames in URI's [Darin Adler] * Main loop bug fixes [Havoc Pennington, Owen] * Doc fixes and improvements [Manish Singh, Tim Janik] * Support ' as attribute delimiters in GMarkup [Matthias Clasen] * Win32 fixes [Hans Breuer, Tor Lillqvist] * Threading bug and build fixes [Sebastian Wilhelmi, Miroslaw Dobrzanski-Neumann] * Miscellaneous bug fixes Other contributors: Matthias Clasen, Mitch Natterer, James Henstridge Overview of Changes in Pango 0.25 ================================= * Win32 fixes [Tor Lillqvist, Hans Breuer] * Cleanup of [Darin Adler] * Bug and build fixes [Anders Carlsson, Sven Neumann, Havoc Pennington, Morten Welinder] Overview of Changes in GTK+ 1.3.14 ================================== * Keyboard focus improvements [Owen Taylor] * Code cleanup [Matthias Clasen, Manish Singh, Darin Adler] * Fix accidentally exported variables [Mark McLoughlin] * GtkTreeView fixes [Jonathan Blandford, Kristian Rietveld, John Harper, Darin] * Default to yellow tooltips [Owen] * RC file fixes for reloading, priorities [Owen, Matthias] * GtkMenu behavior improvements and bug fixes [Owen, Arnaud Charlet] * GtkTextView fixes [Havoc Pennington, Daniel Elstner, Dennis Bjorklund] * Improve keynav for paned widgets, tooltips, spin buttons, notebooks, scrolled windows [Soeren Sandmann, Padraig, Owen] * Add Emacs/Default key themes [Owen] * Win32 fixes [Hans Breuer, Tor Lillqvist] * Ethiopic input methods [Daniel Yacob] * Opaque paned window resizing [Soeren] * Tweak table expansion behavior [Tim Janik] * Fix GtkCalendar focus drawing [Bill Haneman] * Allow themeable cursor thickness [Bill] * Start of fixing of tutorial for GTK+-2.0 [Matthias] * Add a ::adjust-bounds signal to GtkRange to allow spreadsheat style scrollbars. [Jody Goldberg] (*) * Add the ability to turn on multiple selection for GtkFileSel [Manish] (*) * Bug fixes Other contributors: Jacob Berkman, Padraig O'Briain, Anders Carlsson, Johan Dahlin, Richard Hult, Stefan Kost, Alex Larsson, Thomas Leonard, Paolo Maggi, Alexey Malyshev, Federico Mena Quintero, Skip Montaro, Sven Neumann, Havoc Pennington, Laszlo Peter, Christian Rose, Joe Shaw, Kevin Vandersloot, Morten Welinder, Peter Williams Library Descriptions ==================== GLib 1.3.14 (http://www.gtk.org) GLib is the low-level core library that forms the basis of 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. Pango 0.25 (http://www.pango.org) Pango is a library for layout and rendering of text, with an emphasis on internationalization. It forms the core of text and font handling for GTK+-2.0. Atk 0.12 (http://developer.gnome.org/projects/gap) The ATK library provides a set of interfaces for accessibility. By supporting the ATK interfaces, an application or toolkit can be used such as tools such as screen readers, magnifiers, and alternative input devices. [ The Atk-0.12 release was made independently and is mentioned here for completeness ] GTK+ 1.3.14 (http://www.gtk.org) GTK+ is a widget toolkit for X and other windowing systems. It is used in such projects as the GIMP and GNOME. Notes ===== This release is meant for people working on ports of applications to the upcoming GTK+-2.0 release of GTK+. While these libraries have been in extensive use for several months, there are considerable numbers of known bugs that still need to be fixed, and presumably more that have not yet been found. This release is incompatible with GTK+ and GLib 1.2.x. Software that has not been explicitly ported will not compile with this version. Do not send bug reports about such compilation problems to either us or maintainers of software that uses GLib and GTK+ 1.2.x; The currently supported version of GLib and GTK+ is version 1.2.10. If you install these libraries, do NOT replace your current GLib and GTK+ packages with them; these libraries are designed so they can be installed in parallel with a GTK+ install without affecting it. The API is frozen at this point. No additional API changes are anticipated before GTK+-2.0 is released. A couple of small API additions were found to be necessary between GTK+-1.3.13 and GTK+-1.3.14; these are marked with (*) in the above list. These additions will not cause compatibility problems with existing programs. Binary interfaces for these libraries are not yet frozen; applications built against these libraries will need to be rebuilt when the final GTK+-2.0.0 is released. Comments should be sent to: GLib, GTK+: gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list Pango: gtk-i18n-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-i18n-list ATK: gnome-accessibility-list@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list Bug reports should be filed in the GNOME bug tracker at: http://bugzilla.gnome.org From db@zigo.dhs.org Mon Feb 18 12:17:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cosmo.zigo.dhs.org (as2-4-3.an.g.bonet.se [194.236.34.191]) by mail.gnome.org (Postfix) with ESMTP id A00F5181D5 for ; Mon, 18 Feb 2002 12:17:25 -0500 (EST) Received: from localhost (db@localhost) by cosmo.zigo.dhs.org (8.11.6/8.11.6) with ESMTP id g1IHHJ206581 for ; Mon, 18 Feb 2002 18:17:19 +0100 X-Authentication-Warning: cosmo.zigo.dhs.org: db owned process doing -bs Date: Mon, 18 Feb 2002 18:17:19 +0100 (CET) From: Dennis Bjorklund To: Subject: grab focus Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a notebookpage with a entrybox in it. When I change to that page I want the entry to get focus so I can write directly. Where is an appropriate place to do this? I've tried "map" on the entry and "select-page" on the notebook. But it does not seem to be the right places. -- /Dennis From jeremy@chaos.org.uk Mon Feb 18 14:25:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ganglion.demon.co.uk (ganglion.demon.co.uk [212.228.142.92]) by mail.gnome.org (Postfix) with ESMTP id D3582180F8 for ; Mon, 18 Feb 2002 14:25:44 -0500 (EST) Received: from chaos.org.uk (jeremy@localhost) by ganglion.demon.co.uk (8.11.6/8.11.6) with ESMTP id g1IJHRE17743; Mon, 18 Feb 2002 19:17:27 GMT Message-Id: <200202181917.g1IJHRE17743@ganglion.demon.co.uk> X-Authentication-Warning: ganglion.demon.co.uk: jeremy owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Javed Cc: gtk-list@gnome.org, jeremy@ganglion.demon.co.uk Subject: Re: problem while configuring In-Reply-To: Message from Javed of "Mon, 18 Feb 2002 14:28:14 +0530." <3C70C226.D09468B6@vsnl.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 18 Feb 2002 19:17:27 +0000 From: Jeremy Henty Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Javed writes: > I'm unable to configure the gtk+1.2.0 as it gives an error saying: > checking host system type...configure:error:cannot guess host type;you > must specify one Possibly a red herring, but IIRC I got something like this when my system had no "cc" command. Once I linked cc -> gcc everything went OK. (This presumes you're on some kind of Unix, of course.) I'm a little hazy on the details, but I am sure I did *not* get a useful "cc does not work on your system" sort of message: it was something much more obscure that required some investigation to get at the real problem. Regards, Jeremy Henty From setton@act-europe.fr Fri Feb 15 06:23:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (grenoble.act-europe.fr [212.157.227.138]) by mail.gnome.org (Postfix) with ESMTP id C24AA18BC8 for ; Fri, 15 Feb 2002 06:23:36 -0500 (EST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id g1FBM0x02444; Fri, 15 Feb 2002 12:22:00 +0100 Subject: Re: Required info on Bug#60132 From: Nicolas Setton To: Yogeesh MB Cc: gtk-bugs@gtk.org, gtk-list@gnome.org In-Reply-To: <06f701c1b610$bfe8c6c0$b609720a@m2foe301975> References: <06f701c1b610$bfe8c6c0$b609720a@m2foe301975> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.0.99+cvs.2001.12.13.08.57 (Preview Release) Date: 15 Feb 2002 12:22:00 +0100 Message-Id: <1013772120.2158.0.camel@localhost.localdomain> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I originally spotted this bug when developping a widget using GtkAda. But it can be reproduced with any C program. What other details would you like to know ? Nico, for the GtkAda team. On Fri, 2002-02-15 at 12:05, Yogeesh MB wrote: > Hi, > I would like to know about Bug# 60132, from where it is originating. > under which appication this bug lies. > This will help me in fixing this at the earliest. > If any one knows about this bug in detail please let me know. > > thanks in advance, > > Yogeesh MB > ---- > > **************************Disclaimer************************************ > > > > Information contained in this E-MAIL being proprietary to Wipro Limited > is 'privileged' and 'confidential' and intended for use only by the > individual or entity to which it is addressed. You are notified that any > use, copying or dissemination of the information contained in the E-MAIL > in any manner whatsoever is strictly prohibited. > > > > ******************************************************************** From michael@cs.millersville.edu Fri Feb 15 16:31:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.millersville.edu (unknown [166.66.64.14]) by mail.gnome.org (Postfix) with ESMTP id F35A91890D for ; Fri, 15 Feb 2002 16:31:02 -0500 (EST) Received: from cs.millersville.edu (localhost.0.0.127.in-addr.arpa [127.0.0.1] (may be forged)) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1FLV2IQ021527; Fri, 15 Feb 2002 16:31:02 -0500 Received: from localhost (michael@localhost) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1FLV2A2021523; Fri, 15 Feb 2002 16:31:02 -0500 Date: Fri, 15 Feb 2002 16:31:02 -0500 (EST) From: Michael Mitton To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing In-Reply-To: <20020215131731.B13335@spawar.navy.mil> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: The & in front of your function name is the problem. Try { pthread_t thread; pthread_create(&thread, NULL, (void *) doSimulation, NULL); } if you declare doSimulation as a void * (ie void *doSimulation(...)) you can even drop the type cast. -Michael On Fri, 15 Feb 2002, Chris Seberino wrote: > > pthread_t thread; > > pthread_create(&thread, NULL, (void*) &doSimulation, NULL); > > Help! I trying to assign a function to a thread in my amateur > PThread calls above. Without (void*) before function name I get > an error and WITH (void*) I get following warning: > > warning: ANSI C++ forbids implicit conversion from `void *' in argument passing > > This would all be harmless except I believe newer GTK+ > or something in my Linux distro upgrade causes BOTH > (with and without (void*)) to return an error!!! > > NEITHER WORKS!! > > Is there someway to fix this to avoid errors and warnings?? > > Chris > > -- > ======================================================= > | Dr. Christian Seberino || (619) 553-7940 (office) | > | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | > | 53560 HULL ST || | > | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | > ======================================================= > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From wdulyea@qualcomm.com Fri Feb 15 17:56:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from numenor.qualcomm.com (numenor.qualcomm.com [129.46.51.58]) by mail.gnome.org (Postfix) with ESMTP id 5E0B11816B for ; Fri, 15 Feb 2002 17:56:32 -0500 (EST) Received: from crowley.qualcomm.com (crowley.qualcomm.com [129.46.61.151]) by numenor.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1FMuNkQ013304; Fri, 15 Feb 2002 14:56:23 -0800 (PST) Received: from wdulyea.qualcomm.com (wdulyea.qualcomm.com [129.46.73.119]) by crowley.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1FMuL2F017424; Fri, 15 Feb 2002 14:56:22 -0800 (PST) Message-Id: <5.1.0.14.2.20020215144559.0249f618@jittlov.qualcomm.com> X-Sender: wdulyea@jittlov.qualcomm.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 15 Feb 2002 14:56:17 -0800 To: gtk-list@gnome.org From: William Dulyea Subject: memory leak (continuation) Cc: wdulyea1@excite.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: An expansion to an earlier mail I sent... In this code snippet below I can observ that removing(destroying) container widgets does not have the desired effect. Please comment:> Code snippet........................................... cur_page = gtk_notebook_get_current_page( notebook ); fprintf( stderr, "on_notebook_switch_page,switching from:%i to:%i\n", cur_page, page_n ); child = gtk_container_children(GTK_CONTAINER(notebookpage[cur_page].widget)); while( child ) { GtkWidget *widget; widget = GTK_WIDGET(child->data); gtk_container_remove( GTK_CONTAINER(notebookpages[cur_page].widget),widget ); fprintf( stderr, "on_notebook_switch_page,destroy widget:%p", widget); gtk_widget_destroy( widget ); if( widget ) fprintf( stderr, " widget still referenced:%p\n", widget); else fprintf( stderr, "\n" ); child = child->next; } create_page_item( notebook, page_n ); example page item created.................................. case HDWR_CONF: page_item = create_hardware_config(); gtk_container_add(GTK_CONTAINER(notebookpages[page_n].widget),page_item); To further enlighten, the widget returned by (create_hardware_config) routine, as with all others, does have reference count of at least 1 and (signal_connect) is set for destroy_event on the top-level widget or this widget. William P. Dulyea _______________ Phone: 651-5206 Office: L-423 From wdulyea@qualcomm.com Fri Feb 15 21:19:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ithilien.qualcomm.com (ithilien.qualcomm.com [129.46.51.59]) by mail.gnome.org (Postfix) with ESMTP id 17E1218D2C for ; Fri, 15 Feb 2002 21:19:19 -0500 (EST) Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149]) by ithilien.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1G2JCrP020482; Fri, 15 Feb 2002 18:19:12 -0800 (PST) Received: from wdulyea.qualcomm.com (wdulyea.qualcomm.com [129.46.73.119]) by neophyte.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1G2JAu4025173; Fri, 15 Feb 2002 18:19:10 -0800 (PST) Message-Id: <5.1.0.14.2.20020215180207.024a3288@jittlov.qualcomm.com> X-Sender: wdulyea@jittlov.qualcomm.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 15 Feb 2002 18:19:05 -0800 To: iain From: William Dulyea Subject: Re: memory leaks (continued) Cc: gtk-list@gnome.org In-Reply-To: <1013828006.2185.0.camel@discomachinegun.prettypeople.org> References: <20020215205735.8412E109EB9@xprdmailfe.excite.com> <20020215205735.8412E109EB9@xprdmailfe.excite.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello iain, For the simple reason that the data contained therein is dynamic. Going from one page to another and changing any settings effects what and how information is displayed on any other page. I'm sure I could setup and event handler for this, but it would be very complicated and would possibly interfere with settings as I change them, and because I'm lazy. So in order to deal with this situation my design had to destroy and recreate moving from one page to another. Actually ...for this particular problem I found out what I was doing wrong! Or because I am not intimate enough with the design of GTK+ and since documentation is not that good, I did not realize that I should not manually set the reference count for each widget every time it is created unless I have a good reason to do so. This apparently keeps the object from cleaning itself out if this count is not down to zero, possibly a design inheritance from OOP smart pointers. Once I removed my calls to gtk_widget_ref(), destroying them actually makes them go away:) Now I'm happy -William At 02:53 AM 2/16/2002 +0000, you wrote: >On Fri, 2002-02-15 at 20:57, wdulyea1@excite.com wrote: An expansion to >an earlier mail I sent... In this code snippet below I can observ that >removing(destroying) container widgets does not have the desired effect. >Please comment:> > >What specific reason do you need to delete the widgets on a page when >the page is changed? > >iain >-- >"All men of conscience or prudence ply to windward, to maintain their >wars to be defensive." -- Roger Williams From s_lekha@mailcity.com Sat Feb 16 03:43:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailcity.com (fes-qout.whowhere.com [209.185.123.96]) by mail.gnome.org (Postfix) with SMTP id 21CC618138 for ; Sat, 16 Feb 2002 03:43:47 -0500 (EST) Received: from Unknown/Local ([?.?.?.?]) by mailcity.com; Sat Feb 16 00:43:34 2002 To: gtk-list@gnome.org Date: Sat, 16 Feb 2002 00:43:34 -0800 From: "srilekha c shekar" Message-ID: Mime-Version: 1.0 X-Sent-Mail: off Reply-To: s_lekha@lycos.com X-Mailer: MailCity Service X-Priority: 3 Subject: Problem with Pop up messages X-Sender-Ip: 202.144.29.115 Organization: Lycos Mail (http://mail.lycos.com:80) Content-Type: text/plain; charset=us-ascii Content-Language: en Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Everybody, I've got this problem wherein i've created a gtk window and i'm trying to pop up a message dialog after a particular interval of time using a thread.The message pops up ONLY after i press a key or move a mouse over the window.why does this happen? I'm facing the same problem in the application i'm working on.I would be pleased if anybody could help me to find a solution to this problem. Regards, srilekha Check out Cupid School where you will learn from Matchmaker's best and brightest. Good Luck! http://ecard.matchmaker.com/cupid0202/cupid0202.html From Nuno.Afonso@bigfoot.com Sun Feb 17 17:42:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 753E7181A7 for ; Sun, 17 Feb 2002 17:42:21 -0500 (EST) Received: from a213-22-1-192.netcabo.pt ([213.22.1.192]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sun, 17 Feb 2002 22:38:57 +0000 Subject: Signals... From: Nuno Afonso To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 17 Feb 2002 22:42:18 +0000 Message-Id: <1013985738.2813.7.camel@a213-22-1-192> Mime-Version: 1.0 X-OriginalArrivalTime: 17 Feb 2002 22:38:58.0077 (UTC) FILETIME=[E349ECD0:01C1B803] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, i have a button that is connected to a function called restartApp(GtkWidget *widget, Tabuleiro *tabuleiro) . (Tabuleiro is a static cast of a drawing area). When the button is clicked the restartApp is called and executes the following line tabuleiro->paint(); the function paint() has the following content: void Tabuleiro::paint(){ gdk_draw_rectangle(this->window, this->style->white_gc, true, 0, 0, 100, 100); ... } when i click the button i get segmentation fault when it tries to do the gdk_draw_rectangle. It gets in Tabuleiro::paint(), but it doesn't do the gdk_draw_rectangle. Does anyone know what is the problem with this signal? i use Tabuleiro::paint on other ocasions and it works... Afonso From sven@gimp.org Mon Feb 18 15:44:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id E00FA1830D for ; Mon, 18 Feb 2002 15:44:52 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16cueW-0001ad-00; Mon, 18 Feb 2002 21:44:48 +0100 To: William Dulyea Cc: gtk-list@gnome.org, wdulyea1@excite.com Subject: Re: memory leak (continuation) References: <5.1.0.14.2.20020215144559.0249f618@jittlov.qualcomm.com> From: Sven Neumann Date: 18 Feb 2002 21:44:48 +0100 In-Reply-To: <5.1.0.14.2.20020215144559.0249f618@jittlov.qualcomm.com> Message-ID: Lines: 60 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, William Dulyea writes: > An expansion to an earlier mail I sent... In this code snippet below I > can observ that removing(destroying) container widgets does not have > the desired effect. Please comment:> > > Code snippet........................................... > cur_page = gtk_notebook_get_current_page( notebook ); > fprintf( stderr, "on_notebook_switch_page,switching from:%i to:%i\n", > cur_page, page_n ); > > child = gtk_container_children(GTK_CONTAINER(notebookpage[cur_page].widget)); > while( child ) { > GtkWidget *widget; > > widget = GTK_WIDGET(child->data); > gtk_container_remove( > GTK_CONTAINER(notebookpages[cur_page].widget),widget ); whoahh, this is cruel, you are removing the widget from the container while iterating over the list of container children. > > fprintf( stderr, "on_notebook_switch_page,destroy widget:%p", widget); > gtk_widget_destroy( widget ); > if( widget ) > fprintf( stderr, " widget still referenced:%p\n", widget); > else > fprintf( stderr, "\n" ); what are you tring to proof here? You called gtk_widget_destroy() on the widget. What makes you think the widget pointer gets nullified? gtk_widget_destroy() does not even know the location of the memory you use to hold a pointer on the widget. How should it nullify it? Your pointer will keep its value, it only points to invalid memory now. You could of course set up a signal handler to nullify the pointer on widget destruction: gtk_signal_connect_data (GTK_WIDGET (widget), "destroy", GTK_SIGNAL_FUNC (g_nullify_pointer), &widget); Hmm, g_nullify_pointer is glib-2.0, but I think you can imagine what it does. To make things worse, you now dereference the child you have removed above. With a little luck this works since GList structures are allocated from a pool and won't be freed. Perhaps that's the memleak you observe (I didn't check your previous mails)? > child = child->next; > } > create_page_item( notebook, page_n ); Salut, Sven From sven@gimp.org Mon Feb 18 15:52:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id BAABF185E6 for ; Mon, 18 Feb 2002 15:52:54 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16cum6-0001bA-00; Mon, 18 Feb 2002 21:52:38 +0100 To: Nuno Afonso Cc: gtk-list@gnome.org Subject: Re: Signals... References: <1013985738.2813.7.camel@a213-22-1-192> From: Sven Neumann Date: 18 Feb 2002 21:52:38 +0100 In-Reply-To: <1013985738.2813.7.camel@a213-22-1-192> Message-ID: Lines: 38 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Nuno Afonso writes: > i have a button that is connected to a function called > restartApp(GtkWidget *widget, Tabuleiro *tabuleiro) . > > (Tabuleiro is a static cast of a drawing area). > > When the button is clicked the restartApp is called > and executes the following line > > tabuleiro->paint(); > > the function paint() has the following content: > void Tabuleiro::paint(){ > gdk_draw_rectangle(this->window, this->style->white_gc, true, 0, 0, > 100, 100); > > ... > } > > when i click the button i get segmentation fault when it tries to do the > gdk_draw_rectangle. It gets in Tabuleiro::paint(), but it doesn't do the > gdk_draw_rectangle. Have you checked that your widget is realized when paint gets called? this->window is NULL until the widget is realized. Try to add if (!GTK_WIDGET_DRAWABLE (widget)) return; at the beginning of paint() to assure that the drawing code is only executed if the widget is drawable. Salut, Sven From bent@vsnl.net Mon Feb 18 23:32:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail02.vsnl.net (mail02.vsnl.net [203.197.12.5]) by mail.gnome.org (Postfix) with ESMTP id 56E24180EA for ; Mon, 18 Feb 2002 23:32:49 -0500 (EST) Received: from vsnl.net ([203.197.82.162]) by mail02.vsnl.net (Netscape Messaging Server 4.15) with ESMTP id GRRJAL02.VYZ for ; Tue, 19 Feb 2002 10:02:46 +0530 Message-ID: <3C71DD15.F9A01CAE@vsnl.net> Date: Tue, 19 Feb 2002 10:35:25 +0530 From: Javed X-Mailer: Mozilla 4.79 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: new problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi, i tried to configure using your instuctions & the host problem is solved...but now I've got a new error, something like configure: error: C compiler cannot create executables. After which I tried compiling a C program, and it did not execute. I'm working with a RedHat Linux 7.0 OS and have Cyrix 233 Mhz CPU. Please help! Regards, Javed From dchiod@inwind.it Tue Feb 19 01:46:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailweb5.inwind.it (mailweb5.inwind.it [212.141.54.115]) by mail.gnome.org (Postfix) with ESMTP id 7AC7118136 for ; Tue, 19 Feb 2002 01:46:02 -0500 (EST) Received: from inwind.it (127.0.0.1) by mailweb5.inwind.it (5.5.053) id 3C5BAB13000163EF for gtk-list@gnome.org; Tue, 19 Feb 2002 07:45:53 +0100 Date: Tue, 19 Feb 2002 08:45:53 +0200 Message-Id: Subject: variable newbie problem MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable From: "dchiod@inwind.it" To: gtk-list@gnome.org X-XaM3-API-Version: 1.1.9.1.36 X-SenderIP: 217.56.227.2 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, someone can help me? I have a global variable used to store a filename got from a gtk_file_selection; now, when the gtk_file_selection object is destroyed, the memory allocated to the variable is corrupted, changing its value. This only in Linux, it behaves correctly in win32 (mingw 32 gcc). Thanks for any idea. Davide. From maa@sparc.spb.su Tue Feb 19 06:32:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from guardian.sparc.spb.su (guardian.sparc.spb.su [195.19.226.186]) by mail.gnome.org (Postfix) with ESMTP id AAE3A181D6 for ; Tue, 19 Feb 2002 06:32:46 -0500 (EST) Received: from guard.sparc.spb.su (guard.sparc.spb.su [195.19.226.98]) by guardian.sparc.spb.su (8.11.3/8.11.3) with ESMTP id g1JBjPl02103 for ; Tue, 19 Feb 2002 14:45:25 +0300 (MSK) Received: from mail.sparc.spb.su (mail.sparc.spb.su [192.168.205.210]) by guard.sparc.spb.su (8.11.4/8.10.1) with ESMTP id g1JBWeu06053 for ; Tue, 19 Feb 2002 14:32:40 +0300 (MSK) Received: from london.sparc.spb.su (london.sparc.spb.su [192.168.205.229]) by mail.sparc.spb.su (8.11.4/8.11.1) with ESMTP id g1JBWOI37354 for ; Tue, 19 Feb 2002 14:32:25 +0300 (MSK) (envelope-from maa@sparc.spb.su) Date: Tue, 19 Feb 2002 14:37:16 +0300 From: "Aleksey A. Malyshev" X-Mailer: The Bat! (v1.53d) Reply-To: "Aleksey A. Malyshev" X-Priority: 3 (Normal) Message-ID: <16993091808.20020219143716@sparc.spb.su> To: gtk-list@gnome.org Subject: gtk_im_context_get_preedit_string () MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a question. Docs for gtk_im_context_get_preedit_string () says: "Retrieve the current preedit string for the input context, and a list of attributes to apply to the string." but if you look sources you can see: gtk_im_context_real_get_preedit_string (GtkIMContext *context, gchar **str, PangoAttrList **attrs, gint *cursor_pos) //---------------- { if (str) *str = g_strdup (""); if (attrs) *attrs = pango_attr_list_new (); if (cursor_pos) *cursor_pos = 0; } //---------------- And str always equal "". What for this function needed? -- SY, Alek mailto:maa@sparc.spb.su From John.Cupitt@ng-london.org.uk Tue Feb 19 06:39:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 9611618F23 for ; Tue, 19 Feb 2002 06:39:19 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXL9G3>; Tue, 19 Feb 2002 11:39:18 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXL9GN; Tue, 19 Feb 2002 11:39:15 -0000 Message-ID: <3C723614.3020800@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: dchiod@inwind.it Cc: gtk-list@gnome.org Subject: Re: variable newbie problem Date: Tue, 19 Feb 2002 11:25:08 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dchiod@inwind.it wrote: > I have a global variable used to store a filename got from a gtk_file_selection; > now, when the gtk_file_selection object is destroyed, the memory allocated to the variable > is corrupted, changing its value. Hi, the gtk_file_selection gives you a pointer to its internal data for the filename. If you want to keep the filename after you've destroyed the widget, you need to take a copy with g_strdup(). John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From otaylor@redhat.com Tue Feb 19 07:22:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (unknown [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 15AFB181D6 for ; Tue, 19 Feb 2002 07:22:02 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 52EE3241BE2; Tue, 19 Feb 2002 07:22:01 -0500 (EST) To: "Aleksey A. Malyshev" Cc: gtk-list@gnome.org Subject: Re: gtk_im_context_get_preedit_string () References: <16993091808.20020219143716@sparc.spb.su> From: Owen Taylor In-Reply-To: "Aleksey A. Malyshev"'s message of "Tue, 19 Feb 2002 14:37:16 +0300" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 36 Message-Id: <20020219122201.52EE3241BE2@fresnel.labs.redhat.com> Date: Tue, 19 Feb 2002 07:22:01 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Aleksey A. Malyshev" writes: > Hi, > > I have a question. > Docs for gtk_im_context_get_preedit_string () says: > "Retrieve the current preedit string for the input context, > and a list of attributes to apply to the string." > but if you look sources you can see: > > gtk_im_context_real_get_preedit_string (GtkIMContext *context, > gchar **str, > PangoAttrList **attrs, > gint *cursor_pos) > //---------------- > { > if (str) > *str = g_strdup (""); > if (attrs) > *attrs = pango_attr_list_new (); > if (cursor_pos) > *cursor_pos = 0; > } > //---------------- > > And str always equal "". > > What for this function needed? You are looking at the fallback implementation. It needs to be overriden (look at, for instance, gtkimcontextxim.c) to be useful. Regards, Owen From pvosta@unionbio-eu.com Tue Feb 19 08:01:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 57C4718367 for ; Tue, 19 Feb 2002 08:01:20 -0500 (EST) Received: (qmail 4788 invoked from network); 19 Feb 2002 12:57:43 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 19 Feb 2002 12:57:43 -0000 Message-ID: <3C724C65.3DBA2A42@unionbio-eu.com> Date: Tue, 19 Feb 2002 14:00:21 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: signal_connect depreciated ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I apologize for this newbie question, but I have just started studying GTK and I want to try to compile the simple "helloworld.c" example on the gtk.org website http://www.gtk.org/tutorial/ch-gettingstarted.html#SEC-HELLOWORLD I saved the source code into a C-file and tried to compile it as indicated. However I got the following error message: helloworld.c: In function `main': helloworld.c:55: warning: implicit declaration of function `signal_connect' helloworld.c:79: warning: implicit declaration of function `g_signal_connect_swapped' I read somewhere that "g_signal_connect" is depreciated, but I have no clue what should be replacing it ? Best regards, Peter -- Dr. Peter Van Osta Union Biometrica N.V./S.A. European Scientific Operations Cipalstraat 3 B-2440 Geel Belgium tel.: +32 (0)14 570 619 fax.: +32 (0)14 570 621 From sven@gimp.org Tue Feb 19 08:18:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id E30E0182AA for ; Tue, 19 Feb 2002 08:18:28 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16dAA2-0007jK-00; Tue, 19 Feb 2002 14:18:22 +0100 To: pvosta@unionbio-eu.com Cc: gtk-list@gnome.org Subject: Re: signal_connect depreciated ? References: <3C724C65.3DBA2A42@unionbio-eu.com> From: Sven Neumann Date: 19 Feb 2002 14:18:21 +0100 In-Reply-To: <3C724C65.3DBA2A42@unionbio-eu.com> Message-ID: Lines: 45 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Peter Van Osta writes: > I apologize for this newbie question, but I have just started studying > GTK and I want to try to compile the simple "helloworld.c" example on > the gtk.org website > > http://www.gtk.org/tutorial/ch-gettingstarted.html#SEC-HELLOWORLD > > I saved the source code into a C-file and tried to compile it as > indicated. However I got the following error message: > > helloworld.c: In function `main': > helloworld.c:55: warning: implicit declaration of function > `signal_connect' > helloworld.c:79: warning: implicit declaration of function > `g_signal_connect_swapped' you are most probably following a GTK+-2.0 tutorial and link against GTK+-1.2. Actually the tutorial is in a strange state. It mixes GTK+-2.0 and GTK+-1.2 API: g_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (destroy), NULL); that should be (for GTK+-2.0): g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (destroy), NULL); IIRC, the tutorial is not fully converted to the new API yet and I don't think the tutorial found on the web-site is supposed to be the new one yet. > I read somewhere that "g_signal_connect" is depreciated, but I have no > clue what should be replacing it ? g_signal_connect() and friends is the new GObject signal API. The deprecated functions are gtk_signal_connect() and friends. Salut, Sven From jeremy@chaos.org.uk Tue Feb 19 14:08:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ganglion.demon.co.uk (ganglion.demon.co.uk [212.228.142.92]) by mail.gnome.org (Postfix) with ESMTP id 9EE1C18154 for ; Tue, 19 Feb 2002 14:08:37 -0500 (EST) Received: from chaos.org.uk (jeremy@localhost) by ganglion.demon.co.uk (8.11.6/8.11.6) with ESMTP id g1JJ0Ph27279 for ; Tue, 19 Feb 2002 19:00:26 GMT Message-Id: <200202191900.g1JJ0Ph27279@ganglion.demon.co.uk> X-Authentication-Warning: ganglion.demon.co.uk: jeremy owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: Re: new problem In-Reply-To: Message from Javed of "Tue, 19 Feb 2002 10:35:25 +0530." <3C71DD15.F9A01CAE@vsnl.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 19 Feb 2002 19:00:23 +0000 From: Jeremy Henty Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Javed writes: > configure: error: C compiler cannot create executables. > After which I tried compiling a C program, and it did not > execute. What were the error messages? It's hard to offer useful help without the details. Regards, Jeremy Henty -- Here's the secret that every successful software company is based on: You can domesticate programmers the way beekeepers tame bees. You can't exactly communicate with them, but you can get them to swarm in one place and when they're not looking, you can carry off the honey. -- Orson Scott Card, http://carolyn.org/osc.html From inodal@teleline.es Tue Feb 19 14:15:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp2.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 4FB4F18196 for ; Tue, 19 Feb 2002 14:15:45 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp2.mail.isp (Netscape Messaging Server 4.15 tsmtp2 Jul 26 2001 13:10:38) with ESMTP id GRSO6401.RUA for ; Tue, 19 Feb 2002 20:15:40 +0100 Message-ID: <3C72A469.8090807@teleline.es> Date: Tue, 19 Feb 2002 19:15:53 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: which child of my box is the one currently "activate"? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I've a class (written in C++) whith a GtkGLArea and several callbacks connected to button_press_event, button_release_event, etc... I call it GGLSurf. Now I want to use this class in another one to insert two GtkGLArea widgets in my Application. This new class is not a subclass of GGLSurf, it only has GGLSurf* as members of it. I've created an horizontal box and pack the to widgets in it. I also have several dialog windows to change values in the scene (lights, camera, fog, etc). The problem comes when I try to use the dialogs windows for both GtkGLAreas. _GGLSurfs is an array pointing to all my objects of the GGLSurf class, in this case just two: GGLSurf* _GGLSurfs[MAX_GGLSURFS]; guint _current_gglsurf; guint _num_gglsurfs; And all the elements in these windows are relative to _gglsurf, which is declared as: #define _gglsurf _GGLSurfs[_current_gglsurf] The problem is I don't know how to update "_current_gglsurf" since the callbacks for button_press_event, etc. are all in GGLSurf.hpp. How can I updat my "_current_gglsurf" from outside this class? Is there any way to ask, for example, which one of the childs inserted in the box is "activate"?? Thanks From seberino@dt092n42.san.rr.com Tue Feb 19 16:32:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 3106318DDD for ; Tue, 19 Feb 2002 16:32:35 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16dHsJ-0000CW-00 for gtk-list@gnome.org; Tue, 19 Feb 2002 13:32:35 -0800 Date: Tue, 19 Feb 2002 13:32:35 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: Linux->Win32 GTK+ porting question Message-ID: <20020219133235.A772@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes I know Cygwin rules and VMWare rules. Both would allow painless running of Linux GTK+ code on Windoze. I want to make an executable that ANYONE can run on Windoze without having to install anything like Cygwin or VMWARE. Has anyone taken the painful path of using the Win32 GTK+ libraries and getting even toy GTK+ code to generate a working .exe file?? I'm stuck on this and could use some help. I did the RTFM thing already but there are lots of gotchas and it would be really be nice to find someone who got this working successfully. Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From cooperdl@worldnet.att.net Tue Feb 19 22:46:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by mail.gnome.org (Postfix) with ESMTP id 9CE6D180E3 for ; Tue, 19 Feb 2002 22:46:45 -0500 (EST) Received: from athlon ([209.195.176.164]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020220034645.FBJE11818.mtiwmhc22.worldnet.att.net@athlon> for ; Wed, 20 Feb 2002 03:46:45 +0000 From: "David L. Cooper II" To: Subject: RE: Linux->Win32 GTK+ porting question Date: Tue, 19 Feb 2002 22:46:57 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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) In-Reply-To: <20020219133235.A772@spawar.navy.mil> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Chris, Yes, I've been down that road. I'm actually happy to say that I was able to take an application that I developed using Glade and recompile it to run natively on Windows. Check out: http://www.gimp.org/~tml/gimp/win32//new-downloads.html for more information on the libraries for windows. Regards, David -----Original Message----- From: gtk-list-admin@gnome.org [mailto:gtk-list-admin@gnome.org]On Behalf Of Chris Seberino Sent: Tuesday, February 19, 2002 4:33 PM To: gtk-list@gnome.org Subject: Linux->Win32 GTK+ porting question Yes I know Cygwin rules and VMWare rules. Both would allow painless running of Linux GTK+ code on Windoze. I want to make an executable that ANYONE can run on Windoze without having to install anything like Cygwin or VMWARE. Has anyone taken the painful path of using the Win32 GTK+ libraries and getting even toy GTK+ code to generate a working .exe file?? I'm stuck on this and could use some help. I did the RTFM thing already but there are lots of gotchas and it would be really be nice to find someone who got this working successfully. Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From blue_pion@hotmail.com Wed Feb 20 02:48:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f50.pav1.hotmail.com [64.4.31.50]) by mail.gnome.org (Postfix) with ESMTP id 7ECE9181E9 for ; Wed, 20 Feb 2002 02:48:54 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 19 Feb 2002 23:48:53 -0800 Received: from 137.132.3.9 by pv1fd.pav1.hotmail.msn.com with HTTP; Wed, 20 Feb 2002 07:48:52 GMT X-Originating-IP: [137.132.3.9] From: "Ricky Foo" To: gtk-list@gnome.org Subject: Gtk drawing Date: Wed, 20 Feb 2002 07:48:52 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 20 Feb 2002 07:48:53.0608 (UTC) FILETIME=[0AFBE680:01C1B9E3] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Question about gtk_drawing_area. I created this dialog window with 3 drawing areas inside. However, no matter how I tried, I couldn't get the graphics to appear. There is nothing wrong with my callback. I have already cross-checked it. Does GTK+ forbid multiple drawing areas within 1 window? Where could the problem be? Ricky _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From seberino@dt092n42.san.rr.com Wed Feb 20 03:50:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id B3452181CF for ; Wed, 20 Feb 2002 03:50:52 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16dSSn-0000c8-00; Wed, 20 Feb 2002 00:50:57 -0800 Date: Wed, 20 Feb 2002 00:50:57 -0800 From: Chris Seberino To: gtk-list@gnome.org Cc: pbd@Op.Net Subject: How access pixmap info like width&height? (1st arg of configure/expose callback nice...) Message-ID: <20020220005057.A2332@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Configure and Expose events will use a callback with the first argument being a widget that has nice info about pixmap to be redrawn like width, height, style & "window". How can I access this widget on my own??? Or, how can I get at this info for a pixmap some other way??? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pvosta@unionbio-eu.com Wed Feb 20 04:24:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 13A91183C4 for ; Wed, 20 Feb 2002 04:24:26 -0500 (EST) Received: (qmail 7136 invoked from network); 20 Feb 2002 09:20:46 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 20 Feb 2002 09:20:46 -0000 Message-ID: <3C736B0B.BF995AC1@unionbio-eu.com> Date: Wed, 20 Feb 2002 10:23:23 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: upgrading GTK1.2 to GTK2.0 and displaying images Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am currently running a RedHat 7.2 system with GTK1.2 installed. How do I upgrade from GTK1.2 to GTK2.0 without breaking the system ? I am using GNOME for my desktop and I do not want to crash the system by changing libraries the system might depend on. When compiling a GTK-based program I use "gtk-config --cflags --libs", I suppose I have to redirect the settings of gtk-config to the updated GTK2.0 if I want to use GTK2.0 instead of GTK1.2 ? I intend to use the GTK for "modernising" an imaging system, where do I find information/examples of how to "send" image data (bitmaps) to a GTK-window. Although the focus in my application is on automated image acquisition and analysis, I now and then wan to display an image on the screen. The focus of my work is to "extract" numerical data out of images, not displaying them or interactive work. For an example of what I intend to "modernise", you can have a look at my persoanl website: http://ourworld.compuserve.com/homepages/pvosta/cvwww.htm Best regards and lots of thanks in advance, Peter -------------------- Dr. Peter Van Osta Union Biometrica N.V./S.A. European Scientific Operations Cipalstraat 3 B-2440 Geel Belgium tel.: +32 (0)14 570 619 fax.: +32 (0)14 570 621 From sven@gimp.org Wed Feb 20 04:58:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 0D936181DA for ; Wed, 20 Feb 2002 04:58:41 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16dTWJ-00032V-00; Wed, 20 Feb 2002 10:58:39 +0100 To: pvosta@unionbio-eu.com Cc: GTK-list Subject: Re: upgrading GTK1.2 to GTK2.0 and displaying images References: <3C736B0B.BF995AC1@unionbio-eu.com> From: Sven Neumann Date: 20 Feb 2002 10:58:39 +0100 In-Reply-To: <3C736B0B.BF995AC1@unionbio-eu.com> Message-ID: Lines: 20 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Peter Van Osta writes: > I am currently running a RedHat 7.2 system with GTK1.2 installed. How do > I upgrade from GTK1.2 to GTK2.0 without breaking the system ? I am using > GNOME for my desktop and I do not want to crash the system by changing > libraries the system might depend on. no too old versions of gtk+-1.2 live peacefully with gtk+-2.0 on the same system or even in the same prefix. > When compiling a GTK-based program I use "gtk-config --cflags --libs", I > suppose I have to redirect the settings of gtk-config to the updated > GTK2.0 if I want to use GTK2.0 instead of GTK1.2 ? pkg-config --cflags --libs gtk+-2.0 Salut, Sven From John.Cupitt@ng-london.org.uk Wed Feb 20 06:25:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 9619918198 for ; Wed, 20 Feb 2002 06:25:34 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXL099>; Wed, 20 Feb 2002 11:25:33 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXL098; Wed, 20 Feb 2002 11:25:31 -0000 Message-ID: <3C73845B.40902@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: blue_pion@hotmail.com Cc: gtk-list@gnome.org Subject: Re: Gtk drawing Date: Wed, 20 Feb 2002 11:11:23 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ricky Foo wrote: > Question about gtk_drawing_area. I created this dialog window with 3 > drawing areas inside. However, no matter how I tried, I couldn't get the > graphics to appear. There is nothing wrong with my callback. I have > already cross-checked it. > > Does GTK+ forbid multiple drawing areas within 1 window? Where could the > problem be? No, this should be fine. I'm afraid there's probably a problem in your code somewhere. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From castor.fou@wanadoo.fr Wed Feb 20 06:30:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto2.wanadoo.fr (smtp-out-2.wanadoo.fr [193.252.19.254]) by mail.gnome.org (Postfix) with ESMTP id 2DCF21819F for ; Wed, 20 Feb 2002 06:30:56 -0500 (EST) Received: from mel-rta1.wanadoo.fr (193.252.19.150) by mel-rto2.wanadoo.fr; 20 Feb 2002 12:30:55 +0100 Received: from pentium (193.249.83.45) by mel-rta1.wanadoo.fr; 20 Feb 2002 12:30:43 +0100 Message-ID: <003501c1ba02$095a5360$2d53f9c1@pentium> From: "Castor Fou" To: Subject: [GTK help] Date: Wed, 20 Feb 2002 12:30:43 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0032_01C1BA0A.6A0730E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0032_01C1BA0A.6A0730E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi! How I can superpose two GtkText in the same window (in a notebook for = example)? In a background, a gtktext where you can't modify the text and = in the foreground, a gtktext where you can modify the text. Result, you = have the background and the foreground in the same window with the = superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------=_NextPart_000_0032_01C1BA0A.6A0730E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi!
How I can superpose two GtkText in the = same window=20 (in a notebook for example)? In a background, a gtktext where you can't = modify=20 the text and in the foreground, a gtktext where you can modify the text. = Result,=20 you have the background and the foreground in the same window with = the=20 superposed texts.
Thanks,
 
Excuse me for my 'english' but I don't = speak it=20 very well.
------=_NextPart_000_0032_01C1BA0A.6A0730E0-- From bruces@mail.petech.ac.za Wed Feb 20 06:36:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ed.petech.ac.za (smtpgate.petech.ac.za [196.21.192.4]) by mail.gnome.org (Postfix) with ESMTP id A6C2418853 for ; Wed, 20 Feb 2002 06:36:06 -0500 (EST) Received: from what (what.petech.ac.za [10.11.2.27]) by ed.petech.ac.za (8.9.3/8.8.7) with SMTP id NAA22670 for ; Wed, 20 Feb 2002 13:36:00 +0200 Message-ID: <00e701c1ba03$d00a78e0$1b020b0a@petech.ac.za> From: "Bruce A. Smith" To: References: <003501c1ba02$095a5360$2d53f9c1@pentium> Subject: Re: [GTK help] Date: Wed, 20 Feb 2002 13:43:27 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00E4_01C1BA14.9371B720" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_00E4_01C1BA14.9371B720 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Nope, can't be done. ----- Original Message -----=20 From: Castor Fou=20 To: gtk-list@gnome.org=20 Sent: Wednesday, February 20, 2002 1:30 PM Subject: [GTK help] Hi! How I can superpose two GtkText in the same window (in a notebook for = example)? In a background, a gtktext where you can't modify the text and = in the foreground, a gtktext where you can modify the text. Result, you = have the background and the foreground in the same window with the = superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------=_NextPart_000_00E4_01C1BA14.9371B720 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Nope, can't be done.
 
----- Original Message -----
From:=20 Castor=20 Fou
Sent: Wednesday, February 20, = 2002 1:30=20 PM
Subject: [GTK help]

Hi!
How I can superpose two GtkText in = the same=20 window (in a notebook for example)? In a background, a gtktext where = you can't=20 modify the text and in the foreground, a gtktext where you can modify = the=20 text. Result, you have the background and the foreground in the = same=20 window with the superposed texts.
Thanks,
 
Excuse me for my 'english' but I = don't speak it=20 very well.
------=_NextPart_000_00E4_01C1BA14.9371B720-- From inimss@yahoo.com Wed Feb 20 08:02:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ekm.asianetonline.net (unknown [202.88.231.2]) by mail.gnome.org (Postfix) with ESMTP id 2B5D11814F; Wed, 20 Feb 2002 08:02:02 -0500 (EST) Received: from dino ([202.88.224.172]) by ekm.asianetonline.net (Netscape Messaging Server 4.15) with SMTP id GRTZK100.I4I; Wed, 20 Feb 2002 07:19:13 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: [INIMSS] Problem with CList, may be a bug in GTK+. Date: Tue, 19 Feb 2002 06:10:13 +0530 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02021906101300.01257@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi In my application I had a CList with the selection mode set to Browse (Glade term, hope you will understand). When I tried to add a row using gtk_clist_append the application crashed (segmentation fault). Then I changed the selection mode to Single and the application worked fine. Why is this happening? Is it my fault or the fault of the GTK? Thanks Dino From inodal@teleline.es Wed Feb 20 08:23:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp7.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 8160E1814B for ; Wed, 20 Feb 2002 08:23:06 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp7.mail.isp (Netscape Messaging Server 4.15 tsmtp7 Jul 26 2001 13:10:38) with ESMTP id GRU2IH01.NKM for ; Wed, 20 Feb 2002 14:23:05 +0100 Message-ID: <3C73A33C.2020504@teleline.es> Date: Wed, 20 Feb 2002 13:23:08 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: g_strdup() Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm using the g_strdup() function provided by glib, which is suppose to duplicate a string, to update a file name string stored in a gchar* from a GtkEntry. In fact, it's a member of a my class, so I pass it in the constructor: ParameterFile::ParameterFile(GtkWidget* parent, gchar* param) { _file_name = param; _File_entry = 0; //It's created later _value_changed = 0; .... } I've connected the "activate" signal of the GtkEntry used show/enter the file name. In my callback I call a member function Update(): ParameterFile::Update() { gchar *ch; ch = g_strdup(gtk_entry_get_text(GTK_ENTRY(_File_entry))); _value_changed = (strcmp(_file_name, ch) != 0); if (_value_changed) { if (_file_name != 0) g_free(_file_name); _file_name = g_strdup(ch); } } If I call g_print("post-g_strdup %s\n",_filename); it shows me the correct value. If I call it in my main.cpp the value passed to the constructor, where the strign should be stored, points whereever it my be, but not where I want.. In my main.cpp, just testing, I use: gchar* _wrl_name = g_strdup("default.wrl"); ParameterFile* entry_param = new ParameterFile(parent, _wrl_name); [...] And a button that prints _wrl_name if clicked. What's going wrong? Can I pass _wrl_name to my constructor or do I have to pass gchar**? Thanks.. Someday I'll beat pointers... From John.Cupitt@ng-london.org.uk Wed Feb 20 09:21:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 4507A181A9 for ; Wed, 20 Feb 2002 09:21:39 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMA3G>; Wed, 20 Feb 2002 14:21:38 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMA3F; Wed, 20 Feb 2002 14:21:31 -0000 Message-ID: <3C73AD9B.9000500@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: inodal@teleline.es Cc: gtk-list@gnome.org Subject: Re: g_strdup() Date: Wed, 20 Feb 2002 14:07:23 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Ignacio, you need to be more careful about where you strdup, and you need to look at entry_param->_file_name, not at _wrl_name. The rule is that each instance of ParameterFile must own the pointer to the _file_name string. So: strdup() when you set _file_name, free when you unset, and absolutely NO free/strdup anywhere else. I have a couple of macros I use to make this safer: #define STRFREE( S ) \ { if( S ) { g_free( S ); (S) = 0; } } #define STRSET( S, V ) \ { STRFREE( S ); if( V ) { (S) = g_strdup( V ); } } so your functions become: > ParameterFile::ParameterFile(GtkWidget* parent, gchar* param) > { > > _file_name = 0; > STRSET( _file_name, param ); > _File_entry = 0; //It's created later > > _value_changed = 0; > .... > > } > ParameterFile::Update() > { > gchar *ch; > > ch = gtk_entry_get_text(GTK_ENTRY(_File_entry)); > > _value_changed = (strcmp(_file_name, ch) != 0); > > if (_value_changed) > STRSET( _file_name, ch ); > > } and in main.cpp: > gchar *_wrl_name = "default.wrl"; > ParameterFile* entry_param = new ParameterFile(parent, _wrl_name); You also need to make sure you have STRFREE( _file_name ) in your destructor for ParameterFile. Finally, in your button callback, don't print _wrl_name ... that will always be the start value. Instead, print entry_param->_file_name John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From Esteban.Quijano@artinsoft.com Wed Feb 20 10:29:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id 9188518AF8 for ; Wed, 20 Feb 2002 10:29:16 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id ; Wed, 20 Feb 2002 10:21:45 -0600 Message-ID: From: Esteban Quijano To: Castor Fou Cc: gtk-list@gnome.org Subject: RE: [GTK help] Date: Wed, 20 Feb 2002 09:23:04 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1BA22.7DEE2CE0" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C1BA22.7DEE2CE0 Content-Type: text/plain; charset="iso-8859-1" Let's see. As I understand you want a gtktext over a bigger gtktext, both in the same window, don't you? You can do that with a GtkFixed widget. You can position widgets at fixed coordinates, no matter if one widget is in front of another one. Esteban Quijano V. Artinsoft corp -----Original Message----- From: Castor Fou [mailto:castor.fou@wanadoo.fr] Sent: Wednesday, February 20, 2002 5:31 AM To: gtk-list@gnome.org Subject: [GTK help] Hi! How I can superpose two GtkText in the same window (in a notebook for example)? In a background, a gtktext where you can't modify the text and in the foreground, a gtktext where you can modify the text. Result, you have the background and the foreground in the same window with the superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------_=_NextPart_001_01C1BA22.7DEE2CE0 Content-Type: text/html; charset="iso-8859-1"
Let's see. As I understand you want a gtktext over a bigger gtktext, both in the same window, don't you?
You can do that with a GtkFixed widget. You can position widgets at fixed coordinates, no matter if one widget is in front of another one.
 
Esteban Quijano V.
Artinsoft corp
-----Original Message-----
From: Castor Fou [mailto:castor.fou@wanadoo.fr]
Sent: Wednesday, February 20, 2002 5:31 AM
To: gtk-list@gnome.org
Subject: [GTK help]

Hi!
How I can superpose two GtkText in the same window (in a notebook for example)? In a background, a gtktext where you can't modify the text and in the foreground, a gtktext where you can modify the text. Result, you have the background and the foreground in the same window with the superposed texts.
Thanks,
 
Excuse me for my 'english' but I don't speak it very well.
------_=_NextPart_001_01C1BA22.7DEE2CE0-- From jimmycllin@hotmail.com Wed Feb 20 11:39:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (oe64.law11.hotmail.com [64.4.16.199]) by mail.gnome.org (Postfix) with ESMTP id D89231814C for ; Wed, 20 Feb 2002 11:39:55 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 20 Feb 2002 08:39:55 -0800 X-Originating-IP: [61.10.172.12] From: "Jimmy Lin" To: Subject: When will GTK+2.0 be released? Date: Thu, 21 Feb 2002 00:41:35 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0061_01C1BA70.83EC4ED0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 20 Feb 2002 16:39:55.0176 (UTC) FILETIME=[39F55A80:01C1BA2D] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0061_01C1BA70.83EC4ED0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Hello, I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and GTK+2.0 = is incompatible. So should I learn GTK+2.0 is much better now? Please = give me some advices. Thanks!!! Jimmy ------=_NextPart_000_0061_01C1BA70.83EC4ED0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Hello,
 
I'm a new comer of GTK+, I noticed that the api = of GTK+1.2=20 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much=20 better now? Please give me some advices. = Thanks!!!
 
Jimmy
------=_NextPart_000_0061_01C1BA70.83EC4ED0-- From josebagar@euskalnet.net Wed Feb 20 16:45:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from eui3smtp.euskaltel.es (eui3smtp.euskaltel.es [212.55.8.58]) by mail.gnome.org (Postfix) with ESMTP id A8005181DD for ; Wed, 20 Feb 2002 16:45:36 -0500 (EST) Received: from localhost ([193.153.232.47]) by eui3smtp.euskaltel.es (Netscape Messaging Server 4.15) with ESMTP id GRUPRJ02.SEP for ; Wed, 20 Feb 2002 22:45:19 +0100 Content-Type: text/plain; charset="us-ascii" From: Joseba Garcia Etxebarria To: gtk-list@gnome.org Subject: gtk on win32 Date: Wed, 20 Feb 2002 22:44:47 +0100 X-Mailer: KMail [version 1.3.9] MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200202202244.47712.josebagar@euskalnet.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, maybe you have discussed this many times before, but the thing is that i = got a=20 project in linux that uses gtk that i want to port to windows (either MSV= C5=20 or cygwin) i'm quite newby to this kind of things, so i don't know where = to=20 start from. I've been to gimp.org/win32 but it seems quite confusing to m= e in=20 relation to porting my own applications to win32 (although it's a great p= age=20 for other purposes, like geting gimp :-) So, where should i start from? i think it would be of a great help if any= one=20 could send me a "standard" win32+gtk project with only the headers and=20 libraries linked to it, i don't thinks i physically need this headers and= =20 libraries emailed to me as i have already downloaded them from the gimp p= age. thanks a lot in advance, joseba PD: my code compiles cleanly in linux From castor.fou@wanadoo.fr Wed Feb 20 17:27:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto1.wanadoo.fr (smtp-out-1.wanadoo.fr [193.252.19.188]) by mail.gnome.org (Postfix) with ESMTP id 7B9871889A for ; Wed, 20 Feb 2002 17:27:00 -0500 (EST) Received: from mel-rta2.wanadoo.fr (193.252.19.152) by mel-rto1.wanadoo.fr; 20 Feb 2002 23:26:58 +0100 Received: from pentium (193.248.63.221) by mel-rta2.wanadoo.fr; 20 Feb 2002 23:26:48 +0100 Message-ID: <001d01c1ba5d$b0116760$dd3ff8c1@pentium> From: "Castor Fou" To: References: Subject: [GTK help] Date: Wed, 20 Feb 2002 23:25:20 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0014_01C1BA65.DD288CD0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0014_01C1BA65.DD288CD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks for the tips. But, my foreground must be diaphanously because the text on the = background must be visible. I think I'm not clear. I have a notebook. In the notebook, I add a GtKFixed with two GtkText = which coordonates must be the same. The first GtkText include, for = example, a head, the legs, the armes, the foot and two hands. The second = include the body. It is possible to see the body completely ? With a = second text's foreground diaphanously ? I hope that you understand me, Thanks, C@stor ------=_NextPart_000_0014_01C1BA65.DD288CD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Thanks for the tips.
But, my foreground must be diaphanously because the text on the background must be = visible. I think=20 I'm not clear.
I have a notebook. In the notebook, I = add a=20 GtKFixed with two GtkText which coordonates must be the same. = The=20 first GtkText include, for example, a head, the legs, the armes, the=20 foot and two hands. The second include the body. It is = possible to see=20 the body completely ? With a second text's foreground diaphanously=20 ?
I hope that you understand = me,
Thanks,
 
------=_NextPart_000_0014_01C1BA65.DD288CD0-- From cooperdl@worldnet.att.net Wed Feb 20 17:53:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by mail.gnome.org (Postfix) with ESMTP id 5ECFC18201 for ; Wed, 20 Feb 2002 17:53:25 -0500 (EST) Received: from athlon ([209.195.176.164]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020220225324.DMK5745.mtiwmhc22.worldnet.att.net@athlon>; Wed, 20 Feb 2002 22:53:24 +0000 From: "David L. Cooper II" To: "Joseba Garcia Etxebarria" , Subject: RE: gtk on win32 Date: Wed, 20 Feb 2002 17:53:39 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" 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) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <200202202244.47712.josebagar@euskalnet.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Check out: http://www.gimp.org/~tml/gimp/win32//new-downloads.html for more information on the libraries for windows. Regards, David -----Original Message----- From: gtk-list-admin@gnome.org [mailto:gtk-list-admin@gnome.org]On Behalf Of Joseba Garcia Etxebarria Sent: Wednesday, February 20, 2002 4:45 PM To: gtk-list@gnome.org Subject: gtk on win32 Hi, maybe you have discussed this many times before, but the thing is that i got a project in linux that uses gtk that i want to port to windows (either MSVC5 or cygwin) i'm quite newby to this kind of things, so i don't know where to start from. I've been to gimp.org/win32 but it seems quite confusing to me in relation to porting my own applications to win32 (although it's a great page for other purposes, like geting gimp :-) So, where should i start from? i think it would be of a great help if anyone could send me a "standard" win32+gtk project with only the headers and libraries linked to it, i don't thinks i physically need this headers and libraries emailed to me as i have already downloaded them from the gimp page. thanks a lot in advance, joseba PD: my code compiles cleanly in linux _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From cooperdl@worldnet.att.net Wed Feb 20 17:59:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by mail.gnome.org (Postfix) with ESMTP id 7677018201 for ; Wed, 20 Feb 2002 17:59:20 -0500 (EST) Received: from athlon ([209.195.176.164]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020220225920.DRU5745.mtiwmhc22.worldnet.att.net@athlon>; Wed, 20 Feb 2002 22:59:20 +0000 From: "David L. Cooper II" To: "Jimmy Lin" , Subject: RE: When will GTK+2.0 be released? Date: Wed, 20 Feb 2002 17:59:35 -0500 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0016_01C1BA38.5B047C00" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0016_01C1BA38.5B047C00 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit Check the mailing list archive at: http://mail.gnome.org/archives/gtk-devel-list/2002-February/thread.html David -----Original Message----- From: gtk-list-admin@gnome.org [mailto:gtk-list-admin@gnome.org]On Behalf Of Jimmy Lin Sent: Wednesday, February 20, 2002 11:42 AM To: gtk-list@gnome.org Subject: When will GTK+2.0 be released? Hello, I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much better now? Please give me some advices. Thanks!!! Jimmy ------=_NextPart_000_0016_01C1BA38.5B047C00 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Check=20 the mailing list archive at:
http://mail.gnome.org/archives/gtk-devel-list/2002-February/threa= d.html
 
David
-----Original Message-----
From: = gtk-list-admin@gnome.org=20 [mailto:gtk-list-admin@gnome.org]On Behalf Of Jimmy = Lin
Sent:=20 Wednesday, February 20, 2002 11:42 AM
To:=20 gtk-list@gnome.org
Subject: When will GTK+2.0 be=20 released?

Hello,
 
I'm a new comer of GTK+, I noticed that the = api of=20 GTK+1.2 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much = better now? Please give me some advices. = Thanks!!!
 
Jimmy
------=_NextPart_000_0016_01C1BA38.5B047C00-- From cpollock@vvm.com Wed Feb 20 18:25:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ns.vvm.com (ns.vvm.com [66.196.0.1]) by mail.gnome.org (Postfix) with ESMTP id C8E3618201 for ; Wed, 20 Feb 2002 18:25:24 -0500 (EST) Received: from there (ka02-66.vvm.com [66.196.2.66]) by ns.vvm.com (8.12.1/8.12.1) with SMTP id g1KNPNVh005874 for ; Wed, 20 Feb 2002 17:25:23 -0600 Message-Id: <200202202325.g1KNPNVh005874@ns.vvm.com> Content-Type: text/plain; charset="iso-8859-1" From: Chris Pollock Reply-To: cpollock@vvm.com To: gtk-list@gnome.org Subject: gtk config Date: Wed, 20 Feb 2002 17:30:07 -0600 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Linux newbie here. I'm trying to install a program named BookBase. During the installation I get 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: error: Cannot find GTK: Is gtk-config in path? As far as I know GTK was installed when I installed Mandrake. I'm running Mandrake 8.1 Any help for this lost newbie would be appreciated. Chris From rbultje@ronald.bitfreak.net Wed Feb 20 18:29:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id 0160D18201 for ; Wed, 20 Feb 2002 18:29:53 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1KNKH4K025870 for ; Thu, 21 Feb 2002 00:20:17 +0100 (CET) Subject: move-event From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 21 Feb 2002 00:29:51 +0100 Message-Id: <1014247791.20045.134.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, is there an event which is triggered by moving windows? expose_event only gets called on a full repaint, I basically need to do some work whenever the drawing area is being increased/decreased in size or is being moved, either relative to the parent window or relative to the desktop root window. I thought configure_event would be my lucky guess, but that doesn't seem to get triggered at all. I use Gtk-1.3.13. Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From Esteban.Quijano@artinsoft.com Wed Feb 20 19:48:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id D2D96186B0 for ; Wed, 20 Feb 2002 19:48:44 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id ; Wed, 20 Feb 2002 19:25:28 -0600 Message-ID: From: Esteban Quijano To: 'Ronald Bultje' Cc: "'gtk-list@gnome.org'" Subject: RE: move-event Date: Wed, 20 Feb 2002 18:28:02 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: gtk_signal_connect(GTK_OBJECT(window), "configure_event", GTK_SIGNAL_FUNC(msg_window_setposition), data); gbool msg_window_setposition(GtkWidget *widget, GdkEventConfigure *event, gpointer user_data) { /* Do whatever you want with event->x and event->y */ return TRUE; } The configure_event can also catch resizing. Esteban Quijano Vincenzi Artinsoft corp. -----Original Message----- From: Ronald Bultje [mailto:rbultje@ronald.bitfreak.net] Sent: Wednesday, February 20, 2002 5:30 PM To: gtk-list@gnome.org Subject: move-event Hi there, is there an event which is triggered by moving windows? expose_event only gets called on a full repaint, I basically need to do some work whenever the drawing area is being increased/decreased in size or is being moved, either relative to the parent window or relative to the desktop root window. I thought configure_event would be my lucky guess, but that doesn't seem to get triggered at all. I use Gtk-1.3.13. Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From rtriay@avantel.net Thu Feb 21 01:22:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h004.c003.snv.cp.net [209.228.32.218]) by mail.gnome.org (Postfix) with SMTP id 5623418D6F for ; Thu, 21 Feb 2002 01:22:02 -0500 (EST) Received: (cpmta 3237 invoked from network); 20 Feb 2002 22:21:57 -0800 Received: from 148.240.116.19 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.218) with SMTP; 20 Feb 2002 22:21:57 -0800 X-Sent: 21 Feb 2002 06:21:57 GMT Received: from triay.net [10.0.0.2] by Proxy+; Thu, 21 Feb 2002 00:20:31 -0600 for Subject: inheritance From: Ramon Alberto Triay Espinosa To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 00:27:44 -0500 Mime-Version: 1.0 Message-Id: <20020221062202.5623418D6F@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: simple question: does all the 'children' widgets inherit all the functions of the 'parent' widget? I mean, does all functions that apply to a widget, apply to their children too? thanx rtriay :) From hp@redhat.com Thu Feb 21 01:29:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id B019C18FA8 for ; Thu, 21 Feb 2002 01:29:07 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1L6T6v10508; Thu, 21 Feb 2002 01:29:06 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: move-event References: <1014247791.20045.134.camel@tux> From: Havoc Pennington Date: 21 Feb 2002 01:29:06 -0500 In-Reply-To: <1014247791.20045.134.camel@tux> Message-ID: Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > > is there an event which is triggered by moving windows? expose_event > only gets called on a full repaint, I basically need to do some work > whenever the drawing area is being increased/decreased in size or is > being moved, either relative to the parent window or relative to the > desktop root window. configure_event will come on a drawing area when it's moved relative to its parent, or resized. For relative to the root, you need configure_event on the toplevel GtkWindow. Havoc From rsteinke@w-link.net Thu Feb 21 01:43:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 3D3A8183B9 for ; Thu, 21 Feb 2002 01:43:20 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dmwj-00006J-00; Wed, 20 Feb 2002 22:43:13 -0800 Date: Wed, 20 Feb 2002 22:43:13 -0800 From: rsteinke@w-link.net To: rtriay@avantel.net, gtk-list@gnome.org Subject: Re: inheritance Message-ID: <3C749701.nailAA1IL9PT@w-link.net> References: <20020221062202.5623418D6F@mail.gnome.org> In-Reply-To: <20020221062202.5623418D6F@mail.gnome.org> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > From: Ramon Alberto Triay Espinosa > > simple question: > does all the 'children' widgets inherit all the functions of the > 'parent' widget? > I mean, does all functions that apply to a widget, apply to their > children too? > > thanx > rtriay > :) Yep. All you need to do is cast them using the appropriate macros (e.g., to use the gtk_widget_foo() function, cast your descended widget pointer to a GtkWidget* using the macro GTK_WIDGET()). Ron Steinke From jyothi@ncoretech.com Thu Feb 21 01:58:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id D248318282 for ; Thu, 21 Feb 2002 01:58:13 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g1L6w5U18028 for ; Thu, 21 Feb 2002 12:28:05 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g1L6w5p32074 for gtk-list@gnome.org.VIRCHECK; Thu, 21 Feb 2002 12:28:05 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g1L6w4U31985 for ; Thu, 21 Feb 2002 12:28:04 +0530 Message-ID: <3C749A68.FEB69057@ncoretech.com> Date: Thu, 21 Feb 2002 12:27:44 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How to center the text Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 21 12:28:04 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have drawn a rectangle using gdk_draw_rectangle. I am using gdk_draw_string to write a char into that rectangle. But every time I am manually centering the char inside the rectangle , I mean by adjusting x an y position of char. It is not accurately centered. Is there any function or way by which I can center the char inside a drawn rectangle. Thanks in Advance, Jyothi. From rtriay@avantel.net Thu Feb 21 01:59:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h000.c003.snv.cp.net [209.228.32.214]) by mail.gnome.org (Postfix) with SMTP id 9037C18D23 for ; Thu, 21 Feb 2002 01:59:13 -0500 (EST) Received: (cpmta 9949 invoked from network); 20 Feb 2002 22:59:09 -0800 Received: from 148.240.116.19 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.214) with SMTP; 20 Feb 2002 22:59:09 -0800 X-Sent: 21 Feb 2002 06:59:09 GMT Received: from triay.net [10.0.0.2] by Proxy+; Thu, 21 Feb 2002 00:53:05 -0600 for multiple recipients Subject: Re: inheritance From: Ramon Alberto Triay Espinosa To: rsteinke@w-link.net, gtk-list@gnome.org In-Reply-To: <3C749701.nailAA1IL9PT@w-link.net> References: <20020221062202.5623418D6F@mail.gnome.org> <3C749701.nailAA1IL9PT@w-link.net> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 01:00:17 -0500 Mime-Version: 1.0 Message-Id: <20020221065913.9037C18D23@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: El 20 Feb 2002 22:43:13 -0800, rsteinke@w-link.net escribió: > > From: Ramon Alberto Triay Espinosa > > > > simple question: > > does all the 'children' widgets inherit all the functions of the > > 'parent' widget? > > I mean, does all functions that apply to a widget, apply to their > > children too? > > > > thanx > > rtriay > > :) > > Yep. All you need to do is cast them using the appropriate macros > (e.g., to use the gtk_widget_foo() function, cast your descended widget > pointer to a GtkWidget* using the macro GTK_WIDGET()). > > Ron Steinke > THANX RON! that's all i needed to know SALUDOS!! rtriay :) From mano@pluto.linux.it Thu Feb 21 03:08:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailrelay1.inwind.it (mailrelay1.inwind.it [212.141.54.101]) by mail.gnome.org (Postfix) with ESMTP id 096E11811A for ; Thu, 21 Feb 2002 03:08:58 -0500 (EST) Received: from pluto.linux.it (62.98.86.101) by mailrelay1.inwind.it (5.5.053) id 3C727DC70010AC5C for gtk-list@gnome.org; Thu, 21 Feb 2002 09:08:56 +0100 Message-ID: <3C74A9C8.1090607@pluto.linux.it> Date: Thu, 21 Feb 2002 09:03:20 +0100 From: Germano Rizzo User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020208 X-Accept-Language: it, en, en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Gtk+2-style auto* scripts Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! just for sake of exploring, I've begun to develop a program in GTK+ 2.0. Now, I'd like to get it packaged properly, so I really need all the automake/autoconf stuff... in the other programs I made, it was easy to find another similar program, just... eeeh... "quote" ;) that kind of stuff from there, and then modify the scripts for my own purposes. The matter is, I don't know of any simple program that uses GTK2, for now. Could you address me, please? Or just advice me to a good documentation that can explain how to make myself such scripts, and/or which differences are there (if any) with the GTK-1.2-style ones? Thanks in advance, and compliments for the really good work you're doing with GTK2, Mano :) PS: I'd like something less complex than GIMP 1.3.x... -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Germano Rizzo - mano@pluto.linux.it ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Pluto FSUG member - www.pluto.linux.it Linux Registered User #120637 PGP/GPG Public Key at http://gnomermind.sf.net/pubkey.txt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ An rud is annamh is iontach ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From mano@pluto.linux.it Thu Feb 21 03:08:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailrelay1.inwind.it (mailrelay1.inwind.it [212.141.54.101]) by mail.gnome.org (Postfix) with ESMTP id C088C1811A for ; Thu, 21 Feb 2002 03:08:58 -0500 (EST) Received: from pluto.linux.it (62.98.86.101) by mailrelay1.inwind.it (5.5.053) id 3C727DC70010AC66 for gtk-list@gnome.org; Thu, 21 Feb 2002 09:08:58 +0100 Message-ID: <3C74AB03.4000900@pluto.linux.it> Date: Thu, 21 Feb 2002 09:08:35 +0100 From: Germano Rizzo User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020208 X-Accept-Language: it, en, en-us MIME-Version: 1.0 To: Mailing List GTK+ Subject: Saving the whole GTKTextBuffer state Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I think this question is really stupid, but... isn't there a way to get *all* the text displayed in a GtkTextBuffer? I mean, the text plus all the tags, attributes, pixmaps... just like a word processor would have? I'm using a textbuffer, and I'm going to implement a way to save it all; but I've a strong feeling of "reinventing the wheel", doing that... would it be simpler, more standard and more "portable" between different apps to implement such a facility? Thanks, Mano :) -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Germano Rizzo - mano@pluto.linux.it ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Pluto FSUG member - www.pluto.linux.it Linux Registered User #120637 PGP/GPG Public Key at http://gnomermind.sf.net/pubkey.txt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ An rud is annamh is iontach ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From seberino@dt092n42.san.rr.com Thu Feb 21 05:28:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F39A41811A for ; Thu, 21 Feb 2002 05:28:47 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16dqT7-00015o-00 for gtk-list@gnome.org; Thu, 21 Feb 2002 02:28:53 -0800 Date: Thu, 21 Feb 2002 02:28:53 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: ??? passing `gint (*)()' as argument 1 of `gtk_idle_add(gint (*)(void *), void *)' Message-ID: <20020221022853.A4177@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I want to add function with this interface to argument list of gtk_idle_add: gint drawPlots(); But when I do this: gtk_idle_add(drawPlots, NULL); I get this at compile time: passing `gint (*)()' as argument 1 of `gtk_idle_add(gint (*)(void *), void *)' Any ideas? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From rbultje@ronald.bitfreak.net Thu Feb 21 06:06:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id 1392E1811A for ; Thu, 21 Feb 2002 06:06:27 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1LAum4K029518; Thu, 21 Feb 2002 11:56:48 +0100 (CET) Subject: Re: ??? passing `gint (*)()' as argument 1 of `gtk_idle_add(gint (*)(void *), void *)' From: Ronald Bultje To: Christian Seberino Cc: gtk-list@gnome.org In-Reply-To: <20020221022853.A4177@spawar.navy.mil> References: <20020221022853.A4177@spawar.navy.mil> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 21 Feb 2002 12:06:25 +0100 Message-Id: <1014289585.20045.138.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, 2002-02-21 at 11:28, Christian Seberino wrote: > gint drawPlots(); [...] > gtk_idle_add(drawPlots, NULL); Make that "gint drawPlots(gpointer data)", where data is the pointer you give as second argument in the gtk_idle_add() function (in your case: NULL). Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From gbabusia@ulb.ac.be Thu Feb 21 07:14:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from guppy.vub.ac.be (guppy.vub.ac.be [134.184.129.2]) by mail.gnome.org (Postfix) with ESMTP id C2D481915D for ; Thu, 21 Feb 2002 07:14:25 -0500 (EST) Received: from mach.vub.ac.be (mach.vub.ac.be [134.184.129.3]) by guppy.vub.ac.be (8.9.1b+Sun/3.17.1.ap (guppy)) id NAA19631; Thu, 21 Feb 2002 13:13:38 +0100 (MET) for Received: from resu1.ulb.ac.be (resu1.ulb.ac.be [164.15.59.200]) by mach.vub.ac.be (8.9.3/3.13.3.ap (mach)) id NAA09269; Thu, 21 Feb 2002 13:14:23 +0100 (MET) for gtk-list@gnome.org Date: Thu, 21 Feb 2002 13:14:23 +0100 (MET) Message-Id: <200202211214.NAA09269@mach.vub.ac.be> From: Gregory Babusiaux To: gtk-list@gnome.org Subject: problems creating windows X-Mailer: Webmail ULB v2.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi i got a problem in an application i'm trying to develop. I've created a new window (the main window) with the command window=gtk_window_new(GTK_WINDOW_TOPLEVEL); by pressing on a button , i'd like to create a child window. So that in the callback function i 'd like to create the child window. But i don't know to create the child window window=gtk_window_new(GTK_WINDOW_CHILDLEVEL) doesn't work!! Can anyone help me??? thanks a lot for reading greg, brussels, belgium From flavio@maqplas.com.br Thu Feb 21 09:49:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id E3F70185A4 for ; Thu, 21 Feb 2002 09:49:38 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1LEnWC5042195; Thu, 21 Feb 2002 11:49:33 -0300 (BRT) Subject: Re: problems creating windows From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Gregory Babusiaux Cc: gtk-list@gnome.org In-Reply-To: <200202211214.NAA09269@mach.vub.ac.be> References: <200202211214.NAA09269@mach.vub.ac.be> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 21 Feb 2002 11:51:28 -0300 Message-Id: <1014303090.1147.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: You should use GTK_WINDOW_TOPLEVEL, GTK_WINDOW_POPUP or GTK_WINDOW_DIALOG Success Flavio Alberto > > window=gtk_window_new(GTK_WINDOW_TOPLEVEL); > > by pressing on a button , i'd like to create a child window. So that in the callback function i 'd like to create the child window. But i don't know to create the child window > > window=gtk_window_new(GTK_WINDOW_CHILDLEVEL) doesn't work!! > From bugcreator@gmx.de Thu Feb 21 10:26:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id 640801845A for ; Thu, 21 Feb 2002 10:26:09 -0500 (EST) Received: (qmail 25109 invoked by uid 0); 21 Feb 2002 15:26:07 -0000 Received: from dialin-145-254-090-159.arcor-ip.net (HELO there) (145.254.90.159) by mail.gmx.net (mp001-rz3) with SMTP; 21 Feb 2002 15:26:07 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Dominic =?iso-8859-1?q?Sacr=E9?= To: gtk-list@gnome.org Subject: Creating a font based on the GTK default font Date: Thu, 21 Feb 2002 16:25:02 +0100 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020221152609.640801845A@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm looking for a way to get the GTK default font - i.e. the font which is normally used for all GTK widgets - and to create a new font based on that. For example, I want to use the same font for a widget, but bold and/or italic, or the same font at a different size. How can I do that? I guess I need to get the font's desciption (how?!), and then modify that string somehow, but maybe there's a better and easier way? Thanks in advance, Dominic From pbd@op.net Thu Feb 21 11:30:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 573EB1921C for ; Thu, 21 Feb 2002 11:30:14 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-502.phlpa.fast.net [209.92.97.248]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA01280; Thu, 21 Feb 2002 11:30:09 -0500 (EST) Message-Id: <200202211630.LAA01280@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How access pixmap info like width&height? (1st arg of configure/expose callback nice...) In-reply-to: Your message of "Wed, 20 Feb 2002 00:50:57 PST." <20020220005057.A2332@spawar.navy.mil> Date: Thu, 21 Feb 2002 06:29:44 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Configure and Expose events will use a callback with >the first argument being a widget that has nice >info about pixmap to be redrawn like width, height, >style & "window". > >How can I access this widget on my own??? >Or, how can I get at this >info for a pixmap some other way??? its the widget that *is* the pixmap. that is, if you did: GtkWidget *pixmap = gtk_pixmap_new (...); and then connected to configure_event and expose_event on that pixmap, the widget passed as the first argument is precisely that widget. you can use it yourself anywhere else, except that its allocation (width, height), style and window may not be set until certain events have occured. --p From leidola@newcon.de Thu Feb 21 11:32:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 746B318B47 for ; Thu, 21 Feb 2002 11:32:52 -0500 (EST) Received: from [213.70.108.86] ([213.70.108.86]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id RAA03664; Thu, 21 Feb 2002 17:32:55 +0100 Subject: Re: Gtk+2-style auto* scripts From: Olaf Leidinger To: Germano Rizzo , GTK Mailing List In-Reply-To: <3C74A9C8.1090607@pluto.linux.it> References: <3C74A9C8.1090607@pluto.linux.it> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 21 Feb 2002 17:35:48 +0100 Message-Id: <1014309355.1319.4.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 21 Feb 2002 09:03:20 +0100 schrieb Germano Rizzo: > Hi! > just for sake of exploring, I've begun to develop a program in GTK+ 2.0. > Now, I'd like to get it packaged properly, so I really need all the > automake/autoconf stuff... in the other programs I made, it was easy to > find another similar program, just... eeeh... "quote" ;) that kind of > stuff from there, and then modify the scripts for my own purposes. The > matter is, I don't know of any simple program that uses GTK2, for now. > Could you address me, please? Or just advice me to a good documentation > that can explain how to make myself such scripts, and/or which > differences are there (if any) with the GTK-1.2-style ones? > Thanks in advance, and compliments for the really good work you're doing > with GTK2, > Mano :) > > PS: I'd like something less complex than GIMP 1.3.x... > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Germano Rizzo - mano@pluto.linux.it > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Pluto FSUG member - www.pluto.linux.it > Linux Registered User #120637 > PGP/GPG Public Key at > http://gnomermind.sf.net/pubkey.txt > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > An rud is annamh is iontach > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hi! Try http://developer.gnome.org/dotplan/porting Ciao, Olaf From hp@redhat.com Thu Feb 21 12:29:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 4ABC118AC5 for ; Thu, 21 Feb 2002 12:29:17 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LHTF110866; Thu, 21 Feb 2002 12:29:15 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Dominic =?iso-8859-1?q?Sacr=E9?= Cc: gtk-list@gnome.org Subject: Re: Creating a font based on the GTK default font References: <20020221152609.640801845A@mail.gnome.org> From: Havoc Pennington Date: 21 Feb 2002 12:29:15 -0500 In-Reply-To: <20020221152609.640801845A@mail.gnome.org> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dominic Sacr=E9 writes: >=20 > I'm looking for a way to get the GTK default font - i.e. the font which i= s=20 > normally used for all GTK widgets - and to create a new font based on=20 > that. For example, I want to use the same font for a widget, but bold=20 > and/or italic, or the same font at a different size. How can I do that? > In GTK 1.2 it's a huge nightmare, but the "eel" library has example code. In GTK 2 you'd usually just gtk_widget_modify_font() using a font desc that only has the attribute you want to change set; e.g. just set the weight, but don't set the font family or anything. In GTK 2 you can also use markup labels (see docs on gtk_label_set_markup()= ). =20 Havoc From jeff@nmt.edu Thu Feb 21 12:59:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id E9EC918B7E for ; Thu, 21 Feb 2002 12:59:25 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LHxPL0016590 for ; Thu, 21 Feb 2002 10:59:25 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LHxPl6001456 for ; Thu, 21 Feb 2002 10:59:25 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 10:59:25 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: gtk-list@gnome.org Subject: Interesting suid problem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a situation where I am using GTK as a frontend for a databse we have. Everything is fine except for the fact that I want to keep the database password secure. I do not want to store it in the program for obvious reasons so I thought I would save it in an external file and have the program read it on startup. The only decent way that I know of to do this have a special user which can read the file and have the program setuid to run as that user. However, gtk doesn't like being run setuid. I looked at the setuid page because it says: "You must create a helper program instead. For further details, see: http://www.gtk.org/setuid.html" However, the only mention on this page of a helper program would require me to practically rewrite my entire application which is unacceptable. The only information my application receives is from the database and the password file. I don't like setuid applications as much as the next person, but I need to be able to secure the password file while being able to use and write this application in a feasible manner. If anyone else has a suggestion for solving my problem, please let me know (as long as it's not rediculous like the solution on the suid page. Otherwise, is there a way to work around this warning? Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff From castor.fou@wanadoo.fr Thu Feb 21 13:10:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto3.wanadoo.fr (smtp-out-3.wanadoo.fr [193.252.19.233]) by mail.gnome.org (Postfix) with ESMTP id CEBB818176 for ; Thu, 21 Feb 2002 13:10:54 -0500 (EST) Received: from mel-rta2.wanadoo.fr (193.252.19.152) by mel-rto3.wanadoo.fr; 21 Feb 2002 19:10:52 +0100 Received: from pentium (193.250.221.32) by mel-rta2.wanadoo.fr; 21 Feb 2002 19:10:40 +0100 Message-ID: <001401c1bb03$11f61340$20ddfac1@pentium> From: "Castor Fou" To: Subject: GTK Background Date: Thu, 21 Feb 2002 19:10:28 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000B_01C1BB0B.6CBE9BF0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C1BB0B.6CBE9BF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, For my application, I need a transparent background for a GtkText (not a = white background). It is possible? And how can I do this if it is = possible ? ------=_NextPart_000_000B_01C1BB0B.6CBE9BF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
For my application, I need a = transparent background=20 for a GtkText (not a white background). It is possible? And how can I do = this if=20 it is possible ?
------=_NextPart_000_000B_01C1BB0B.6CBE9BF0-- From sven@gimp.org Thu Feb 21 13:11:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9587785.dip.t-dialin.net [217.88.119.133]) by mail.gnome.org (Postfix) with ESMTP id 9D21A18786 for ; Thu, 21 Feb 2002 13:11:27 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16dxga-0000Jx-00; Thu, 21 Feb 2002 19:11:16 +0100 To: Jeff Shipman - SysProg Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem References: From: Sven Neumann Date: 21 Feb 2002 19:11:16 +0100 In-Reply-To: Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Jeff Shipman - SysProg writes: > I have a situation where I am using GTK as > a frontend for a databse we have. Everything > is fine except for the fact that I want to > keep the database password secure. I do > not want to store it in the program for > obvious reasons so I thought I would save > it in an external file and have the program > read it on startup. The only decent way that > I know of to do this have a special user > which can read the file and have the program > setuid to run as that user. However, gtk > doesn't like being run setuid. If you make your GTK+ app run setuid you can as well make the passwd file readable by everyone. How about making the file readable by members of a special group and add authorized users to that group ? Salut, Sven From jeff@nmt.edu Thu Feb 21 13:14:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id 3E100180FF for ; Thu, 21 Feb 2002 13:14:54 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LIEqL0023912; Thu, 21 Feb 2002 11:14:52 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LIEpSG001529; Thu, 21 Feb 2002 11:14:52 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 11:14:51 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: Sven Neumann Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Because we have 1500+ users which are added every semester and EVERYONE needs to be able to read it. There are three different levels of access which are determined upon startup by which group you are in (nothing special, worker, or manager). The access is software enforced and what we want is to make it so normal users cannot read the password file. If they could, they'd be able to just login to the DB and issue commands, viewing information about other users which they should not be able to view. Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff On 21 Feb 2002, Sven Neumann wrote: } Hi, } } Jeff Shipman - SysProg writes: } } > I have a situation where I am using GTK as } > a frontend for a databse we have. Everything } > is fine except for the fact that I want to } > keep the database password secure. I do } > not want to store it in the program for } > obvious reasons so I thought I would save } > it in an external file and have the program } > read it on startup. The only decent way that } > I know of to do this have a special user } > which can read the file and have the program } > setuid to run as that user. However, gtk } > doesn't like being run setuid. } } If you make your GTK+ app run setuid you can as well make the passwd } file readable by everyone. How about making the file readable by } members of a special group and add authorized users to that group ? } } } Salut, Sven } From rsteinke@w-link.net Thu Feb 21 13:23:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id C6636180FF for ; Thu, 21 Feb 2002 13:23:40 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dxsZ-00066F-00; Thu, 21 Feb 2002 10:23:39 -0800 Date: Thu, 21 Feb 2002 10:23:39 -0800 From: rsteinke@w-link.net To: jeff@nmt.edu, sven@gimp.org Subject: Re: Interesting suid problem Cc: gtk-list@gnome.org Message-ID: <3C753B2B.nailI311WSZ5F@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Jeff Shipman - SysProg > > Because we have 1500+ users which are added > every semester and EVERYONE needs to be able > to read it. There are three different levels > of access which are determined upon startup > by which group you are in (nothing special, > worker, or manager). The access is software > enforced and what we want is to make it so > normal users cannot read the password file. > If they could, they'd be able to just login > to the DB and issue commands, viewing information > about other users which they should not > be able to view. > > Jeff Shipman E-Mail: jeff@nmt.edu > Systems Programmer Phone: (505) 835-5748 > NMIMT Computer Center http://www.nmt.edu/~jeff Can't you make the database itself able to enforce user access to certain databases? I think Postgresql can do this. > On 21 Feb 2002, Sven Neumann wrote: > > } Hi, > } > } Jeff Shipman - SysProg writes: > } > } > I have a situation where I am using GTK as > } > a frontend for a databse we have. Everything > } > is fine except for the fact that I want to > } > keep the database password secure. I do > } > not want to store it in the program for > } > obvious reasons so I thought I would save > } > it in an external file and have the program > } > read it on startup. The only decent way that > } > I know of to do this have a special user > } > which can read the file and have the program > } > setuid to run as that user. However, gtk > } > doesn't like being run setuid. > } > } If you make your GTK+ app run setuid you can as well make the passwd > } file readable by everyone. How about making the file readable by > } members of a special group and add authorized users to that group ? > } > } > } Salut, Sven > } From jeff@nmt.edu Thu Feb 21 13:25:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id C200E18D62 for ; Thu, 21 Feb 2002 13:25:54 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LIPrL0027062; Thu, 21 Feb 2002 11:25:53 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LIPrnw001588; Thu, 21 Feb 2002 11:25:53 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 11:25:53 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: rsteinke@w-link.net Cc: sven@gimp.org, Subject: Re: Interesting suid problem In-Reply-To: <3C753B2B.nailI311WSZ5F@w-link.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm using Oracle and some columns of some tables should be viewable to some users while other columns of the same table are viewable. I would have to write out a billion different queries, different ones for each access level to do this. Kinda infeasible, IMO espcially since our queries may change often depending on new features we add to the software. Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: } } Can't you make the database itself able to enforce user access } to certain databases? I think Postgresql can do this. From rsteinke@w-link.net Thu Feb 21 13:33:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id D300418338 for ; Thu, 21 Feb 2002 13:33:49 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dy2O-00067Q-00; Thu, 21 Feb 2002 10:33:48 -0800 Date: Thu, 21 Feb 2002 10:33:48 -0800 From: rsteinke@w-link.net To: jeff@nmt.edu Subject: Re: Interesting suid problem Cc: sven@gimp.org, gtk-list@gnome.org Message-ID: <3C753D8C.nailI551BDQ9C@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Jeff Shipman - SysProg > > I'm using Oracle and some columns of some > tables should be viewable to some users while > other columns of the same table are viewable. > I would have to write out a billion different > queries, different ones for each access > level to do this. Kinda infeasible, IMO espcially > since our queries may change often depending > on new features we add to the software. > > Jeff Shipman E-Mail: jeff@nmt.edu > Systems Programmer Phone: (505) 835-5748 > NMIMT Computer Center http://www.nmt.edu/~jeff > > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: > } > } Can't you make the database itself able to enforce user access > } to certain databases? I think Postgresql can do this. That's what shell scripts are for. Ron Steinke From jeff@nmt.edu Thu Feb 21 13:34:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id 13E56190D9 for ; Thu, 21 Feb 2002 13:34:58 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LIYvL0029268; Thu, 21 Feb 2002 11:34:57 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LIYumE001636; Thu, 21 Feb 2002 11:34:57 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 11:34:56 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: rsteinke@w-link.net Cc: sven@gimp.org, Subject: Re: Interesting suid problem In-Reply-To: <3C753D8C.nailI551BDQ9C@w-link.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Care to elaborate? Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: } From: Jeff Shipman - SysProg } > } > I'm using Oracle and some columns of some } > tables should be viewable to some users while } > other columns of the same table are viewable. } > I would have to write out a billion different } > queries, different ones for each access } > level to do this. Kinda infeasible, IMO espcially } > since our queries may change often depending } > on new features we add to the software. } > } > Jeff Shipman E-Mail: jeff@nmt.edu } > Systems Programmer Phone: (505) 835-5748 } > NMIMT Computer Center http://www.nmt.edu/~jeff } > } > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: } > } } > } Can't you make the database itself able to enforce user access } > } to certain databases? I think Postgresql can do this. } } That's what shell scripts are for. } } Ron Steinke } From rsteinke@w-link.net Thu Feb 21 13:45:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 3BF6018A93 for ; Thu, 21 Feb 2002 13:45:43 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dyDu-00069g-00; Thu, 21 Feb 2002 10:45:42 -0800 Date: Thu, 21 Feb 2002 10:45:41 -0800 From: rsteinke@w-link.net To: jeff@nmt.edu Subject: Re: Interesting suid problem Cc: sven@gimp.org, gtk-list@gnome.org Message-ID: <3C754055.nailI7M1HNNAG@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Jeff Shipman - SysProg > > Care to elaborate? > > Jeff Shipman E-Mail: jeff@nmt.edu > Systems Programmer Phone: (505) 835-5748 > NMIMT Computer Center http://www.nmt.edu/~jeff > > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: > > } From: Jeff Shipman - SysProg > } > > } > I'm using Oracle and some columns of some > } > tables should be viewable to some users while > } > other columns of the same table are viewable. > } > I would have to write out a billion different > } > queries, different ones for each access > } > level to do this. Kinda infeasible, IMO espcially > } > since our queries may change often depending > } > on new features we add to the software. > } > > } > Jeff Shipman E-Mail: jeff@nmt.edu > } > Systems Programmer Phone: (505) 835-5748 > } > NMIMT Computer Center http://www.nmt.edu/~jeff > } > > } > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: > } > } > } > } Can't you make the database itself able to enforce user access > } > } to certain databases? I think Postgresql can do this. > } > } That's what shell scripts are for. > } > } Ron Steinke > } I'm assuming oracle has some command line interface/way to send batch commands or something. Write a shell script for each set of permissions (I'm assuming that, while you have many, many users, there are only about three or four access levels) that is passed a user name and writes to stdout the sql commands necessary to create that user with the appropriate permissions. Then, write a shell script that loop through the list of users you've been given, calls the appropriate permission-generating shell script, and pipes the output to oracle. This will require maintainance of the shell scripts as you update your database version/requirements, but not more so than you would need ysing any other means of enforcing this. You can also write little update scripts to change the permissions of users from one level to another in mid-stream, if that's necessary. This method is also probably more secure than having a separate password file, as it reduces the possible number of points of failure. All pretty standard sysadmin stuff. Ron Steinke From hp@redhat.com Thu Feb 21 14:33:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 5DB3718A7E for ; Thu, 21 Feb 2002 14:33:37 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LJXZ710894; Thu, 21 Feb 2002 14:33:35 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Jeff Shipman - SysProg Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem References: From: Havoc Pennington Date: 21 Feb 2002 14:33:35 -0500 In-Reply-To: Message-ID: Lines: 56 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jeff Shipman - SysProg writes: > I have a situation where I am using GTK as > a frontend for a databse we have. Everything > is fine except for the fact that I want to > keep the database password secure. I do > not want to store it in the program for > obvious reasons so I thought I would save > it in an external file and have the program > read it on startup. The only decent way that > I know of to do this have a special user > which can read the file and have the program > setuid to run as that user. However, gtk > doesn't like being run setuid. I don't see why the helper program would be that hard - especially with GTK 2 and the g_spawn_* family of functions. You have a small helper app, it spits the database password to a pipe, your app reads the password from the pipe. Should be maybe 500 lines of code. It's a good thing GTK doesn't let you do what you want, because the result would be a giant security hole. The limitation here is not imposed by GTK; it's imposed by security concerns. If you don't care about security, then chmod 666 your file. If you do care about security, you can't make a GUI application setuid. End of story. There is nothing GTK can do about it - other than have the safety check to keep you from doing the wrong thing. > However, the only mention on this page of > a helper program would require me to practically > rewrite my entire application which is > unacceptable. Well, the fact that you don't have time to fix a bug, doesn't mean that the bug goes away. You either have to fix the app, or have it be a giant security hole. There isn't a magic solution. > Otherwise, is there a way to work around this warning? Sure, you can hack your local copy of GTK to contain a giant security hole... it's a trivial patch to gtkmain.c. But it's easier (and equivalent from a security standpoint) to chmod 666 the files you want to access. The warning is amazingly enough there for a reason. ;-) The warning is a symptom, not the underlying problem. The underlying problem is the security hole inherent in the application's design. Removing the warning about the security hole doesn't mean the security hole is now gone... Havoc From bl_nero@o2.pl Thu Feb 21 16:03:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rekin.go2.pl (rekin4.go2.pl [212.126.20.8]) by mail.gnome.org (Postfix) with ESMTP id 0A862180F4 for ; Thu, 21 Feb 2002 16:03:25 -0500 (EST) Received: from s (pb75.piotrkow.cvx.ppp.tpnet.pl [213.77.225.75]) by rekin.go2.pl (Mailer_v2.01) with SMTP id 78C786EE9F for ; Thu, 21 Feb 2002 22:03:01 +0100 (CET) Message-ID: <000701c1bb1b$255c4680$4be14dd5@s> From: "Bartosz \"Neron\" Leper" To: "GTK-list" Subject: GTK and non-monospace fonts Date: Thu, 21 Feb 2002 19:25:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello there, I'm new here and I'm from Poland, so I'm sorry for my weak English. But I'll try to explain what's on my mind. I'm using Mandrake Linux and I've experienced some problems with displaying GTK widgets: all applications I have that are written using GTK are calculating word length incorrectly, which causes labels unreadable in some cases. It happens when I use non-monospace fonts (in Poland we say: proportional fonts). Nearly each word is displayed correctly, but every space between words is somehow "strange": sometimes it's normal, somtimes it's illogically wide (when the word consists of narrow letters, like 'iiii', and sometimes even "space" means "backspace" (when the word consists of many wide letters, like 'WWWWW'). I think it's because GTK (or GDK?) counts word width as if it was written in monospace font (like Courier)! Simmilar thing happens in edit boxes (sorry for that Win32 terminology), and it's even worse: when I try to put caret into box using mouse, I click between two letters, but the actual point of inserting text appears to be somewhere else - it's also sounted using monospace font width! I am running GTK version 1.2.8-6mdk, but I don't know if it really matters, because nearly all applications I have are pre-compiled. Please help me, because it's really annoying! I don't know if I refer to appropriate mailing list; if you know some other places to find some info, please mail me. Thanks in anvance, Nero -- ------====[Bartosz "Neron" Leper]====------ mailto:bl_nero@o2.pl | IRC: #warsztat www.nerosite.prv.pl | www.programex.prv.pl ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From v.j.arkesteijn@utwente.nl Thu Feb 21 16:28:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ken (inbel240061.inbel.utwente.nl [130.89.240.61]) by mail.gnome.org (Postfix) with ESMTP id 0AFD3191E6 for ; Thu, 21 Feb 2002 16:28:08 -0500 (EST) Received: by ken (Postfix, from userid 1000) id CD45F19E5; Thu, 21 Feb 2002 22:30:55 +0100 (CET) Date: Thu, 21 Feb 2002 22:30:54 +0100 From: Vincent Arkesteijn To: gtk-list@gnome.org Subject: Re: Interesting suid problem Message-ID: <20020221223053.A6053@ken> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jeff@nmt.edu on Thu, Feb 21, 2002 at 10:59:25AM -0700 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, On Thu, Feb 21, 2002 at 10:59:25AM -0700, Jeff Shipman - SysProg wrote: > Everything > is fine except for the fact that I want to > keep the database password secure. I do > not want to store it in the program for > obvious reasons Why? Just put the password in the program, and give your users execute permission, but no read permission on the program. It may not be too elegant, and it's a bit clumsy when you want to change the password, but it's the simplest solution. Regards, Vincent. From Valdis.Kletnieks@vt.edu Thu Feb 21 16:39:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id CEE2F18DC8 for ; Thu, 21 Feb 2002 16:39:48 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1LLdlVj032087; Thu, 21 Feb 2002 16:39:47 -0500 Message-Id: <200202212139.g1LLdlVj032087@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Vincent Arkesteijn Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem In-Reply-To: Your message of "Thu, 21 Feb 2002 22:30:54 +0100." <20020221223053.A6053@ken> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ <20020221223053.A6053@ken> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1644264643P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 21 Feb 2002 16:39:47 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_1644264643P Content-Type: text/plain; charset=us-ascii On Thu, 21 Feb 2002 22:30:54 +0100, Vincent Arkesteijn said: > Why? Just put the password in the program, and give your users > execute permission, but no read permission on the program. It > may not be too elegant, and it's a bit clumsy when you want to > change the password, but it's the simplest solution. Still vulnerable to attack via gdb/dbx or ptrace(), but that's a question of whether your threat model includes somebody both that determined and skilled... -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_1644264643P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8dWkjcC3lWbTT17ARAiqDAJ9wv8Ksi6m/yuvMqGMJYz+ME2z0pgCfYJ+N IJO+WswuWgKZbxpDb1WIXJo= =qAM+ -----END PGP SIGNATURE----- --==_Exmh_1644264643P-- From hp@redhat.com Thu Feb 21 16:53:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 6DF1A182AF for ; Thu, 21 Feb 2002 16:53:23 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LLrGh10939; Thu, 21 Feb 2002 16:53:16 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Bartosz \"Neron\" Leper" Cc: "GTK-list" Subject: Re: GTK and non-monospace fonts References: <000701c1bb1b$255c4680$4be14dd5@s> From: Havoc Pennington Date: 21 Feb 2002 16:53:16 -0500 In-Reply-To: <000701c1bb1b$255c4680$4be14dd5@s> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Bartosz \"Neron\" Leper" writes: > I'm using Mandrake Linux and I've experienced some problems with displaying > GTK widgets: all applications I have that are written using GTK are > calculating word length incorrectly, which causes labels unreadable in some > cases. This doesn't happen for most people; it's probably a bug in some specific aspect of your setup - either the old GTK version, the X server, the font you're using, or the like. Havoc From bugcreator@gmx.de Thu Feb 21 16:57:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id 186C419275 for ; Thu, 21 Feb 2002 16:57:46 -0500 (EST) Received: (qmail 25147 invoked by uid 0); 21 Feb 2002 21:57:44 -0000 Received: from a1f63.pppool.de (HELO there) (213.6.31.99) by mail.gmx.net (mp009-rz3) with SMTP; 21 Feb 2002 21:57:44 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Dominic =?iso-8859-1?q?Sacr=E9?= To: Havoc Pennington Subject: Re: Creating a font based on the GTK default font Date: Thu, 21 Feb 2002 22:56:08 +0100 X-Mailer: KMail [version 1.3.1] References: <20020221152609.640801845A@mail.gnome.org> In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: gtk-list@gnome.org Message-Id: <20020221215746.186C419275@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thursday 21 February 2002 18:29, Havoc Pennington wrote: > Dominic Sacré writes: > > I'm looking for a way to get the GTK default font - i.e. the font > > which is normally used for all GTK widgets - and to create a new font > > based on that. For example, I want to use the same font for a widget, > > but bold and/or italic, or the same font at a different size. How can > > I do that? > > In GTK 1.2 it's a huge nightmare, but the "eel" library has example > code. Hmm, a nightmare, indeed... But is there no reasonable way to get at least the name (logical font description) of the default font? > In GTK 2 you'd usually just gtk_widget_modify_font() using a font desc > that only has the attribute you want to change set; e.g. just set the > weight, but don't set the font family or anything. > > In GTK 2 you can also use markup labels (see docs on > gtk_label_set_markup()). Sounds great... I should really consider porting my code to GTK2 soon... Thanks, Dominic From seberino@dt092n42.san.rr.com Thu Feb 21 16:58:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 877211927C for ; Thu, 21 Feb 2002 16:58:16 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16e1EE-000081-00; Thu, 21 Feb 2002 13:58:14 -0800 Date: Thu, 21 Feb 2002 13:58:14 -0800 From: Christian Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: How access pixmap info like width&height? (1st arg of configure/expose callback nice...) Message-ID: <20020221135814.A457@spawar.navy.mil> References: <20020220005057.A2332@spawar.navy.mil> <200202211630.LAA01280@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202211630.LAA01280@renoir.op.net>; from pbd@op.net on Thu, Feb 21, 2002 at 06:29:44AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I did some experimentation and printed out the "drawingarea" pointer that pixmap rests on. This first argument turned out to be the same address as the drawingarea rather than the pixmap. I wrote some code that assumed this was true and it worked. Are you sure pixmap is the first arg? Maybe it is in some situations but not others? Chris On Thu, Feb 21, 2002 at 06:29:44AM -0500, Paul Davis wrote: > >Configure and Expose events will use a callback with > >the first argument being a widget that has nice > >info about pixmap to be redrawn like width, height, > >style & "window". > > > >How can I access this widget on my own??? > >Or, how can I get at this > >info for a pixmap some other way??? > > its the widget that *is* the pixmap. that is, if you did: > > GtkWidget *pixmap = gtk_pixmap_new (...); > > and then connected to configure_event and expose_event on that pixmap, > the widget passed as the first argument is precisely that widget. > > you can use it yourself anywhere else, except that its allocation > (width, height), style and window may not be set until certain events > have occured. > > --p -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From hp@redhat.com Thu Feb 21 17:17:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id B7595180E8 for ; Thu, 21 Feb 2002 17:17:45 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LMHiC26415; Thu, 21 Feb 2002 17:17:44 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Dominic =?iso-8859-1?q?Sacr=E9?= Cc: gtk-list@gnome.org Subject: Re: Creating a font based on the GTK default font References: <20020221152609.640801845A@mail.gnome.org> <20020221215746.186C419275@mail.gnome.org> From: Havoc Pennington Date: 21 Feb 2002 17:17:43 -0500 In-Reply-To: <20020221215746.186C419275@mail.gnome.org> Message-ID: Lines: 9 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dominic Sacr=E9 writes:=20 > Hmm, a nightmare, indeed... But is there no reasonable way to get at least > the name (logical font description) of the default font? Not really... you have to use GdkFontPrivate I think. Eel does it somehow or other. Havoc From scherfa@web.de Thu Feb 21 18:59:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp01.web.de [194.45.170.210]) by mail.gnome.org (Postfix) with ESMTP id 1CDE0180D9 for ; Thu, 21 Feb 2002 18:59:21 -0500 (EST) Received: from [143.93.58.49] (helo=rmpc47.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.28 #21) id 16e37P-0000tx-00 for gtk-list@gnome.org; Fri, 22 Feb 2002 00:59:20 +0100 Subject: GtkTreeModel Rows ???? From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 22 Feb 2002 00:58:09 +0100 Message-Id: <1014335890.7997.3.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, i want to know how do i get the number of rows that are inside a GtkTreeModel. The depth of my model is always 1 so im using it instead of a gtkclist. Ok i could count the row number via gtk_tree_model_iter_next but i think thats not a clear way to go. So how could i get the number of rows that are stored inside my gtktreemodel ? Thanks for hints.. Andreas -- Andreas Scherf ICQ: 52910964 scherfa@web.de From rtriay@avantel.net Thu Feb 21 22:50:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h004.c003.snv.cp.net [209.228.32.218]) by mail.gnome.org (Postfix) with SMTP id 46B1618118 for ; Thu, 21 Feb 2002 22:50:15 -0500 (EST) Received: (cpmta 5744 invoked from network); 21 Feb 2002 19:50:11 -0800 Received: from 148.240.116.43 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.218) with SMTP; 21 Feb 2002 19:50:11 -0800 X-Sent: 22 Feb 2002 03:50:11 GMT Received: from triay.net [10.0.0.2] by Proxy+; Thu, 21 Feb 2002 21:47:14 -0600 for Subject: Re: gtk config From: Ramon Alberto Triay Espinosa To: gtk-list@gnome.org Content-Type: multipart/mixed; boundary="=-Am5+mOsrxaf0NmTBZcru" X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 21:54:30 -0500 Mime-Version: 1.0 Message-Id: <20020222035015.46B1618118@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-Am5+mOsrxaf0NmTBZcru Content-Type: text/plain ops! I answered this one , but didn't reply to the group... my solution was kind of old school, and Chris made it with RPM's, i hope someone else's find this helpful. OK SALUDOS!!! rtriay :) --=-Am5+mOsrxaf0NmTBZcru Content-Disposition: inline Content-Description: Reenviado mensaje - Re: gtk config Content-Type: message/rfc822 Subject: Re: gtk config From: Ramon Alberto Triay Espinosa To: cpollock@vvm.com In-Reply-To: <200202202325.g1KNPNVh005874@ns.vvm.com> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 00:18:34 -0500 Mime-Version: 1.0 X-Evolution: 00000001-0010 O.K. so you're suppoused to have the version of GTK that comes with the default instalation of Mandrake 8.1, so what you have to do is exactly what the message says: check the content of the '.bashrc' file in your home path (/home/rtriay in my case) with any text editor and check if the path to the file 'gtk-config' is in the PATH environment variable (a line that looks exactly like the MSDOS one PATH=::...: , how to know where this 'gtk-config' file is? well issue the comand "find / -name 'gtk-config' -depth" (without the double quotation marks), and read the output (that means 'find the file gtk-config begining ftom the root directory and all the subdirectories down), you have to be root or belong to its group to have access to the main system directories where i'm sure gtk-config is located. Finally, when you get the path add the following lines to your '.bashrc' file: PATH=$PATH: EXPORT PATH That's it! now you can try again to install your BookBase. Maybe you'll get another error message similar to this one but asking for the location on glib-config, just follow the same steps described above but for this file. Oh! I forgot to tell, as you see i assumed that you're using the bourne again shell (bash), default to all users in Mandrake. This actions will enable the use of gtk-config/glib-config ONLY to the user whose '.bashrc' file is being changed, if you want to make this path available to all users, append the same changes in '/etc/profile' file, again you'll need to be root or belong to its group to do this. GOOD LUCK!!!! SALUDOS!!! rtriay :) El 20 Feb 2002 17:30:07 -0600, Chris Pollock escribió: > Linux newbie here. I'm trying to install a program named BookBase. During > the installation I get 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: error: Cannot find GTK: Is gtk-config in path? > > As far as I know GTK was installed when I installed Mandrake. I'm running > Mandrake 8.1 Any help for this lost newbie would be appreciated. > > Chris > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > --=-Am5+mOsrxaf0NmTBZcru-- From hvv@hippo.ru Fri Feb 22 02:43:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [195.218.232.218]) by mail.gnome.org (Postfix) with ESMTP id 6D5E618206 for ; Fri, 22 Feb 2002 02:43:53 -0500 (EST) Date: Fri, 22 Feb 2002 12:40:45 +0400 (SAMT) From: Vlad Harchev X-Sender: hvv@localhost.localdomain To: "Bartosz \"Neron\" Leper" Cc: GTK-list Subject: Re: GTK and non-monospace fonts In-Reply-To: <000701c1bb1b$255c4680$4be14dd5@s> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, 21 Feb 2002, Bartosz "Neron" Leper wrote: Hi, That was a bug in gdk fixed personally by me - the standard gtk-1.2.10 already contains the fix - so please upgrade your gtk to version 1.2.10. Best regards, -Vlad > Hello there, > > I'm new here and I'm from Poland, so I'm sorry for my weak English. But I'll > try to explain what's on my mind. > > I'm using Mandrake Linux and I've experienced some problems with displaying > GTK widgets: all applications I have that are written using GTK are > calculating word length incorrectly, which causes labels unreadable in some > cases. > > It happens when I use non-monospace fonts (in Poland we say: proportional > fonts). Nearly each word is displayed correctly, but every space between > words is somehow "strange": sometimes it's normal, somtimes it's illogically > wide (when the word consists of narrow letters, like 'iiii', and sometimes > even "space" means "backspace" (when the word consists of many wide letters, > like 'WWWWW'). I think it's because GTK (or GDK?) counts word width as if it > was written in monospace font (like Courier)! > > Simmilar thing happens in edit boxes (sorry for that Win32 terminology), and > it's even worse: when I try to put caret into box using mouse, I click > between two letters, but the actual point of inserting text appears to be > somewhere else - it's also sounted using monospace font width! > > I am running GTK version 1.2.8-6mdk, but I don't know if it really matters, > because nearly all applications I have are pre-compiled. > > Please help me, because it's really annoying! I don't know if I refer to > appropriate mailing list; if you know some other places to find some info, > please mail me. > > Thanks in anvance, > Nero > > -- > ------====[Bartosz "Neron" Leper]====------ > mailto:bl_nero@o2.pl | IRC: #warsztat > www.nerosite.prv.pl | www.programex.prv.pl > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From shaffei@softhome.net Fri Feb 22 04:23:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from waltz.SoftHome.net (unknown [66.54.152.30]) by mail.gnome.org (Postfix) with SMTP id B576718239 for ; Fri, 22 Feb 2002 04:23:50 -0500 (EST) Received: (qmail 6106 invoked by uid 417); 22 Feb 2002 09:23:50 -0000 Message-ID: <20020222092350.6105.qmail@softhome.net> From: shaffei@softhome.net To: gtk-list@gnome.org Subject: How to remove glib 1.2.9 from my system? Date: Fri, 22 Feb 2002 09:23:50 GMT Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Sender: shaffei@softhome.net Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I've installed glib-1.2.9 on my linux box and I didn't know that glib-1.2.10. When I "./configure" many programs it say that I have to delete the older version. Can you help me removing the 1.2.9? Thank you for your help. Yours, Ibrahim El-Shafei From pvosta@unionbio-eu.com Fri Feb 22 08:38:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 0D5D118981 for ; Fri, 22 Feb 2002 08:38:36 -0500 (EST) Received: (qmail 13960 invoked from network); 22 Feb 2002 13:34:50 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 22 Feb 2002 13:34:50 -0000 Message-ID: <3C764994.376E68C1@unionbio-eu.com> Date: Fri, 22 Feb 2002 14:37:24 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: g_signal_connect_swapped Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am studying the "helloworld.c" example on the gtk.org website, but as the examples are already a mixture of GTK1.2 and GTK2.0, things do not compile as it should. "g_signal_connect_swapped" doesn't compile. eg.: g_signal_connect_swapped (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (gtk_widget_destroy), GTK_OBJECT (window)); Is there still a manual somewhere that describes the GTK1.2 version of GTK ? It seems as if I stepped into GTK in the middle of a transition, and this causes some confusion. Also I will probably still use GTK1.2 for a while as I cannot take the risk of instability of the new GTK2.0 version which will probably be the case in the beginning. Best regards, Peter From hp@redhat.com Fri Feb 22 10:54:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id C6382189D6 for ; Fri, 22 Feb 2002 10:54:00 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1MFrX323242; Fri, 22 Feb 2002 10:53:33 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: pvosta@unionbio-eu.com Cc: GTK-list Subject: Re: g_signal_connect_swapped References: <3C764994.376E68C1@unionbio-eu.com> From: Havoc Pennington Date: 22 Feb 2002 10:53:32 -0500 In-Reply-To: <3C764994.376E68C1@unionbio-eu.com> Message-ID: Lines: 9 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Peter Van Osta writes: > Is there still a manual somewhere that describes the GTK1.2 version of > GTK ? If you download the GTK 1.2 tarballs (gtk+-1.2.x.tar.gz) there's a copy of the 1.2 tutorial in there. Havoc From pbd@op.net Fri Feb 22 11:23:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 8DA3918D82 for ; Fri, 22 Feb 2002 11:23:32 -0500 (EST) Received: from op.net (maxtnt02-141.phlpa.fast.net [209.92.227.141]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA18328 for ; Fri, 22 Feb 2002 11:23:31 -0500 (EST) Received: (from pbd@localhost) by op.net (8.10.1/8.10.1) id g1MGLsh17460; Fri, 22 Feb 2002 11:21:54 -0500 Date: Fri, 22 Feb 2002 11:21:54 -0500 Message-Id: <200202221621.g1MGLsh17460@op.net> From: Paul Davis To: gtk-list@gnome.org Subject: interesting thread issue at exit() Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: GDK registers an exit function to be called on normal process termination. This function will be called from whatever thread calls exit(2). However, the function is not thread safe, and if the thread calling exit(2) is not the "main GUI thread", many nasty things can happen. This is not fixed in GTK+ 1.3/2.0, at least not as of a month or two ago. Do you folks consider this a genuine bug, or a design constraint? --p From hp@redhat.com Fri Feb 22 12:10:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 31D09191B6 for ; Fri, 22 Feb 2002 12:10:19 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1MHA8B12607; Fri, 22 Feb 2002 12:10:08 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: interesting thread issue at exit() References: <200202221621.g1MGLsh17460@op.net> From: Havoc Pennington Date: 22 Feb 2002 12:10:08 -0500 In-Reply-To: <200202221621.g1MGLsh17460@op.net> Message-ID: Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > GDK registers an exit function to be called on normal process > termination. This function will be called from whatever thread calls > exit(2). However, the function is not thread safe, and if the thread > calling exit(2) is not the "main GUI thread", many nasty things can > happen. > > This is not fixed in GTK+ 1.3/2.0, at least not as of a month or two > ago. Do you folks consider this a genuine bug, or a design constraint? > Fri Feb 1 08:57:38 2002 Owen Taylor * gtk/gtkmain.c (gtk_exit_func): Remove this useless atexit handler. (existance pointed out by Stefan Kost) 2001-02-19 Havoc Pennington * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it (gdk_init_check): no atexit func atexit functions are completely evil - the intent is to have none. Havoc From scherfa@web.de Fri Feb 22 13:21:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id C82D218AFE for ; Fri, 22 Feb 2002 13:21:37 -0500 (EST) Received: from [143.93.58.42] (helo=rmpc40.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.28 #21) id 16eKK8-00031H-00 for gtk-list@gnome.org; Fri, 22 Feb 2002 19:21:36 +0100 Subject: GtkTreeModel patch ... From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 22 Feb 2002 19:20:17 +0100 Message-Id: <1014402020.10567.3.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello ,i have written a small patch to get the rows from the GtkTreeModel: ---- gint gtk_tree_model_get_n_rows (GtkTreeModel *model) { gint rows=0; GtkTreeIter iter; if (gtk_tree_model_get_flags (GTK_TREE_MODEL(model))!=GTK_TREE_MODEL_LIST_ONLY) return -1; gtk_tree_model_get_iter_root (GTK_TREE_MODEL(model), &iter); do { rows++; }while ( gtk_tree_model_iter_next(GTK_TREE_MODEL(model),&iter) ); return rows; } ---- So i want to get the rows from a GtkTreeModel (i wanna use it as gtkclist ..) But if i test with gtk_tree_model_get_flags if it was a list .. i didn`t get what i expected there did i misunderstood gtk_tree_model flags ??? Thanks -- Andreas Scherf ICQ: 52910964 scherfa@web.de From MBOWMAN@arinc.com Fri Feb 22 18:22:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from exanpcn4.arinc.com (outmail2.arinc.com [144.243.4.70]) by mail.gnome.org (Postfix) with ESMTP id CBE8E18BBD for ; Fri, 22 Feb 2002 18:22:16 -0500 (EST) Received: from exanpcn1.arinc.com (unverified) by exanpcn4.arinc.com (Content Technologies SMTPRS 4.1.5) with ESMTP id for ; Fri, 22 Feb 2002 18:23:33 -0500 Received: by exanpcn1.arinc.com with Internet Mail Service (5.5.2653.19) id ; Fri, 22 Feb 2002 18:22:30 -0500 Message-ID: <05A70E173104D511A5840002A55C37EE1C478B@exanpmb2.arinc.com> From: "Bowman, Michael W. (MBOWMAN)" To: "'gtk-list@gnome.org'" Subject: How do I find out an object's type using the GTK+ (1.2) type syst em? Date: Fri, 22 Feb 2002 18:22:28 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a situation like the following: void setParms(GtkOpenmapProj* proj, ...) { ... class->normalize_latitude(proj, ...); } GtkOpenmapProj is a base class that has multiple sub-types. Each of the subtypes may override the normalize_latitude method of the GtkOpenmapProj class. However, I don't know which of the subtypes is passed into my function, just that its some sub-type of GtkOpenmapProj. How do I find which type identifier to feed to gtk_type_class() so that I can obtain the class struct for the proper sub-type (and use the proper normalize_latitude function)? How does GTK+ handle polymorphism? Thanks for any help. By the way, I'm assuming use of the GTK+ 1.2 version of the type system. I understand that the system may change some with 2.0, but I'm trying to learn the "simpler" system first. It also helps that a book is available for the earlier system (GGAD). --------------------------------- Michael Bowman mbowman@arinc.com (410) 266-4876 From kasonhuang@kinposh.com.cn Fri Feb 22 20:02:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id D3DF8188C4 for ; Fri, 22 Feb 2002 20:02:12 -0500 (EST) Subject: About the focus move in table? MIME-Version: 1.0 Content-Type: multipart/related; boundary="----_=_NextPart_001_01C1BC05.93F9C4C4"; type="text/html" Date: Sat, 23 Feb 2002 09:01:08 +0800 content-class: urn:content-classes:message x-mimeole: Produced By Microsoft Exchange V6.0.5762.3 Message-ID: <92CD479384374A439EFA0077E7C50F822476B1@kes01.kinposh.com.cn> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: About the focus move in table? Thread-Index: AcG8BZGUSrsvSSg0Eda2ugCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1BC05.93F9C4C4 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable About the focus move in table?

hi guys:
anyone could tell = how to change the focus in three tables(there is a lot of buttons in = each table) with keyboard.
and I find = that  the buttons focus in one table couldn't be changed = smoothly.for example,when you press left key on keyboard,you expect the = focus will move to the left button,however the focus maybe move to the a = button on the bottom of the table.

a table's layout like = following picture:(24 buttons in one table)

3D"ole0.bmp"

when focus in 14 = button,i press down key on keyboard.i expect the focus will move to the = 20 button,the result is the focus moves to the15 button or other = button,not 20 button.the same thing is happen to the 18,20 button.do = anyone knows how to handle with the problem? or how to control the focus = in a table?

Thanks in = advance!
kason



------_=_NextPart_001_01C1BC05.93F9C4C4 Content-Type: image/bmp; name="ole0.bmp" Content-Transfer-Encoding: base64 Content-Description: ole0.bmp Content-Location: No%20AttachName Qk2KLAAAAAAAAD4AAAAoAAAAyQEAAL0AAAABAAEAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAA AP///wD///////////////////////////////////////////////////////////////////// //////+AAAD///////////////////////////////////////////////////////////////// //////////+AAAD///////////////////////////////////////////////////////////// //////////////+AAAD///////////////////////////////////////////////////////// //////////////////+AAAD///////////////////////////////////////////////////// //////////////////////+AAAD///////////////////////////////////////////////// //////////////////////////+AAAD///////////////////////////////////////////// //////////////////////////////+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/+AAAD//f//////v////////f////////////////// +///////////////////////////////////9/+AAAD//f//////v////3///f////////8D//// ////+//////////////n////////////////////9/+AAAD//f//////v////x///f/////3///8 ////////+//////////////3////////////////////9/+AAAD//f//////vwAAP4Af/f/////w AH/+////////+/////////4AD//7////////////////////9/+AAAD//f//////v7//v+///f// ///8///+////////+/////////4////5////////////////////9/+AAAD//fgAHz//v8////f/ /f//////H//+////////+/////////+P///9////////////////////9/+AAAD//f3//7//v+H/ //f//f//////4//9////////+//////////w///8AH//////////////////9/+AAAD//f5//7// v/4///f//f///////H/5////////+//////////+P/4C/5//////////////////9/+AAAD//f8P /9//v/+//+f//f///////7wH////////+///////////n/3/P///////////////////9/+AAAD/ /f/x/9//v/+//+///f///////7+f////////+///////////3/3/v///////////////////9/+A AAD//f/8/8//v/+//+///f///////7/n////////+///////////3/3/3/////////////////// 9/+AAAD//f/+/+//v/+/+E///f///////7/3////////+///////////3/3/z/////////////// ////9/+AAAD//f//f/f/v/+//z///f///////7/3////////+///////////3/7/7/////////// ////////9/+AAAD//f//f/f/v/+//////f///////X/v////////+///////////v/7/9/////// ////////////9/+AAAD//f//f/f/v/9//////f///////P+f////////+//////////+f/7/9/// ////////////////9/+AAAD//f//f/f/v/B//////f////////w/////////+//////////5//9/ ////////////////////9/+AAAD//fwAf/f/v////////f//////////////////+/////////// //9/////////////////////9/+AAAD//f//////v////////f//////////////////+/////// //////9/////////////////////9/+AAAD//f//////v////////f//////////////////+/// ////////////////////////////////9/+AAAD//f//////v////////f////////////////// +///////////////////////////////////9/+AAAD//f//////v////////f////////////// ////+///////////////////////////////////9/+AAAD//f//////v////////f////////// ////////+///////////////////////////////////9/+AAAD//f//////v////////f////// ////////////+///////////////////////////////////9/+AAAD//f//////v////////f// ////////////////+///////////////////////////////////9/+AAAD//f//////v/////// /f//////////////////+///////////////////////////////////9/+AAAD//f//////v/// /////f//////////////////+///////////////////////////////////9/+AAAD//f////// v////////f//////////////////+///////////////////////////////////9/+AAAD//f// ////v////////f//////////////////+///////////////////////////////////9/+AAAD/ /f//////v////////f//////////////////+///////////////////////////////////9/+A AAD//f//////v////////f//////////////////+/////////////////////////////////// 9/+AAAD//f//////v////////f//////////////////+/////////////////////////////// ////9/+AAAD//f//////v////////f//////////////////+/////////////////////////// ////////9/+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAB/+AAAD//f//////v////////f////////f/////////+////////9////////// ////////////////9/+AAAD//f//////v////////f////////f/////////+////////9////// ////////////////////9/+AAAD//f//////v////////f////////f////+P///+////////9// ////////////////////////9/+AAAD//f//////v////////f///8////f//3/+wf//+/////P/ /9//////////////////////////9/+AAAD//f//////v////////f///+////f//3/+/v//+//3 //v//9//////////v///////////////9/+AAAD//f//////v////////f///+////f//7/+/v// +//3//v//9//////4f4AP///////////////9/+AAAD//f//////v///8H///f////f///f//7/+ /v//+//3//3//9//////4AD/////////////////9/+AAAD//f//////v///77///f////f///f/ /9/+/v//+//7//7//9///////9////gD////////////9/+AAAD//f//////v///39///f/n//v/ //f//9//PP//+//7//7//9///////8///+f8////////////9/+AAAD//f//////v///P9///f/7 //v///f//+//jf//+//7//7//9////////P//+/+////////////9/+AAAD//f//////v/f/f9// /f/7//3///f//+//4f//+//9//7//9////////3//+//f///////////9/+AAAD//f//////v/f/ f9///f/7//3///f//+//8///+//9//9//9////////7//+//f///////////9/+AAAD//e//5/// v/P/fz///f/9//7///f///f/6f//+//9//9//9////////7//+//f///////////9/+AAAD//e// iP//v/3/YP///f/9//7///f///f/3f//+//+//9//9////////5//+//v///////////9/+AAAD/ /e//P3//v/3/f////f/9//7///f///f/vf//+//+//+//9////////9//+//v///////////9/+A AAD//ff//3//v/7/f////f/+//9///f///f+ff//+///f/+//9////////9///f/v/////////// 9/+AAAD//ff//3//v/7/v////f/+//+///f///f+/f//+///f4A//9////////9///H/f/////// ////9/+AAAD//fv//3//v/7/n////f/+//+///f///f+////+///f7+//9////////9///X/f/// ////////9/+AAAD//fv//n//v/9/z////f/+///f//f///v+f///+///f3+//9////////9///3+ ////////////9/+AAAD//f3//v//v/9/8////f/+///f//f///v/gP//+///f3/v/9////////9/ //z9////////////9/+AAAD//f3/4P//v/9//f///f/+//gf//f///v/////+////3/v/9////// //9///57////////////9/+AAAD//f3/n9//v/+//P///f/+/4f///f///v/////+////3/3/9// //////9///8H////////////9/+AAAD//f7/3h//v/+//v///f/+/n////f///v/////+////3/3 /9////////9/////////////////9/+AAAD//f7/wf//v/+//////f/+//////f///v/////+/// /5/3/9////////9/////////////////9/+AAAD//f9/7///v/+//////f/+//////f///v///// +////+AH/9////////7/////////////////9/+AAAD//f9/9///v/+//////f////////f///// ////+////////9///////+D/////////////////9/+AAAD//f9/9///v////////f////////f/ ////////+////////9//////////////////////////9/+AAAD//f//////v////////f////// //f/////////+////////9//////////////////////////9/+AAAD//f//////v////////f// //////f/////////+////////9//////////////////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9//////////////////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9//////////////////////////9/+AAAD//f////// v////////f////////f/////////+////////9//////////////////////////9/+AAAD//f// ////v////////f////////f/////////+////////9//////////////////////////9/+AAAD/ /f//////v////////f////////f/////////+////////9//////////////////////////9/+A AAD//f//////v////////f////////f/////////+////////9////////////////////////// 9/+AAAD//f//////v////////f////////f/////////+////////9////////////////////// ////9/+AAAD//f//////v////////f////////f/////////+////////9////////////////// ////////9/+AAAD//f//////v////////f////////f/////////+////////9////////////// ////////////9/+AAAD//f//////v////////f////////f/////////+////////9////////// ////////////////9/+AAAD//f//////v////////f////////f/////////+////////9////// ////////////////////9/+AAAD//f//////v////////f////////f/////////+////////9// ////////////////////////9/+AAAD//f//////v////////f////////f/////////+/////// /9//////////////////////////9/+AAAD//f//////v////////f////////f/////////+/// /////9//////////////////////////9/+AAAD//f//////v////////f////////f///////// +////////9//////////////////////////9/+AAAD//f//////v////////f////////f///// ////+////////9//////////////////////////9/+AAAD//f//////v////////f////////f/ ////////+////////9//////////////////////////9/+AAAD//f//////v////////f////// //f/////////+////////9//////////////////////////9/+AAAD//f//////v////////f// //////f/////////+////////9//////////////////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9//////////////////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9//////////////////////////9/+AAAD//f////// v////////f////////f/////////+////////9//////////////////////////9/+AAAD//f// ////v////////f////////f/////////+////////9//////////////////////////9/+AAAD/ /AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/+A AAD//f//////v////////f////////f/////////+////////9////////////3///////////// 9/+AAAD//f//////v////////f////////f/////////+//////j/9////////////3///////// ////9/+AAAD//f//////v///n////f////////f/////////+/////AP/9////////////3///// ////////9/+AAAD//f//4f//v///3////f////////f/////////+////Af//9/////v//////3/ ////////////9/+AAAD//f//7n//v///3////f////////f/////////+//+/P///9/////v//// //3//////v//////9/+AAAD//f//75//v///3////f/3/8B///f/////////+//+fv///9/////v //////3///3//3//////9/+AAAD//f//79//v///3////f/7/98///f/////f///+///fn///9// ///v//////3///3//3//////9/+AAAD//f//79//v///7////f/7/9+f//f/////v///+///f3// /9/////v//P///3///3//z//////9/+AAAD//f//79//v///7////f/7/9/f//f/////v///+/// v4///9/////v//AA//3///7//7//////9/+AAAD//f//79//v///7////f/7/9/f//f///P/v/// +///3/A//9/////v///+P/3///7//7//////9/+AAAD//f//79//v///7////f/9/9/f//f///v/ 3///+///3//f/9/////3////v/3///7//9//////9/+AAAD//f//59//v///9////f/9/9/f//f/ //v/3///+///3//f/9/////3////3/3///7/v9/f////9/+AAAD//f//99//v///9////f/+/9/f //f///3/3///+///7//f/9/////3////3/3///9/gAAf////9/+AAAD//f//89//v///+////f/+ /+/f//f///3/7///+///7//f/9/////3////3/3///9/3+f/////9/+AAAD//f//+Z//v///+/// /f//f+/f//f///7/7///+///9//f/9/////3////3/3///+/z/f/////9/+AAAD//f///H//v/// +f///f//v+/f//f///7/7///+///9//f/9/////3////3/3///+/7/P/////9/+AAAD//f//+P// v////f///f//v/ff//f///7/9///+///9/+f/9/////3////3/3///+/5/3/////9/+AAAD//f// 5v//v///8P///f//v/ff//f///7/9///+///+/8//9/////3////n/3////f9/z/////9/+AAAD/ /f//33//v///73///f//v/uf//f///9/9///+///+/5//9/////3//8AP/3////v+/7/////9/+A AAD//f//vz//v///7z///f//3/2///f///9/9///+///+/n//9/////3/+D///3////v+f7///// 9/+AAAD//f//f7//v///7////f//3/9///f///9/9///+///+/P//9/////3//P///3////3/f// ////9/+AAAD//f/+/7//v///77///f//3/7///f///9/9///+///+////9/////3//w///3////3 /v//////9/+AAAD//f/+/7//v///77///f//3/////f///9/9///+////////9/////3///P//3/ ///3/n//////9/+AAAD//f/+/7//v///79///f//3/////f///9/////+////////9/////3///z //3////3/7//////9/+AAAD//f/+/7//v///79///f//3/////f/////////+////////9/////3 /v/7//3//////7//////9/+AAAD//f/+/z//v///79///f//3/////f/////////+////////9// ///3/j/7//3/////////////9/+AAAD//f/+/3//v///99///f////////f/////////+/////// /9///////8AH//3/////////////9/+AAAD//f/+fv//v///9+///f////////f/////////+/// /////9////////////3/////////////9/+AAAD//f//fv//v///++///f////////f///////// +////////9////////////3/////////////9/+AAAD//f//AP//v///+Y///f////////f///// ////+////////9////////////3/////////////9/+AAAD//f//////v////D///f////////f/ ////////+////////9////////////3/////////////9/+AAAD//f//////v////////f////// //f/////////+////////9////////////3/////////////9/+AAAD//f//////v////////f// //////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9////////////3/////////////9/+AAAD//f////// v////////f////////f/////////+////////9////////////3/////////////9/+AAAD//f// ////v////////f////////f/////////+////////9////////////3/////////////9/+AAAD/ /f//////v////////f////////f/////////+////////9////////////3/////////////9/+A AAD//f//////v////////f////////f/////////+////////9////////////3///////////// 9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///////// ////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///// ////////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3/ ////////////9/+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAB/+AAAD//f//////v////////f////////f/////////+////////9////// //////3/////////////9/+AAAD//f//////v////////f////////f/////////+////////9// //////////3/////////////9/+AAAD//f//////v////////f////////f/////////+/////// /9/////4AH////3/////////////9/+AAAD//f//////v////////f////////f/////////+/// /////9/////3/7////3/////////////9/+AAAD//f//////v////+B//f////////f///P///// +///wP///9/////3/7////3/////f///////9/+AAAD//f//////v///AB///f////////f///n/ ////+///nw///9/////3/9////3/////v///////9/+AAAD//f//z///v//8/////f/9//////f/ //3/////+///P+///9/////3/9////3/////v///////9/+AAAD//f//7///v//j/////f/8AP// //f///z/////+////+///9/////3/9////3/////3///////9/+AAAD//f//7///v//z/////f// /wH///f///5/////+////+///9/////3/D////3/////3///////9/+AAAD//f//7///v//9//// /f////7///f///9/////+////+///9/////zw/////3/////z///////9/+AAAD//f//7///v//+ f////f////7///f///+/////+////8///9/////wP/////3/////7///////9/+AAAD//f//7/// v///g////f////z///f////f////+////7///9/////3//////3/////9///////9/+AAAD//f// 7///v////H///f////3///f/8//v////+////z///9/////3//////3/////+///////9/+AAAD/ /f//7///v////5///f////v///f/+AAAP///+////H///9/////3//////3/////+///////9/+A AAD//f//7///v////9///f////P///f//f/3z///+///4////9/////3//////3//////f////// 9/+AAAD//f//7///v////9///f///8////f//v/7////+///7////9/////3//////3//////f// ////9/+AAAD//f//7///v////x///f///j////f//n/5////+///8AP//9/////3//////3///// /v//////9/+AAAD//f//7///v///+P///f//4f////f//z/9////+///8////9/////7//////3/ /////z//////9/+AAAD//f//7///v///h////f/+H/////f//4/+////+///+////9/////7//// //3//////5//////9/+AAAD//f//7///v///P////f//4H////f//+/+////+///+////9/////9 //////3//////+f/////9/+AAAD//f//7///v////////f///4////f///P+f///+///+f///9// ///+//////3///////j/////9/+AAAD//f//7///v////////f///+////f///n/f///+////f// /9/////+f/////3///////8/////9/+AAAD//f//7///v////////f///+////f///7/f///+/// /f///9//////n/////3////////P////9/+AAAD//f//7///v////////f///+////f///5///// +////f///9//////7/////3/////wAAP////9/+AAAD//f//7///v////////f///x////f///+/ ////+////////9//////7/////3/////////////9/+AAAD//f//7///v////////f/8AP////f/ //+/////+////////9////////////3/////////////9/+AAAD//f//////v////////f////// //f/////////+////////9////////////3/////////////9/+AAAD//f//////v////////f// //////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9////////////3/////////////9/+AAAD//f////// v////////f////////f/////////+////////9////////////3/////////////9/+AAAD//f// ////v////////f////////f/////////+////////9////////////3/////////////9/+AAAD/ /f//////v////////f////////f/////////+////////9////////////3/////////////9/+A AAD//f//////v////////f////////f/////////+////////9////////////3///////////// 9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///////// ////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///// ////////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3/ ////////////9/+AAAD//f//////v////////f////////f/////////+////////9////////// //3/////////////9/+AAAD//f//////v////////f////////f/////////+////////9////// //////3/////////////9/+AAAD//f//////v////////f////////f/////////+////////9// //////////3/////////////9/+AAAD//f//////v////////f////////f/////////+/////// /9////////////3/////////////9/+AAAD//f//////v////////f////////f/////////+/// /////9////////////3/////////////9/+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/+AAAD///////////////////////////////// //////////////////////////////////////////+AAAD///////////////////////////// //////////////////////////////////////////////+AAAD///////////////////////// //////////////////////////////////////////////////+AAAD///////////////////// //////////////////////////////////////////////////////+AAAD///////////////// //////////////////////////////////////////////////////////+AAAD///////////// //////////////////////////////////////////////////////////////+AAAD///////// //////////////////////////////////////////////////////////////////+AAAD///// //////////////////////////////////////////////////////////////////////+AAAD/ //////////////////////////////////////////////////////////////////////////+A AAA= ------_=_NextPart_001_01C1BC05.93F9C4C4-- From superylam@netscape.net Fri Feb 22 20:12:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imo-r08.mx.aol.com (imo-r08.mx.aol.com [152.163.225.104]) by mail.gnome.org (Postfix) with ESMTP id A701818D43 for ; Fri, 22 Feb 2002 20:12:47 -0500 (EST) Received: from superylam@netscape.net by imo-r08.mx.aol.com (mail_out_v32.5.) id h.13a.138afd9 (16232) for ; Fri, 22 Feb 2002 20:12:40 -0500 (EST) Received: from netscape.net (pcd331066.netvigator.com [203.218.121.66]) by air-in02.mx.aol.com (v83.35) with ESMTP id MAILININ28-0222201240; Fri, 22 Feb 2002 20:12:40 -0500 Message-ID: <3C77A283.30609@netscape.net> Date: Sat, 23 Feb 2002 09:09:07 -0500 From: Lam Yick Yan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk->deviceid How to use? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I have just devleoped a X input driver for my small graphic tablet. And it is working.... Now I have cursor that will move according to mouse OR graphic tablet. Now I want to develope a gtk application that will ONLY respond the event from my graphic tablet. I have a callback function in my GTK application, motion_notify_event and I have compared the event content of my mouse and my graphic tablet and they look the same (the deviceid content etc). and I have no way to distuguish whether the event is from the mouse or from the graphic tablet. What did I do wrong in my driver? can please have a look at http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether I did wrong in the device driver? Yick Hong Kong china From hp@redhat.com Fri Feb 22 23:40:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 49C4A182B1 for ; Fri, 22 Feb 2002 23:40:43 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1N4eg531923; Fri, 22 Feb 2002 23:40:42 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Bowman, Michael W. (MBOWMAN)" Cc: "'gtk-list@gnome.org'" Subject: Re: How do I find out an object's type using the GTK+ (1.2) type syst em? References: <05A70E173104D511A5840002A55C37EE1C478B@exanpmb2.arinc.com> From: Havoc Pennington Date: 22 Feb 2002 23:40:41 -0500 In-Reply-To: <05A70E173104D511A5840002A55C37EE1C478B@exanpmb2.arinc.com> Message-ID: Lines: 38 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Bowman, Michael W. \(MBOWMAN\)" writes: > I have a situation like the following: > > void > setParms(GtkOpenmapProj* proj, ...) { > ... > class->normalize_latitude(proj, ...); > } > > GtkOpenmapProj is a base class that has multiple sub-types. Each of the > subtypes may > override the normalize_latitude method of the GtkOpenmapProj class. However, > I don't > know which of the subtypes is passed into my function, just that its some > sub-type of > GtkOpenmapProj. How do I find which type identifier to feed to > gtk_type_class() so > that I can obtain the class struct for the proper sub-type (and use the > proper > normalize_latitude function)? How does GTK+ handle polymorphism? Just look at any example in GTK itself. You should not need the subtype's class, just GtkOpenmapProjClass, which contains the normalize_latitude function. The whole point of virtual functions is you don't have to know the type of the object, isn't it? Usually people write a wrapper function: void gtk_openmap_proj_normalize_latitude (GtkOpenmapProj *proj) { GTK_OPENMAP_PROJ_GET_CLASS (proj)->normalize_latitude (proj); } Havoc From rbultje@ronald.bitfreak.net Sat Feb 23 07:49:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id 46D3F180D8 for ; Sat, 23 Feb 2002 07:49:47 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1NCds4K029012 for ; Sat, 23 Feb 2002 13:39:54 +0100 (CET) Subject: bug/missing feature in gtk2 From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 23 Feb 2002 13:49:45 +0100 Message-Id: <1014468585.18710.0.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm not sure whether to call this a bug or a missing feature... First of all, gtk-1.3.14 fixed the bug where my picture disappeared if I highlighted the button to which it was attached, thanks! Now, I've noticed something else that might be wrong. I have the following code: menu = gtk_menu_new(); for (i=0;iaudio_recsrc, menu); gtk_widget_show_all(menu); prefs->audio_recsrc is a GtkOptionMenu. The problem is that hat images *do* appear in the menu if it pops up, but not in the GtkOptionMenu itself with the selected item. I hope the following two screenshots can make clear what I mean: http://ronald.bitfreak.net/images/icon-problem-1.png http://ronald.bitfreak.net/images/icon-problem-2.png In the second one, you'll notice that the icon is not being shown in front of the selected item, while in the popup-menu itself, the icons are being shown. I'm not sure whether to call this a bug or a missing feature. Should I report this somewhere? Secondly (this is very offtopic), I'm getting my icons from the 'tigert' collection (http://primates.ximian.com/~tigert/new_stock_project/). According to that page, these icons are supposed to be part of gtk's stock icon collection, however, I can't find the media-rec, media-pause and media-stop icons as stock icons in Gtk. Are they supposed to be in some other package than Gtk? Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From sven@gimp.org Sat Feb 23 08:47:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD95871C7.dip.t-dialin.net [217.88.113.199]) by mail.gnome.org (Postfix) with ESMTP id AACDF18EE6 for ; Sat, 23 Feb 2002 08:47:39 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ecWU-0002tx-00; Sat, 23 Feb 2002 14:47:34 +0100 To: Lam Yick Yan Cc: gtk-list@gnome.org Subject: Re: gtk->deviceid How to use? References: <3C77A283.30609@netscape.net> From: Sven Neumann Date: 23 Feb 2002 14:47:34 +0100 In-Reply-To: <3C77A283.30609@netscape.net> Message-ID: Lines: 20 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Lam Yick Yan writes: > I have just devleoped a X input driver for my small graphic tablet. > And it is working.... Now I have cursor that will move according to > mouse OR graphic tablet. > > Now I want to develope a gtk application that will ONLY respond > the event from my graphic tablet. I have a callback function in my GTK > application, motion_notify_event and I have compared the event content > of my mouse and my graphic tablet and they look the same (the deviceid > content etc). and I have no way to distuguish whether the event is from the > mouse or from the graphic tablet. one thing you should check before you start to debug your driver is whether GTK+ was compiled with xinput support (configure --with-xinput=xfree). Salut, Sven From otaylor@redhat.com Sat Feb 23 09:36:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 85889180D8 for ; Sat, 23 Feb 2002 09:36:50 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id C161B241BE2; Sat, 23 Feb 2002 09:36:49 -0500 (EST) To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: bug/missing feature in gtk2 References: <1014468585.18710.0.camel@tux> From: Owen Taylor In-Reply-To: Ronald Bultje's message of "23 Feb 2002 13:49:45 +0100" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 35 Message-Id: <20020223143649.C161B241BE2@fresnel.labs.redhat.com> Date: Sat, 23 Feb 2002 09:36:49 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > prefs->audio_recsrc is a GtkOptionMenu. The problem is that hat images > *do* appear in the menu if it pops up, but not in the GtkOptionMenu > itself with the selected item. I hope the following two screenshots can > make clear what I mean: > http://ronald.bitfreak.net/images/icon-problem-1.png > http://ronald.bitfreak.net/images/icon-problem-2.png > In the second one, you'll notice that the icon is not being shown in > front of the selected item, while in the popup-menu itself, the icons > are being shown. I'm not sure whether to call this a bug or a missing > feature. Should I report this somewhere? I'd say it's a "known limitation" rather than either a bug or missing feature. I doubt we'll fix it in the context of GtkOpttionMenu, but if you want to file a bug report on the issue on bugzilla.gnome.org that will remind us to look at the issue of Icon/Text combination items for the new combo/option menu widget that is scheduled to be done for GTK+-2.2. > Secondly (this is very offtopic), I'm getting my icons from the 'tigert' > collection (http://primates.ximian.com/~tigert/new_stock_project/). > According to that page, these icons are supposed to be part of gtk's > stock icon collection, however, I can't find the media-rec, media-pause > and media-stop icons as stock icons in Gtk. Are they supposed to be in > some other package than Gtk? These icons weren't there when we finalized the set of stock icons for GTK+-2.0; they'll most likely be added for 2.2. You can package them with your application and register them as stock icons yourself, (with stock id's like myprogr-media-rec) and then when GTK+-2.2 switch to using the official version. Regards, Owen From otaylor@redhat.com Sat Feb 23 09:39:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 540BB18EC4 for ; Sat, 23 Feb 2002 09:39:48 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 121B5241BE2; Sat, 23 Feb 2002 09:39:47 -0500 (EST) To: Valdis.Kletnieks@vt.edu Cc: Vincent Arkesteijn , gtk-list@gnome.org Subject: Re: Interesting suid problem References: <20020221223053.A6053@ken> <200202212139.g1LLdlVj032087@foo-bar-baz.cc.vt.edu> From: Owen Taylor In-Reply-To: Valdis.Kletnieks@vt.edu's message of "Thu, 21 Feb 2002 16:39:47 -0500" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 18 Message-Id: <20020223143947.121B5241BE2@fresnel.labs.redhat.com> Date: Sat, 23 Feb 2002 09:39:47 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Valdis.Kletnieks@vt.edu writes: > On Thu, 21 Feb 2002 22:30:54 +0100, Vincent Arkesteijn said: > > > Why? Just put the password in the program, and give your users > > execute permission, but no read permission on the program. It > > may not be too elegant, and it's a bit clumsy when you want to > > change the password, but it's the simplest solution. > > Still vulnerable to attack via gdb/dbx or ptrace(), but that's a > question of whether your threat model includes somebody both that > determined and skilled... You can't gdb/ptrace a non-readable executable on most operating systems. Regards, Owen From rbultje@ronald.bitfreak.net Sat Feb 23 11:04:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id A4C1D18108 for ; Sat, 23 Feb 2002 11:04:11 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1NFsI4K004660 for ; Sat, 23 Feb 2002 16:54:18 +0100 (CET) Subject: Re: bug/missing feature in gtk2 From: Ronald Bultje To: gtk-list@gnome.org In-Reply-To: <20020223143649.C161B241BE2@fresnel.labs.redhat.com> References: <1014468585.18710.0.camel@tux> <20020223143649.C161B241BE2@fresnel.labs.redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 23 Feb 2002 17:04:10 +0100 Message-Id: <1014480250.18709.5.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, 2002-02-23 at 15:36, Owen Taylor wrote: > I'd say it's a "known limitation" rather than either a bug or missing feature. > I doubt we'll fix it in the context of GtkOpttionMenu, but if you > want to file a bug report on the issue on bugzilla.gnome.org that will > remind us to look at the issue of Icon/Text combination items for the > new combo/option menu widget that is scheduled to be done for GTK+-2.2. I filed it on bugzilla, hope it'll be fixed one day. But if I understand you correctly, there's little chance that it'll be "fixed" for Gtk+-2.0? For the archives then, here's code I use as a workaround (got this idea while looking in the sourcecode of GtkImageMenuItem): static GtkWidget * gtk_menu_item_with_image (const gchar *labeltxt, const gchar **pixmap) { GtkWidget *hbox, *menuitem, *label, *image; menuitem = gtk_menu_item_new(); hbox = gtk_hbox_new(FALSE, 5); image = gtk_image_new_from_pixbuf(gdk_pixbuf_new_from_xpm_data(pixmap)); gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0); gtk_widget_show(image); label = gtk_label_new(labeltxt); gtk_misc_set_alignment(GTK_MISC(label), 0.0, GTK_MISC(label)->yalign); gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0); gtk_widget_show(label); gtk_container_add(GTK_CONTAINER(menuitem), hbox); gtk_widget_show(hbox); return menuitem; } and then for the menus: [..] menu = gtk_menu_new(); pixmap = (const gchar**) audio_src_volume_xpm; for (i=0;iaudio_recsrc, menu); gtk_widget_show_all(menu); [..] Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From otaylor@redhat.com Sat Feb 23 11:20:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 8CAFC18F32 for ; Sat, 23 Feb 2002 11:20:55 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id D65CD241BE2; Sat, 23 Feb 2002 11:20:54 -0500 (EST) To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: bug/missing feature in gtk2 References: <1014468585.18710.0.camel@tux> <20020223143649.C161B241BE2@fresnel.labs.redhat.com> <1014480250.18709.5.camel@tux> From: Owen Taylor In-Reply-To: Ronald Bultje's message of "23 Feb 2002 17:04:10 +0100" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 24 Message-Id: <20020223162054.D65CD241BE2@fresnel.labs.redhat.com> Date: Sat, 23 Feb 2002 11:20:54 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > On Sat, 2002-02-23 at 15:36, Owen Taylor wrote: > > I'd say it's a "known limitation" rather than either a bug or missing feature. > > I doubt we'll fix it in the context of GtkOpttionMenu, but if you > > want to file a bug report on the issue on bugzilla.gnome.org that will > > remind us to look at the issue of Icon/Text combination items for the > > new combo/option menu widget that is scheduled to be done for GTK+-2.2. > > I filed it on bugzilla, hope it'll be fixed one day. But if I understand > you correctly, there's little chance that it'll be "fixed" for Gtk+-2.0? To change GtkImageMenuitem to make the image/label pair, instead of the label GTK_BIN(item)->child would be an API change and we are completely API frozen at this point. So, it's "just the way it works" (we could hack GtkOptionMenu to do something special for GtkImageMenuItem... but it would a reasonable amount of ugly code.) Regards, Owen From bl_nero@o2.pl Sat Feb 23 16:59:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rekin.go2.pl (rekin4.go2.pl [212.126.20.8]) by mail.gnome.org (Postfix) with ESMTP id 8EB1B180D8 for ; Sat, 23 Feb 2002 16:59:41 -0500 (EST) Received: from s (pa34.piotrkow.cvx.ppp.tpnet.pl [213.77.224.34]) by rekin.go2.pl (Mailer_v2.01) with SMTP id C79B76EFB3; Sat, 23 Feb 2002 22:59:37 +0100 (CET) Message-ID: <001201c1bcb5$60c043c0$22e04dd5@s> From: "Bartosz \"Neron\" Leper" To: "Vlad Harchev" Cc: "GTK-list" References: Subject: Re: GTK and non-monospace fonts Date: Sat, 23 Feb 2002 22:58:29 +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 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Hi, > > That was a bug in gdk fixed personally by me - the standard gtk-1.2.10 > already contains the fix - so please upgrade your gtk to version 1.2.10. > > Best regards, > -Vlad Thanks a lot. That was quite easy. I have downloaded and installed version 1.2.10 and my own programs are now OK. But is there any chance to "patch" my pre-compiled applications somehow without recompiling all of them? I have no sources and no time to download them all. Thanks again, Nero -- ------====[Bartosz "Neron" Leper]====------ mailto:bl_nero@o2.pl | IRC: #warsztat www.nerosite.prv.pl | www.programex.prv.pl ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From johnnyb@localhost.localdomain Sat Feb 23 19:58:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by mail.gnome.org (Postfix) with ESMTP id 1AD4B180D8 for ; Sat, 23 Feb 2002 19:58:36 -0500 (EST) Received: (from johnnyb@localhost) by localhost.localdomain (8.11.6/8.11.6) id g1O0xZt32057 for gtk-list@gnome.org; Sat, 23 Feb 2002 19:59:35 -0500 Date: Sat, 23 Feb 2002 19:59:35 -0500 From: "Johnny B ." To: gtk-list@gnome.org Subject: linking problem Message-ID: <20020223195935.C31813@tasha.vonbek.dhs.org> Reply-To: "Johnny B ." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Greetings all! Ive installed glib and gtk from source, run ldconfig and so on and I think everything is installed ok (pertinent data below), yet I'm getting a few errors when linking and app: /tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' /tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' /tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' Assuming that I have everything installed ok and that this is just a silly user error, which include or library covers these? I've grepped like crazy in /usr/lib and /usr/include ... gtk/glib is setup as such: [johnnyb@tasha lib]$ gtk-config --cflags --libs -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/X11R6/include -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm Is there a file I should be including? I'm trying to build the classic helloworld.c in section 2.1 of the tutorial. I can build it if I use the massive Makefile provided with the samples, but I'm trying to make my own makefile to see what is required for the build. There's just too much gtk info on the internet to search effectively for this, but Ill keep trying. Thanks - JB +--------------------------------- | John Bleichert | syborg@stny.rr.com | http://vonbek.dhs.org/latest.jpg From hp@redhat.com Sat Feb 23 20:13:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 7D96F180D8 for ; Sat, 23 Feb 2002 20:13:22 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1O1DL832259; Sat, 23 Feb 2002 20:13:21 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Johnny B ." Cc: gtk-list@gnome.org Subject: Re: linking problem References: <20020223195935.C31813@tasha.vonbek.dhs.org> From: Havoc Pennington Date: 23 Feb 2002 20:13:21 -0500 In-Reply-To: <20020223195935.C31813@tasha.vonbek.dhs.org> Message-ID: Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Johnny B ." writes: > > Ive installed glib and gtk from source, run ldconfig and so on and I > think everything is installed ok (pertinent data below), yet I'm > getting a few errors when linking and app: > > /tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' > /tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' > /tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' > Turn on warnings for your compiler, then eliminate all warnings like "function G_CALLBACK has not been declared" Havoc From hp@redhat.com Sat Feb 23 20:13:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 2FC52180D8 for ; Sat, 23 Feb 2002 20:13:42 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1O1DfA32263; Sat, 23 Feb 2002 20:13:41 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Johnny B ." Cc: gtk-list@gnome.org Subject: Re: linking problem References: <20020223195935.C31813@tasha.vonbek.dhs.org> From: Havoc Pennington Date: 23 Feb 2002 20:13:41 -0500 In-Reply-To: <20020223195935.C31813@tasha.vonbek.dhs.org> Message-ID: Lines: 6 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, (The way you eliminate the warnings is to include gtk/gtk.h) Havoc From superylam@netscape.net Sat Feb 23 20:31:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imo-r06.mx.aol.com (imo-r06.mx.aol.com [152.163.225.102]) by mail.gnome.org (Postfix) with ESMTP id 5AFFD180D8 for ; Sat, 23 Feb 2002 20:31:22 -0500 (EST) Received: from superylam@netscape.net by imo-r06.mx.aol.com (mail_out_v32.5.) id h.19.30351f3 (16233) for ; Sat, 23 Feb 2002 20:31:19 -0500 (EST) Received: from netscape.net (pcd331236.netvigator.com [203.218.121.236]) by air-in02.mx.aol.com (v83.35) with ESMTP id MAILININ29-0223203118; Sat, 23 Feb 2002 20:31:18 -0500 Message-ID: <3C78F85E.6010307@netscape.net> Date: Sun, 24 Feb 2002 09:27:42 -0500 From: Lam Yick Yan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How gtk distinguish event from differnt input device? References: <3C77A283.30609@netscape.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I have asked similar question before but may be the subject is not very attractive, I ask again, using a different subject. Suppose I have 3 input devices, one PS/2 and one COM port and one USB mouse. Now I am writing a GTK application with a drawing area, and I have a callback event handler to handle motion_notify_event. Is it possible to distinguish from which device the motion event is triggered? In the gint motion_notify(GtkWidget *widget, GdkEvent *event), I have study throught every field in the event structure, and I cannot find a way to tell from which device the event is generated, can some one please instruct me how to do so? An example or a pointer to webpage will be greatly appreciated. Yick Lam Hong Kong, Chna From otaylor@redhat.com Sun Feb 24 01:58:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id A2CC0180EA; Sun, 24 Feb 2002 01:58:19 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id C5086241BE2; Sun, 24 Feb 2002 01:58:18 -0500 (EST) To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Reply-To: gtk-devel-list@gnome.org Subject: New release of GTK+ libraries (1.3.15). Please test! From: Owen Taylor User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 155 Message-Id: <20020224065818.C5086241BE2@fresnel.labs.redhat.com> Date: Sun, 24 Feb 2002 01:58:18 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: A new release of GTK+ and associated libraries (GLib, Pango, Atk) is now available at: ftp://ftp.gtk.org/pub/gtk/v1.3/ This is the last scheduled pre-release before GTK+-2.0, so we'd really appreciate it if people developing with GTK+ would try compiling and using these libraries so we catch problems before we release. Bugs should be reported to http://bugzilla.gnome.org. The relevant products are gtk+, glib, pango, and atk. We'd also appreciate reports of successful compilation, especially on less common platforms; please send such reports to gtkdev@gnome.org. Information on platform, operating system (and distribution for Linux), operating system version, and compiler is useful. The JPEG/PNG/TIFF libraries, and pkg-config 0.8 or newer are needed to compile this release. These are available at: ftp://ftp.gtk.org/pub/gtk/v1.3/dependencies/ (The canonical upstream location for pkg-config is http://www.freedesktop.org/software/pkgconfig/. But gtk.org mirrors the 0.11 version you need to build GTK+) You will also need "libiconv" on systems with C libraries that lack the iconv() function: http://www.gnu.org/software/libiconv/ And the libintl library from the GNU "gettext" package if your C library doesn't have gettext() functionality: http://www.gnu.org/software/gettext/ Overview of Changes in GLib 1.3.15: =================================== * Speed up marshalers by using private access to GValue [Anders Carlsson, Tim Janik] * Reduce GValue to 2 elements [Tim] * Add G_DEBUG environment variable, G_DEBUG=fatal_warnings [Matthias Clasen] * Fixes for AIX compilation [Miroslaw Dobrzanski-Neumann] * Add padding to various structures [Owen Taylor, Tim] * Win32 fixes [Tor Lillquist] Other contributors: Daniel Elstner, James Henstridge, Ryan Lovett, Morten Welinder, Overview of Changes in Pango 0.26 ================================= * Fixes for AIX compilation [Miroslaw Dobrzanski-Neumann] * Fix zero-width characters being displayed [Sven Neumann] * Add some padding to class structures [Owen Taylor] Overview of Changes in Atk 0.13 ================================= * Add padding to class structures for future expansion [Padraig O'Briain] * Add include guards to atk.h [Morten Welinder] * Change argument of atk_component_get_layer(),atk_component_get_mdi_zorder() to be AtkComponent instead of AtkObject [Padraig] * Cleanups [Padraig] Overview of Changes in GTK+ 1.3.15 ================================== * New stock and improved icon images [Tuomas Kuosomann, Jakub Steiner, Anders Carlsson] * Widget drawing improvements for check and radio buttons, spinbuttons [Soeren Sandmann] * Clean up module search path algorithm, use GTK_PATH [Owen Taylor] * Add GtkSetting for font name. [Richard Hestilow] * Much improved key matching code, accelerators work independent of group [Owen] * Make mnemonics work for embedded GtkPlug widgets [Owen] * Keynav improvements for GtkTreeView [Kristian Rietveld] * Fix gtk_tree_view_scroll_to_cell() [Jonathan Blandford] * Rename gtk_tree_view_get_iter_root() and gtk_tree_path_new_root() to gtk_tree_view_get_iter_first() and gtk_tree_path_new_first(), add compatibility macros. * GtkTreeView bug fixes [Kristian, Anders, Damon Chaplin] * GtkTextView bug fixes [Havoc Pennington] * Pad class structures for future binary compatibility [Owen] * Tutorial improvements [Sven Neumann, Matthias Clasen] * Fixes for MULTIPLE selection target [Gregory Merchan, Owen] * Fix problems with initial widget size [Owen] * AIX compilation fixes [Miroslaw Dobrzanski-Neumann] * Win32 fixes [Hans Breuer, Tor Lillqvist] * Miscellaneous bug fixes Other contributors: David L. Cooper, Eric Fischer, Jody Goldberg, Satajyit Kanungo, Thomas Leonard, Mark Patton, Manish Singh, Nicolas Setton Library Descriptions ==================== GLib 1.3.15 (http://www.gtk.org) GLib is the low-level core library that forms the basis of 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. Pango 0.26 (http://www.pango.org) Pango is a library for layout and rendering of text, with an emphasis on internationalization. It forms the core of text and font handling for GTK+-2.0. Atk 0.13 (http://developer.gnome.org/projects/gap) The ATK library provides a set of interfaces for accessibility. By supporting the ATK interfaces, an application or toolkit can be used such as tools such as screen readers, magnifiers, and alternative input devices. GTK+ 1.3.15 (http://www.gtk.org) GTK+ is a widget toolkit for X and other windowing systems. It is used in such projects as the GIMP and GNOME. Notes ===== This release is incompatible with GTK+ and GLib 1.2.x. Software that has not been explicitly ported will not compile with this version. Do not send bug reports about such compilation problems to either us or maintainers of software that uses GLib and GTK+ 1.2.x; The currently supported version of GLib and GTK+ is version 1.2.10. If you install these libraries, do NOT replace your current GLib and GTK+ packages with them; these libraries are designed so they can be installed in parallel with a GTK+ install without affecting it. The API is frozen at this point. No additional API changes are anticipated before GTK+-2.0 is released. Binary interfaces for these libraries are not yet frozen; applications built against these libraries will need to be rebuilt when the final GTK+-2.0.0 is released. Comments should be sent to: GLib, GTK+: gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list Pango: gtk-i18n-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-i18n-list ATK: gnome-accessibility-list@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list From ehml@pacific.net.sg Tue Feb 19 11:04:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from spade.pacific.net.sg (spade.pacific.net.sg [203.120.90.71]) by mail.gnome.org (Postfix) with ESMTP id B8E0B189C3 for ; Tue, 19 Feb 2002 11:04:25 -0500 (EST) Received: from smtp1.pacific.net.sg (smtp1.pacific.net.sg [203.120.90.70]) by spade.pacific.net.sg with ESMTP id g1JG4Np02015 for ; Wed, 20 Feb 2002 00:04:23 +0800 Received: from pacific.net.sg (ppp235.dyn91.pacific.net.sg [210.24.91.235]) by smtp1.pacific.net.sg with ESMTP id g1JG4Kt03787 for ; Wed, 20 Feb 2002 00:04:21 +0800 Message-ID: <3C7277C4.7394E50F@pacific.net.sg> Date: Wed, 20 Feb 2002 00:05:24 +0800 From: ehml X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Scrolled window unable to handle huge list ( > 1700 entries) in it References: <3C36FA81.24BEA795@pacific.net.sg> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I need advice on putting huge list in a scrolled window. I notice that when I have more than 1700 (exact number is around 167+) entries in a list (or tree), and the list is in a scrolled window, it will not be displayed correctly. Anyone know limitation on the number of entry (or height) a scrolled window can support, and is there a known way to workaround this? Thanks. Regards, Eng Han From Romain.Parmantier@wanadoo.fr Tue Feb 19 19:18:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto2.wanadoo.fr (smtp-out-2.wanadoo.fr [193.252.19.254]) by mail.gnome.org (Postfix) with ESMTP id B4B1418649 for ; Tue, 19 Feb 2002 19:18:23 -0500 (EST) Received: from mel-rta4.wanadoo.fr (193.252.19.58) by mel-rto2.wanadoo.fr; 20 Feb 2002 01:18:22 +0100 Received: from pentium (193.250.93.194) by mel-rta4.wanadoo.fr; 20 Feb 2002 01:18:05 +0100 Message-ID: <010d01c1b9a4$12de05c0$c25dfac1@pentium> From: "Romain" To: Subject: [GTK help] Date: Wed, 20 Feb 2002 01:18:07 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_010A_01C1B9AC.74020F10" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_010A_01C1B9AC.74020F10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi! How I can superpose two GtkText in the same window (in a notebook for = example)? In a background, a gtktext where you can't modify the text and = in the foreground, a gtktext where you can modify the text. Result, you = have the background and the foreground in the same window with the = superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------=_NextPart_000_010A_01C1B9AC.74020F10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi!
How I can superpose two GtkText in the = same window=20 (in a notebook for example)? In a background, a gtktext where you can't = modify=20 the text and in the foreground, a gtktext where you can modify the text. = Result,=20 you have the background and the foreground in the same window with = the=20 superposed texts.
Thanks,
 
Excuse me for my 'english' but I don't = speak it=20 very well.
------=_NextPart_000_010A_01C1B9AC.74020F10-- From jimmycllin@hotmail.com Wed Feb 20 11:24:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (oe21.law11.hotmail.com [64.4.16.125]) by mail.gnome.org (Postfix) with ESMTP id 39D4A1814C for ; Wed, 20 Feb 2002 11:24:17 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 20 Feb 2002 08:24:16 -0800 X-Originating-IP: [61.10.172.12] From: "Jimmy Lin" To: Subject: When will GTK+2.0 be released? Date: Thu, 21 Feb 2002 00:25:54 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C1BA6E.52CC1580" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 20 Feb 2002 16:24:16.0399 (UTC) FILETIME=[0A6759F0:01C1BA2B] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C1BA6E.52CC1580 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Hello, I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and GTK+2.0 = is incompatible. So should I learn GTK+2.0 is much better now? Please = give me some advices. Thanks!!! Jimmy ------=_NextPart_000_0007_01C1BA6E.52CC1580 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Hello,
 
I'm a new comer of GTK+, I noticed that the api = of GTK+1.2=20 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much=20 better now? Please give me some advices. = Thanks!!!
 
Jimmy
------=_NextPart_000_0007_01C1BA6E.52CC1580-- From falconer@falconer.best.vwh.net Thu Feb 21 16:46:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id D229419273 for ; Thu, 21 Feb 2002 16:46:05 -0500 (EST) Received: (qmail 70778 invoked by uid 25889); 21 Feb 2002 21:46:04 -0000 Date: 21 Feb 2002 21:46:04 -0000 Message-ID: <20020221214604.70777.qmail@falconer.best.vwh.net> From: falconer@falconer.best.vwh.net To: gtk-list@gnome.org Subject: Gtk feature requests Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all; I just saw that gtk 2 is coming out soon. It's probably too late for 2.0, but could I get folks to consider the following features for a future release? These comments stem from frustrations I encountered while developing under gtk. Most of these could be considered bug reports rather than changes to the API. * Toolkit should recognize traditional "-g WxH+X+Y" commandline arguments. * It would be very handy to be able to somehow specify the width of a TextEntry widget in terms of displayed characters instead of pixels. I just want the option of creating a text entry that displays 10 characters, or whatever. Currently, I use a utility function which I wrote which converts en-spaces to pixels, but it can't account for the widget's internal margins, etc. * Scrollbars and scales desperately need a way for callbacks to differentiate a scroll-in-progress from a scroll-completed type event. I would suggest a "value-done" signal to supplement the "value" event. (Example: a cad program that takes a long time to rebuild the display. I want to scroll it without rebuilding while the user manipulates the scroll bar, and then do the rebuild when the user releases the mouse.) * It would be nice to add a scale factor option to sliders and scrollbars so that a large mouse motion results in a small change in slider position (very useful feature when dealing with very small sliders. See http://www.efalk.org/Widgets/#slider for an example of one I wrote for the X intrinsics many years ago. * It would be nice for TextEntry widgets to have signals which indicate that the widget has received/lost keyboard focus. This is especially important when losing focus, as this is a good time for the application to validate and/or reformat the input. * It would be nice to have an option for TextEntry widgets to select their contents when gaining focus (although this could be done manually given a focus-received signal.) * I found the toolkit's habit of highlighting the widget under the cursor rather than highlighting the widget with keyboard focus to be confusing. * It would be a nice feature to add "focus follows mouse" to the keyboard focus mechanism. That is, moving the mouse from widget to widget would change the focus without needing to click on the new widget. The tab keys would still change the focus as before. (I implemented this in my XawM toolkit, see http://www.efalk.org/Widgets/#xawm) * Buttons should provide visual feedback when activated from keyboard (i.e. button-pressed on key down, button-released on key up.) * It would be nice to be able to expand/collapse tree widgets with the +/- keys. * It would be nice if I could use my own select loop with gtk; something like: gtkfd = gtk_get_connection_id() ; : select(nfds, &readfds, ...)) : if( FD_ISSET(gtkfd, &readfds) ) { while( GtkPeekEvent() ) GtkDispatchEvent() ; } -ed falk From Matthias.Clasen@poet.de Fri Feb 22 10:13:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.poet.de (unknown [195.243.100.246]) by mail.gnome.org (Postfix) with ESMTP id 82A05182E0 for ; Fri, 22 Feb 2002 10:13:48 -0500 (EST) Received: from POONS.poet.de ([192.168.11.9]) by mail.poet.de with Microsoft SMTPSVC(5.0.2195.2966); Fri, 22 Feb 2002 16:02:49 +0100 To: gtk-list@gnome.org Cc: amundson@gtk.org Subject: Re: g_signal_connect_swapped X-Mailer: Lotus Notes Release 5.0.4 June 8, 2000 Message-ID: From: "Matthias Clasen" Date: Fri, 22 Feb 2002 16:11:23 +0100 X-MIMETrack: Serialize by Router on hamburg/server/Poet(Release 5.0.8 |June 18, 2001) at 22.02.2002 16:11:05, Serialize complete at 22.02.2002 16:11:05 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-OriginalArrivalTime: 22 Feb 2002 15:02:49.0156 (UTC) FILETIME=[FE34C040:01C1BBB1] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: The tutorial and examples in CVS head should be pure GTK+ 2.0. The title even expresses this ("GTK+ 2.0 tutorial") - it is a bit unfortunate that the online version at www.gtk.org/tutorial tracks CVS head. Maybe Shawn Amundson (cc'ed) can be convinced to set things up so that the GTK+ 1.2 version of the tutorial is available as well (there is already a parallel setup for the reference manuals). Until that happens, you can try ftp://ftp.gtk.org/pub/gtk/tutorial/db-gtk-tutorial.20000721.tar.gz, which is admittedly fairly old. Matthias From ehml@pacific.net.sg Fri Feb 22 10:50:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from scythe.pacific.net.sg (scythe.pacific.net.sg [203.120.90.37]) by mail.gnome.org (Postfix) with ESMTP id 5EAC6189D6 for ; Fri, 22 Feb 2002 10:50:35 -0500 (EST) Received: from smtp1.pacific.net.sg (smtp1.pacific.net.sg [203.120.90.70]) by scythe.pacific.net.sg with ESMTP id g1MFoXn27457 for ; Fri, 22 Feb 2002 23:50:33 +0800 Received: from pacific.net.sg (ppp200.dyn89.pacific.net.sg [210.24.89.200]) by smtp1.pacific.net.sg with ESMTP id g1MFoWt24846 for ; Fri, 22 Feb 2002 23:50:32 +0800 Message-ID: <3C76690A.E46C047A@pacific.net.sg> Date: Fri, 22 Feb 2002 23:51:38 +0800 From: ehml X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: key input get grab by other widget References: <3C36FA81.24BEA795@pacific.net.sg> <3C7277C4.7394E50F@pacific.net.sg> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I run into another "I do not know how to do" difficulty, and need advice. My application has a drawing-area, menu, and a frame with check-button in it. In the drawing-area, I assign "key press event" to it. It work find for key like "a" and "b", but does not work for arrow key. Once I press a arrow key, the "check button" grab that input, and subsequently, all key is grab by the "check button". The same will happen if I point at the menu-bar and click in a empty space following by pressing a key. What I need is: If the pointer is in the drawing-area, drawing-area should grab all key event. Is this possible, or there is any good workaround? Thanks. Regards, Eng Han PS: As gtk-list@gnome.org is a private email, is there a public news-group for me to seek advice? Thanks. From haem@netvigator.com Fri Feb 22 12:19:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imsmq05.netvigator.com (imsmq05.netvigator.com [208.167.231.41]) by mail.gnome.org (Postfix) with SMTP id E8078191AE for ; Fri, 22 Feb 2002 12:19:04 -0500 (EST) Received: (qmail 11385 invoked from network); 22 Feb 2002 17:19:02 -0000 Received: from pcd331066.netvigator.com (HELO netvigator.com) (203.218.121.66) by imsmq05.netvigator.com with SMTP; 22 Feb 2002 17:19:02 -0000 Message-ID: <3C773384.9070104@netvigator.com> Date: Sat, 23 Feb 2002 01:15:32 -0500 From: Lam Yick Yan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk->deviceid How to use? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I have just devleoped a X input driver for my small graphic tablet. And it is working.... Now I have cursor that will move according to mouse OR graphic tablet. Now I want to develope a gtk application that will ONLY respond the event from my graphic tablet. I have a callback function in my GTK application, motion_notify_event and I have compared the event content of my mouse and my graphic tablet and they look the same (the deviceid content etc). and I have no way to distuguish whether the event is from the mouse or from the graphic tablet. What did I do wrong in my driver? can please have a look at http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether I did wrong in the device driver? Yick Hong Kong china From csingla@nc.rr.com Fri Feb 22 16:50:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from Mail6.nc.rr.com (fe6.southeast.rr.com [24.93.67.53]) by mail.gnome.org (Postfix) with ESMTP id AE0A71931A for ; Fri, 22 Feb 2002 16:50:52 -0500 (EST) Received: from nc.rr.com ([66.57.252.230]) by Mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Fri, 22 Feb 2002 16:50:46 -0500 Message-ID: <3C76BD1F.70702@nc.rr.com> Date: Fri, 22 Feb 2002 16:50:23 -0500 From: Oliver Singla Reply-To: oliver_singla@yahoo.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Trouble to compile atk-0.12 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, On my RH7.2 box, I have trouble to compile atk-0.12. After I have ran .configure, here is what I get when I do a make: [omsingla@oliver atk-0.12]$ make Making all in atk make[1]: Entering directory `/home/omsingla/gtk/1.3/atk-0.12/atk' case ..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal in \ .*) glib_genmarshal=`pwd`/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal ;; \ *) glib_genmarshal=..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal ;; \ esac; \ $glib_genmarshal --prefix=atk_marshal ./atkmarshal.list --body >> xgen-gmc \ && (cmp -s xgen-gmc ./atkmarshal.c || cp xgen-gmc ./atkmarshal.c) \ && rm -f xgen-gmc xgen-gmc~ \ && echo timestamp > stamp-atkmarshal.c /bin/sh: /home/omsingla/gtk/1.3/atk-0.12/atk/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal: No such file or directory make[1]: *** [stamp-atkmarshal.c] Error 127 make[1]: Leaving directory `/home/omsingla/gtk/1.3/atk-0.12/atk' make: *** [all-recursive] Error 1 [omsingla@oliver atk-0.12]$ Any idea ? TIA, Olivier Singla From soppers3@cti.ecp.fr Fri Feb 22 18:28:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from manoul.cti.ecp.fr (manoul.cti.ecp.fr [138.195.33.28]) by mail.gnome.org (Postfix) with ESMTP id 6CE4418A19 for ; Fri, 22 Feb 2002 18:28:02 -0500 (EST) Received: from caracal2.cti.ecp.fr (caracal2.cti.ecp.fr [138.195.33.40]) by manoul.cti.ecp.fr (Postfix) with SMTP id 825FB1EF1E for ; Sat, 23 Feb 2002 00:28:01 +0100 (CET) Received: from soppera.via.ecp.fr (soppera.via.ecp.fr [138.195.141.103]) by caracal2.cti.ecp.fr (Postfix) with ESMTP id 3B74D15A70 for ; Sat, 23 Feb 2002 00:28:33 +0100 (MET) Subject: Will GTKGlArea be included in GTK+ one day From: Stephane SOPPERA Reply-To: soppers3@cti.ecp.fr To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.13 (Preview Release) Date: 23 Feb 2002 00:27:45 +0100 Message-Id: <1014420468.6631.16.camel@soppera> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I was wondering if the GTK GlArea widget will be one day included in GTK+? Is it planned? -- Stephane SOPPERA http://stephane.soppera.free.fr From Romain.Parmantier@wanadoo.fr Thu Feb 21 12:25:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto3.wanadoo.fr (smtp-out-3.wanadoo.fr [193.252.19.233]) by mail.gnome.org (Postfix) with ESMTP id C067618AC5 for ; Thu, 21 Feb 2002 12:25:06 -0500 (EST) Received: from mel-rta9.wanadoo.fr (193.252.19.69) by mel-rto3.wanadoo.fr; 21 Feb 2002 18:25:05 +0100 Received: from pentium (193.250.93.90) by mel-rta9.wanadoo.fr; 21 Feb 2002 18:24:48 +0100 Message-ID: <001401c1bafc$a8c19b70$5a5dfac1@pentium> From: "Romain" To: Subject: GTK Background Date: Thu, 21 Feb 2002 18:24:40 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0011_01C1BB05.06FBF250" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C1BB05.06FBF250 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, For my application, I need a transparent background for a GtkText (not a = white background). It is possible? And how can I do this if it is = possible ? ------=_NextPart_000_0011_01C1BB05.06FBF250 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
For my application, I need a = transparent background=20 for a GtkText (not a white background). It is possible? And how can I do = this if=20 it is possible ?
------=_NextPart_000_0011_01C1BB05.06FBF250-- From hvv@hippo.ru Sun Feb 24 03:06:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [195.218.232.214]) by mail.gnome.org (Postfix) with ESMTP id B4AD418136 for ; Sun, 24 Feb 2002 03:06:13 -0500 (EST) Date: Sun, 24 Feb 2002 13:09:32 +0400 (SAMT) From: Vlad Harchev X-Sender: hvv@localhost.localdomain To: "Bartosz \"Neron\" Leper" Cc: GTK-list Subject: Re: GTK and non-monospace fonts In-Reply-To: <001201c1bcb5$60c043c0$22e04dd5@s> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, 23 Feb 2002, Bartosz "Neron" Leper wrote: Hi, > > Hi, > > > > That was a bug in gdk fixed personally by me - the standard gtk-1.2.10 > > already contains the fix - so please upgrade your gtk to version 1.2.10. > > > > Best regards, > > -Vlad > > Thanks a lot. That was quite easy. I have downloaded and installed version > 1.2.10 and my own programs are now OK. But is there any chance to "patch" my > pre-compiled applications somehow without recompiling all of them? I have no > sources and no time to download them all. No, you don't have to recompile all applications that use gtk in order to get fixed behaviour - because they don't include gtk's code, they just link dynamically with gtk. All you have to do is to install updated gtk package to the standard locations where all programs expect it (it seems that just downloading and installing RPM with gtk-1.2.10 from Mandrake distribiution should be a solution). Best regards, -Vlad From aditya_gilra@yahoo.com Sun Feb 24 04:16:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14702.mail.yahoo.com (web14702.mail.yahoo.com [216.136.224.119]) by mail.gnome.org (Postfix) with SMTP id AB46F18136 for ; Sun, 24 Feb 2002 04:16:04 -0500 (EST) Message-ID: <20020224091604.934.qmail@web14702.mail.yahoo.com> Received: from [61.0.108.240] by web14702.mail.yahoo.com via HTTP; Sun, 24 Feb 2002 01:16:04 PST Date: Sun, 24 Feb 2002 01:16:04 -0800 (PST) From: Aditya Gilra Subject: Opentype Indic? To: gtk-list@gnome.org In-Reply-To: <20020224070921.9C5EF18FE9@mail.gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ||Shriharih|| God-Remembrance All. I noticed that Eric Mader's Indic Opentype patches are not mentioned in changes to pango for 1.3.15 . I hope they'll be considered for 2.0 . Or are they in already? It'll be a big help to be able to use good-quality Opentype fonts for Hindi - two are already available freely. - Aditya Gilra. __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From leidola@newcon.de Sun Feb 24 07:32:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id EA9F61823D for ; Sun, 24 Feb 2002 07:32:00 -0500 (EST) Received: from attic ([213.70.108.83]) by mail-1.newcon.de (8.9.3/8.9.3) with SMTP id NAA15034; Sun, 24 Feb 2002 13:31:56 +0100 From: Olaf Leidinger To: "Johnny B ." Cc: gtk-list@gnome.org Date: Sun, 24 Feb 2002 13:35:02 +0100 X-Priority: 3 (Normal) In-Reply-To: <20020223195935.C31813@tasha.vonbek.dhs.org> Message-Id: <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic> Subject: Re: linking problem MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Mailer: Opera 6.0 build 1010 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 24.02.2002 01:59:35, schrieb "Johnny B ." : [...] >/tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' >/tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' >/tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' [...] > >[johnnyb@tasha lib]$ gtk-config --cflags --libs >-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 >-I/usr/local/lib/glib/include -I/usr/X11R6/include >-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule >-lglib -ldl -lXext -lX11 -lm You link against gtk+-1.2, don't you? But as far as I know the missing things (g_signal_connect, G_OBJECT ans so) are part of gtk+-2.0 (or more exactly glib-2.0). Are you really sure that your installation is correct. This seems like a mixture of gtk+-1.2 and gtk+-2.0. Use the -v option when compiling to see exactly what is included and what linked to your application. Ciao Olaf From pbd@op.net Sun Feb 24 08:05:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 238191823D for ; Sun, 24 Feb 2002 08:05:12 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-82.phlpa.fast.net [209.92.99.82]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id IAA16035; Sun, 24 Feb 2002 08:04:59 -0500 (EST) Message-Id: <200202241304.IAA16035@renoir.op.net> To: ehml Cc: gtk-list@gnome.org Subject: Re: key input get grab by other widget In-reply-to: Your message of "Fri, 22 Feb 2002 23:51:38 +0800." <3C76690A.E46C047A@pacific.net.sg> Date: Sun, 24 Feb 2002 08:03:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >My application has a drawing-area, menu, and a frame with check-button in it. > >In the drawing-area, I assign "key press event" to it. It work find for key >like "a" and "b", but does not work for arrow key. Once I press a arrow key, >the "check button" grab that input, and subsequently, all key is grab by the >"check button". The same will happen if I point at the menu-bar and click in a >empty space following by pressing a key. What I need is: > >If the pointer is in the drawing-area, drawing-area should grab all key event. the arrow buttons, tab key and enter key are all considered "special" by GTK+, and are used (by default) to move the keyboard focus around between widgets. there is no way to turn off this behaviour in a global sense, but it can be handled on a per-widget basis. if you have a widget that needs to be able use any of these keys as a "normal" key, you need to connect to the widgets "key_press_event" signal with a handler that does something like this: gint key_press_handler (GtkWidget *widget, GdkEventKey *event, gpointer data) { int stop_emission = FALSE; switch (event->keyval){ case GDK_Up: case GDK_Down: case GDK_Left: case GDK_Right: stop_emission = TRUE; break; default: break; } if (stop_emission) { /* don't let the rest of GTK+ see this key */ gtk_signal_stop_emit_by_name (GTK_OBJECT(widget), "key_press_event"); } .... rest of your conventional key handling ... return TRUE; } --p From pbd@op.net Sun Feb 24 08:20:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D5E8F181D6 for ; Sun, 24 Feb 2002 08:20:37 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-82.phlpa.fast.net [209.92.99.82]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id IAA17161; Sun, 24 Feb 2002 08:20:34 -0500 (EST) Message-Id: <200202241320.IAA17161@renoir.op.net> To: falconer@falconer.best.vwh.net Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests In-reply-to: Your message of "21 Feb 2002 21:46:04 GMT." <20020221214604.70777.qmail@falconer.best.vwh.net> Date: Sun, 24 Feb 2002 08:19:23 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > arguments. which window is that for? think about it. > * Scrollbars and scales desperately need a way for callbacks to > differentiate a scroll-in-progress from a scroll-completed type > event. I would suggest a "value-done" signal to supplement > the "value" event. (Example: a cad program that takes a long > time to rebuild the display. I want to scroll it without > rebuilding while the user manipulates the scroll bar, and then > do the rebuild when the user releases the mouse.) this would be very valuable. XForms has a nice model, where you can specify the behaviour on a per-widget basis: report value when changed, report value when motion pauses (but before mouse release), report value every N msecs, report value when mouse is released). adding "value_change_complete" or "value_done" or whatever would allow widgets to support some or all of these models. > * It would be nice to add a scale factor option to sliders and > scrollbars so that a large mouse motion results in a small > change in slider position (very useful feature when dealing > with very small sliders. See you can write this yourself. my DAW application "ardour" has non-linear logarithmically scaled sliders. i've also written GTK+ widgets that have distance-log-scaled motion scaling, wherein mouse motion a long way from the widget (e.g. click-drag-right-now-drag-up-and-down) causes less change in the adjustment value than similar motion close to the widget. > * It would be nice for TextEntry widgets to have signals which > indicate that the widget has received/lost keyboard focus. focus_in_event focus_out_event > * I found the toolkit's habit of highlighting the widget under the > cursor rather than highlighting the widget with keyboard focus > to be confusing. catch enter_notify_event and leave_notify_event and stop the emission. this will prevent prelighting. i wish there was a way to turn off prelighting on a global basis, but it appears to contradict the desire of GTK+'s designers for a consistent GUI experience. > * It would be nice to be able to expand/collapse tree widgets with > the +/- keys. you can write this yourself. catch the key_press_event signal and handle it. > * It would be nice if I could use my own select loop with gtk; > something like: > > gtkfd = gtk_get_connection_id() ; > : > select(nfds, &readfds, ...)) > : > if( FD_ISSET(gtkfd, &readfds) ) > { > while( GtkPeekEvent() ) > GtkDispatchEvent() ; > } GTK uses glib, and its inner loop is a bit more complex than this. What you can do is to add your own fd's to its inner loop. There have been several posts here in the last month about this, and many in the archives, as well as information in the tutorial and reference docs. see gtk_input_add() and its more generic cousins g_source_add(). in the current "pending release" version of glib, the inner loop has been restructured to allow some decomposition into something like you describe, but i don't think it was with the idea of moving the outer while() into your code. glib's handling of what it terms "sources" is much more generic than select() would necessarily allow for (though under a POSIX system, select() is more or less all we have, since other types of signalling systems like semaphores can't be waited for with select). --p From johnnyb@zappa.vonbek.dhs.org Sun Feb 24 08:55:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from zappa.vonbek.dhs.org (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by mail.gnome.org (Postfix) with ESMTP id A081D18363 for ; Sun, 24 Feb 2002 08:55:46 -0500 (EST) Received: (from johnnyb@localhost) by zappa.vonbek.dhs.org (8.11.6/8.11.6) id g1ODumi02309 for gtk-list@gnome.org; Sun, 24 Feb 2002 08:56:48 -0500 Date: Sun, 24 Feb 2002 08:56:48 -0500 From: "Johnny B ." To: gtk-list@gnome.org Subject: Re: linking problem Message-ID: <20020224085648.A2282@zappa.vonbek.dhs.org> Reply-To: "Johnny B ." References: <20020223195935.C31813@tasha.vonbek.dhs.org> <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic>; from leidola@newcon.de on Sun, Feb 24, 2002 at 01:35:02PM +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Olaf and Havoc, Thanks for the info. I am indeed working with gtk-1.2 and I was unaware that the tutorial code on the gtk web site is for gtk-2.0! Sorry to eat your bandwidth like that! I don't see gtk-2.0 anywhere for download so I'll assume it's not released yet. I'll work through the tutorial that came with the 1.2 source. I'm trying to port a terminal app to gtk, with the hopes that it may run on Linux, AIX and probably win32, so I'll stick with gtk-1.2. Or should I seek out 2.0 ? Can't find it anywhere... Anyways, thanks for helping me sort this out! JB On Sun, Feb 24, 2002 at 01:35:02PM +0100, Olaf Leidinger wrote: > Am 24.02.2002 01:59:35, schrieb "Johnny B ." : > > [...] > >/tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' > >/tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' > >/tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' > > [...] > > > >[johnnyb@tasha lib]$ gtk-config --cflags --libs > >-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 > >-I/usr/local/lib/glib/include -I/usr/X11R6/include > >-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule > >-lglib -ldl -lXext -lX11 -lm > > You link against gtk+-1.2, don't you? But as far as I know the missing things (g_signal_connect, G_OBJECT ans so) are part of gtk+-2.0 (or more exactly glib-2.0). Are > you really sure that your installation is correct. This seems like a mixture of gtk+-1.2 and gtk+-2.0. > > Use the -v option when compiling to see exactly what is included and what linked to your application. > > Ciao > > Olaf > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list +--------------------------------- | John Bleichert | syborg@stny.rr.com | http://vonbek.dhs.org/latest.jpg From rsteinke@w-link.net Sun Feb 24 12:51:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 32634189DC for ; Sun, 24 Feb 2002 12:51:38 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16f2o7-0002QQ-00; Sun, 24 Feb 2002 09:51:31 -0800 Date: Sun, 24 Feb 2002 09:51:31 -0800 From: rsteinke@w-link.net To: haem@netvigator.com, gtk-list@gnome.org Subject: Re: gtk->deviceid How to use? Message-ID: <3C792823.nail7191IMBE5@w-link.net> References: <3C773384.9070104@netvigator.com> In-Reply-To: <3C773384.9070104@netvigator.com> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Lam Yick Yan > > Dear Sir, > > I have just devleoped a X input driver for my small graphic tablet. > And it is working.... Now I have cursor that will move according to > mouse OR graphic tablet. > > Now I want to develope a gtk application that will ONLY respond > the event from my graphic tablet. I have a callback function in my GTK > application, motion_notify_event and I have compared the event content > of my mouse and my graphic tablet and they look the same (the deviceid > content etc). and I have no way to distuguish whether the event is from the > mouse or from the graphic tablet. > > What did I do wrong in my driver? can please have a look at > http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether > I did wrong in the device driver? You should (I think), in principle, be able to distinguish them using the GdkInputSource (GDK_SOURCE_MOUSE vs GDK_SOURCE_PEN). If the tablet isn't giving events as GDK_SOURCE_PEN, look at the gdk source code and see how gdk determines this information from the XEvent, and make sure your driver is giving the proper information to X. Ron Steinke P.S. This is _way_ out of my area of expertise, someone please correct me if I'm wrong. From hp@redhat.com Sun Feb 24 17:18:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 3E72E181A5 for ; Sun, 24 Feb 2002 17:18:46 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMIgM09833; Sun, 24 Feb 2002 17:18:42 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Jimmy Lin" Cc: Subject: Re: When will GTK+2.0 be released? References: From: Havoc Pennington Date: 24 Feb 2002 17:18:42 -0500 In-Reply-To: Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Jimmy Lin" writes: > > I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and > GTK+2.0 is incompatible. So should I learn GTK+2.0 is much better > now? Please give me some advices. Thanks!!! > Yes, I would start with 2.0. Havoc From hp@redhat.com Sun Feb 24 17:41:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 62F81181A5 for ; Sun, 24 Feb 2002 17:41:36 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMfZa09838; Sun, 24 Feb 2002 17:41:35 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: falconer@falconer.best.vwh.net Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests References: <20020221214604.70777.qmail@falconer.best.vwh.net> From: Havoc Pennington Date: 24 Feb 2002 17:41:35 -0500 In-Reply-To: <20020221214604.70777.qmail@falconer.best.vwh.net> Message-ID: Lines: 112 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: falconer@falconer.best.vwh.net writes: > Hi all; I just saw that gtk 2 is coming out soon. It's probably > too late for 2.0, but could I get folks to consider the following > features for a future release? These comments stem from frustrations > I encountered while developing under gtk. > > Most of these could be considered bug reports rather than changes > to the API. Both features and bug reports should go in bugzilla - http://bugzilla.gnome.org, otherwise they typically get lost. If you put the report in bugzilla you also get the nice advantage that you will be able to monitor patches and discussion relating to the feature and add your own comments, and you'll be notified when the fix goes in. Certainly a number of these comments would be useful in bugzilla. > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > arguments. gtk_window_parse_geometry(). Toolkit can't do more than that for you, as Paul points out. > * It would be very handy to be able to somehow specify the > width of a TextEntry widget in terms of displayed characters > instead of pixels. gtk_entry_set_width_chars() > * Scrollbars and scales desperately need a way for callbacks to > differentiate a scroll-in-progress from a scroll-completed type > event. I would suggest a "value-done" signal to supplement > the "value" event. (Example: a cad program that takes a long > time to rebuild the display. I want to scroll it without > rebuilding while the user manipulates the scroll bar, and then > do the rebuild when the user releases the mouse.) gtk_range_set_update_policy() is the intended feature here, though it doesn't handle the case you mention. > * It would be nice to add a scale factor option to sliders and > scrollbars so that a large mouse motion results in a small > change in slider position (very useful feature when dealing > with very small sliders. See > > http://www.efalk.org/Widgets/#slider > > for an example of one I wrote for the X intrinsics many years > ago. Wouldn't it make more sense for the slider to autocompute the scale factor depending on its size and range and step increment? > * It would be nice for TextEntry widgets to have signals which > indicate that the widget has received/lost keyboard focus. > This is especially important when losing focus, as this is > a good time for the application to validate and/or reformat > the input. There are focus_in_event and focus_out_event signals that do this as Paul pointed out. > * It would be nice to have an option for TextEntry widgets to > select their contents when gaining focus (although this could > be done manually given a focus-received signal.) GtkEntry does this by default now - now the usual request is to have an option to disable it. ;-) We may have made it a user option, I don't remember. > * I found the toolkit's habit of highlighting the widget under the > cursor rather than highlighting the widget with keyboard focus > to be confusing. I don't think it's "rather than", there are two separate kinds of indication - focus outline and prelight. This is in some sense entirely a function of the theme (a theme can disable or modify how either thing is displayed). > * It would be a nice feature to add "focus follows mouse" to the > keyboard focus mechanism. That is, moving the mouse from widget > to widget would change the focus without needing to click on > the new widget. The tab keys would still change the focus as > before. (I implemented this in my XawM toolkit, see > http://www.efalk.org/Widgets/#xawm) Hrm, I think you'll find little enthusiasm for that... no modern toolkit does this. > * Buttons should provide visual feedback when activated from keyboard > (i.e. button-pressed on key down, button-released on key up.) GTK 2 has this feature. > * It would be nice to be able to expand/collapse tree widgets with > the +/- keys. I believe GtkTreeView in GTK 2 has this feature. If not it has some other keybinding for it. > * It would be nice if I could use my own select loop with gtk; > something like: > GLib 2 is set up to allow integration with other main loops, though again Paul is right - it's a bit more complex than you were hoping. ;-) GTK has more "event sources" than just the X event queue. Havoc From hp@redhat.com Sun Feb 24 17:43:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id EF23F1878D for ; Sun, 24 Feb 2002 17:43:26 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMhOM09842; Sun, 24 Feb 2002 17:43:24 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: soppers3@cti.ecp.fr Cc: gtk-list@gnome.org Subject: Re: Will GTKGlArea be included in GTK+ one day References: <1014420468.6631.16.camel@soppera> From: Havoc Pennington Date: 24 Feb 2002 17:43:24 -0500 In-Reply-To: <1014420468.6631.16.camel@soppera> Message-ID: Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Stephane SOPPERA writes: > I was wondering if the GTK GlArea widget will be one day included in > GTK+? > Is it planned? > It's been discussed but I wouldn't say plans have been made. You might want to be sure there's a bug about this in bugzilla, and contact the GtkGLArea maintainer and ask him/her to add their opinion to the bug and maybe get on the CC list for the bug. Havoc From hp@redhat.com Sun Feb 24 17:45:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 426B018A9C for ; Sun, 24 Feb 2002 17:45:09 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMj8Y09846; Sun, 24 Feb 2002 17:45:08 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Johnny B ." Cc: gtk-list@gnome.org Subject: Re: linking problem References: <20020223195935.C31813@tasha.vonbek.dhs.org> <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic> <20020224085648.A2282@zappa.vonbek.dhs.org> From: Havoc Pennington Date: 24 Feb 2002 17:45:08 -0500 In-Reply-To: <20020224085648.A2282@zappa.vonbek.dhs.org> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Johnny B ." writes: > > Thanks for the info. I am indeed working with gtk-1.2 and I was > unaware that the tutorial code on the gtk web site is for gtk-2.0! > Sorry to eat your bandwidth like that! I don't see gtk-2.0 anywhere > for download so I'll assume it's not released yet. > > I'll work through the tutorial that came with the 1.2 source. I'm > trying to port a terminal app to gtk, with the hopes that it may run > on Linux, AIX and probably win32, so I'll stick with gtk-1.2. Or > should I seek out 2.0 ? Can't find it anywhere... > I'd suggest using 2.0 at this point. 2.0 isn't actually released as a final stable release; so it's called 1.3.15 still, rather than 2.0. But it will be called 2.0.0 very soon. (Planned in a week or so.) Havoc From weigelt@metux.de Sun Feb 24 23:00:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from annwfn.erfurt.thur.de (annwfn.erfurt.thur.de [194.122.210.1]) by mail.gnome.org (Postfix) with ESMTP id 988A41838F for ; Sun, 24 Feb 2002 23:00:09 -0500 (EST) Received: from annwfn.erfurt.thur.de (localhost [127.0.0.1]) by annwfn.erfurt.thur.de (8.12.0/8.12.0) with ESMTP id g1P408eY007631 for ; Mon, 25 Feb 2002 05:00:08 +0100 Received: (from uucp@localhost) by annwfn.erfurt.thur.de (8.12.0/8.12.0/Submit) with UUCP id g1P407wQ007630 for gtk-list@gnome.org; Mon, 25 Feb 2002 05:00:07 +0100 Received: from metux.de (localhost [127.0.0.1]) by metux.de (8.11.3/8.11.4) with ESMTP id g1P3tmm31790; Mon, 25 Feb 2002 04:55:48 +0100 Message-ID: <3C79B5C4.F1FA3AF5@metux.de> Date: Mon, 25 Feb 2002 04:55:48 +0100 From: Enrico Weigelt Reply-To: weigelt@metux.de Organization: meTUX IT services X-Mailer: Mozilla 4.76 [de] (X11; U; Linux 2.4.9 i686) X-Accept-Language: de, en MIME-Version: 1.0 To: GTK Mailing List Subject: garbage collection (long) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi folks, some month ago, i already asked for an gc implementation in GTK, but got almost no response, so i'd like to warm up the topic now. for those who are not familar with GC, some short explaination: * an garbage collector is responsible for freeing memory chunks which are not used (referenced) any longer, so it's no longer the job of the developer. * if properly implemented, the GC removes most errors situations with bad pointers, since once an pointer was initialized it will (theoretically) never point to unallocated memory. * especially when working with complex graphs (an normal GTK application already has them, even when hidden behind the ADTs), it makes code smaller, easier to understand, and much more stable. * many modern languages (i.e. oberon, java, perl, php) use GCs, but there are also GC-based memory allocators for C or C++. * in general there are two common methods for GCs. a) reference counting the GC manages an reference counter for each chunk. this counter is increased evry time the chunk gets referenced (pointer assignment) and will be decreased when the reference is removed. this method quite is easy to implement (in C with macros or in C++ by overloading pointer operations), is unproblematic in multithreaded enviroments, but can leave some trash when using ring graphs. b) conservative GC here the GC runs from time to time over the whole heap, follows pointers and marks all chunks it can reach as used. unmarked chunks can be considered as unreachable=unused and are collected/freed. an conservative GC needs to know (or guess) where pointers lay around in the chunks to follow them. the Hans-Boehm-GC is able to do this even without knowing the type infos. an disatwantage can be seen in conjunction MT-realtime-applications, since the mark phase (when walking through the heap), all threads have to stopped, but this should not be an problem if you're not really hanging on microseconds ... if someone's interested, i'll do the most of the work with implementing an GC (Hans-Boehm-GC) in glib/gtk, but i need some help with testing the build stuff (i wont touch this spooky automake) ... ~-n -- Enrico Weigelt == meTUX IT services software development, IT service, internet security solutions www: http://www.metux.de/ phone: +49 36207 519931 email: contact@metux.de cellphone: +49 174 7066481 From hp@redhat.com Mon Feb 25 00:20:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 4472C181E6 for ; Mon, 25 Feb 2002 00:20:46 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1P5Kek09925; Mon, 25 Feb 2002 00:20:40 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: weigelt@metux.de Cc: GTK Mailing List Subject: Re: garbage collection (long) References: <3C79B5C4.F1FA3AF5@metux.de> From: Havoc Pennington Date: 25 Feb 2002 00:20:40 -0500 In-Reply-To: <3C79B5C4.F1FA3AF5@metux.de> Message-ID: Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Enrico Weigelt writes: > > if someone's interested, i'll do the most of the work with implementing > an GC (Hans-Boehm-GC) in glib/gtk, but i need some help with testing the > build stuff (i wont touch this spooky automake) ... > I already did this a while ago, it's in CVS as "libggc" - I'm not sure it still works with latest GTK but fixing it should be easy. It just drops in the Boehm GC as the GLib memory allocator. It isn't all that useful though, because running the destroy/finalize methods for GObject/GtkWidget will still be controlled by the reference count instead of the GC, so you still need to hold references to everything to keep objects from being rendered useless. To make this useful GTK would have to be reworked internally to rely on it, which won't happen anytime soon. Havoc From dchiod@inwind.it Mon Feb 25 01:25:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailweb8.inwind.it (unknown [212.141.54.118]) by mail.gnome.org (Postfix) with ESMTP id DFB0B185A0 for ; Mon, 25 Feb 2002 01:25:38 -0500 (EST) Received: from inwind.it (127.0.0.1) by mailweb8.inwind.it (5.5.053) id 3C5BADD500010228 for gtk-list@gnome.org; Mon, 25 Feb 2002 07:27:44 +0100 Date: Mon, 25 Feb 2002 07:27:44 +0100 Message-Id: Subject: accessing widget property (newbie) MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable From: "Davide Chiodi" To: gtk-list@gnome.org X-XaM3-API-Version: 1.1.9.1.39.1.2 X-SenderIP: 217.56.227.2 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want change text in a label from another window( a window that isn't its parent);now, I tried GList and other stuff with the gtk_container but i'm not able to find the correct way; now i change the property making the label global and it is ok, but i think there's a more elegant way to get the goal. Thanks to anyone. Davide. From david@jopasana.com Mon Feb 25 02:32:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from jopasana.com (unknown [128.121.218.64]) by mail.gnome.org (Postfix) with ESMTP id CC49E18337 for ; Mon, 25 Feb 2002 02:32:24 -0500 (EST) Received: from [203.197.90.72] ([203.197.90.72]) by jopasana.com (8.11.6) id g1P7WM308772; Mon, 25 Feb 2002 00:32:23 -0700 (MST) Message-ID: <015701c1bdce$ddb60210$aa0ba8c0@djj> From: "David Joseph" To: Received: from no.name.available by [203.197.90.72] via smtpd (for [128.121.218.64]) with SMTP; 25 Jan 2002 07:44:57 UT Subject: Problems in attaching GtkScrolledWindow to GtkList Date: Mon, 25 Feb 2002 13:04:29 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0154_01C1BDFC.F5BC4850" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0154_01C1BDFC.F5BC4850 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi I am doing a project that involves the use of GtkList. I am trying to attach scroll bars to the lists but am not very = successful. I then tried to do a simple program to see where I was going wrong ..... = The program ran .. but I got this error on the console Gtk-CRITICAL **: file gtkscrolledwindow.c: line 951 = (gtk_scrolled_window_add_with_viewport): assertion `child->parent =3D=3D = NULL' failed. Any Idea what is going wrong here? Thanks in advance David The code is as follows: /////////////////////////////////////////////////////////////////////////= ///////////////////////// GtkWidget * create_window1 (void) { GtkWidget *window1; GtkWidget *fixed1; GtkWidget *list2; GList *list_items =3D NULL; gint count; gchar buff[3]; GtkWidget *scrolled_window =3D NULL; window1 =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (window1), "window1", window1); gtk_window_set_title (GTK_WINDOW (window1), "window1"); fixed1 =3D gtk_fixed_new (); gtk_widget_ref (fixed1); gtk_object_set_data_full (GTK_OBJECT (window1), "fixed1", fixed1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (fixed1); gtk_container_add (GTK_CONTAINER (window1), fixed1); list2 =3D gtk_list_new (); gtk_widget_ref (list2); gtk_object_set_data_full (GTK_OBJECT (window1), "list2", list2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (list2); gtk_fixed_put (GTK_FIXED (fixed1), list2, 40, 16); gtk_widget_set_uposition (list2, 40, 16); gtk_widget_set_usize (list2, 104, 136); for(count =3D 0; count <10 ; count++) { sprintf(buff, "%d", count); list_items =3D g_list_prepend(list_items, = gtk_list_item_new_with_label(buff)); } g_print("\nafter scrolled window4\n"); gtk_list_append_items(GTK_LIST(list2), list_items); g_print("\nafter scrolled window5\n"); gtk_widget_show_all(list2); =20 scrolled_window =3D gtk_scrolled_window_new(NULL,NULL); if(scrolled_window =3D=3D NULL) g_print("\nscroll =3D NULL\n"); gtk_widget_set_usize(scrolled_window, 200,200); = gtk_scrolled_window_add_with_viewport(GTK_CONTAINER(scrolled_window),list= 2); = gtk_container_set_focus_hadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_hadjustment GTK_SCROLLED_WINDOW(scrolled_window))); = gtk_container_set_focus_vadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_vadjustment(GTK_SCROLLED_WINDOW(scrolled_window))); g_print("\nafter scrolled window3\n"); =20 return window1; } /////////////////////////////////////////////////////////////////////////= ///////////////////////// ------=_NextPart_000_0154_01C1BDFC.F5BC4850 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi
I am doing a project that involves the = use of=20 GtkList.
I am trying to attach scroll bars = to the lists=20 but am not very successful.
I then tried to do a simple program to = see where I=20 was going wrong ..... The program ran .. but I got this error on the=20 console
 
Gtk-CRITICAL **: file = gtkscrolledwindow.c:=20 line 951 (gtk_scrolled_window_add_with_viewport): assertion = `child->parent =3D=3D=20 NULL' failed.
 
Any Idea what is going wrong = here?
 
Thanks in advance
David
 
The code is as follows:
////////////////////////////////////////////////////////////////= //////////////////////////////////
GtkWidget * create_window1 = (void)
{
 =20 GtkWidget *window1;
  GtkWidget *fixed1;
  GtkWidget=20 *list2;
  GList   *list_items =3D NULL;
  = gint   count;
  = gchar   buff[3];
=20   GtkWidget *scrolled_window =3D NULL;
 
  window1 =3D gtk_window_new=20 (GTK_WINDOW_TOPLEVEL);
  gtk_object_set_data (GTK_OBJECT = (window1),=20 "window1", window1);
  gtk_window_set_title (GTK_WINDOW = (window1),=20 "window1");
 
  fixed1 =3D gtk_fixed_new = ();
 =20 gtk_widget_ref (fixed1);
  gtk_object_set_data_full (GTK_OBJECT=20 (window1), "fixed1",=20 fixed1,
          &n= bsp;           &nb= sp;    =20 (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show=20 (fixed1);
  gtk_container_add (GTK_CONTAINER (window1),=20 fixed1);
 
  list2 =3D gtk_list_new = ();
 =20 gtk_widget_ref (list2);
  gtk_object_set_data_full (GTK_OBJECT=20 (window1), "list2",=20 list2,
          &nb= sp;           &nbs= p;    =20 (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show=20 (list2);
  gtk_fixed_put (GTK_FIXED (fixed1), list2, 40, = 16);
 =20 gtk_widget_set_uposition (list2, 40, 16);
  gtk_widget_set_usize = (list2,=20 104, 136);
 
  for(count =3D 0; count <10 ;=20 count++)
 {
  sprintf(buff, "%d",=20 count);
  list_items =3D g_list_prepend(list_items,=20 gtk_list_item_new_with_label(buff));
 }
  g_print("\= nafter=20 scrolled window4\n");
 gtk_list_append_items(GTK_LIST(list2),=20 list_items);
 g_print("\nafter scrolled=20 window5\n");
 gtk_widget_show_all(list2);
 
 scrolled_window =3D=20 gtk_scrolled_window_new(NULL,NULL);
 if(scrolled_window =3D=3D=20 NULL)
  g_print("\nscroll =3D NULL\n");
 gtk_widget_set_usize(scrolled_window,=20 200,200);
 gtk_scrolled_window_add_with_viewport(GTK_CONTAINER(scroll= ed_window),list2);
 gtk_container_set_focus_hadjustment(GTK_CONTAINER(list2),g= tk_scrolled_window_get_hadjustment=20 GTK_SCROLLED_WINDOW(scrolled_window)));

 gtk_container_set_fo= cus_vadjustment(GTK_CONTAINER(list2),gtk_scrolled_window_get_vadjustment(= GTK_SCROLLED_WINDOW(scrolled_window)));
 g_print("\nafter=20 scrolled window3\n");
 
  return = window1;
}
 
////////////////////////////////////////////////////////////////= //////////////////////////////////
------=_NextPart_000_0154_01C1BDFC.F5BC4850-- From Padraig.Obriain@Sun.COM Mon Feb 25 04:06:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34]) by mail.gnome.org (Postfix) with ESMTP id 0065E18100 for ; Mon, 25 Feb 2002 04:06:42 -0500 (EST) Received: from dub-mail1.Ireland.Sun.COM ([129.156.220.70]) by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id CAA10841; Mon, 25 Feb 2002 02:06:40 -0700 (MST) Received: from maxfly (maxfly [129.156.238.23]) by dub-mail1.Ireland.Sun.COM (8.10.2+Sun/8.10.2/ENSMAIL,v2.1p1) with SMTP id g1P96du22622; Mon, 25 Feb 2002 09:06:39 GMT Message-Id: <200202250906.g1P96du22622@dub-mail1.Ireland.Sun.COM> Date: Mon, 25 Feb 2002 09:06:39 +0000 (GMT) From: "Padraig O'Briain" Reply-To: "Padraig O'Briain" Subject: Re: Trouble to compile atk-0.12 To: gtk-list@gnome.org, oliver_singla@yahoo.com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: DLwcr9KsDr4mKR/NOm8D5g== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4 SunOS 5.8 sun4u sparc Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It seems that pkg-config call for glib_genmarshal in glib-2.0 is returing the strange relative directory path ..//home/... What prefix did you specify when configuring glib? Padraig > > Hi, > > On my RH7.2 box, I have trouble to compile atk-0.12. After I have ran > .configure, here is what I get when I do a make: > > > [omsingla@oliver atk-0.12]$ make > Making all in atk > make[1]: Entering directory `/home/omsingla/gtk/1.3/atk-0.12/atk' > case ..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal in \ > .*) glib_genmarshal=`pwd`/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmars hal ;; \ *) glib_genmarshal=..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal ;; \ > esac; > \ > $glib_genmarshal --prefix=atk_marshal ./atkmarshal.list --body >> xgen-gmc \ > && (cmp -s xgen-gmc ./atkmarshal.c || cp xgen-gmc ./atkmarshal.c) \ > && rm -f xgen-gmc xgen-gmc~ \ > && echo timestamp > stamp-atkmarshal.c > /bin/sh: /home/omsingla/gtk/1.3/atk-0.12/atk/..//home/omsingla/gtk/1.3/glib-1.3.14/gobjec t/glib-genmarshal: No such file or directory > make[1]: *** [stamp-atkmarshal.c] Error 127 > make[1]: Leaving directory `/home/omsingla/gtk/1.3/atk-0.12/atk' > make: *** [all-recursive] Error 1 > [omsingla@oliver atk-0.12]$ > > Any idea ? > > TIA, > Olivier Singla > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From Steph.Fox@btinternet.com Mon Feb 25 04:08:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rhenium.btinternet.com (rhenium.btinternet.com [194.73.73.93]) by mail.gnome.org (Postfix) with ESMTP id 7BD8618F9B for ; Mon, 25 Feb 2002 04:08:08 -0500 (EST) Received: from host62-7-81-252.in-addr.btopenworld.com ([62.7.81.252] helo=t2r1o8) by rhenium.btinternet.com with smtp (Exim 3.22 #8) id 16fH76-0000gG-00; Mon, 25 Feb 2002 09:08:05 +0000 Message-ID: <00b601c1bddb$c96966a0$96fd7ad5@t2r1o8> From: "Steph" To: "David Joseph" , References: <015701c1bdce$ddb60210$aa0ba8c0@djj> Subject: Re: Problems in attaching GtkScrolledWindow to GtkList Date: Mon, 25 Feb 2002 09:05:53 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yeah, the list already has a parent - the 'fixed'. ps html drives the regulars mad .. ----- Original Message -----=20 From: "David Joseph" To: Sent: Monday, February 25, 2002 7:34 AM Subject: Problems in attaching GtkScrolledWindow to GtkList=20 Hi I am doing a project that involves the use of GtkList. I am trying to attach scroll bars to the lists but am not very = successful. I then tried to do a simple program to see where I was going wrong ..... = The program ran .. but I got this error on the console Gtk-CRITICAL **: file gtkscrolledwindow.c: line 951 = (gtk_scrolled_window_add_with_viewport): assertion `child->parent =3D=3D = NULL' failed. Any Idea what is going wrong here? Thanks in advance David The code is as follows: /////////////////////////////////////////////////////////////////////////= ///////////////////////// GtkWidget * create_window1 (void) { GtkWidget *window1; GtkWidget *fixed1; GtkWidget *list2; GList *list_items =3D NULL; gint count; gchar buff[3]; GtkWidget *scrolled_window =3D NULL; window1 =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (window1), "window1", window1); gtk_window_set_title (GTK_WINDOW (window1), "window1"); fixed1 =3D gtk_fixed_new (); gtk_widget_ref (fixed1); gtk_object_set_data_full (GTK_OBJECT (window1), "fixed1", fixed1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (fixed1); gtk_container_add (GTK_CONTAINER (window1), fixed1); list2 =3D gtk_list_new (); gtk_widget_ref (list2); gtk_object_set_data_full (GTK_OBJECT (window1), "list2", list2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (list2); gtk_fixed_put (GTK_FIXED (fixed1), list2, 40, 16); gtk_widget_set_uposition (list2, 40, 16); gtk_widget_set_usize (list2, 104, 136); for(count =3D 0; count <10 ; count++) { sprintf(buff, "%d", count); list_items =3D g_list_prepend(list_items, = gtk_list_item_new_with_label(buff)); } g_print("\nafter scrolled window4\n"); gtk_list_append_items(GTK_LIST(list2), list_items); g_print("\nafter scrolled window5\n"); gtk_widget_show_all(list2); =20 scrolled_window =3D gtk_scrolled_window_new(NULL,NULL); if(scrolled_window =3D=3D NULL) g_print("\nscroll =3D NULL\n"); gtk_widget_set_usize(scrolled_window, 200,200); = gtk_scrolled_window_add_with_viewport(GTK_CONTAINER(scrolled_window),list= 2); = gtk_container_set_focus_hadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_hadjustment GTK_SCROLLED_WINDOW(scrolled_window))); = gtk_container_set_focus_vadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_vadjustment(GTK_SCROLLED_WINDOW(scrolled_window))); g_print("\nafter scrolled window3\n"); =20 return window1; } /////////////////////////////////////////////////////////////////////////= ///////////////////////// From kasonhuang@kinposh.com.cn Mon Feb 25 04:18:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 6592518211 for ; Mon, 25 Feb 2002 04:18:09 -0500 (EST) Subject: FW: About the focus move in table? Date: Mon, 25 Feb 2002 17:17:13 +0800 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C1BDDD.3626FC52" Message-ID: <92CD479384374A439EFA0077E7C50F82260CE2@kes01.kinposh.com.cn> X-MS-Has-Attach: yes content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: About the focus move in table? Thread-Index: AcG8BZGUSrsvSSg0Eda2ugCAyEUULQB1dxNQ From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1BDDD.3626FC52 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable -----Original Message----- From: =B6=C0=BCy Kason Huang=20 Sent: Saturday, February 23, 2002 9:01 AM To: gtk-list@gnome.org Subject: About the focus move in table? hi guys:=20 anyone could tell how to change the focus in three tables(there is a lot = of buttons in each table) with keyboard.=20 and I find that the buttons focus in one table couldn't be changed = smoothly.for example,when you press left key on keyboard,you expect the = focus will move to the left button,however the focus maybe move to the a = button on the bottom of the table. a table's layout like tablelayout.doc picture:(24 buttons in one table) = =20 when focus in 14 button,i press down key on keyboard.i expect the focus = will move to the 20 button,the result is the focus moves to the15 button = or other button,not 20 button.the same thing is happen to the 18,20 = button.do anyone knows how to handle with the problem? or how to control = the focus in a table? Thanks in advance!=20 kason=20 ------_=_NextPart_001_01C1BDDD.3626FC52 Content-Type: application/msword; name="tablelayout.doc" Content-Transfer-Encoding: base64 Content-Description: tablelayout.doc Content-Disposition: attachment; filename="tablelayout.doc" 0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAIQAAAAAAAAAA EAAAIwAAAAEAAAD+////AAAAACAAAAD///////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////s pcEATSAJBAAA8FK/AAAAAAAAEAAAAAAABAAAzwQAAA4AYmpiauI94j0AAAAAAAAAAAAAAAAAAAAA AAAEBBYAMgwAAIBXAACAVwAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAAAAAAAAAD//w8AAAAA AAAAAAD//w8AAAAAAAAAAAD//w8AAAAAAAAAAAAAAAAAAAAAAGwAAAAAAJAAAAAAAAAAkAAAAJAA AAAAAAAAkAAAAAAAAADgAAAAAAAAAOAAAAAAAAAA4AAAABQAAAAAAAAAAAAAAPQAAAAAAAAA1AEA AAAAAADUAQAAAAAAANQBAAAAAAAA1AEAAAwAAADgAQAADAAAAPQAAAAAAAAAdAoAAPoAAAD4AQAA AAAAAPgBAAAAAAAA+AEAAAAAAAD4AQAAAAAAAPgBAAAAAAAAcQkAAAAAAABxCQAAAAAAAHEJAAAA AAAA8wkAAAIAAAD1CQAAAAAAAPUJAAAAAAAA9QkAAAAAAAD1CQAAAAAAAPUJAAAAAAAA9QkAACQA AABuCwAAIAIAAI4NAAA+AAAAGQoAABUAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAABxCQAAAAAA AAAAAAAAAAAAAAAAAAAAAABPCQAAIgAAAHEJAAAAAAAAcQkAAAAAAABxCQAAAAAAABkKAAAAAAAA rwkAAAAAAACQAAAAAAAAAJAAAAAAAAAA+AEAAAAAAAAAAAAAAAAAAPgBAABXBwAALgoAABYAAACv CQAAAAAAAK8JAAAAAAAArwkAAAAAAABxCQAAAAAAAJAAAAA4AAAA+AEAAAAAAADgAAAAAAAAAPgB AAAAAAAA8wkAAAAAAAAAAAAAAAAAAK8JAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAcQkAAAAAAADzCQAAAAAAAK8JAABEAAAArwkAAAAAAAAAAAAA AAAAAPMJAAAAAAAAyAAAABgAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8wkAAAAAAAD4AQAAAAAAAOwBAAAMAAAAYAmb7dy9 wQH0AAAA4AAAANQBAAAAAAAAcQkAABAAAADzCQAAAAAAAAAAAAAAAAAA8wkAAAAAAABECgAAMAAA AHQKAAAAAAAA8wkAAAAAAADMDQAAAAAAAIEJAAAuAAAAzA0AAAAAAADzCQAAAAAAAK8JAAAAAAAA 9AAAAAAAAAD0AAAAAAAAAJAAAAAAAAAAkAAAAAAAAACQAAAAAAAAAJAAAAAAAAAAAgDZAAAACA0x ICAgICAgICAyICAgICAgIDMgICAgICAgNCAgICAgICA1ICAgICAgIDYgICAgICAgIDcNDTggICAg ICAgIDkgICAgICAxMCAgICAgIDExICAgICAgIDEyICAgICAgMTMgICAgICAgIDE0DQ0xNSAgICAg ICAxNiAgICAgMTcgICAgICAxOCAgICAgIDE5ICAgICAgICAgIDIwDQ0yMSAgICAgICAgMjIgICAg ICAgMjMgICAgICAgICAgICAgICAgICAgICAgMjQNDQ0NAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAA AQQAAM8EAADzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYA2oAAAAAQ0oUAFUIAW1IAARuSAAEdQgBAgAEAAAC BAAANgQAADcEAABtBAAAbgQAAJ0EAACeBAAAzAQAAM0EAADOBAAAzwQAAP0AAAAAAAAAAAAAAAD9 AAAAAAAAAAAAAAAA/QAAAAAAAAAAAAAAAP0AAAAAAAAAAAAAAAD9AAAAAAAAAAAAAAAA/QAAAAAA AAAAAAAAAP0AAAAAAAAAAAAAAAD9AAAAAAAAAAAAAAAA/QAAAAAAAAAAAAAAAP0AAAAAAAAAAAAA AAD9AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAALAAQAAAIE AADOBAAA/v4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBAQIwADGQaAEy UAIAH7CCLiCwxkEhsAgHIrAIByOQoAUkkKAFJbAAABewUwMYsOADDJCpAQAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAPAAoAAQBp AA8AAwAAAAMAAAAAAEAAAEDx/wIAQAAMAAIAZ1GHZQAABQAAADEkAAAkAENKGABLSAIAUEoDAF9I AQRhShgAbUgJBG5IBARzSAkEdEgEBAAAAAAAAAAAAAAAAAAAAAAAABwAQUDy/6EAHAAMAAYAEJgt irVrPYRXW4tXAAAAAAAAAAAAAAAAAAAAAMsAAADPAAAAAQAAAAAAAAAAAP////8CBAAAAAAAAP// //8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAywAAAM4AAAAAAAAAAAj//wAAAAAAAAAAzwAAAAcAAAwA AAAA/////wAAAAACAAAANgAAADcAAABtAAAAbgAAAJ0AAACeAAAAzAAAAM0AAADQAAAAmAAAAAAw AAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAA AAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAA AIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAA AACAAAQAAM8EAAADAAAAAAQAAM8EAAAEAAAAAAQAAM4EAAAFAAAADwAA8DgAAAAAAAbwGAAAAAII AAACAAAADQAAAAEAAAABAAAADgAAAEAAHvEQAAAA//8AAAAA/wCAgIAA9wAAEAAPAALwDgcAABAA CPAIAAAADAAAAA0EAAAPAAPwrAYAAA8ABPAoAAAAAQAJ8BAAAAAAAAAAAAAAAAAAAAAAAAAAAgAK 8AgAAAAABAAABQAAAA8AA/B0BgAADwAE8JYAAAABAAnwEAAAACQJAAAIBwAAkCQAAEgSAAACAArw CAAAAA0EAAABAgAAIwAL8DoAAACDwy4AAAC/AwAAQAAFAAgACADS////AAAAANL///9gVAAAvFQA AGBUAAC8VAAAAAAAANL///8AAAAAIwAi8QwAAACPAwAAAACRAwAAAAAAABDwBAAAAAAAAAAAABHw BAAAAAEAAAAPAATwiAAAABIACvAIAAAAAgQAAAIKAAAzAAvwQAAAAIAAAAABAIPDLgAAAL8DAABA AAUACAAIANL///8AAAAA0v///2BUAACOVAAAYFQAAI5UAAAAAAAA0v///wAAAAAAAA/wEAAAACQJ AAAIBwAAkCQAAEgSAAAAABHwBAAAABcAAAAAAA3wBAAAAAAAAQAPAATwjgAAAEIBCvAIAAAABAQA AAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIANL/ //8AAAAA0v///wAAAACOVAAAAAAAAI5UAAAAAAAA0v///wAAAAAAAA/wEAAAACQJAADYCQAAkCQA ANgJAAAAABHwBAAAABAAAAAPAATwjgAAAEIBCvAIAAAABQQAAAIKAABjAAvwUgAAAEQBBAAAAH8B AAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIANL///8AAAAA0v///wAAAACOVAAAAAAA AI5UAAAAAAAA0v///wAAAAAAAA/wEAAAACQJAACoDAAAkCQAAKgMAAAAABHwBAAAABAAAAAPAATw jgAAAEIBCvAIAAAABgQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAA AL8DAABAAAUACAAIANL///8AAAAA0v///wAAAACOVAAAAAAAAI5UAAAAAAAA0v///wAAAAAAAA/w EAAAACQJAAB4DwAAkCQAAHgPAAAAABHwBAAAABAAAAAPAATwjgAAAEIBCvAIAAAABwQAAAIKAABj AAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAA AAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAAKgMAAAIBwAAqAwAAEgSAAAA ABHwBAAAABAAAAAPAATwjgAAAEIBCvAIAAAACAQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8B AAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAA AAAAAAAAAAAAAAAAAA/wEAAAACwQAAAIBwAALBAAAEgSAAAAABHwBAAAABUAAAAPAATwjgAAAEIB CvAIAAAACQQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABA AAUACAAIAAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAALAT AAAIBwAAsBMAAHgPAAAAABHwBAAAABsAAAAPAATwjgAAAEIBCvAIAAAACgQAAAIKAABjAAvwUgAA AEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAAAAAAAPBT AAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAADQXAAAIBwAANBcAAEgSAAAAABHwBAAA ABwAAAAPAATwjgAAAEIBCvAIAAAACwQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8B EAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAA AAAAAAAAAA/wEAAAAGwbAAAIBwAAbBsAAHgPAAAAABHwBAAAAB0AAAAPAATwjgAAAEIBCvAIAAAA DAQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAI AAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAAKQfAAAIBwAA pB8AAKgMAAAAABHwBAAAABwAAAAPAATwQgAAABIACvAIAAAAAQQAAAAOAABTAAvwHgAAAL8BAAAQ AMsBAAAAAP8BAAAIAAQDCQAAAD8DAQABAAAAEfAEAAAAAQAAAAAAAADPAAAADQQAABwCAABUBgAA IBwAAJQRAACUAAAAAAAAAAAAAgAAANAAAAAHAAcAAAAAAAIAAAA1AAAANwAAAG0AAABuAAAAywAA ANAAAAAHAAUABwAFAAcABQAHAP//AgAAAAUAQwBsAGkAbgBlABgAQwA6AFwATQB5ACAARABvAGMA dQBtAGUAbgB0AHMAXABEAG8AYwAxAC4AZABvAGMA/0ADgAEAAAAAAAAAAADI6G4AAQAAAAAAAAAA AAAAAAAAAAAAAAACEAAAAAAAAADPAAAAcAAACABAAAD//wEAAAAHAFUAbgBrAG4AbwB3AG4A//8B AAgAAAAAAAAAAAAAAP//AQAAAAAA//8AAAIA//8AAAAA//8AAAIA//8AAAAABAAAAEcWkAEAAAIC BgMFBAUCAwSHOgAAAAAAAAAAAAAAAAAA/wAAAAAAAABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBt AGEAbgAAADUWkAECAAUFAQIBBwYCBQcAAAAAAAAAEAAAAAAAAAAAAAAAgAAAAABTAHkAbQBiAG8A bAAAADMmAAAAAAILBgQCAgICAgSHOgAAAAAAAAAAAAAAAAAA/wAAAAAAAABBAHIAaQBhAGwAAABD FpABiAUCAgMAAAAAAAAAAQAAAAAACAgQAAAAAAAAAAAAEAAAAAAAsGUwfQ5m1JoAAFAATQBpAG4A ZwBMAGkAVQAAACAABAAxCIgYAADgAQAAaAEAAAAARMxiJk/MYiYAAAAAAQALAAAAAAAAAAEAAAAB AAEAAAAEAAMQAQAAAAAAAAAAAAAAAQABAAAAAQAAAAAAAAAhAwAAAAAAAAMAPwAcACEAKQAsAC4A OgA7AD8AXQB9AKIAtwATIBQgGSAdICIgJSAmICcgMiB0JQEwAjAJMAswDTAPMBEwFTAeMDD+Mf4z /jT+Nv44/jr+PP4+/kD+Qv5E/k/+UP5R/lL+VP5V/lb+V/5a/lz+Xv4B/wn/DP8O/xr/G/8f/1z/ Xf9k/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAFsAewCjAKUAGCAcIDUgCDAKMAwwDjAQMBQwHTA1/jf+ Of47/j3+P/5B/kP+Wf5b/l3+CP9b/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAIB6AFtAC0AIKAcgAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAA AAEygxEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//xIAAAAAAAAAAAAAAAAA AAAFAEMAbABpAG4AZQAFAEMAbABpAG4AZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP7/AAAECgIAAAAAAAAAAAAA AAAAAAAAAAEAAADghZ/y+U9oEKuRCAArJ7PZMAAAAGgBAAARAAAAAQAAAJAAAAACAAAAmAAAAAMA AACkAAAABAAAALAAAAAFAAAAwAAAAAYAAADMAAAABwAAANgAAAAIAAAA7AAAAAkAAAD8AAAAEgAA AAgBAAAKAAAAJAEAAAwAAAAwAQAADQAAADwBAAAOAAAASAEAAA8AAABQAQAAEAAAAFgBAAATAAAA YAEAAAIAAAC2AwAAHgAAAAEAAAAAAHMAHgAAAAEAAAAAAHMAHgAAAAYAAABDbGluZQBmAB4AAAAB AAAAAGxpbh4AAAABAAAAAGxpbh4AAAALAAAATm9ybWFsLmRvdAAAHgAAAAYAAABDbGluZQAuZB4A AAACAAAAMQBpbh4AAAATAAAATWljcm9zb2Z0IFdvcmQgOS4wAABAAAAAAAJkiQEAAABAAAAAAIAR Xdu9wQFAAAAAAIJ15ty9wQEDAAAAAQAAAAMAAAAAAAAAAwAAAAEAAAADAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/wAABAoCAAAAAAAAAAAAAAAAAAAAAAAB AAAAAtXN1ZwuGxCTlwgAKyz5rjAAAADsAAAADAAAAAEAAABoAAAADwAAAHAAAAAFAAAAgAAAAAYA AACIAAAAEQAAAJAAAAAXAAAAmAAAAAsAAACgAAAAEAAAAKgAAAATAAAAsAAAABYAAAC4AAAADQAA AMAAAAAMAAAAzQAAAAIAAAC2AwAAHgAAAAYAAABLaW5wbwBucAMAAAABAAAAAwAAAAEAAAADAAAA AQAAAAMAAADtDgkACwAAAAAAAAALAAAAAAAAAAsAAAAAAAAACwAAAAAAAAAeEAAAAQAAAAEAAAAA DBAAAAIAAAAeAAAABQAAALzQw0QAAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAP7///8J AAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAA/v///xEAAAASAAAAEwAAABQAAAAVAAAAFgAAABcA AAD+////GQAAABoAAAAbAAAAHAAAAB0AAAAeAAAAHwAAAP7////9////IgAAAP7////+/////v// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////9SAG8AbwB0ACAARQBuAHQAcgB5AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFgAFAf//////////AwAAAAYJAgAAAAAAwAAA AAAAAEYAAAAAAAAAAAAAAAAgMaTt3L3BASQAAACAAAAAAAAAADEAVABhAGIAbABlAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAIA//////////// ////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAQAAAAAAAAVwBvAHIA ZABEAG8AYwB1AG0AZQBuAHQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABoAAgEFAAAA//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAAAAAAAAAFAFMAdQBtAG0AYQByAHkASQBuAGYAbwByAG0AYQB0AGkAbwBuAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAKAACAQIAAAAEAAAA/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAABAAAAAAEAAAAAAAAAUARABvAGMAdQBtAGUAbgB0AFMAdQBtAG0AYQByAHkASQBu AGYAbwByAG0AYQB0AGkAbwBuAAAAAAAAAAAAAAA4AAIB////////////////AAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAAQAAAAAAAAAQBDAG8AbQBwAE8AYgBqAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAgEBAAAABgAAAP// //8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZgAAAAAAAABPAGIAagBl AGMAdABQAG8AbwBsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA FgABAP///////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAIDGk7dy9wQEgMaTt3L3BAQAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA////////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAP7///////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////8BAP7/AwoAAP////8GCQIAAAAAAMAAAAAAAABGFAAAAE1pY3Jv c29mdCBXb3JkIKTlpfMACgAAAE1TV29yZERvYwAQAAAAV29yZC5Eb2N1bWVudC44APQ5snEAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAA== ------_=_NextPart_001_01C1BDDD.3626FC52-- From lettere@di.unipi.it Mon Feb 25 04:30:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailserver.di.unipi.it (apis.di.unipi.it [131.114.4.6]) by mail.gnome.org (Postfix) with ESMTP id B044318766 for ; Mon, 25 Feb 2002 04:30:16 -0500 (EST) Received: from orione.di.unipi.it (orione [131.114.2.112]) by mailserver.di.unipi.it (8.11.6/8.11.6) with ESMTP id g1P9U5m31578 for ; Mon, 25 Feb 2002 10:30:05 +0100 Received: from localhost (lettere@localhost) by orione.di.unipi.it (8.11.2/8.9.1) with ESMTP id g1P9UcB26585 for ; Mon, 25 Feb 2002 10:30:38 +0100 X-Authentication-Warning: orione.di.unipi.it: lettere owned process doing -bs Date: Mon, 25 Feb 2002 10:30:38 +0100 (CET) From: Marco Lettere To: Subject: how to align a label in GtkTable Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello, I always get a label attached in a GtkTable to be centered in its cell. How do I get it to be left aligned? is it possible using only gtk_table_*() or gtk_label_*() functions? thanx, M. ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| From kasonhuang@kinposh.com.cn Mon Feb 25 04:37:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 3A3B418C94 for ; Mon, 25 Feb 2002 04:37:37 -0500 (EST) Subject: RE: how to align a label in GtkTable Date: Mon, 25 Feb 2002 17:36:42 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: how to align a label in GtkTable Thread-Index: AcG93xNEYNo31mkHQeiwoEBleADDCQAAGWIA From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: "Marco Lettere" Cc: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi: you could try gtk_label_set_justify(GtkLabel *label,GtkJustification = jtype); typedef enum { GTK_JUSTIFY_LEFT, GTK_JUSTIFY_RIGHT, GTK_JUSTIFY_CENTER, GTK_JUSTIFY_FILL } GtkJustification; for example: gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT); -----Original Message----- From: Marco Lettere [mailto:lettere@di.unipi.it] Sent: Monday, February 25, 2002 5:31 PM To: gtk-list@gnome.org Subject: how to align a label in GtkTable hello, I always get a label attached in a GtkTable to be centered in its cell. How do I get it to be left aligned? is it possible using only gtk_table_*() or gtk_label_*() functions? thanx, M. ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From anjali_grover@yahoo.com Mon Feb 25 04:46:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14606.mail.yahoo.com (web14606.mail.yahoo.com [216.136.224.86]) by mail.gnome.org (Postfix) with SMTP id 617BF18C94 for ; Mon, 25 Feb 2002 04:46:14 -0500 (EST) Message-ID: <20020225094613.99455.qmail@web14606.mail.yahoo.com> Received: from [155.69.5.223] by web14606.mail.yahoo.com via HTTP; Mon, 25 Feb 2002 01:46:13 PST Date: Mon, 25 Feb 2002 01:46:13 -0800 (PST) From: Anjali Grover Subject: Making Linux system calls as a signal to an event To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am a new user of GTK. I want to execute a Linux system call (like "ls" or "make" on the command line) by clicking on a button on my GTK interface. I am using C for my GTK code. I have associate the "clicked" event to my button as a signal to call a callback function. Within this callback function, how can I make system calls. ALso, how can I send parameters filled in by the user in my text entries to my other C files. I need to pass the content of the text entries to variables inside my other C files. Thank you, Anjali __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From lettere@di.unipi.it Mon Feb 25 04:46:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailserver.di.unipi.it (apis.di.unipi.it [131.114.4.6]) by mail.gnome.org (Postfix) with ESMTP id D9C7218C94 for ; Mon, 25 Feb 2002 04:46:16 -0500 (EST) Received: from orione.di.unipi.it (orione [131.114.2.112]) by mailserver.di.unipi.it (8.11.6/8.11.6) with ESMTP id g1P9k4m00765; Mon, 25 Feb 2002 10:46:04 +0100 Received: from localhost (lettere@localhost) by orione.di.unipi.it (8.11.2/8.9.1) with ESMTP id g1P9kcv26730; Mon, 25 Feb 2002 10:46:38 +0100 X-Authentication-Warning: orione.di.unipi.it: lettere owned process doing -bs Date: Mon, 25 Feb 2002 10:46:38 +0100 (CET) From: Marco Lettere To: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= Cc: Subject: RE: how to align a label in GtkTable In-Reply-To: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, 25 Feb 2002, [big5] =B6=C0=BCy Kason Huang wrote: yes I tried it by it doesn't seem to work in a table cell context. I do create a table, create a label, set the label justification and then attach the label. I don't know if I'm doing something wrong. Are there some caveats like "first set alignment of the label and then attach it to the table" or or viceversa? M. > hi: > you could try gtk_label_set_justify(GtkLabel *label,GtkJustification jtyp= e); > typedef enum > { > GTK_JUSTIFY_LEFT, > GTK_JUSTIFY_RIGHT, > GTK_JUSTIFY_CENTER, > GTK_JUSTIFY_FILL > } GtkJustification; > > > hello, > > I always get a label attached in a GtkTable to be centered in its cell. > How do I get it to be left aligned? is it possible using only > gtk_table_*() or gtk_label_*() functions? > thanx, > M. > > ____ _____ > | _ \ ___ ___ _ __| ____| > | | | |/ __/ _ \| '__| _| > | |_| | (_| (_) | | | |___ > |____/ \___\___/|_| |_____| > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| From kasonhuang@kinposh.com.cn Mon Feb 25 05:10:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id B174018163 for ; Mon, 25 Feb 2002 05:10:44 -0500 (EST) Subject: about curses programming? Date: Mon, 25 Feb 2002 18:09:49 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F82260CE8@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: about curses programming? Thread-Index: AcG95I2fx3U53SoQEda2ugCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Cc: "Paul Davis" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello: it 's not gtk problem. anyone know Curses programming? how to create Makefile,how to make? like the following code how to do? /* File: helloworld.c */ #include int main(int argc, char *argv[]) { initscr(); =09 box(stdscr, ACS_VLINE, ACS_HLINE); =09 mvaddstr(11, 30, "Hello World!"); refresh(); getch(); endwin(); return 0; } Thanks for you help. kason From Steph.Fox@btinternet.com Mon Feb 25 05:13:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium.btinternet.com (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id D70BF18830 for ; Mon, 25 Feb 2002 05:13:12 -0500 (EST) Received: from host213-1-158-138.btinternet.com ([213.1.158.138] helo=t2r1o8) by protactinium.btinternet.com with smtp (Exim 3.22 #8) id 16fI7v-0005QJ-00; Mon, 25 Feb 2002 10:13:00 +0000 Message-ID: <00da01c1bde4$dad6fc00$96fd7ad5@t2r1o8> From: "Steph" To: "Marco Lettere" , "=?iso-8859-1?B?tsC8eSBLYXNvbiBIdWFuZw==?=" Cc: References: Subject: Re: how to align a label in GtkTable Date: Mon, 25 Feb 2002 10:11:48 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I've never managed to get the text justification working in a label = either. But GtkMisc functions set_alignment(x, y) and set_padding(x, y) work = just fine .. ----- Original Message -----=20 From: "Marco Lettere" To: "=B6=C0=BCy Kason Huang" Cc: Sent: Monday, February 25, 2002 9:46 AM Subject: RE: how to align a label in GtkTable On Mon, 25 Feb 2002, [big5] =B6=C0=BCy Kason Huang wrote: yes I tried it by it doesn't seem to work in a table cell context. I do create a table, create a label, set the label justification and then attach the label. I don't know if I'm doing something wrong. Are there some caveats like "first set alignment of the label and then attach it to the table" or or viceversa? M. > hi: > you could try gtk_label_set_justify(GtkLabel *label,GtkJustification = jtype); > typedef enum > { > GTK_JUSTIFY_LEFT, > GTK_JUSTIFY_RIGHT, > GTK_JUSTIFY_CENTER, > GTK_JUSTIFY_FILL > } GtkJustification; > > > hello, > > I always get a label attached in a GtkTable to be centered in its = cell. > How do I get it to be left aligned? is it possible using only > gtk_table_*() or gtk_label_*() functions? > thanx, > M. > > ____ _____ > | _ \ ___ ___ _ __| ____| > | | | |/ __/ _ \| '__| _| > | |_| | (_| (_) | | | |___ > |____/ \___\___/|_| |_____| > > > _______________________________________________ > 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 John.Cupitt@ng-london.org.uk Mon Feb 25 07:14:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id C10C518779 for ; Mon, 25 Feb 2002 07:14:07 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMF7X>; Mon, 25 Feb 2002 12:14:06 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMF74; Mon, 25 Feb 2002 12:13:57 -0000 Message-ID: <3C7A2734.1090803@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: ehml@pacific.net.sg Cc: gtk-list@gnome.org Subject: Re: Scrolled window unable to handle huge list ( > 1700 entries) in it Date: Mon, 25 Feb 2002 11:59:48 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ehml wrote: > I notice that when I have more than 1700 (exact number is around 167+) > entries in a list (or tree), and the list is in a scrolled window, it will > not be displayed correctly. Anyone know limitation on the number of entry > (or height) a scrolled window can support, and is there a known way to > workaround this? Hi, GtkList and GtkTree use an X window to scroll. X windows have 16-bit coordinates, so you're probably running into a 32767 pixel limit. I think GtkCList does not have this problem. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From pvosta@unionbio-eu.com Mon Feb 25 07:15:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 66DC01879B for ; Mon, 25 Feb 2002 07:15:45 -0500 (EST) Received: (qmail 25003 invoked from network); 25 Feb 2002 12:11:50 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 25 Feb 2002 12:11:50 -0000 Message-ID: <3C7A2AAF.89B66FFE@unionbio-eu.com> Date: Mon, 25 Feb 2002 13:14:39 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: list of functions in menu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want to build software on RedHat Linux 7.2 with a frontend based on GTK. I already have several C-functions that will be the "backend" of the application. I am now looking for a way to use a list of these functions with their arguments to put them "automatically" into menus and submenus in a graphical interface. So eg. the interface item for the function "readimage( file )" would be placed in a window with automatic generation a text box "readimage" to fill out the filename or even a filebrowser. Are there tools available to do this ? Best regards, Peter From John.Cupitt@ng-london.org.uk Mon Feb 25 07:25:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 65D971879B for ; Mon, 25 Feb 2002 07:25:38 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMF89>; Mon, 25 Feb 2002 12:25:37 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMF88; Mon, 25 Feb 2002 12:25:32 -0000 Message-ID: <3C7A29EB.7040902@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: ehml@pacific.net.sg Cc: gtk-list@gnome.org Subject: Re: key input get grab by other widget Date: Mon, 25 Feb 2002 12:11:23 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ehml wrote: > In the drawing-area, I assign "key press event" to it. It work find for key > like "a" and "b", but does not work for arrow key. Once I press a arrow key, > the "check button" grab that input, and subsequently, all key is grab by the > "check button". The same will happen if I point at the menu-bar and click in a > empty space following by pressing a key. What I need is: > > If the pointer is in the drawing-area, drawing-area should grab all key event. Hi again :) the problem is that GtkDrawingArea does not implement any of the focus stuff that other widgets have (eg. drawing a focus highlight, catching focus_in/_out events, etc.). This means that keyboard input to a drawing area does not work well, especially if you mix drawing areas and widgets with "real" keyboard handling. I think the best solution is to subclass drawing area and implement the gtk focus system. It's not actually that hard ... when I did this I think I read gtkbutton and based it on that code. As I recall, you just need to implement draw_focus focus_in_event focus_out_event button_press_event button_release_event expose (you need to add code to draw the focus indicator) John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From John.Cupitt@ng-london.org.uk Mon Feb 25 07:28:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 133B618779 for ; Mon, 25 Feb 2002 07:28:18 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMF9P>; Mon, 25 Feb 2002 12:28:17 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMF93; Mon, 25 Feb 2002 12:28:08 -0000 Message-ID: <3C7A2A88.7060406@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: Romain.Parmantier@wanadoo.fr Cc: gtk-list@gnome.org Subject: Re: GTK Background Date: Mon, 25 Feb 2002 12:14:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Romain wrote: > For my application, I need a transparent background for a GtkText (not a > white background). It is possible? And how can I do this if it is possible ? You can have a static pixmap in the background with a theme, but I think that's all you can do without a lot of work :-( Of course, I'm probably wrong. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From hp@redhat.com Mon Feb 25 10:37:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 16D63193BE for ; Mon, 25 Feb 2002 10:37:16 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1PFbCa10189; Mon, 25 Feb 2002 10:37:12 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: =?big5?b?tsC8eQ==?= Kason Huang Cc: "Marco Lettere" , Subject: Re: how to align a label in GtkTable References: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> From: Havoc Pennington Date: 25 Feb 2002 10:37:12 -0500 In-Reply-To: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: =B6=C0=BCy Kason Huang writes: > hi: > you could try gtk_label_set_justify(GtkLabel *label,GtkJustification jtyp= e); > typedef enum > { > GTK_JUSTIFY_LEFT, > GTK_JUSTIFY_RIGHT, > GTK_JUSTIFY_CENTER, > GTK_JUSTIFY_FILL > } GtkJustification; >=20 > for example: > gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT); >=20 This is the wrong function - see the FAQ. You want gtk_misc_set_alignment() Havoc From anjali_grover@yahoo.com Mon Feb 25 10:43:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14608.mail.yahoo.com (web14608.mail.yahoo.com [216.136.224.88]) by mail.gnome.org (Postfix) with SMTP id AFBFC187D4 for ; Mon, 25 Feb 2002 10:43:05 -0500 (EST) Message-ID: <20020225154305.35127.qmail@web14608.mail.yahoo.com> Received: from [155.69.5.223] by web14608.mail.yahoo.com via HTTP; Mon, 25 Feb 2002 07:43:05 PST Date: Mon, 25 Feb 2002 07:43:05 -0800 (PST) From: Anjali Grover Subject: Plotting x-y graph with GTK To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Is there a way to plot a linear x versus y graph on the GUI developed with GTK? Thanx! Anjali __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From rwalden@tripos.com Mon Feb 25 11:42:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id AFE3B18B19 for ; Mon, 25 Feb 2002 11:42:41 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id KAA29754 for ; Mon, 25 Feb 2002 10:42:40 -0600 (CST) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma029691; Mon, 25 Feb 02 10:41:51 -0600 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id KAA43025 for ; Mon, 25 Feb 2002 10:41:51 -0600 (CST) Message-ID: <3C7A694E.FE8E50DD@tripos.com> Date: Mon, 25 Feb 2002 10:41:50 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: GTK List Subject: GTK_TYPE_BOXED References: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm attempting to port some gtk+-1.2 widgets to 2.0 (1.3.13 actually) and I'm running into a problem with an object that is derived from a GTK_TYPE_BOXED type. This seems to cause a segfault in the g_type system. I found some mention of this in the some of the list archives, but I couldn't figure what the resolution was. Is it an O.K. thing to derive objects from GTK_TYPE_BOXED and expect it to work with the new g_type system? Sorry for being so vague, but I'm on the fuzzy frontier of the understanding of my own problem... :) Thanks, Ralph Walden -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From flavio@maqplas.com.br Mon Feb 25 12:36:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id B376218B30 for ; Mon, 25 Feb 2002 12:36:23 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1PHa8Aj024452 for ; Mon, 25 Feb 2002 14:36:09 -0300 (BRT) Subject: Scrollbar flickers when clock run From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 25 Feb 2002 14:38:24 -0300 Message-Id: <1014658705.1109.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I'm using GTK 1.2 and my application has a clock that run always when I start the program, I make this clock using gtk_timeout_add with 1 second of interval and each 1 second it changes a gtk_label to show the elapsed time, and the program has too a CList with vertical scrollbar, but this scrollbar is making randon flickering when the numbers (gtk_label) of clock are swapped, why this occurs ? How to fix this ? Thanks in advance for all help Flavio Alberto From p@dirac.org Mon Feb 25 13:04:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from satan.diablo.localnet (adsl-64-164-47-8.dsl.scrm01.pacbell.net [64.164.47.8]) by mail.gnome.org (Postfix) with ESMTP id CEA8F181A5 for ; Mon, 25 Feb 2002 13:04:11 -0500 (EST) Received: from p by satan.diablo.localnet with local (Exim 3.34 #1 (Debian)) id 16fPU0-0005lz-00 for ; Mon, 25 Feb 2002 10:04:16 -0800 Date: Mon, 25 Feb 2002 10:04:16 -0800 To: gtk-list@gnome.org Subject: help with linked lists Message-ID: <20020225180416.GA21684@dirac.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i From: Peter Jay Salzman Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi there, using sdl i draw a number of circles (electric charges) and would like to know when the user clicks on a charge. a basic charge is a struct: typedef struct { SDL_Surface *img; int magnitude; SDL_Rect rect; } ChargeStruct; and i have a double linked list of them: GList *ChargeList = NULL; ChargeStruct puck; ... ChargeList = g_list_append (ChargeList, &puck); i'd like to take the mouse coordinates on a button click and check to see if the click happened on a charge. if it finds a clicked charge, it returns a pointer to the ChargeStruct belonging to the clicked charge: ChargeStruct *ChargeClicked(GList *ChgList, SDL_Event event) { GList *ptr; int x, y; while (ptr != NULL) { ptr = g_list_next(ChgList); x = ptr->data->rect.x; y = ptr->data->rect.y; if (event.button.x > x - 10 && event.button.x < x + 10) { printf("click\n"); } } return(ptr->data); } i don't have any experience with GList's, so i'm grasping at straws. ptr->data should be a pointer to a ChargeStruct. so ptr->data->rect should be the rect element of a ChargeStruct which is pointed to by data. but this function gives the compile errors: functions.c: In function `ChargeClicked': functions.c:21: warning: dereferencing `void *' pointer functions.c:21: request for member `rect' in something not a structure or union functions.c:22: warning: dereferencing `void *' pointer functions.c:22: request for member `rect' in something not a structure or union i feel like i'm losing my grip on what a pointer is. the code makes sense to me, but obviously i'm mistaken about something. can someone help me out? how do i access rect.x and rect.y of the ChargeStruct pointed to by ptr->data? thanks! pete From rsteinke@w-link.net Mon Feb 25 13:15:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id AF04B18B82 for ; Mon, 25 Feb 2002 13:15:17 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16fPeZ-0002Rh-00; Mon, 25 Feb 2002 10:15:11 -0800 Date: Mon, 25 Feb 2002 10:15:11 -0800 From: rsteinke@w-link.net To: p@dirac.org, gtk-list@gnome.org Subject: Re: help with linked lists Message-ID: <3C7A7F2F.nail78A1CT1JE@w-link.net> References: <20020225180416.GA21684@dirac.org> In-Reply-To: <20020225180416.GA21684@dirac.org> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Peter Jay Salzman > > hi there, > > using sdl i draw a number of circles (electric charges) and would like > to know when the user clicks on a charge. a basic charge is a struct: > > typedef struct { > SDL_Surface *img; > int magnitude; > SDL_Rect rect; > } ChargeStruct; > > and i have a double linked list of them: > > GList *ChargeList = NULL; > ChargeStruct puck; > ... > ChargeList = g_list_append (ChargeList, &puck); > > i'd like to take the mouse coordinates on a button click and check to > see if the click happened on a charge. if it finds a clicked charge, it > returns a pointer to the ChargeStruct belonging to the clicked charge: > > > ChargeStruct *ChargeClicked(GList *ChgList, SDL_Event event) > { > GList *ptr; > int x, y; > > while (ptr != NULL) { > ptr = g_list_next(ChgList); > x = ptr->data->rect.x; > y = ptr->data->rect.y; > if (event.button.x > x - 10 && event.button.x < x + 10) { > printf("click\n"); > } > } > return(ptr->data); > } > > i don't have any experience with GList's, so i'm grasping at straws. > > ptr->data should be a pointer to a ChargeStruct. so ptr->data->rect > should be the rect element of a ChargeStruct which is pointed to by > data. > > but this function gives the compile errors: > > functions.c: In function `ChargeClicked': > functions.c:21: warning: dereferencing `void *' pointer > functions.c:21: request for member `rect' in something not a structure or union > functions.c:22: warning: dereferencing `void *' pointer > functions.c:22: request for member `rect' in something not a structure or union > > i feel like i'm losing my grip on what a pointer is. the code makes > sense to me, but obviously i'm mistaken about something. > > can someone help me out? how do i access rect.x and rect.y of the > ChargeStruct pointed to by ptr->data? > > thanks! > pete This appears to be more of a C typecasting issue than anything else. What you need is ((ChargeStruct *) ptr->data)->rect, so that C knows what kind of pointer ptr->data is. GList stores things as void*, so that you can portably store any kind of pointer there. You could also do: ChargeStruct *data; ptr = g_list_next(ChgList); // Maybe should be g_list_next(ptr) instead? data = (ChargeStruct*) ptr->data; and just use "data" in the rest of the code, so things look cleaner. Ron Steinke From John.Cupitt@ng-london.org.uk Mon Feb 25 13:22:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 5A77E18B82 for ; Mon, 25 Feb 2002 13:22:12 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMHBP>; Mon, 25 Feb 2002 18:22:11 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMHB3; Mon, 25 Feb 2002 18:22:09 -0000 Message-ID: <3C7A7D80.1090404@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: p@dirac.org Cc: gtk-list@gnome.org Subject: Re: help with linked lists Date: Mon, 25 Feb 2002 18:08:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Peter Jay Salzman wrote: > typedef struct { > SDL_Surface *img; > int magnitude; > SDL_Rect rect; > } ChargeStruct; > > and i have a double linked list of them: > > GList *ChargeList = NULL; > ChargeStruct puck; > ... > ChargeList = g_list_append (ChargeList, &puck); Hi Peter, Is ChargeStruct a local? You probably want to allocate space for a struct of the heap, and then add a pointer to that area to your list. ChargeStruct *puck = g_new (ChargeStruct); ChargeList = g_list_append (ChargeList, puck); (also, _prepend() is much faster if you don't care about having the order reversed) (also GList keeps forwards and back pointers ... if you just want a one-way list, you can use GSList (singly-linked list) and save a little space) (also the usual convention is to use MixedCaps for type names, and underscore_names for variables ... so I'd call ChargeList charge_list) Of course, you'll need something to g_free() all these pucks when you're done with them. > ChargeStruct *ChargeClicked(GList *ChgList, SDL_Event event) > { > GList *ptr; > int x, y; > > while (ptr != NULL) { > ptr = g_list_next(ChgList); > x = ptr->data->rect.x; > y = ptr->data->rect.y; > if (event.button.x > x - 10 && event.button.x < x + 10) { > printf("click\n"); > } > } > return(ptr->data); > } You need to init ptr to the start of your list, and you need to cast ptr to ChargeStruct* (the compiler does not know what sort of thing you have in your list ... it just sees a dumb pointer). the usual g_idiom for iterating over lists is GList *i; for( i = ChargeList; i; i = i->next ) { ChargeStruct *puck = (ChargeStruct *) i->data; if( puck->rect.x ... etc. } John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From sven@gimp.org Mon Feb 25 13:45:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 247D918188 for ; Mon, 25 Feb 2002 13:45:40 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16fQ7o-00018W-00; Mon, 25 Feb 2002 19:45:24 +0100 To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: gtk-list Subject: Re: Scrollbar flickers when clock run References: <1014658705.1109.0.camel@flavio.maqplas> From: Sven Neumann Date: 25 Feb 2002 19:45:23 +0100 In-Reply-To: <1014658705.1109.0.camel@flavio.maqplas> Message-ID: Lines: 21 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Fl=E1vio Alberto Lopes Soares writes: > Hello all, I'm using GTK 1.2 and my application has a clock that run > always when I start the program, I make this clock using gtk_timeout_add > with 1 second of interval and each 1 second it changes a gtk_label to > show the elapsed time, and the program has too a CList with vertical > scrollbar, but this scrollbar is making randon flickering when the > numbers (gtk_label) of clock are swapped, why this occurs ? How to fix > this ? the GtkLabel you use for the clock has to recalculate its size when you change the text every second. Most probably this size change propagates to the GtkClist which has to adapt to the new size and thus redraws itself. Try to change your box layout so the label size doesn't affect the size of any other containers, especially not one that holds larger widgets like your GtkCList. Salut, Sven From pbd@op.net Mon Feb 25 14:15:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 2FB5618365 for ; Mon, 25 Feb 2002 14:15:40 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-412.phlpa.fast.net [209.92.100.158]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA06904; Mon, 25 Feb 2002 14:14:45 -0500 (EST) Message-Id: <200202251914.OAA06904@renoir.op.net> To: Sven Neumann Cc: Flávio Alberto Lopes Soares , gtk-list Subject: Re: Scrollbar flickers when clock run In-reply-to: Your message of "25 Feb 2002 19:45:23 +0100." Date: Mon, 25 Feb 2002 14:13:50 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >the GtkLabel you use for the clock has to recalculate its size when you >change the text every second. Most probably this size change propagates >to the GtkClist which has to adapt to the new size and thus redraws >itself. Try to change your box layout so the label size doesn't affect >the size of any other containers, especially not one that holds larger >widgets like your GtkCList. and maybe ensure the clock uses a fixed-size font, and a fixed format for the display, so that its size never actually changes. --p From flavio@maqplas.com.br Mon Feb 25 15:07:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pkdroid.ns1.com.br (pkdroid.ns1.com.br [200.185.44.16]) by mail.gnome.org (Postfix) with ESMTP id 4648218536 for ; Mon, 25 Feb 2002 15:07:07 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by pkdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1PK6wvD020181; Mon, 25 Feb 2002 17:06:59 -0300 (BRT) Subject: Re: Scrollbar flickers when clock run From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Sven Neumann Cc: gtk-list In-Reply-To: References: <1014658705.1109.0.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution/0.10 (Preview Release) Date: 25 Feb 2002 17:09:01 -0300 Message-Id: <1014667751.1108.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ok, it's true, my program has other modal window that has a CList too, and your scrollbar hasn't the problem while the clock is runing, probably this is the explanation about other problem that occurs in my program : it has a big pixmap (with green background) that blinks in about 400ms (usin gtk_timeout_add) swapping other pixmap with white background, when the clock and pixmap are runing this flicker occur with pixmap happening an "ugly effect". I will try something in this way. Thanks a lot Flavio Alberto Em 25 Feb 2002 19:45:23 +0100, Sven Neumann escreveu: > Hi, > > Flávio Alberto Lopes Soares writes: > > > Hello all, I'm using GTK 1.2 and my application has a clock that run > > always when I start the program, I make this clock using gtk_timeout_add > > with 1 second of interval and each 1 second it changes a gtk_label to > > show the elapsed time, and the program has too a CList with vertical > > scrollbar, but this scrollbar is making randon flickering when the > > numbers (gtk_label) of clock are swapped, why this occurs ? How to fix > > this ? > > the GtkLabel you use for the clock has to recalculate its size when you > change the text every second. Most probably this size change propagates > to the GtkClist which has to adapt to the new size and thus redraws > itself. Try to change your box layout so the label size doesn't affect > the size of any other containers, especially not one that holds larger > widgets like your GtkCList. > > > Salut, Sven From yfcho@ms9.hinet.net Mon Feb 25 18:07:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailout5.nyroc.rr.com (mailout5-1.nyroc.rr.com [24.92.226.169]) by mail.gnome.org (Postfix) with ESMTP id 60FCD182FF for ; Mon, 25 Feb 2002 18:07:28 -0500 (EST) Received: from talon (roc-24-161-69-214.rochester.rr.com [24.161.69.214]) by mailout5.nyroc.rr.com (8.11.6/Road Runner 1.12) with SMTP id g1PN7PM07430 for ; Mon, 25 Feb 2002 18:07:25 -0500 (EST) From: "Yu-Fong Cho" To: "GTK list" Subject: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? Date: Mon, 25 Feb 2002 18:07:06 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is a little different, so please take a look. Thank you!!! I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! I tried to install Netscape 6.2, but it keep telling me: error in loading shared libraries: libgtk-1.2.so.0: cannot open shared object file: No such file or directory. My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my whole file system. There is just no libgtk-1.2.so.0. What's wrong with it? Yu-Fong From superylam@netscape.net Mon Feb 25 20:39:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imo-m02.mx.aol.com (imo-m02.mx.aol.com [64.12.136.5]) by mail.gnome.org (Postfix) with ESMTP id 8C1ED18201 for ; Mon, 25 Feb 2002 20:39:32 -0500 (EST) Received: from superylam@netscape.net by imo-m02.mx.aol.com (mail_out_v32.5.) id t.f0.3190109 (16229); Mon, 25 Feb 2002 20:39:14 -0500 (EST) Received: from netscape.net (ip-244-195.cyberec.com [202.60.244.195]) by air-in02.mx.aol.com (v83.35) with ESMTP id MAILININ25-0225203913; Mon, 25 Feb 2002 20:39:13 -0500 Message-ID: <3C7AE6E4.40204@netscape.net> Date: Tue, 26 Feb 2002 09:37:40 +0800 From: Yick Lam User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: xpert@xfree86.org Cc: gtk-list@gnome.org Subject: Re: How X application distinguish input devices? References: <3C7A3C5F.7070000@netscape.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I posted this question and I found an answer with a guy who replied my email. There is an EXCELLENT example called xinput that complete solved my problem. The xinput description can be found at http://www.gtk.org/~otaylor/ (Owen Taylor). My heartiest thank to that guy who replied my email. Yick Hong Kong, China. superylam@netscape.net wrote: > Dear Sir, > > I have just devleoped a X input driver for my small graphic tablet. > It is a small tablet that is very popular in Hong Kong, Taiwan and China > for Chinese handwriting recoginition. It is working now. I have cursor > that will move according to mouse OR graphic tablet. > > Now I want to devlope a GTK application (honestly I posted this > question > in GTK mailing list) or X application that will ONLY respond the event > from > my graphic tablet. I have a callback function in my X application, > motion_notify_event and I have compared the event content > of my mouse and my graphic tablet and they look the same (the deviceid > content etc). and I have no way to distuguish whether the event is from the > mouse or from the graphic tablet. > > What did I do wrong in my driver? can please have a look at > http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether > I did wrong in the device driver? (BTW I would like if someone can > distribute > this driver). How can I pass special information from the driver to my X > applicaton? > > Yick Lam > Hong Kong, China > > > Yick > Hong Kong china > > > > > From scherfa@web.de Mon Feb 25 20:51:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id 86D69194FB for ; Mon, 25 Feb 2002 20:51:05 -0500 (EST) Received: from [143.93.58.8] (helo=rmpc06.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.28 #21) id 16fWkk-0005VZ-00; Tue, 26 Feb 2002 02:50:02 +0100 Subject: Re: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? From: Andreas Scherf To: Yu-Fong Cho Cc: Gtk Liste In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 26 Feb 2002 02:48:34 +0100 Message-Id: <1014688115.14155.2.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am Die, 2002-02-26 um 00.07 schrieb Yu-Fong Cho: > Hi, > > I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is > a little different, so please take a look. Thank you!!! > > I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any > gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so > and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! > > I tried to install Netscape 6.2, but it keep telling me: > > error in loading shared libraries: libgtk-1.2.so.0: cannot open shared > object file: No such file or directory. > > My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my > whole file system. There is just no libgtk-1.2.so.0. > > What's wrong with it? > > > Yu-Fong libgtk-1.2.so.0 is a link to the original lib: lrwxrwxrwx 1 root root 19 Jun 29 2001 libgtk-1.2.so.0 -> libgtk-1.2.so.0.9.1 you could add it by your won by tipping ln -s libgtk-1.2.so.0.10.x libgtk-1.2.so.0 You could look into $prefix/lib which gtk lib your are owning ... and fill the x with the right version.. Hope this helps Scherf -- Andreas Scherf ICQ: 52910964 scherfa@web.de From yfcho@ms9.hinet.net Mon Feb 25 21:05:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailout5.nyroc.rr.com (mailout5-1.nyroc.rr.com [24.92.226.169]) by mail.gnome.org (Postfix) with ESMTP id 3B021186EB for ; Mon, 25 Feb 2002 21:05:36 -0500 (EST) Received: from talon (roc-24-161-69-214.rochester.rr.com [24.161.69.214]) by mailout5.nyroc.rr.com (8.11.6/Road Runner 1.12) with SMTP id g1Q25VM01588; Mon, 25 Feb 2002 21:05:32 -0500 (EST) From: "Yu-Fong Cho" To: Cc: "Gtk Liste" Subject: RE: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? Date: Mon, 25 Feb 2002 21:05:12 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <1014688115.14155.2.camel@xerxes> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, My system only has libgtk-1.2.so --> libgtk-1.2.so.9 libgtk-1.2.so.9 I tried to link libgtk-1.2.so.0 --> libgtk-1.2.so.9 but Netscape 6.2 complained error in loading shared libraries: libgtk-1.2.so.0: ELF file OS ABI invalid. It looks like a Linux binary (Netscape) try to use a FreeBSD binary.... :-( That's all I got. Yu-Fong -----Original Message----- From: scherfa@web.de [mailto:scherfa@web.de] Sent: Monday, February 25, 2002 8:49 PM To: Yu-Fong Cho Cc: Gtk Liste Subject: Re: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? Am Die, 2002-02-26 um 00.07 schrieb Yu-Fong Cho: > Hi, > > I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is > a little different, so please take a look. Thank you!!! > > I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any > gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so > and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! > > I tried to install Netscape 6.2, but it keep telling me: > > error in loading shared libraries: libgtk-1.2.so.0: cannot open shared > object file: No such file or directory. > > My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my > whole file system. There is just no libgtk-1.2.so.0. > > What's wrong with it? > > > Yu-Fong libgtk-1.2.so.0 is a link to the original lib: lrwxrwxrwx 1 root root 19 Jun 29 2001 libgtk-1.2.so.0 -> libgtk-1.2.so.0.9.1 you could add it by your won by tipping ln -s libgtk-1.2.so.0.10.x libgtk-1.2.so.0 You could look into $prefix/lib which gtk lib your are owning ... and fill the x with the right version.. Hope this helps Scherf -- Andreas Scherf ICQ: 52910964 scherfa@web.de From s2108287@student.rmit.edu.au Tue Feb 26 00:27:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from its-mu-earth.its.rmit.edu.au (its-mu-earth.its.rmit.edu.au [131.170.2.10]) by mail.gnome.org (Postfix) with ESMTP id 5D24D18197 for ; Tue, 26 Feb 2002 00:27:26 -0500 (EST) Received: from student.rmit.edu.au (its-mn-ntce.its.rmit.edu.au [131.170.11.141]) by its-mu-earth.its.rmit.edu.au (8.10.1/8.10.1/ANTI-SPAM/ANTI-RELAY/EARTH) with ESMTP id g1Q5ROp15994 for ; Tue, 26 Feb 2002 16:27:24 +1100 (EST) Received: from bungalow [203.164.86.2] by student.rmit.edu.au with Novonyx SMTP Server $Revision: 2.75.1.9 $; Tue, 26 Feb 2002 16:27:25 +1100 (ESUT) Message-ID: <001401c1be86$2b92ca60$0300a8c0@bungalow> Reply-To: "Daniel Farrell" From: "Daniel Farrell" To: "GTK list" Subject: Compiling GTK+ 1.2.10 Date: Tue, 26 Feb 2002 16:26:40 +1100 Organization: RMIT MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0011_01C1BEE2.5ECAA630" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C1BEE2.5ECAA630 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I recently installed RedHat 7.0, then compiled kernel 2.4.17, and = installed XFree86 4.2.0, at this stage X works fine on my system. Next I was ready to start compiling Gnome 1.4 so ... compiled gmp 4.0.1, = gdbm 1.8.0, librep 0.15.2, glib 1.2.10 in that order. Then while configuring gtk+ 1.2.10, configure could find X include files = it wanted. So being a bit of a newbie I'm stumped. Does anybody know what I should = do? Or shouldn't have done? I would appreciate any response...Thanks Daniel Farrell. ------=_NextPart_000_0011_01C1BEE2.5ECAA630 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I recently installed RedHat 7.0,=20 then compiled kernel 2.4.17, and installed XFree86 4.2.0, at = this=20 stage X works fine on my system.
 
Next I was ready to start = compiling Gnome 1.4=20 so ... compiled gmp 4.0.1, gdbm 1.8.0, librep 0.15.2, glib = 1.2.10 in=20 that order.
 
Then while configuring gtk+ 1.2.10, = configure could=20 find X include files it wanted.
 
So being a bit of a newbie I'm=20 stumped.  Does anybody know what I should do? Or shouldn't = have=20 done?
 
I would appreciate any=20 response...Thanks
 
Daniel = Farrell.
------=_NextPart_000_0011_01C1BEE2.5ECAA630-- From kasonhuang@kinposh.com.cn Tue Feb 26 00:49:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 8030C182E9 for ; Tue, 26 Feb 2002 00:49:33 -0500 (EST) Subject: about GdkEventFocus and ...........? Date: Tue, 26 Feb 2002 13:48:30 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F822611AA@kes01.kinposh.com.cn> content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: about GdkEventFocus and ...........? Thread-Index: AcG+iTYlDaBPsSq3Eda2ugCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Cc: "Paul Davis" , "Havoc Pennington" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello, anyone could tell me two member variables of meaning in struct = GdkEventFocus of gtk source code. source code as following: struct _GdkEventFocus { GdkEventType type; GdkWindow *window; gint8 send_event; ----------->what meaning? gint16 in; ---------------------->what meaning? } why i want to ask that question. for i want to control the buttons focus move with keyboard (not by = mouse) in a gtktable not by the default done . anyone find that you couldn't move Parallelly the buttons focus in two = tables ,and you move buttons focus with up-down-left-right key in one = table sometime not as you expected. the following code is the problem about the buttons focus move in one = table,you can test it with up-down-left-right key then see the focus is = at the button as you expected. /*file ProblemInOneTable.c */ #include gint delete_event( GtkWidget *widget, GdkEvent *event,gpointer data ) { gtk_main_quit (); return(FALSE); } int main( int argc,char *argv[] ) { GtkWidget *window; GtkWidget *table; GtkWidget = *button1,*button2,*button3,*button4,*button5,*button6,*button7,*button8; =20 gtk_init (&argc, &argv); window =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "Table"); gtk_signal_connect (GTK_OBJECT (window), "delete_event", GTK_SIGNAL_FUNC (delete_event), NULL); gtk_container_set_border_width (GTK_CONTAINER (window), 20); table =3D gtk_table_new (4,4, TRUE); gtk_container_add (GTK_CONTAINER (window), table); button1 =3D gtk_button_new_with_label ("button 1"); gtk_table_attach_defaults (GTK_TABLE(table), button1, 0, 1, 0, 1); gtk_widget_show (button1); button2 =3D gtk_button_new_with_label ("button = 2");-------------------focus moves with down key not as expected? gtk_table_attach_defaults (GTK_TABLE(table), button2, 1, 2, 0,1); gtk_widget_show (button2); button3 =3D gtk_button_new_with_label ("button 3"); gtk_table_attach_defaults (GTK_TABLE(table), button3, 2, 3, 0, 1); gtk_widget_show (button3); button4 =3D gtk_button_new_with_label ("button = 4");------------------focus moves with down key not as expected? gtk_table_attach_defaults (GTK_TABLE(table), button4, 3, 4, 0,1); gtk_widget_show (button4); button5 =3D gtk_button_new_with_label ("button 5"); gtk_table_attach_defaults (GTK_TABLE(table), button5, 0, 1, 1, 2); gtk_widget_show (button5); button6 =3D gtk_button_new_with_label ("button 6"); gtk_table_attach_defaults (GTK_TABLE(table), button6, 1, 4, 1, 2); gtk_widget_show (button6); button7 =3D gtk_button_new_with_label ("button 7"); gtk_table_attach_defaults (GTK_TABLE(table), button7, 0,2,2, 3); gtk_widget_show (button7); button8 =3D gtk_button_new_with_label ("button 8"); gtk_table_attach_defaults (GTK_TABLE(table), button8, 2, 4, 2, 3); gtk_widget_show (button8); gtk_widget_show_all(window); gtk_main(); return 0; } someone knows this problem? Thanks in advance! kason From rwan@cs.mu.oz.au Tue Feb 26 01:01:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from vike.cs.mu.OZ.AU (vike.cs.mu.OZ.AU [128.250.36.73]) by mail.gnome.org (Postfix) with ESMTP id E08C1182DF for ; Tue, 26 Feb 2002 01:01:33 -0500 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 74BA675C0; Tue, 26 Feb 2002 17:01:32 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 74079ACAA for ; Tue, 26 Feb 2002 17:01:32 +1100 (EST) Date: Tue, 26 Feb 2002 17:01:32 +1100 (EST) From: Raymond Wan Reply-To: Raymond Wan To: gtk-list@gnome.org Subject: (1.3.15) - compiling pango In-Reply-To: <20020224065818.C5086241BE2@fresnel.labs.redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, On Sun, 24 Feb 2002, Owen Taylor wrote: > Overview of Changes in Pango 0.26 > ================================= > > * Fixes for AIX compilation [Miroslaw Dobrzanski-Neumann] > * Fix zero-width characters being displayed [Sven Neumann] > * Add some padding to class structures [Owen Taylor] I tried compiling pango and came up with some errors. I don't think I did anything wrong, though. The errors were: ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_ruleset_new' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_info_find_feature' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_ruleset_add_feature' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_ruleset_shape' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_info_new' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_info_find_script' while doing a make on pango. The problem occurs soon after it enters the pango-0.26/examples directory. I configured pango with: ./configure --prefix=$GTK_DIR --enable-shared --enable-static --with-included-loaders=xpm,png,gif,jpeg --with-included-modules=yes and have already installed pkgconfig and glib. As they're only examples, I may be able to continue installation without affecting my program, but perhaps someone should try it to prove that I'm not insane. :-) Thanks! Ray From anjali_grover@yahoo.com Tue Feb 26 05:02:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14608.mail.yahoo.com (web14608.mail.yahoo.com [216.136.224.88]) by mail.gnome.org (Postfix) with SMTP id CD45518150 for ; Tue, 26 Feb 2002 05:02:49 -0500 (EST) Message-ID: <20020226100248.69046.qmail@web14608.mail.yahoo.com> Received: from [155.69.5.223] by web14608.mail.yahoo.com via HTTP; Tue, 26 Feb 2002 02:02:48 PST Date: Tue, 26 Feb 2002 02:02:48 -0800 (PST) From: Anjali Grover Subject: Making a label text bold To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In order to get a bold label text, I loaded the desired font into GtkFont boldfont; Then I tried to get bold label text via: label=gtk_label_new(text); style = gtk_widget_get_style(label); style->font = boldfont; The result was everything bold, inlcuding the text in all buttons on my window. Then, I made a copy of GdkStyle, so I tried: label=gtk_label_new(text); style = gtk_widget_get_style(label); bstyle = *style; bstyle.font = boldfont; gtk_widget_set_style(label, &bstyle); The result was: nothing bold. I can't trace the problem:( Regards, Anjali __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From rhfreeman@micron.com Tue Feb 26 06:59:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id C550E181BB for ; Tue, 26 Feb 2002 06:59:53 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g1QBxrV16918 for ; Tue, 26 Feb 2002 04:59:53 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g1QBxqe16912 for ; Tue, 26 Feb 2002 04:59:52 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Tue, 26 Feb 2002 04:59:52 -0700 Message-ID: From: rhfreeman To: "'gtk-list@gnome.org'" Subject: ItemFactory callbacks not quite working Date: Tue, 26 Feb 2002 04:59:47 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Folks, I've got these few snips of code: void set_xaxis_context(gpointer cb_data, guint action, GtkWidget *w); static GtkItemFactoryEntry context_menu[] = { { "/Set X-Axis", NULL, set_xaxis_context, 0, NULL }, }; w_layout[number].context_menu=gtk_item_factory_new(GTK_TYPE_MENU, "
", NULL); gtk_item_factory_create_items(w_layout[number].context_menu, nmenu_items, context_menu, NULL); gtk_object_set_data(GTK_OBJECT(w_layout[number].context_menu), "id", GINT_TO_POINTER(number)); void set_xaxis_context(gpointer cb_data, guint action, GtkWidget *widget) { gpointer data; data=gtk_object_get_data(GTK_OBJECT(widget), "id"); if (data!=NULL) printf("ID %d\n", GPOINTER_TO_INT(data)); else printf("NULL!\n"); } gint button_press_event(GtkWidget *widget, GdkEventButton *event, gpointer data) { // other stuff if(event->button==3) { gtk_item_factory_popup(w_layout[foc].context_menu, (guint) event->x_root, (guint) event->y_root, 1, 0); return TRUE; } return FALSE; } This code all looks good. I press the RMB on my area and the popup menu appears normally. When I click on the "Set X-Axis" item the callback is called but it always returns NULL. I've tried using the widget->parent widget instead and that didn't help. Can anyone point out what I am doing wrong? Thanks! Rich From sven@gimp.org Tue Feb 26 07:34:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id C429118FD7 for ; Tue, 26 Feb 2002 07:34:58 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16fgop-0000f2-00; Tue, 26 Feb 2002 13:34:55 +0100 To: =?cn-big5?b?tsC8eQ==?= Kason Huang Cc: Subject: Re: about GdkEventFocus and ...........? References: <92CD479384374A439EFA0077E7C50F822611AA@kes01.kinposh.com.cn> From: Sven Neumann Date: 26 Feb 2002 13:34:54 +0100 In-Reply-To: <92CD479384374A439EFA0077E7C50F822611AA@kes01.kinposh.com.cn> Message-ID: Lines: 26 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=cn-big5 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, =B6=C0=BCy Kason Huang writes: > anyone could tell me two member variables of meaning in struct GdkEventFo= cus of gtk source code. > source code as following: > struct _GdkEventFocus > { > GdkEventType type; > GdkWindow *window; > gint8 send_event; ----------->what meaning? > gint16 in; ---------------------->what meaning? > } this maps pretty close to X11, so reading the XFocusChangeEvent docs may help send_event: TRUE if this came from a SendEvent request in : TRUE for FocusIn, FALSE for FocusOut Salut, Sven BTW: Could you try to send emails with shorter lines? Your mails are hard to read which makes it less probable that someone takes the time to answer them. From mssuser@localhost.localdomain Tue Feb 26 08:18:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.224.172]) by mail.gnome.org (Postfix) with ESMTP id 883C718471 for ; Tue, 26 Feb 2002 08:18:28 -0500 (EST) Received: from localhost (localhost [[UNIX: localhost]]) by localhost.localdomain (8.11.2/8.11.2) id g1O9wv202410 for gtk-list@gnome.org; Sun, 24 Feb 2002 15:28:57 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: gtk-list@gnome.org Subject: [INIMSS] How can I get the GList of items in a GtkList. Date: Sun, 24 Feb 2002 15:28:53 +0530 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02022415285301.00975@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All How can I get the pointer to the Glist of all the items in a GtkList of a GtkCombo? I am trying to get the index of the currently selected item in the list. Thank You Dino From hp@redhat.com Tue Feb 26 09:43:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 1BE89182D6 for ; Tue, 26 Feb 2002 09:43:28 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1QEhQd21881; Tue, 26 Feb 2002 09:43:26 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Anjali Grover Cc: gtk-list@gnome.org Subject: Re: Making a label text bold References: <20020226100248.69046.qmail@web14608.mail.yahoo.com> From: Havoc Pennington Date: 26 Feb 2002 09:43:26 -0500 In-Reply-To: <20020226100248.69046.qmail@web14608.mail.yahoo.com> Message-ID: Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Anjali Grover writes: > > In order to get a bold label text, I loaded the > desired font into GtkFont boldfont; > > Then I tried to get bold label text via: > label=gtk_label_new(text); > style = gtk_widget_get_style(label); > style->font = boldfont; > > The result was everything bold, inlcuding the text in > all buttons on my window. > > Then, I made a copy of GdkStyle, so I tried: > > label=gtk_label_new(text); > style = gtk_widget_get_style(label); > bstyle = *style; > bstyle.font = boldfont; > gtk_widget_set_style(label, &bstyle); > > The result was: nothing bold. You want to use gtk_widget_modify_style() probably. See http://pobox.com/~hp/gtk-colors.html In GTK 2 (1.3.15 is the most recent GTK 2 beta) you could use gtk_label_set_markup() or gtk_widget_modify_font() instead, which would be a lot easier. Havoc From ramses@computer.org Tue Feb 26 16:39:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id 791E918155; Tue, 26 Feb 2002 16:39:49 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020226214014.SZVF480.sv16@adsl50>; Tue, 26 Feb 2002 16:40:14 -0500 Subject: I think I found a freak bug on GTK+-1.3.15 From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 26 Feb 2002 16:47:54 -0500 Message-Id: <1014760074.1197.5.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If I compile an app with this two lines: GtkTreeViewColumn *ca; GtkTreeViewColumn *cb; When I run the app, I get a Segmentation Fault. *cb isn't used on the code. If I compile the app after comenting: GtkTreeViewColumn *ca; /*GtkTreeViewColumn *cb;*/ ...it runs nicely. This is wierd. From rwalden@tripos.com Tue Feb 26 16:48:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id D8E971821B for ; Tue, 26 Feb 2002 16:48:51 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id PAA10547 for ; Tue, 26 Feb 2002 15:48:51 -0600 (CST) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma010534; Tue, 26 Feb 02 15:48:00 -0600 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id PAA24217 for ; Tue, 26 Feb 2002 15:47:59 -0600 (CST) Message-ID: <3C7C028F.BEE311DD@tripos.com> Date: Tue, 26 Feb 2002 15:47:59 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: GTK List Subject: Re: GTK_TYPE_BOXED References: <3C7A694E.FE8E50DD@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Can anyone comment on the changes between 1.2 and 2.0 that woud break code using gtk_type_unique(GTK_TYPE_BOXED, &some_subclass_info ); in the _get_type function for a derived type? Thanks, Ralph Walden Ralph Walden wrote: > > I'm attempting to port some gtk+-1.2 widgets to 2.0 (1.3.13 actually) > and I'm running into a problem with an object that is derived from > a GTK_TYPE_BOXED type. This seems to cause a segfault in the g_type > system. > > I found some mention of this in the some of the list archives, but I > couldn't > figure what the resolution was. > > Is it an O.K. thing to derive objects from GTK_TYPE_BOXED and expect it > to > work with the new g_type system? > > Sorry for being so vague, but I'm on the fuzzy frontier of the > understanding > of my own problem... :) > > Thanks, > > Ralph Walden > > -- > > Ralph E. Walden > Tripos, Inc. > rwalden@tripos.com > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Tue Feb 26 17:09:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id F1CD018AB1 for ; Tue, 26 Feb 2002 17:09:01 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1QM8x831894; Tue, 26 Feb 2002 17:08:59 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ralph Walden Cc: GTK List Subject: Re: GTK_TYPE_BOXED References: <3C7A694E.FE8E50DD@tripos.com> <3C7C028F.BEE311DD@tripos.com> From: Havoc Pennington Date: 26 Feb 2002 17:08:59 -0500 In-Reply-To: <3C7C028F.BEE311DD@tripos.com> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > Can anyone comment on the changes between 1.2 and 2.0 that > woud break code using > > gtk_type_unique(GTK_TYPE_BOXED, &some_subclass_info ); > > in the _get_type function for a derived type? > You probably want g_boxed_type_register_static() instead. Havoc From pbd@op.net Tue Feb 26 17:23:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D86C51812F; Tue, 26 Feb 2002 17:23:35 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-239.phlpa.fast.net [209.92.96.239]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id RAA29528; Tue, 26 Feb 2002 17:22:44 -0500 (EST) Message-Id: <200202262222.RAA29528@renoir.op.net> To: Rams s Morales Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: I think I found a freak bug on GTK+-1.3.15 In-reply-to: Your message of "26 Feb 2002 16:47:54 EST." <1014760074.1197.5.camel@adsl50> Date: Tue, 26 Feb 2002 17:22:03 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >If I compile an app with this two lines: > >GtkTreeViewColumn *ca; >GtkTreeViewColumn *cb; > >When I run the app, I get a Segmentation Fault. *cb isn't used on the >code. > >If I compile the app after comenting: > >GtkTreeViewColumn *ca; >/*GtkTreeViewColumn *cb;*/ > >...it runs nicely. > >This is wierd. it may or may not be wierd, but its the classic fingerprint of a memory overrun bug in your code. the extra declaration of "cb" changes the memory layout of other variables in a way that causes the memory overrun to have a visible effect. there are not too many fast ways to debug this. electric fence is not bad, dmalloc can help sometimes, purify is good but costs money for the real thing and is pretty big. i generally find that deep meditation while reading the code and a few printfs most helpful. --p From torriem@cs.byu.edu Tue Feb 26 17:33:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from divit.cs.byu.edu (divit.cs.byu.edu [128.187.168.136]) by mail.gnome.org (Postfix) with ESMTP id 3674D1812F; Tue, 26 Feb 2002 17:33:38 -0500 (EST) Received: (from caseih@localhost) by divit.cs.byu.edu (8.11.6/8.9.3) id g1QMXUo32623; Tue, 26 Feb 2002 15:33:30 -0700 X-Authentication-Warning: divit.cs.byu.edu: caseih set sender to torriem@cs.byu.edu using -f Subject: Re: I think I found a freak bug on GTK+-1.3.15 From: Michael Torrie To: =?ISO-8859-1?Q?Rams=E9s?= Morales Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org In-Reply-To: <1014760074.1197.5.camel@adsl50> References: <1014760074.1197.5.camel@adsl50> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-sgV79JrogDTT8yBKJZBI" X-Mailer: Evolution/1.0.2 Date: 26 Feb 2002 15:33:30 -0700 Message-Id: <1014762810.32494.14.camel@divit.cs.byu.edu> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-sgV79JrogDTT8yBKJZBI Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, 2002-02-26 at 14:47, Rams=E9s Morales wrote: > If I compile an app with this two lines: >=20 > GtkTreeViewColumn *ca; > GtkTreeViewColumn *cb; >=20 > When I run the app, I get a Segmentation Fault. *cb isn't used on the > code. >=20 > If I compile the app after comenting: >=20 > GtkTreeViewColumn *ca; > /*GtkTreeViewColumn *cb;*/ >=20 > ...it runs nicely. >=20 > This is wierd. This type of thing is very likely indicative of some memory corruption in your code. It's unlikely to be in gtk (but could be). Just the fact that removing the second pointer declaration makes it work indicates that it's your code that's messing up somewhere. Just declaring a pointer doesn't do any object initialization (ie gtk_tree_view_new type stuff). What it does do is change your stack layout slightly such that whatever memory corruption you're doing won't cause an immediate crash when you remove that unused variable. Adding it back in changes offsets just slightly so that something important on the stack is overwritten. Pointer errors always maifest themselves in this type of manner. Very frustrating. Good luck. You'll want to run your code through DDD debugger. It has some very powerful facilities for viewing your variables etc. You can then watch what happens when the offending line is executed. Also you can load the core file into the debugger after the fact and see what line triggered the core dump, see the variables, etc. Should help you establish what's happening. (DDD is run by the command ddd. It's downloadable from the internet too -- see freshmeat.net) Michael >=20 >=20 >=20 > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list --=20 Public key available from http://students.cs.byu.edu/~torriem --=-sgV79JrogDTT8yBKJZBI Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8fA069bTmAa2MOJ8RAv5aAKCZX9ftnoDGKaNS0eQgjRP8CPqvpACgphjV boS2et4NQ7l1qTemwTWLVSk= =3SYB -----END PGP SIGNATURE----- --=-sgV79JrogDTT8yBKJZBI-- From rbultje@ronald.bitfreak.net Tue Feb 26 17:41:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id CE25818DCE for ; Tue, 26 Feb 2002 17:41:13 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1QMUu4K002400 for ; Tue, 26 Feb 2002 23:30:58 +0100 (CET) Subject: gtkfileselectiondialog is slow? From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 26 Feb 2002 23:41:10 +0100 Message-Id: <1014763272.18710.77.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, if I do the following on a gtkfileselectiondialog in gtk-1.3.14: * go to dir / using GtkOptionMenu widget * click dir media/ in the folders window * click dir mp3/ in the folders window * in the right window (files), go to the bottom of this dir (it has about 1000 files) * now, double click "../" in the left window (folders) It will take a terrible amount of time for the thing to load the "../" dir or to unload the current dir (I don't know exactly). Since entering this directory happens almost instanteniously, I suppose this is a small design flaw or so in the widget? I'd be tempted to call it a bug but it doesn't crash ;-). Should I file this on bugzilla or is this fixed in 1.3.15? (sorry, I haven't had the time yet to upgrade to 1.3.15, I will do so this weekend). Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From ramses@computer.org Tue Feb 26 18:26:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id B0A21182A1; Tue, 26 Feb 2002 18:26:17 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020226232642.TNCI480.sv16@adsl50>; Tue, 26 Feb 2002 18:26:42 -0500 Subject: Re: I think I found a freak bug on GTK+-1.3.15 From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org In-Reply-To: <1014760074.1197.5.camel@adsl50> References: <1014760074.1197.5.camel@adsl50> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 26 Feb 2002 18:34:22 -0500 Message-Id: <1014766463.1169.2.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yup, the problem is some pointer on my code, not a GTK+ bug. I'll hunt it with njam. Thanks for your help. From lnx1138@us.ibm.com Tue Feb 26 19:47:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sm11.texas.rr.com (sm11.texas.rr.com [24.93.35.42]) by mail.gnome.org (Postfix) with ESMTP id 2AA2F185B5 for ; Tue, 26 Feb 2002 19:47:50 -0500 (EST) Received: from cs24273-101.austin.rr.com (cs24273-101.austin.rr.com [24.27.3.101]) by sm11.texas.rr.com (8.12.1/8.12.0) with ESMTP id g1R0icKW020318 for ; Tue, 26 Feb 2002 18:44:43 -0600 Subject: cancelling/aborting an emitted signal From: Luciano Chavez To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 26 Feb 2002 18:46:50 -0600 Message-Id: <1014770815.8243.17.camel@localhost> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, Can someone suggest the proper generic way to abort a signal from actually causing the default handler to change the widget value. Must I connect the signal handler in a certain order? For example, in a "toggled" signal handler for a toggle button if some condition is true then I want the "toggled" signal to be canceled so the widget does not signify the change (a checkmark displayed or removed). I've tried the following but get a Gtk Warning indicating there is to no emitted signal to stop: gtk_signal_emit_stop_by_name (GTK_OBJECT (button), "toggled"); Again, I want to know the generic method to cancel a signal within a signal handler so the widget does not reflect the change. This applies to GtkAdjustment value changes (for GtkHScale and GtkSpinButton changes), GtkCList row selection and unselection, and others. -- regards, Luciano Chavez lnx1138@us.ibm.com http://sf.net/projects/evms From Steph.Fox@btinternet.com Tue Feb 26 19:55:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gadolinium.btinternet.com (gadolinium.btinternet.com [194.73.73.111]) by mail.gnome.org (Postfix) with ESMTP id 9B3F6185B5 for ; Tue, 26 Feb 2002 19:55:56 -0500 (EST) Received: from host213-1-199-78.in-addr.btopenworld.com ([213.1.199.78] helo=t2r1o8) by gadolinium.btinternet.com with smtp (Exim 3.22 #8) id 16fsNt-0003bC-00; Wed, 27 Feb 2002 00:55:53 +0000 Message-ID: <00ef01c1bf29$32786580$73417bd5@t2r1o8> From: "Steph" To: "Luciano Chavez" , References: <1014770815.8243.17.camel@localhost> Subject: Re: cancelling/aborting an emitted signal Date: Wed, 27 Feb 2002 00:53:33 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: can't you just set_sensitive(false)? - otherwise, signal_handler_block() is your friend. ----- Original Message -----=20 From: "Luciano Chavez" To: Sent: Wednesday, February 27, 2002 12:46 AM Subject: cancelling/aborting an emitted signal > Hello, >=20 > Can someone suggest the proper generic way to abort a signal from > actually causing the default handler to change the widget value. Must = I > connect the signal handler in a certain order? >=20 > For example, in a "toggled" signal handler for a toggle button if some > condition is true then I want the "toggled" signal to be canceled so = the > widget does not signify the change (a checkmark displayed or removed). > I've tried the following but get a Gtk Warning indicating there is to = no > emitted signal to stop: >=20 > gtk_signal_emit_stop_by_name (GTK_OBJECT (button), "toggled"); >=20 > Again, I want to know the generic method to cancel a signal within a > signal handler so the widget does not reflect the change. This applies > to GtkAdjustment value changes (for GtkHScale and GtkSpinButton > changes), GtkCList row selection and unselection, and others. > =20 > --=20 > regards, >=20 > Luciano Chavez >=20 > lnx1138@us.ibm.com =20 > http://sf.net/projects/evms >=20 > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From seberino@dt092n42.san.rr.com Tue Feb 26 20:02:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F2813185B5 for ; Tue, 26 Feb 2002 20:02:11 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16fsUH-0001R5-00 for gtk-list@gnome.org; Tue, 26 Feb 2002 17:02:29 -0800 Date: Tue, 26 Feb 2002 17:02:29 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: Does *packing* a drawing area into a box fire off a configure event? Message-ID: <20020226170228.A5520@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: By adding print statements it seems that when I pack a drawing area into a box that a configure or expose event gets fired. even before gtk_main gets called and show widget commands. Is this right? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Tue Feb 26 20:03:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 6A03718D50 for ; Tue, 26 Feb 2002 20:03:42 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-96.phlpa.fast.net [209.92.96.96]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA19387; Tue, 26 Feb 2002 20:03:40 -0500 (EST) Message-Id: <200202270103.UAA19387@renoir.op.net> To: Luciano Chavez Cc: gtk-list@gnome.org Subject: Re: cancelling/aborting an emitted signal In-reply-to: Your message of "26 Feb 2002 18:46:50 CST." <1014770815.8243.17.camel@localhost> Date: Tue, 26 Feb 2002 20:03:01 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hello, > >Can someone suggest the proper generic way to abort a signal from >actually causing the default handler to change the widget value. Must I >connect the signal handler in a certain order? > >For example, in a "toggled" signal handler for a toggle button if some >condition is true then I want the "toggled" signal to be canceled so the >widget does not signify the change (a checkmark displayed or removed). >I've tried the following but get a Gtk Warning indicating there is to no >emitted signal to stop: > >gtk_signal_emit_stop_by_name (GTK_OBJECT (button), "toggled"); catch the button_press_event and you'll probably find that you're in better shape. also, check and double check that you're calling it on the correct widget - i've sometimes done cut-n-paste ops that have led to that error message. >Again, I want to know the generic method to cancel a signal within a >signal handler so the widget does not reflect the change. This applies >to GtkAdjustment value changes (for GtkHScale and GtkSpinButton >changes), GtkCList row selection and unselection, and others. i do this a LOT in my code, and i always use gtk_signal_emit_stop_by_name(), but i always catch the underlying events (button press/release etc.), not the "translations" like clicked/selected/activate and so forth. you also need to still return TRUE, sometimes. --p From ruben@mrbrklyn.com Tue Feb 26 22:53:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www2.mrbrklyn.com (dsl254-112-136.nyc1.dsl.speakeasy.net [216.254.112.136]) by mail.gnome.org (Postfix) with ESMTP id 049D318122 for ; Tue, 26 Feb 2002 22:53:40 -0500 (EST) Received: from www2 (localhost [127.0.0.1]) by www2.mrbrklyn.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g1R3rdS15972 for ; Tue, 26 Feb 2002 22:53:39 -0500 Date: Tue, 26 Feb 2002 22:53:39 -0500 From: Ruben I Safir To: gtk-list@gnome.org Subject: Balsa Message-ID: <20020226225339.A15963@www2.mrbrklyn.com> Reply-To: ruben@mrbrklyn.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.2.3 Lines: 20 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Anyone seen the Balsa Product lately? Ruben -- __________________________ Brooklyn Linux Solutions __________________________ http://www.mrbrklyn.com - Consulting http://www.brooklynonline.com - For the love of Brooklyn http://www.nylxs.com - Leadership Development in Free Software http://www.nyfairuse.org - The foundation of Democracy http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from around the net http://www2.mrbrklyn.com/mp3/sins.mp3 - C'est La Vie and a boy named Joe http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn.... 1-718-382-5752 From mssuser@localhost.localdomain Tue Feb 26 23:26:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.224.172]) by mail.gnome.org (Postfix) with ESMTP id B07D718185 for ; Tue, 26 Feb 2002 23:25:58 -0500 (EST) Received: from localhost (localhost [[UNIX: localhost]]) by localhost.localdomain (8.11.2/8.11.2) id g1R4SgP01258 for gtk-list@gnome.org; Wed, 27 Feb 2002 09:58:42 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: gtk-list@gnome.org Subject: [INIMSS] How can I get the GList of items in a GtkList. Date: Wed, 27 Feb 2002 09:58:39 +0530 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02022709583900.01123@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All How can I get the pointer to the Glist of all the items in a GtkList of a GtkCombo? I am trying to get the index of the currently selected item in the list. Thank You Dino From wombat@borg.apana.org.au Tue Feb 26 23:52:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from borg.apana.org.au (borg.apana.org.au [203.11.114.137]) by mail.gnome.org (Postfix) with ESMTP id 1F1C21833B for ; Tue, 26 Feb 2002 23:52:26 -0500 (EST) Received: from developer ([10.0.0.23] ident=mail) by borg.apana.org.au with esmtp (Exim 3.12 #1 (Debian)) id 16fw4j-0004ck-00 for ; Wed, 27 Feb 2002 12:52:21 +0800 Received: from wombat by developer with local (Exim 3.34 #1 (Debian)) id 16fw6D-0000Xl-00 for ; Wed, 27 Feb 2002 12:53:53 +0800 Subject: file handling with fopen() and fclose() From: John Breen To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 27 Feb 2002 12:53:53 +0800 Message-Id: <1014785633.976.49.camel@developer> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Help! I'm in the process of developing an app. using gtk1.2 that requires the user to login, and thus needs to read /etc/shadow to get username and password info. Problem is, I've tried doing it with something like fp=fopen("/etc/shadow"); if(fp==NULL) fatal_error("cannot open file"); fclose(fp); showmessage("login processing done"); and are my own functions that work ok - i have tested them, so they're not at issue here. Problem is that the code never gets to either the showmessage() or fatalerror() calls. I need to do line-by-line text processing with fp, so a stream-based approach that lets me use fgets() is better. Is there a workaround? Has anyone run into similar problems? I have very similar code working fine in an ncurses-based version, but this is really bugging me. TIA, John Breen From Valdis.Kletnieks@vt.edu Wed Feb 27 00:05:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 025BB1833B for ; Wed, 27 Feb 2002 00:05:09 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1R550Vj027116; Wed, 27 Feb 2002 00:05:00 -0500 Message-Id: <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: John Breen Cc: gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() In-Reply-To: Your message of "Wed, 27 Feb 2002 12:53:53 +0800." <1014785633.976.49.camel@developer> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-534300354P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 27 Feb 2002 00:04:59 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-534300354P Content-Type: text/plain; charset=us-ascii On Wed, 27 Feb 2002 12:53:53 +0800, John Breen said: > fp=fopen("/etc/shadow"); SYNOPSIS #include FILE *fopen(const char *path, const char *mode); Might want to pass a mode there, it would SIGSEGV pretty quickly otherwise. Also, note that /etc/shadow is probably only readable by root - which means that you're in for *LOADS* of security fun (you get to run set-UID, or run as root, or figure out how to use PAM on systems that support it). Personally, I think PAM is your best bet if you can use it. -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_-534300354P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8fGj7cC3lWbTT17ARAtH0AJ0dyb+2mKPuQ+T6wssjMqYam8iJQQCgnpVp xrI13SbK/8pLgcKCxipFp/w= =HS9C -----END PGP SIGNATURE----- --==_Exmh_-534300354P-- From wombat@borg.apana.org.au Wed Feb 27 00:17:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from borg.apana.org.au (borg.apana.org.au [203.11.114.137]) by mail.gnome.org (Postfix) with ESMTP id 28FE71929B for ; Wed, 27 Feb 2002 00:17:11 -0500 (EST) Received: from developer ([10.0.0.23] ident=mail) by borg.apana.org.au with esmtp (Exim 3.12 #1 (Debian)) id 16fwSt-0004gQ-00 for ; Wed, 27 Feb 2002 13:17:19 +0800 Received: from wombat by developer with local (Exim 3.34 #1 (Debian)) id 16fwUO-0000Z7-00 for ; Wed, 27 Feb 2002 13:18:52 +0800 Subject: Re: file handling with fopen() and fclose() From: John Breen To: gtk-list@gnome.org In-Reply-To: <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 27 Feb 2002 13:18:51 +0800 Message-Id: <1014787131.976.56.camel@developer> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-27 at 13:04, Valdis.Kletnieks@vt.edu wrote: > On Wed, 27 Feb 2002 12:53:53 +0800, John Breen said: > > > fp=fopen("/etc/shadow"); > > SYNOPSIS > #include > > FILE *fopen(const char *path, const char *mode); sorry, the code is actually fp = fopen("/etc/shadow", "r"); > > > Might want to pass a mode there, it would SIGSEGV pretty quickly otherwise. > > Also, note that /etc/shadow is probably only readable by root - which means > that you're in for *LOADS* of security fun (you get to run set-UID, or > run as root, or figure out how to use PAM on systems that support it). the code's been compiled, and then chgrp shadow executable chmod g+s executable which means that the app will be run if by a member of the shadow group, which is the group on /etc/shadow, and has read-access to /etc/shadow. > > Personally, I think PAM is your best bet if you can use it. I hadn't thought of PAM (and don't know how to use it in the context of this app. anyway :( ) the thing is, it works ok for me in a console version, just won't work in GTK+ - it seems to get to the first line using the file after fopen() and close the app down totally. oh well, time to climb the ol' learning curve again. shame, 'cause i wanted to get this bit out of the way quickly - the rest of the app should be pretty easy after that... cheers, John Breen From anjali_grover@yahoo.com Wed Feb 27 00:59:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14602.mail.yahoo.com (web14602.mail.yahoo.com [216.136.224.82]) by mail.gnome.org (Postfix) with SMTP id 0546B181DF for ; Wed, 27 Feb 2002 00:59:30 -0500 (EST) Message-ID: <20020227055929.90176.qmail@web14602.mail.yahoo.com> Received: from [155.69.5.123] by web14602.mail.yahoo.com via HTTP; Tue, 26 Feb 2002 21:59:29 PST Date: Tue, 26 Feb 2002 21:59:29 -0800 (PST) From: Anjali Grover Subject: Undefined references fro Gtkdatabox To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have follwed the installation steps ('./configure' followed by 'make' an then 'make install') fro GtkDatabox. I can successfully run the testdatabox. However, when I copy-paste the code for say the basic data box to my pre-existing gtk program in another directory, I get undefined references for the databox functions at run-time. (I can compile the code) I believe I would have to copy the databox libraries to my previous original set of other gtk libraries. I am not sure how to do this??? Thanx, Anjali __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com From michael@cs.millersville.edu Wed Feb 27 06:24:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.millersville.edu (cs.millersville.edu [166.66.64.14]) by mail.gnome.org (Postfix) with ESMTP id 080B71865F for ; Wed, 27 Feb 2002 06:24:16 -0500 (EST) Received: from cs.millersville.edu (localhost.0.0.127.in-addr.arpa [127.0.0.1] (may be forged)) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RBNwIQ004892; Wed, 27 Feb 2002 06:23:59 -0500 Received: from localhost (michael@localhost) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RBNw5X004888; Wed, 27 Feb 2002 06:23:58 -0500 Date: Wed, 27 Feb 2002 06:23:58 -0500 (EST) From: Michael Mitton To: Valdis.Kletnieks@vt.edu Cc: John Breen , Subject: Re: file handling with fopen() and fclose() In-Reply-To: <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Even with PAM you need to be root. I had this trouble myself and ended up writing a helper script that ran suid as root and passed login info via pipes. If you are not root, it seems to only auth the user your are running your script as. -Michael On Wed, 27 Feb 2002 Valdis.Kletnieks@vt.edu wrote: > On Wed, 27 Feb 2002 12:53:53 +0800, John Breen said: > > > fp=fopen("/etc/shadow"); > > SYNOPSIS > #include > > FILE *fopen(const char *path, const char *mode); > > > Might want to pass a mode there, it would SIGSEGV pretty quickly otherwise. > > Also, note that /etc/shadow is probably only readable by root - which means > that you're in for *LOADS* of security fun (you get to run set-UID, or > run as root, or figure out how to use PAM on systems that support it). > > Personally, I think PAM is your best bet if you can use it. > > -- > Valdis Kletnieks > Computer Systems Senior Engineer > Virginia Tech > > From sven@gimp.org Wed Feb 27 08:02:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 98C52187B2 for ; Wed, 27 Feb 2002 08:02:46 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16g3j8-0000ZA-00; Wed, 27 Feb 2002 14:02:34 +0100 To: John Breen Cc: gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> <1014787131.976.56.camel@developer> From: Sven Neumann Date: 27 Feb 2002 14:02:33 +0100 In-Reply-To: <1014787131.976.56.camel@developer> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, John Breen writes: > > Also, note that /etc/shadow is probably only readable by root - which means > > that you're in for *LOADS* of security fun (you get to run set-UID, or > > run as root, or figure out how to use PAM on systems that support it). > > the code's been compiled, and then > > chgrp shadow executable > chmod g+s executable > > which means that the app will be run if by a member of the shadow group, > which is the group on /etc/shadow, and has read-access to /etc/shadow. which is actually a very bad idea for a GUI application. You can as well make /etc/shadow world-readable then. See http://gtk.org/setuid.html. GTK+-2.0 will even refuse to run if you make the executable setuid or setgid. Salut, Sven From wombat@borg.apana.org.au Wed Feb 27 08:25:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (relay1-us.simplemente.net [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id DCF3718E5E for ; Wed, 27 Feb 2002 08:25:22 -0500 (EST) Received: from borg.apana.org.au (borg.apana.org.au [203.11.114.137]) by relay1-us.simplemente.net (Postfix) with ESMTP id C89B2D780E for ; Wed, 27 Feb 2002 08:25:18 -0500 (EST) Received: from developer ([10.0.0.23] ident=mail) by borg.apana.org.au with esmtp (Exim 3.12 #1 (Debian)) id 16g3sY-0005V2-00 for ; Wed, 27 Feb 2002 21:12:18 +0800 Received: from wombat by developer with local (Exim 3.34 #1 (Debian)) id 16g3u2-0000tP-00 for ; Wed, 27 Feb 2002 21:13:50 +0800 Subject: Re: file handling with fopen() and fclose() From: John Breen To: gtk-list@gnome.org In-Reply-To: References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> <1014787131.976.56.camel@developer> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 27 Feb 2002 21:13:49 +0800 Message-Id: <1014815629.1706.68.camel@developer> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-27 at 21:02, Sven Neumann wrote: > Hi, > > John Breen writes: > > > which is actually a very bad idea for a GUI application. You can as > well make /etc/shadow world-readable then. See http://gtk.org/setuid.html. > GTK+-2.0 will even refuse to run if you make the executable setuid or > setgid. > > Ok, I sit corrected. I guess I'll have to add more overhead and figure out _how_ to handle the authentication. PAM _looks_ like it will do it, but then again maybe not. Has anyone done such a thing then, and prepared to share the methodology? If not the code? Regards, John Breen From satyajit.kanungo@wipro.com Wed Feb 27 09:58:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by mail.gnome.org (Postfix) with ESMTP id 54A4218844 for ; Wed, 27 Feb 2002 09:58:20 -0500 (EST) Received: from m2vwall5.wipro.com (m2vwall5.wipro.com [10.115.50.5]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id g1REwJe07948 for ; Wed, 27 Feb 2002 20:28:19 +0530 (IST) Received: from satyajit ([10.114.9.188]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GS75JN00.HZ0 for ; Wed, 27 Feb 2002 20:27:23 +0530 From: "satyajit kanungo" To: Subject: drawing area and expose event Date: Wed, 27 Feb 2002 20:35:37 +0530 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All I have a gtk drawing area put in a window. I have a function to draw something on this drawing area [ using GdkRGB gdk_draw_rgb_image (darea,..) call ] Now I find if I directly call this funtion to draw on to the drawing area I get warnings such as : GLib-GObject-WARNING **: invalid cast from (NULL) pointer to `GdkDrawable' Gdk-CRITICAL **: file gdkdraw.c: line 244: assertion `GDK_IS_DRAWABLE (drawable)' failed Then I attached an "expose-event" to the drawing area and in the callback I put the same function(drawing fuction) and it draws properly . Do we always need to attach the expose event to the drawing area to draw anything on it . Is there any other way where I can force the drawing . Thanks, Satyajit From hp@redhat.com Wed Feb 27 10:45:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id E0AE2182F6 for ; Wed, 27 Feb 2002 10:45:02 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RFit402249; Wed, 27 Feb 2002 10:44:55 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: John Breen Cc: gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> <1014787131.976.56.camel@developer> <1014815629.1706.68.camel@developer> From: Havoc Pennington Date: 27 Feb 2002 10:44:54 -0500 In-Reply-To: <1014815629.1706.68.camel@developer> Message-ID: Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: John Breen writes: > > Ok, I sit corrected. I guess I'll have to add more overhead and figure > out _how_ to handle the authentication. PAM _looks_ like it will do it, > but then again maybe not. > > Has anyone done such a thing then, and prepared to share the > methodology? If not the code? > You're just trying to authenticate a user? On Red Hat Linux we use an external program which authenticates then runs the app that needs higher privileges. Look at any of the admin tools such as redhat-config-network for how it's set up. I'm not all that familiar with it myself and don't know if there are docs or where they are. The relevant package is "usermode" There isn't really a very good portable way to do this sort of thing... UNIX flavors and Linux distributions tend to have their own setup. Havoc From Valdis.Kletnieks@vt.edu Wed Feb 27 10:50:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 86EF418BDA for ; Wed, 27 Feb 2002 10:50:18 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1RFo5Vj006288; Wed, 27 Feb 2002 10:50:05 -0500 Message-Id: <200202271550.g1RFo5Vj006288@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Michael Mitton Cc: John Breen , gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() In-Reply-To: Your message of "Wed, 27 Feb 2002 06:23:58 EST." From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_361658866P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 27 Feb 2002 10:50:05 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_361658866P Content-Type: text/plain; charset=us-ascii On Wed, 27 Feb 2002 06:23:58 EST, Michael Mitton said: > Even with PAM you need to be root. I had this trouble myself and ended up > writing a helper script that ran suid as root and passed login info via > pipes. If you are not root, it seems to only auth the user your are > running your script as. Very true - but on the *other* hand - under what conditions do you *want* to be able to authenticate as some other user? That's a big security hole. 1) Unless you're very careful, the progam can then be used as a password guesser for another userid. You can even automate it using XTest or similar. 2) Since you're still running as yourself, authenticating as somebody else doesn't do squat for you - you only have your own access permissions. You *could* invoke or contact something else - but *that* something should be doing its *own* authentication. For instance, having your program shout down a named pipe "Yeah, it's really the other guy" is broken security wise - the program at the other end of the pipe needs to verify *for itself* that whatever is at the sending end is who it claims to be. -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_361658866P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8fQAtcC3lWbTT17ARAv5QAKCTCfBzvdLJVg2cz7FWOgKF+bZK1QCg2R+4 7b7Q4lOmwD8x6V7SI1RZvJU= =nVDw -----END PGP SIGNATURE----- --==_Exmh_361658866P-- From hp@redhat.com Wed Feb 27 11:10:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 63D25181CC for ; Wed, 27 Feb 2002 11:10:38 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RGASC23616; Wed, 27 Feb 2002 11:10:28 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "satyajit kanungo" Cc: Subject: Re: drawing area and expose event References: From: Havoc Pennington Date: 27 Feb 2002 11:10:28 -0500 In-Reply-To: Message-ID: Lines: 10 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "satyajit kanungo" writes: > Do we always need to attach the expose event to the drawing area to draw anything on it . > Is there any other way where I can force the drawing . > Yes, all drawing should happen in expose_event. There are other ways to do it sometimes, but they are almost always a bad idea. Havoc From hunchback@netcabo.pt Wed Feb 27 11:27:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id D0A9E181CC for ; Wed, 27 Feb 2002 11:27:21 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Wed, 27 Feb 2002 16:21:10 +0000 Content-Class: urn:content-classes:message From: To: , "satyajit kanungo" Subject: RE: drawing area and expose event Date: Wed, 27 Feb 2002 16:21:10 -0000 Message-ID: <058c01c1bfaa$c45058b0$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG/qsRQbq+ojiubEdaCegBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, > Then I attached an "expose-event" to the drawing area and in the = callback I put >the same > function(drawing fuction) and it draws properly . > Do we always need to attach the expose event to the drawing area to = draw >anything on it . > Is there any other way where I can force the drawing . i also did something similar, and the only way it worked was connecting = to=20 expose-event, i think that it is always necessary to do that because the = area is only=20 showed when gtk_main_init starts, so when you try to paint on the area = before that=20 you are painting on something that does not exist... so in order to it = happear, it is=20 only painted when the drawing-area is exposed. Somebody correct me if i'm wrong... Afonso From michael@cs.millersville.edu Wed Feb 27 11:44:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.millersville.edu (cs.millersville.edu [166.66.64.14]) by mail.gnome.org (Postfix) with ESMTP id 2E68818D0F for ; Wed, 27 Feb 2002 11:44:08 -0500 (EST) Received: from cs.millersville.edu (localhost.0.0.127.in-addr.arpa [127.0.0.1] (may be forged)) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RGi2IQ014203; Wed, 27 Feb 2002 11:44:02 -0500 Received: from localhost (michael@localhost) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RGi0x2014199; Wed, 27 Feb 2002 11:44:00 -0500 Date: Wed, 27 Feb 2002 11:44:00 -0500 (EST) From: Michael Mitton To: Valdis.Kletnieks@vt.edu Cc: John Breen , Subject: Re: file handling with fopen() and fclose() In-Reply-To: <200202271550.g1RFo5Vj006288@foo-bar-baz.cc.vt.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 27 Feb 2002 Valdis.Kletnieks@vt.edu wrote: > On Wed, 27 Feb 2002 06:23:58 EST, Michael Mitton said: > > Even with PAM you need to be root. I had this trouble myself and ended up > > writing a helper script that ran suid as root and passed login info via > > pipes. If you are not root, it seems to only auth the user your are > > running your script as. > > Very true - but on the *other* hand - under what conditions do you *want* > to be able to authenticate as some other user? That's a big security hole. > > 1) Unless you're very careful, the progam can then be used as a password > guesser for another userid. You can even automate it using XTest or similar. > > 2) Since you're still running as yourself, authenticating as somebody else > doesn't do squat for you - you only have your own access permissions. > You *could* invoke or contact something else - but *that* something should > be doing its *own* authentication. For instance, having your program > shout down a named pipe "Yeah, it's really the other guy" is broken > security wise - the program at the other end of the pipe needs to verify > *for itself* that whatever is at the sending end is who it claims to be. We were actually using a web script that needed authenticated, and apache runs as www. :) > > > -- > Valdis Kletnieks > Computer Systems Senior Engineer > Virginia Tech > > From rwalden@tripos.com Wed Feb 27 11:45:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id 48DD918D41 for ; Wed, 27 Feb 2002 11:45:59 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id KAA20596 for ; Wed, 27 Feb 2002 10:45:54 -0600 (CST) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma020551; Wed, 27 Feb 02 10:45:01 -0600 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id KAA54812; Wed, 27 Feb 2002 10:45:00 -0600 (CST) Message-ID: <3C7D0D0C.94AF34F3@tripos.com> Date: Wed, 27 Feb 2002 10:45:00 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: GTK List Subject: Re: GTK_TYPE_BOXED References: <3C7A694E.FE8E50DD@tripos.com> <3C7C028F.BEE311DD@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks, that was the lead I needed. So, if you were deriving a type from GTK_TYPE_BOXED in gtk+-1.2, with the requisite GtkTypeInfo structure and gtk_type_unique call, for gtk-2.0 you just call newtype = g_boxed_type_register_static( name, copy_func, free_func ); and you're all set, no need to fill in a GTypeInfo structure. Thanks again, Ralph Walden Havoc Pennington wrote: > > Ralph Walden writes: > > Can anyone comment on the changes between 1.2 and 2.0 that > > woud break code using > > > > gtk_type_unique(GTK_TYPE_BOXED, &some_subclass_info ); > > > > in the _get_type function for a derived type? > > > > You probably want g_boxed_type_register_static() instead. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From stonybrk@ix.netcom.com Wed Feb 27 11:47:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from barry.mail.mindspring.net (barry.mail.mindspring.net [207.69.200.25]) by mail.gnome.org (Postfix) with ESMTP id 88FF318DAB for ; Wed, 27 Feb 2002 11:47:23 -0500 (EST) Received: from user-2iniv3c.dialup.mindspring.com ([165.121.124.108] helo=norman) by barry.mail.mindspring.net with smtp (Exim 3.33 #1) id 16g7Eb-00038d-00; Wed, 27 Feb 2002 11:47:18 -0500 Message-ID: <006a01c1bfae$728f6760$0200a8c0@norman> From: "Norman Black" To: "Havoc Pennington" Cc: "gtk-list" References: Subject: Re: drawing area and expose event Date: Wed, 27 Feb 2002 08:47:26 -0800 Organization: Stony Brook Software 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hmmm. "all drawing"!!! Are you saying that when a user hits the "e" key in my program I should generate an expose event to draw the "e" in my window rather than simply draw the "e" in response to them pressing "e". Best Regards, Norman Black Stony Brook Software ----- Original Message ----- From: "Havoc Pennington" To: "satyajit kanungo" Cc: Sent: Wednesday, February 27, 2002 8:10 AM Subject: Re: drawing area and expose event > > "satyajit kanungo" writes: > > Do we always need to attach the expose event to the drawing area to draw anything on it . > > Is there any other way where I can force the drawing . > > > > Yes, all drawing should happen in expose_event. There are other ways > to do it sometimes, but they are almost always a bad idea. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From iain@ximian.com Wed Feb 27 11:58:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from peabody.ximian.com (peabody.ximian.com [141.154.95.10]) by mail.gnome.org (Postfix) with ESMTP id 6ECE018D2F for ; Wed, 27 Feb 2002 11:58:54 -0500 (EST) Received: (qmail 25616 invoked from network); 27 Feb 2002 16:58:53 -0000 Received: from peabody.ximian.com (HELO localhost.localdomain) (141.154.95.10) by peabody.ximian.com with SMTP; 27 Feb 2002 16:58:53 -0000 Subject: Re: drawing area and expose event From: iain To: Norman Black Cc: Havoc Pennington , gtk-list In-Reply-To: <006a01c1bfae$728f6760$0200a8c0@norman> References: <006a01c1bfae$728f6760$0200a8c0@norman> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Ximian, Inc X-Mailer: Evolution/1.1.0.99 (Preview Release) Date: 27 Feb 2002 17:59:53 +0000 Message-Id: <1014832795.2179.12.camel@discomachinegun.prettypeople.org> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-27 at 16:47, Norman Black wrote: > Hmmm. "all drawing"!!! > > Are you saying that when a user hits the "e" key in my program I should > generate an expose event to draw the "e" in my window rather than simply > draw the "e" in response to them pressing "e". Well, if you don't do it in the expose callback anyway, it's not going to be there, so you might as well. iain -- "All men of conscience or prudence ply to windward, to maintain their wars to be defensive." -- Roger Williams From pbd@op.net Wed Feb 27 12:02:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3570818E66 for ; Wed, 27 Feb 2002 12:02:33 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-470.phlpa.fast.net [209.92.97.216]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA24793; Wed, 27 Feb 2002 12:02:28 -0500 (EST) Message-Id: <200202271702.MAA24793@renoir.op.net> To: "Norman Black" Cc: "Havoc Pennington" , "gtk-list" Subject: Re: drawing area and expose event In-reply-to: Your message of "Wed, 27 Feb 2002 08:47:26 PST." <006a01c1bfae$728f6760$0200a8c0@norman> Date: Wed, 27 Feb 2002 12:01:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hmmm. "all drawing"!!! > >Are you saying that when a user hits the "e" key in my program I should >generate an expose event to draw the "e" in my window rather than simply >draw the "e" in response to them pressing "e". call gtk_widget_queue_draw(), then redraw in the subsequent expose event. you have to draw the "e" in the expose event anyway, because if you window is hidden or minimized-then-restored or unmapped in any way, the X server will ask you to redraw it. X does not store the contents of windows - when an area of a window is uncovered, the application needs to redraw it from scratch. your program design becomes simpler by doing everything from an expose event. --p From hp@redhat.com Wed Feb 27 12:43:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id AEB7F19715 for ; Wed, 27 Feb 2002 12:43:16 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RHhFQ23054; Wed, 27 Feb 2002 12:43:15 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Norman Black" Cc: "gtk-list" Subject: Re: drawing area and expose event References: <006a01c1bfae$728f6760$0200a8c0@norman> From: Havoc Pennington Date: 27 Feb 2002 12:43:14 -0500 In-Reply-To: <006a01c1bfae$728f6760$0200a8c0@norman> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Norman Black" writes: > > Are you saying that when a user hits the "e" key in my program I should > generate an expose event to draw the "e" in my window rather than simply > draw the "e" in response to them pressing "e". > What you should do is call gtk_widget_queue_draw_area() or gdk_window_invalidate_rect() for the rectangle containing the "e". Then you will get an expose event for that area, and then you paint the "e" So all drawing is in the expose handler. The expose handler must be able to redraw any area anyway, so you may as well put all drawing there for code cleanliness; putting all drawing there is also crucial to be sure you don't have any flicker in GTK 2. Havoc From hp@redhat.com Wed Feb 27 12:44:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id C306419715 for ; Wed, 27 Feb 2002 12:44:03 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RHhsW23058; Wed, 27 Feb 2002 12:43:54 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Cc: , "satyajit kanungo" Subject: Re: drawing area and expose event References: <058c01c1bfaa$c45058b0$0914a8c0@netcabo.net> From: Havoc Pennington Date: 27 Feb 2002 12:43:54 -0500 In-Reply-To: <058c01c1bfaa$c45058b0$0914a8c0@netcabo.net> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: writes: > > Then I attached an "expose-event" to the drawing area and in the callback I put >the same > > function(drawing fuction) and it draws properly . > > Do we always need to attach the expose event to the drawing area to draw >anything on it . > > Is there any other way where I can force the drawing . > > i also did something similar, and the only way it worked was connecting to > expose-event, i think that it is always necessary to do that because the area is only > showed when gtk_main_init starts, so when you try to paint on the area before that > you are painting on something that does not exist... so in order to it happear, it is > only painted when the drawing-area is exposed. > > Somebody correct me if i'm wrong... > You're exactly right. Havoc From trefftzs@tcsn.net Wed Feb 27 14:05:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from thoth.trefftzs.org (psrb-ppp1-210.tcsn.net [63.174.82.210]) by mail.gnome.org (Postfix) with ESMTP id 595B21840D for ; Wed, 27 Feb 2002 14:05:56 -0500 (EST) Received: from outmail.tcsn.net (jeff@localhost) by thoth.trefftzs.org (8.9.3/8.9.3) with ESMTP id LAA05491 for ; Wed, 27 Feb 2002 11:06:27 -0800 Message-Id: <200202271906.LAA05491@thoth.trefftzs.org> X-Authentication-Warning: thoth.trefftzs.org: jeff owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: More pango-0.26 compile problems Reply-To: Jeff Trefftzs From: Jeff Trefftzs Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 27 Feb 2002 11:06:26 -0800 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all - I downloaded pango-0.26.tar.gz last night, and have begun trying to compile and install it. I managed the ./configure step okay -- I have installed glig-1.3.15 -- but, like Raymond Wan, my compilation breaks in the examples directory. Can anyone tell me where to start looking in order to fix this? I really need pango only so I can compile gtk+-1.3.15, so I can get to work on gimp-1.3. All help greatly appreciated. Here's the make output: Making all in examples make[2]: Entering directory `/mnt/S.home/trefftzs/downloads/Sourc es/pango-0.26/examples' c++ -DHAVE_CONFIG_H -I. -I. -I.. -DG_DISABLE_DEPRECATED -I.. -I /usr/lib/qt-2.0.1/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype 2 -g -O2 -c viewer-qt.cc c++ -DHAVE_CONFIG_H -I. -I. -I.. -DG_DISABLE_DEPRECATED -I.. -I /usr/lib/qt-2.0.1/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype 2 -g -O2 -c moc_viewer-qt.cc moc_viewer-qt.cc: In function `static class QString ViewerView::tr(const char *)': moc_viewer-qt.cc:42: no matching function for call to `QApplication::translate (char[11], const char *&, int)' /usr/lib/qt-2.0.1/include/qapplication.h:139: candidates are: QApplication::translate(const char *, const char *) const moc_viewer-qt.cc: At top level: moc_viewer-qt.cc:46: prototype for `class QString ViewerView::tr( const char *, const char *)' does not match any in class `ViewerView' moc_viewer-qt.cc:41: candidate is: static class QString ViewerView::tr(const char *) moc_viewer-qt.cc: In method `class QString ViewerView::tr(const char *, const char *)': moc_viewer-qt.cc:47: no matching function for call to `QApplication::translate (char[11], const char *&, const char *&)' /usr/lib/qt-2.0.1/include/qapplication.h:139: candidates are: QApplication::translate(const char *, const char *) const moc_viewer-qt.cc: At top level: moc_viewer-qt.cc:53: new declaration `static class QMetaObject * ViewerView::staticMetaObject()' viewer-qt.h:53: ambiguates old declaration `static void ViewerView::staticMetaObject()' moc_viewer-qt.cc: In function `static class QMetaObject * ViewerView::staticMetaObject()': moc_viewer-qt.cc:59: `Access' is not a member of type `QMetaData' moc_viewer-qt.cc:59: `slot_tbl_access' undeclared (first use this function) moc_viewer-qt.cc:59: (Each undeclared identifier is reported only once moc_viewer-qt.cc:59: for each function it appears in.) moc_viewer-qt.cc:68: no matching function for call to `QMetaObject::new_metaobject (char[11], char[12], int, int, int, int, int, int, int, int, int, int)' /usr/lib/qt-2.0.1/include/qmetaobject.h:65: candidates are: QMetaObject::new_metaobject(const char *, const char *, QMetaData *, int, QMetaData *, int) moc_viewer-qt.cc:69: confused by earlier errors, bailing out make[2]: *** [moc_viewer-qt.o] Error 1 make[2]: Leaving directory `/mnt/S.home/trefftzs/downloads/Source s/pango-0.26/examples' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/S.home/trefftzs/downloads/Source s/pango-0.26' make: *** [all-recursive-am] Error 2 -- --Jeff Jeff Trefftzs http://www.tcsn.net/trefftzs Home Page http://gug.sunsite.dk/gallery.php?artist=68 Gimp Gallery http://trefftzs.topcities.com/home.html Photo galleries From sven@gimp.org Wed Feb 27 14:44:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 2D7F118531 for ; Wed, 27 Feb 2002 14:44:19 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16g9zo-0002bF-00; Wed, 27 Feb 2002 20:44:12 +0100 To: Jeff Trefftzs Cc: gtk-list@gnome.org Subject: Re: More pango-0.26 compile problems References: <200202271906.LAA05491@thoth.trefftzs.org> From: Sven Neumann Date: 27 Feb 2002 20:44:12 +0100 In-Reply-To: <200202271906.LAA05491@thoth.trefftzs.org> Message-ID: Lines: 16 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Jeff Trefftzs writes: > I downloaded pango-0.26.tar.gz last night, and have begun trying > to compile and install it. I managed the ./configure step okay > -- I have installed glig-1.3.15 -- but, like Raymond Wan, my > compilation breaks in the examples directory. Can anyone tell > me where to start looking in order to fix this? I really need > pango only so I can compile gtk+-1.3.15, so I can get to work on > gimp-1.3. configure --without-qt should do the trick. Salut, Sven From andreabergia@yahoo.it Wed Feb 27 15:09:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp011.mail.yahoo.com (smtp011.mail.yahoo.com [216.136.173.31]) by mail.gnome.org (Postfix) with SMTP id CFF5618531 for ; Wed, 27 Feb 2002 15:09:39 -0500 (EST) Received: from andreabergia (AUTH poptime) at unknown (HELO alfa) (212.171.122.243) by smtp.mail.vip.sc5.yahoo.com with SMTP; 27 Feb 2002 20:09:29 -0000 Message-ID: <008701c1bfca$bddad9e0$f37aabd4@alfa> From: "Andrea Bergia" To: "gtk-list" Subject: Fixed size window Date: Wed, 27 Feb 2002 21:07:57 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a simple questions about GTK: how can I lock the size of a window? I want that the the user cannot resize the windows, is there a simple way to do this? Thanks. Andrea. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From hummaida@cs.man.ac.uk Wed Feb 27 15:16:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mail.gnome.org (Postfix) with ESMTP id 3B91E19249 for ; Wed, 27 Feb 2002 15:16:57 -0500 (EST) Received: from cs.man.ac.uk ([62.252.242.142]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020227201652.INIW7000.mta06-svc.ntlworld.com@cs.man.ac.uk>; Wed, 27 Feb 2002 20:16:52 +0000 Message-ID: <3C7D3E61.5080506@cs.man.ac.uk> Date: Wed, 27 Feb 2002 20:15:29 +0000 From: A R Hummaida User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Andrea Bergia Cc: gtk-list Subject: Re: Fixed size window References: <008701c1bfca$bddad9e0$f37aabd4@alfa> Content-Type: multipart/related; boundary="------------020002090807010808080100" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --------------020002090807010808080100 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit this is from API :). read more there under GtkWindow void gtk_window_set_policy (GtkWindow *window, gint allow_shrink, gint allow_grow, gint auto_shrink); Changes how a toplevel window deals with its size request and user resize attempts. There are really only two reasonable ways to call this function: 1. gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, FALSE) means that the window is user-resizable. 2. gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, TRUE) means that the window's size is program-controlled, and should simply match the current size request of the window's children. Andrea Bergia wrote: >Hi, I have a simple questions about GTK: how can I lock the size of a >window? I want that the the user cannot resize the windows, is there a >simple way to do this? >Thanks. Andrea. > > > >_________________________________________________________ >Do You Yahoo!? >Get your free @yahoo.com address at http://mail.yahoo.com > >_______________________________________________ >gtk-list mailing list >gtk-list@gnome.org >http://mail.gnome.org/mailman/listinfo/gtk-list > --------------020002090807010808080100-- From hummaida@cs.man.ac.uk Wed Feb 27 15:20:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mail.gnome.org (Postfix) with ESMTP id C733418531 for ; Wed, 27 Feb 2002 15:20:29 -0500 (EST) Received: from cs.man.ac.uk ([62.252.242.142]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020227202028.IQMY7000.mta06-svc.ntlworld.com@cs.man.ac.uk>; Wed, 27 Feb 2002 20:20:28 +0000 Message-ID: <3C7D3F3A.5010202@cs.man.ac.uk> Date: Wed, 27 Feb 2002 20:19:06 +0000 From: A R Hummaida User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 Cc: Andrea Bergia , gtk-list Subject: Re: Fixed size window References: <008701c1bfca$bddad9e0$f37aabd4@alfa> <3C7D3E61.5080506@cs.man.ac.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: oops read here http://developer.gnome.org/doc/API/gtk/gtkwindow.html A R Hummaida wrote: > this is from API :). read more there under GtkWindow > > > > > > > void gtk_window_set_policy (GtkWindow > *window, > gint > > allow_shrink, > gint > > allow_grow, > gint > > auto_shrink); > > > Changes how a toplevel window deals with its size request and user > resize attempts. There are really only two reasonable ways to call > this function: > > 1. > > gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, FALSE) > means that the window is user-resizable. > > 2. > > gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, TRUE) > means that the window's size is program-controlled, and should > simply match the current size request of the window's children. > > > > Andrea Bergia wrote: > >> Hi, I have a simple questions about GTK: how can I lock the size of a >> window? I want that the the user cannot resize the windows, is there a >> simple way to do this? >> Thanks. Andrea. >> >> >> >> _________________________________________________________ >> Do You Yahoo!? >> Get your free @yahoo.com address at http://mail.yahoo.com >> >> _______________________________________________ >> gtk-list mailing list >> gtk-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gtk-list >> > > From hunchback@netcabo.pt Wed Feb 27 15:28:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 45B1B18106 for ; Wed, 27 Feb 2002 15:28:22 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Wed, 27 Feb 2002 20:22:19 +0000 Content-Class: urn:content-classes:message From: To: Subject: New Documentation? Date: Wed, 27 Feb 2002 20:22:18 -0000 Message-ID: <537201c1bfcc$745537a0$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG/zHRSkEJsYSu8EdaCegBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm just wondering if GTK+ will have a better documentation? I ask this = because some metods aren't even commented, and just by the name you can't say what it = does=20 (at least on the gtk 1.2, i haven't used gtk 2). The Java Specification = is much better=20 in that mather.. Afonso From stonybrk@ix.netcom.com Wed Feb 27 16:13:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp10.atl.mindspring.net (smtp10.atl.mindspring.net [207.69.200.246]) by mail.gnome.org (Postfix) with ESMTP id E74891907E for ; Wed, 27 Feb 2002 16:13:19 -0500 (EST) Received: from user-38ldm4k.dialup.mindspring.com ([209.86.216.148] helo=norman) by smtp10.atl.mindspring.net with smtp (Exim 3.33 #1) id 16gBNx-00023Q-00 for gtk-list@gnome.org; Wed, 27 Feb 2002 16:13:14 -0500 Message-ID: <007a01c1bfd3$99730060$0200a8c0@norman> From: "Norman Black" To: "gtk-list" References: <006a01c1bfae$728f6760$0200a8c0@norman> Subject: Re: drawing area and expose event Date: Wed, 27 Feb 2002 13:13:21 -0800 Organization: Stony Brook Software 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > The expose handler must be able to redraw any area anyway, so you may > as well put all drawing there for code cleanliness; putting all > drawing there is also crucial to be sure you don't have any flicker in > GTK 2. My code does not flicker now on GTK or Win32. So if GTK 2 makes my code flicker, what does that mean? Best Regards, Norman Black Stony Brook Software ----- Original Message ----- From: "Havoc Pennington" To: "Norman Black" Cc: "gtk-list" Sent: Wednesday, February 27, 2002 9:43 AM Subject: Re: drawing area and expose event > > "Norman Black" writes: > > > > Are you saying that when a user hits the "e" key in my program I should > > generate an expose event to draw the "e" in my window rather than simply > > draw the "e" in response to them pressing "e". > > > > What you should do is call gtk_widget_queue_draw_area() or > gdk_window_invalidate_rect() for the rectangle containing the > "e". Then you will get an expose event for that area, and then you > paint the "e" > > So all drawing is in the expose handler. > > The expose handler must be able to redraw any area anyway, so you may > as well put all drawing there for code cleanliness; putting all > drawing there is also crucial to be sure you don't have any flicker in > GTK 2. > > Havoc From hp@redhat.com Wed Feb 27 17:29:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 8FF70184FF for ; Wed, 27 Feb 2002 17:29:45 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RMTgb23323; Wed, 27 Feb 2002 17:29:42 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Norman Black" Cc: "gtk-list" Subject: Re: drawing area and expose event References: <006a01c1bfae$728f6760$0200a8c0@norman> <007a01c1bfd3$99730060$0200a8c0@norman> From: Havoc Pennington Date: 27 Feb 2002 17:29:42 -0500 In-Reply-To: <007a01c1bfd3$99730060$0200a8c0@norman> Message-ID: Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Norman Black" writes: > > The expose handler must be able to redraw any area anyway, so you may > > as well put all drawing there for code cleanliness; putting all > > drawing there is also crucial to be sure you don't have any flicker in > > GTK 2. > > My code does not flicker now on GTK or Win32. So if GTK 2 makes my code > flicker, what does that mean? > It probably doesn't make it flicker if it doesn't flicker now. But you are probably doing extra work that is not necessary in GTK 2. Havoc From castor.fou@wanadoo.fr Wed Feb 27 18:13:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto6.wanadoo.fr (smtp-out-6.wanadoo.fr [193.252.19.25]) by mail.gnome.org (Postfix) with ESMTP id 125F518112 for ; Wed, 27 Feb 2002 18:13:32 -0500 (EST) Received: from mel-rta8.wanadoo.fr (193.252.19.79) by mel-rto6.wanadoo.fr; 28 Feb 2002 00:13:31 +0100 Received: from athlon (193.248.96.45) by mel-rta8.wanadoo.fr; 28 Feb 2002 00:13:14 +0100 Message-ID: <001b01c1bfe4$56cdc860$2d60f8c1@athlon> From: "Romain Epita" To: Subject: Transparent GtkWidget Date: Thu, 28 Feb 2002 00:13:16 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It is possible to set a GtkWidget transparent ? as a GdkWindow with the function gdk_window_shape_combine_mask ! If it is possible, how I do that ? Romain PARMANTIER A.K.A Castor Delegue SpeC2 Sécretaire BDE Epita-Epitech tel : 06-07-66-16-18 parman_r@epita.fr "L'homme commence par aimer l'amour et finit par aimer une femme. La femme commence par aimer un homme et finit par aimer l'amour." Remy de Gourmont, Physique de l'amour From shane_b@operamail.com Wed Feb 27 19:23:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail001.syd.optusnet.com.au (mail001.syd.optusnet.com.au [203.2.75.244]) by mail.gnome.org (Postfix) with ESMTP id 282E2197AE for ; Wed, 27 Feb 2002 19:23:48 -0500 (EST) Received: from pluto (geeax3-042.dialup.optusnet.com.au [198.142.133.42]) by mail001.syd.optusnet.com.au (8.11.1/8.11.1) with ESMTP id g1S0NVd01622 for ; Thu, 28 Feb 2002 11:23:35 +1100 Subject: GTK+2 - GtkTreeModel From: Shane Butler To: "List, GTK+" Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.99.2 (Preview Release) Date: 28 Feb 2002 11:25:14 +1100 Message-Id: <1014855940.937.5.camel@pluto> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Just wondering if someone could suggest the best way to move a row in a GtkTreeModel up or down. Thanks, Shane From oliver-singla@nc.rr.com Wed Feb 27 20:24:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail7.nc.rr.com (fe7.southeast.rr.com [24.93.67.54]) by mail.gnome.org (Postfix) with ESMTP id B405418425 for ; Wed, 27 Feb 2002 20:24:51 -0500 (EST) Received: from nc.rr.com ([66.57.252.230]) by mail7.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Wed, 27 Feb 2002 20:24:49 -0500 Message-ID: <3C7D86DC.8070906@nc.rr.com> Date: Wed, 27 Feb 2002 20:24:44 -0500 From: Oliver Singla User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Force a widget to redraw itself (1.2.10) Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, How can I really force a widget to redraw itself ? If I call gtk_widget_queue_draw(), that seems to work only for widgets without an X-Window (such GtkLabel or GtkHSeparator). I attached a expose_event signal to see if the draw is performed or not. TIA, Olivier Singla, QNX, Raleigh NC oliver_singla@nc.rr.com From pyaggi@aulamagna.com.ar Wed Feb 27 21:12:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aulamagna.com.ar (unknown [200.49.75.38]) by mail.gnome.org (Postfix) with SMTP id 01B7118137 for ; Wed, 27 Feb 2002 21:12:56 -0500 (EST) Received: (qmail 16138 invoked from network); 28 Feb 2002 02:22:41 -0000 Received: from unknown (HELO there) (200.63.161.149) by 0 with SMTP; 28 Feb 2002 02:22:41 -0000 Content-Type: text/plain; charset="iso-8859-3" From: Pablo Yaggi Organization: Aulamagna To: gtk-list@gnome.org Subject: Best way to Print Date: Wed, 27 Feb 2002 23:10:36 -0300 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020228021256.01B7118137@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want to build a simple application to test printing, I need to print formated text (in paragraphs) and graphics could anyone please give me a direction, how do I do that, with bonobo? gnome_print ? ? ?? Pablo From seberino@dt092n42.san.rr.com Wed Feb 27 21:15:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 996D419091 for ; Wed, 27 Feb 2002 21:15:01 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16gG6R-00017D-00; Wed, 27 Feb 2002 18:15:27 -0800 Date: Wed, 27 Feb 2002 18:15:27 -0800 From: Christian Seberino To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: drawing area and expose event Message-ID: <20020227181527.A4284@spawar.navy.mil> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from hp@redhat.com on Wed, Feb 27, 2002 at 11:10:28AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc I thought configure event handler draws *everything* and expose event handler just redraws portion *uncovered* e.g. covering with corner of window and then not. This would imply that all drawing should happen in configure event with "patches" being done in expose event. Am I missing something? Chris On Wed, Feb 27, 2002 at 11:10:28AM -0500, Havoc Pennington wrote: > > "satyajit kanungo" writes: > > Do we always need to attach the expose event to the drawing area to draw anything on it . > > Is there any other way where I can force the drawing . > > > > Yes, all drawing should happen in expose_event. There are other ways > to do it sometimes, but they are almost always a bad idea. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From hp@redhat.com Wed Feb 27 21:30:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id CACE918137 for ; Wed, 27 Feb 2002 21:30:23 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1S2ULf23665; Wed, 27 Feb 2002 21:30:21 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: drawing area and expose event References: <20020227181527.A4284@spawar.navy.mil> From: Havoc Pennington Date: 27 Feb 2002 21:30:20 -0500 In-Reply-To: <20020227181527.A4284@spawar.navy.mil> Message-ID: Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Christian Seberino writes: > > I thought configure event handler draws *everything* and > expose event handler just redraws portion *uncovered* > e.g. covering with corner of window and then not. > > This would imply that all drawing should happen in configure > event with "patches" being done in expose event. > > Am I missing something? > Yes, there is no reason to draw anything in configure event. It just means you got a new size. You'll also get an expose when this happens so drawing in expose only is fine. Havoc From hp@redhat.com Wed Feb 27 21:33:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 761A71837B for ; Wed, 27 Feb 2002 21:33:36 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1S2XZA23669; Wed, 27 Feb 2002 21:33:35 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Shane Butler Cc: "List, GTK+" Subject: Re: GTK+2 - GtkTreeModel References: <1014855940.937.5.camel@pluto> From: Havoc Pennington Date: 27 Feb 2002 21:33:35 -0500 In-Reply-To: <1014855940.937.5.camel@pluto> Message-ID: Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Shane Butler writes: > > Just wondering if someone could suggest the best way to move a row in a > GtkTreeModel up or down. > The GtkTreeModel interface is read-only; you have to use the specific subclass of GtkTreeModel to modify things. So for example with GtkListStore you could move a row up by removing it then reinserting it, or by swapping the contents of a row and the row above it, whatever is convenient for your app. I usually have a list store with a single column containing an object or struct, so I would just call list_store_set() a couple times to swap the row contents. Havoc From ganesan.sethuraman@wipro.com Wed Feb 27 23:48:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by mail.gnome.org (Postfix) with ESMTP id 8B307180F1 for ; Wed, 27 Feb 2002 23:48:49 -0500 (EST) Received: from m2vwall5.wipro.com (m2vwall5.wipro.com [10.115.50.5]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id g1S4mle09699 for ; Thu, 28 Feb 2002 10:18:47 +0530 (IST) Received: from wipro.com ([192.168.165.86]) by bhairavi.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GS881500.K7L for ; Thu, 28 Feb 2002 10:18:41 +0530 Message-ID: <3C7DB6DB.F959A8FA@wipro.com> Date: Thu, 28 Feb 2002 10:19:31 +0530 From: Ganesan Sethuraman Organization: Wipro Technologies X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Info Regarding GtkEntry Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Could you please tell me if there is any limatations on the number of characters a GtkEntry widget can hold ? If I give more than 7300(approx) characters, the characters are getting overlapped. Any idea on what could be the problem ? Thanks, S.Ganesan. From satyajit.kanungo@wipro.com Wed Feb 27 23:53:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by mail.gnome.org (Postfix) with ESMTP id 924E4180F1 for ; Wed, 27 Feb 2002 23:53:04 -0500 (EST) Received: from m2vwall5.wipro.com (m2vwall5.wipro.com [10.115.50.5]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id g1S4r2e11601 for ; Thu, 28 Feb 2002 10:23:02 +0530 (IST) Received: from satyajit ([10.114.9.188]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GS886U00.03O; Thu, 28 Feb 2002 10:22:06 +0530 From: "satyajit kanungo" To: "Havoc Pennington" , "Norman Black" Cc: "gtk-list" Subject: RE: drawing area and expose event Date: Thu, 28 Feb 2002 10:30:22 +0530 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal In-Reply-To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks a lot I shall put all my drawings in the expose event and try my application again. I had taken the sample program form GdkRGB chapter (gdk API Reference) and was trying it the other way round . So whenever I want some drawings to happen in my drawable I should better call a gtk_widget_queue_draw_area() or gdk_window_invalidate_rect() and do all the drawing in the expose event callback . Please correct me if I have understood it wrongly Behalf Of Havoc Pennington >What you should do is call gtk_widget_queue_draw_area() or >gdk_window_invalidate_rect() for the rectangle containing the >"e". Then you will get an expose event for that area, and then you >paint the "e" >So all drawing is in the expose handler. Havoc From davidgn@servidor.unam.mx Thu Feb 28 00:11:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id 930431832B for ; Thu, 28 Feb 2002 00:11:30 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.113.36]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g1S59tP25947 for ; Wed, 27 Feb 2002 23:09:55 -0600 (CST) Date: Wed, 27 Feb 2002 23:29:25 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: now that we're on GtkDrawingArea... =) Message-Id: <20020227232925.09c86401.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.1 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I was doing some tests on it. I have my DrawingArea on a ViewPort on a ScrolledWindow on a pane on a notebook on a table..... like the song... I couldnt use any function that gets a GdkWindow as a parameter. As in the scribble example, the Area is just under the Window, and it works. But i had the DrawingArea somewhere else, and area->window sent messages like: Gdk-CRITICAL **: file gdkdraw.c: line 42 (gdk_draw_point): assertion `drawable != NULL' failed. As i read, some widgets does not have its own window (but the example worked using the Area's window, widget-window), and they draw on its parent window. I thought maybe DrawingArea is one such widget (though doesnt sound like it), and since the example works, i used the main window's window as the parameter to gdk_pixmap_new and other functions. It works. Though i want to know whether i did right, or if i did a stupid thing and what would have been the right one? -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $BNx$K$7$7$g$&$J$7!#Nx$O$7$"$s$NB>!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From youssa@voila.fr Thu Feb 28 03:42:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailsmtp4.ftmms (smtp-out.voila.wanadooportails.com [193.252.117.74]) by mail.gnome.org (Postfix) with ESMTP id BF7D0181EB for ; Thu, 28 Feb 2002 03:42:29 -0500 (EST) Received: from voila.fr (10.3.7.82) by mailsmtp4.ftmms (5.1.071) id 3C7AC6FC0002ADA1; Thu, 28 Feb 2002 09:42:08 +0100 Date: Thu, 28 Feb 2002 09:42:08 +0100 Message-Id: Subject: =?iso-8859-1?Q?Re:Transparent_GtkWidget?= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?utf-8?Q?youssa@voila.fr?=" To: castor.fou@wanadoo.fr Cc: gtk-list@gnome.org X-XaM3-API-Version: 301build11 X-type: 0 X-SenderIP: 193.95.113.27 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQpUYWtlIGEgbG9vayBvbiB0aGUgd2VlbGJhcm93dyBleGVtcGxlICENCg0KRXQgcHVp cyBlbiBmcmFu52FpcyBwb3VyIHZvdXMgUm9tYWluLCBqZXR0ZSB1biBjb3VwIGQnb2V1aWwg c3VyIGwnZXhlbXBsZSB3ZWVsYmFyb3csIHZvdXMgcG91dmV6IHJlbXBsYWNlciBsZSB3ZWVs YmFycm93IHBhciB1biBpbWFnZSAueHBtLg0KSidhaSBldSBiZXNvaW4gbW9pIGF1c3NpIGQn dW5lIGZlbmV0cmUgdHJhbnNwYXJlbnRlLCB0b3V0IGNlIHF1ZSBqJ2FpIHB1IGF2b2lyIGMn ZXN0IGNldCBleGVtcGxlLiBTaSB2b3VzIGVuIHRyb3V2ZXIgdW4gbWVpbGxldXIgZXhlbXBs ZSwgbWVyY2kgZGUgbWUgY29udGFjdGVyLg0KQ29yZGlhbGVtZW50LCBJRVMgQkgNCmonYWpv dXRlIGVuZmluLCBMJ2Ftb3VyIGVzdCB1biBwbGFpc2lyLCBMJ0hvbW1lIGVzdCB1biBkZXZv aXIuDQoNCg0KPiBJdCBpcyBwb3NzaWJsZSB0byBzZXQgYSBHdGtXaWRnZXQgdHJhbnNwYXJl bnQgPyBhcyBhIEdka1dpbmRvdyB3aXRoIHRoZQ0KPiBmdW5jdGlvbiBnZGtfd2luZG93X3No YXBlX2NvbWJpbmVfbWFzayAhIElmIGl0IGlzIHBvc3NpYmxlLCBob3cgSSBkbyB0aGF0ID8N Cj4gICAgICAgUm9tYWluIFBBUk1BTlRJRVINCj4gICAgICAgICBBLksuQSBDYXN0b3INCj4g ICAgICAgIERlbGVndWUgU3BlQzINCj4gU+ljcmV0YWlyZSBCREUgRXBpdGEtRXBpdGVjaA0K PiAgICAgdGVsIDogMDYtMDctNjYtMTYtMTgNCj4gICAgICAgcGFybWFuX3JAZXBpdGEuZnIN Cj4gDQo+ICJMJ2hvbW1lIGNvbW1lbmNlIHBhciBhaW1lciBsJ2Ftb3VyIGV0IGZpbml0DQo+ IHBhciBhaW1lciB1bmUgZmVtbWUuIExhIGZlbW1lIGNvbW1lbmNlIHBhcg0KPiBhaW1lciB1 biBob21tZSBldCBmaW5pdCBwYXIgYWltZXIgbCdhbW91ci4iDQo+ICAgICAgICAgICAgICAg ICAgICAgICBSZW15IGRlIEdvdXJtb250LCBQaHlzaXF1ZSBkZSBsJ2Ftb3VyDQo+IA0KPiAN Cj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCj4g Z3RrLWxpc3QgbWFpbGluZyBsaXN0DQo+IGd0ay1saXN0QGdub21lLm9yZw0KPiBodHRwOi8v bWFpbC5nbm9tZS5vcmcvbWFpbG1hbi9saXN0aW5mby9ndGstbGlzdA0KPiANCg0KX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f DQpGYWl0ZXMgdW4gdm9ldSBldCBwdWlzIFZvaWxhICEgd3d3LnZvaWxhLmZyIA0KQXZlYyBW b2lsYSBNYWlsLCBjb25zdWx0ZXogdm9zIGUtbWFpbHMgc3VyIHZvdHJlIG1vYmlsZSBXYXAu IA0K From youssa@voila.fr Thu Feb 28 03:50:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailsmtp5.ftmms (smtp-out.voila.wanadooportails.com [193.252.117.74]) by mail.gnome.org (Postfix) with ESMTP id AB99F18528 for ; Thu, 28 Feb 2002 03:50:56 -0500 (EST) Received: from voila.fr (10.3.7.82) by mailsmtp5.ftmms (5.1.071) id 3C7CE6080000B1E3 for gtk-list@gnome.org; Thu, 28 Feb 2002 09:50:31 +0100 Date: Thu, 28 Feb 2002 09:50:31 +0100 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?utf-8?Q?youssa@voila.fr?=" To: gtk-list@gnome.org X-XaM3-API-Version: 301build11 X-type: 0 X-SenderIP: 193.95.113.27 Subject: (no subject) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQpQbGVhc2UgY2FuIGFueSBvbmUgc2VuZCBtZSBhIGxpdHRsZSBleGVtcGxlIHRvIGhl bHAgbWUgdG8gaW5jbHVkZSBhIEphdmEgQXBwbGV0IGluIGEgZ3RrIHdpbmRvdz8/DQpIb3cg dG8gY29tcGlsZSBpdD8/LCBXaGF0IEkgbmVlZCB0byBoYXZlPz8NClRoYW5rIHlvdSB2ZXJ5 IG11Y2guDQpQLlMgOiBJIHNlbmQgdGhpcyBxdWVzdGlvbiBtYW55IHRpbWVzIHRvIEdUSy1B UFAtREVWRUwtTElTVCBidXQgSSBzdGlsbCB3aXRob3V0IGFueSBoZWxwLCBSZWNlbnRseSBI YXZvYyBQIHRlbGwgbWUgdG8gc2VuZCB0aGlzIHF1emVzdGlvbiB0byB0aGlzIGxpc3QsIEkg bWF5IGhhdmUgYSBoZWxwLg0KVGhhbmsgeW91IHZlcnkgbXVjaA0KR29vZCBUaW1lLg0KDQoN Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fXw0KRmFpdGVzIHVuIHZvZXUgZXQgcHVpcyBWb2lsYSAhIHd3dy52b2lsYS5mciAN CkF2ZWMgVm9pbGEgTWFpbCwgY29uc3VsdGV6IHZvcyBlLW1haWxzIHN1ciB2b3RyZSBtb2Jp bGUgV2FwLiANCg== From syed@mimos.my Thu Feb 28 04:50:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from filter.mimos.my (filter.mimos.my [192.228.137.70]) by mail.gnome.org (Postfix) with ESMTP id D5A63198C2 for ; Thu, 28 Feb 2002 04:50:48 -0500 (EST) Received: from ew.mimos.my (localhost.localdomain [127.0.0.1]) by filter.mimos.my (8.11.0/8.11.0) with ESMTP id g1S9bSm31874 for ; Thu, 28 Feb 2002 17:37:28 +0800 Received: (from root@localhost) by ew.mimos.my (8.11.6/8.11.6) id g1S9olU41225 for gtk-list@gnome.org; Thu, 28 Feb 2002 17:50:47 +0800 (MYT) (envelope-from syed@mimos.my) Received: from mimos.my (infoniti25.nat.mimos.my [10.1.21.25]) by ew.mimos.my (8.11.6/8.11.6) with ESMTP id g1S9oka41169 for ; Thu, 28 Feb 2002 17:50:46 +0800 (MYT) (envelope-from syed@mimos.my) Message-ID: <3C7DFCE2.9606ADA7@mimos.my> Date: Thu, 28 Feb 2002 17:48:18 +0800 From: mrzali X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtknotebook & pixmap X-scanner: scanned by Inflex 1.0.10 - (http://pldaniels.com/inflex/) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How i want to attach pixmap into gtk-notebook-tab? As far i know we can only set label on it. Any suggestion. Thanks, mr_zali From pclouds@fptnet.com Thu Feb 28 05:36:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dns2.hcm.fpt.vn (dns2.hcm.fpt.vn [203.162.45.36]) by mail.gnome.org (Postfix) with ESMTP id 9A308180F1 for ; Thu, 28 Feb 2002 05:36:07 -0500 (EST) Received: from isp-mailsrv.hcm.fpt.vn (isp-mailsrv.hcm.fpt.vn [203.162.45.131]) by dns2.hcm.fpt.vn (8.11.6/8.11.6) with ESMTP id g1SAZ6s28452 for ; Thu, 28 Feb 2002 17:35:06 +0700 Received: from hcm.fpt.vn ([203.162.45.138]) by isp-mailsrv.hcm.fpt.vn with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id FZ0XND0G; Thu, 28 Feb 2002 17:44:19 +0700 Received: from [203.162.70.201] by hcm.fpt.vn [203.162.45.138] Received: (from pclouds@localhost) by localhost.localdomain (8.11.2/8.11.2) id g1RI2gR00736 for gtk-list@gnome.org; Wed, 27 Feb 2002 13:02:42 -0500 Date: Wed, 27 Feb 2002 13:02:42 -0500 From: pclouds To: gtk-list@gnome.org Subject: gtk default binding sets Message-ID: <20020227130242.A733@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Is there any document that describe the default binding set of each widget? From Steph.Fox@btinternet.com Thu Feb 28 05:49:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium.btinternet.com (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id 8DBAD1837B for ; Thu, 28 Feb 2002 05:49:27 -0500 (EST) Received: from host213-122-214-197.in-addr.btopenworld.com ([213.122.214.197] helo=t2r1o8) by protactinium.btinternet.com with smtp (Exim 3.22 #8) id 16gO5d-0003uF-00; Thu, 28 Feb 2002 10:47:09 +0000 Message-ID: <00aa01c1c044$f4536620$243e7bd5@t2r1o8> From: "Steph" To: "pclouds" , References: <20020227130242.A733@localhost.localdomain> Subject: Re: gtk default binding sets Date: Thu, 28 Feb 2002 10:44:48 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I've been doing that when I've noticed them, in the PHP-GTK manual = http://gtk.php.net/manual/en which is about half complete at present. = It depends which widget you're talking about ... oh, and which version = of GTK+, we're using 1.2 and some of the bindings have been changed = since then. ----- Original Message -----=20 From: "pclouds" To: Sent: Wednesday, February 27, 2002 6:02 PM Subject: gtk default binding sets > Hi > Is there any document that describe the default binding set of each = widget? > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From neil@fnxweb.com Thu Feb 28 06:57:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntsc0034.int.rdel.co.uk (mail.uk.thalesgroup.com [194.128.85.7]) by mail.gnome.org (Postfix) with ESMTP id 1453618854 for ; Thu, 28 Feb 2002 06:57:51 -0500 (EST) Received: from mail.uk.thalesgroup.com (lisc0022.int.rdel.co.uk) by ntsc0034.int.rdel.co.uk (Content Technologies SMTPRS 4.2.5) with ESMTP id for ; Thu, 28 Feb 2002 11:56:19 +0000 Received: from mail.uk.thalesgroup.com (localhost.localdomain [127.0.0.1]) by mail.uk.thalesgroup.com (8.11.6/8.11.0) with ESMTP id g1SBvnY17420 for ; Thu, 28 Feb 2002 11:57:49 GMT Received: from ntscxch1.int.rdel.co.uk (ntscxch1.int.rdel.co.uk [172.21.100.149]) by mail.uk.thalesgroup.com (8.11.6/8.11.0) with ESMTP id g1SBvlu17405; Thu, 28 Feb 2002 11:57:48 GMT Received: from fnxweb.com (172-21-182-92-roaming.int.rdel.co.uk [172.21.182.92]) by ntscxch1.int.rdel.co.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id DVB4LRFW; Thu, 28 Feb 2002 11:57:48 -0000 Message-ID: <3C7E1B3A.3020200@fnxweb.com> Date: Thu, 28 Feb 2002 11:57:46 +0000 From: Neil Bird Reply-To: GTK Mailing List User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en-us MIME-Version: 1.0 To: GTK Mailing List Cc: mrzali Subject: Re: gtknotebook & pixmap References: <3C7DFCE2.9606ADA7@mimos.my> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Around about 28/02/02 09:48, mrzali scribbled ... > How i want to attach pixmap into gtk-notebook-tab? > As far i know we can only set label on it. > Any suggestion. Do it in glade! Here's an edited example of how glade does it: notebook1 = gtk_notebook_new (); empty_notebook_page = gtk_vbox_new (FALSE, 0); gtk_widget_show (empty_notebook_page); gtk_container_add (GTK_CONTAINER (notebook1), empty_notebook_page); pixmap1 = create_pixmap (window1, NULL); gtk_widget_show (pixmap1); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), pixmap1); Nothing to stop you putting a container in the tab that contains pixmap+text, or pretty well anything, I guess. -- [neil@fnx ~]# rm -f .signature [neil@fnx ~]# ls -l .signature ls: .signature: No such file or directory [neil@fnx ~]# exit From edscott@imp.mx Thu Feb 28 08:31:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.imp.mx (imp.mx [192.100.181.86]) by mail.gnome.org (Postfix) with ESMTP id 6B7B51895B for ; Thu, 28 Feb 2002 08:31:58 -0500 (EST) Received: from there (gukumatz.imp.mx [192.100.181.220]) by www.imp.mx (SGI-8.9.3/8.9.3) with SMTP id HAA95238 for ; Thu, 28 Feb 2002 07:33:07 -0600 (CST) Message-Id: <200202281333.HAA95238@www.imp.mx> Content-Type: text/plain; charset="iso-8859-1" From: Edscott Wilson =?iso-8859-1?q?Garc=EDa?= Reply-To: edscott@imp.mx To: gtk-list@gnome.org Subject: GtkCTree drag bug workaround Date: Thu, 28 Feb 2002 07:31:35 -0600 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Time ago I asked a question on this list and noone knew the answer. So now I am sending a bug workaround to help whoever might confront the same problem. If you create a gtkctree and do a gtk_drag_source_set() from the start, what happens is that the first drag it receives from another gtk application will mistakenly start a drag on the gtkctree destination widget, without generating any of the signals. This only happens until the first "real" drag is initiated and finished in the offending gtkctree. And it will happen again after a expand or contract event. The workaround is to tie a signal to the buttonpress event, so that gtk_drag_source_set() is called with the buttonpress. And call gtk_drag_source_unset() on expand and contract events. Whether each gtk_drag_source_set() should be matched by a gtk_drag_source_unset(), I am not sure whether it is important or not. Edscott From pvosta@unionbio-eu.com Thu Feb 28 09:56:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (relay1-us.simplemente.net [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id 603F918D95 for ; Thu, 28 Feb 2002 09:56:33 -0500 (EST) Received: from unionbio-eu.com (unknown [213.193.139.10]) by relay1-us.simplemente.net (Postfix) with SMTP id BC83ED780D for ; Thu, 28 Feb 2002 09:56:31 -0500 (EST) Received: (qmail 2215 invoked from network); 28 Feb 2002 14:52:23 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 28 Feb 2002 14:52:23 -0000 Message-ID: <3C7E44CE.E993AF42@unionbio-eu.com> Date: Thu, 28 Feb 2002 15:55:10 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: gdk_draw_gray_image problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I ahve problem with "gdk_draw_gray_image". The code to display a greyvalue image is shown below. If I take gdk_draw_gray_image" out of the loop or reduce the number of loops below 3, either a solid grey image window display is shown (0 loops ) or only the lower half of the image (2 loops) ? Anyone any information about what is going wrong ( the test code is somewhat modified for clarity)? Best regards, Peter void xyz_rgb_display (GtkWidget *drawing_area, image *im ) { int *p = NULL; guchar buf[WIDTH * HEIGHT * 3]; gint i = 0, j = 0; gboolean dither = 1; p = image_data( im ); for (j = 0; j < WIDTH * HEIGHT; j++) buf[j] = *p++;; for( i = 0; i < 3; i++ ){ gdk_draw_gray_image (drawing_area->window, drawing_area->style->white_gc, 0, 0, WIDTH, HEIGHT, dither ? GDK_RGB_DITHER_MAX : GDK_RGB_DITHER_NONE, buf, WIDTH); } } From pbd@op.net Thu Feb 28 09:56:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 98A8818D95 for ; Thu, 28 Feb 2002 09:56:38 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-506.phlpa.fast.net [209.92.97.252]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA09776; Thu, 28 Feb 2002 09:56:23 -0500 (EST) Message-Id: <200202281456.JAA09776@renoir.op.net> To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: now that we're on GtkDrawingArea... =) In-reply-to: Your message of "Wed, 27 Feb 2002 23:29:25 CST." <20020227232925.09c86401.davidgn@servidor.unam.mx> Date: Thu, 28 Feb 2002 09:56:00 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I have my DrawingArea on a ViewPort on a ScrolledWindow on a pane on a noteboo >k on a table..... like the song... > >I couldnt use any function that gets a GdkWindow as a parameter. As in the scr >ibble example, the Area is just under the Window, and it works. But i had the >DrawingArea somewhere else, and area->window sent messages like: > >Gdk-CRITICAL **: file gdkdraw.c: line 42 (gdk_draw_point): assertion `drawable > != NULL' failed. at what point in your code are you trying to draw on the DrawingArea? i hope, given all the messages about this, that its within an expose_event handler. >As i read, some widgets does not have its own window (but the example worked u >sing the Area's window, widget-window), and they draw on its parent window. >I thought maybe DrawingArea is one such widget (though doesnt sound like it), >and since the example works, i used the main window's window as the parameter >to gdk_pixmap_new and other functions. It works. it has its own window. --p From hp@redhat.com Thu Feb 28 10:36:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 71C6A18CF2 for ; Thu, 28 Feb 2002 10:35:56 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SFZls32016; Thu, 28 Feb 2002 10:35:47 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ganesan Sethuraman Cc: gtk-list@gnome.org Subject: Re: Info Regarding GtkEntry References: <3C7DB6DB.F959A8FA@wipro.com> From: Havoc Pennington Date: 28 Feb 2002 10:35:47 -0500 In-Reply-To: <3C7DB6DB.F959A8FA@wipro.com> Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ganesan Sethuraman writes: > Could you please tell me if there is any limatations on the number of > characters a GtkEntry widget can hold ? If I give more than 7300(approx) > characters, the characters are getting overlapped. Any idea on what > could be the problem ? > Is this GTK 1.2 or GTK 2? It's probably an integer overflow for the character positions. In GTK 2 this isn't really supposed to happen though. Havoc From John.Cupitt@ng-london.org.uk Thu Feb 28 10:48:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id F315918229 for ; Thu, 28 Feb 2002 10:48:58 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id ; Thu, 28 Feb 2002 15:48:58 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F5CML7Y2; Thu, 28 Feb 2002 15:48:56 -0000 Message-ID: <3C7E4E16.4000405@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: pvosta@unionbio-eu.com Cc: gtk-list@gnome.org Subject: Re: gdk_draw_gray_image problem Date: Thu, 28 Feb 2002 15:34:46 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hiya, almost exactly that code works for me, so I guess the problem must be somewhere else :-( Does testrgb work OK? If it does, what's that code doing that you're not doing? Peter Van Osta wrote: > I ahve problem with "gdk_draw_gray_image". The code to display a > greyvalue image is shown below. If I take gdk_draw_gray_image" out of > the loop or reduce the number of loops below 3, either a solid grey > image window display is shown (0 loops ) or only the lower half of the > image (2 loops) ? > > Anyone any information about what is going wrong ( the test code is > somewhat modified for clarity)? > > Best regards, > > Peter > > > void xyz_rgb_display (GtkWidget *drawing_area, image *im ) > { > > int *p = NULL; > guchar buf[WIDTH * HEIGHT * 3]; > gint i = 0, j = 0; > gboolean dither = 1; > > p = image_data( im ); > > for (j = 0; j < WIDTH * HEIGHT; j++) > buf[j] = *p++;; > > for( i = 0; i < 3; i++ ){ > gdk_draw_gray_image (drawing_area->window, > drawing_area->style->white_gc, > 0, 0, WIDTH, HEIGHT, > dither ? GDK_RGB_DITHER_MAX : > GDK_RGB_DITHER_NONE, > buf, WIDTH); > } > } ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From seberino@dt092n42.san.rr.com Thu Feb 28 11:02:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 8225918F22 for ; Thu, 28 Feb 2002 11:02:52 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16gT1h-0001Jt-00 for gtk-list@gnome.org; Thu, 28 Feb 2002 08:03:25 -0800 Date: Thu, 28 Feb 2002 08:03:25 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: configure event & pixmap question... Message-ID: <20020228080325.A5074@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: After much analysis I figured out that if I dereference a global pixmap pointer and then redefine it in configure event handler ALL IS WELL. If I don't dereference but just keep drawing on top of old global pixmap pointer in new configure event handler calls then NOTHING gets drawn on screen. HOW COME PIXMAP MUST BE NEWLY CREATED IN EACH CONFIGURE EVENT CALL? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Thu Feb 28 11:07:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id EAE07184C3 for ; Thu, 28 Feb 2002 11:07:46 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16gT6S-0001KC-00 for gtk-list@gnome.org; Thu, 28 Feb 2002 08:08:20 -0800 Date: Thu, 28 Feb 2002 08:08:20 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: expose event & pixmap question Message-ID: <20020228080820.B5074@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: gint exposeEventHandler(GtkWidget* widget, GdkEventExpose* event) { gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], Pixmaps::myPicture, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return FALSE; }; Pixmaps make expose event handlers easy I think because you can just redraw uncovered portion with a single function call as in function above. WHY CAN'T WE REDRAW A PORTION OF THE DRAWING AREA THE SAME WAY AND AVOID NEED FOR PIXMAP? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Thu Feb 28 11:27:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 04B4218C74 for ; Thu, 28 Feb 2002 11:27:41 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-506.phlpa.fast.net [209.92.97.252]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA23626; Thu, 28 Feb 2002 11:27:37 -0500 (EST) Message-Id: <200202281627.LAA23626@renoir.op.net> To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: expose event & pixmap question In-reply-to: Your message of "Thu, 28 Feb 2002 08:08:20 PST." <20020228080820.B5074@spawar.navy.mil> Date: Thu, 28 Feb 2002 11:27:20 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >gint exposeEventHandler(GtkWidget* widget, GdkEventExpose* event) { > gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widge >t)], > Pixmaps::myPicture, event->area.x, event->area.y, > event->area.x, event->area.y, event->area.width, event->area.height); > > return FALSE; >}; > > >Pixmaps make expose event handlers easy I think because you can just >redraw uncovered portion with a single function call as in function above. > >WHY CAN'T WE REDRAW A PORTION OF THE DRAWING AREA THE SAME >WAY AND AVOID NEED FOR PIXMAP? because we're shouting? its because a Pixmap is a different kind of resource than a Window. They are both considered to "drawables" - you can draw things on them by calling the gdk_draw_*() functions. However, a pixmap is an "offscreen" drawable that is never mapped to the display. A window in an "onscreen" drawable that can be mapped to the display. when you draw on a window, you are either going to fail (the window is not mapped), or the results show up "right away". when you draw in a pixmap, the results don't show up till you draw the pixmap into a window. a drawing area has a window, not a pixmap, as its drawable. if you want something else, then i suspect that the Canvas might be worth getting to know. does this make it any clearer? --p From hp@redhat.com Thu Feb 28 11:33:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 834BA19702 for ; Thu, 28 Feb 2002 11:33:05 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SGX2g32295; Thu, 28 Feb 2002 11:33:02 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: configure event & pixmap question... References: <20020228080325.A5074@spawar.navy.mil> From: Havoc Pennington Date: 28 Feb 2002 11:33:02 -0500 In-Reply-To: <20020228080325.A5074@spawar.navy.mil> Message-ID: Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Christian Seberino writes: > After much analysis I figured out that if I dereference > a global pixmap pointer and then redefine it in > configure event handler ALL IS WELL. > > If I don't dereference but just keep drawing on top > of old global pixmap pointer in new configure event > handler calls then NOTHING gets drawn on screen. > > HOW COME PIXMAP MUST BE NEWLY CREATED IN EACH > CONFIGURE EVENT CALL? > Normally you create a new pixmap in order to resize it. Havoc From hp@redhat.com Thu Feb 28 11:34:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id D996D198E1 for ; Thu, 28 Feb 2002 11:34:36 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SGYT532299; Thu, 28 Feb 2002 11:34:29 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: expose event & pixmap question References: <20020228080820.B5074@spawar.navy.mil> From: Havoc Pennington Date: 28 Feb 2002 11:34:29 -0500 In-Reply-To: <20020228080820.B5074@spawar.navy.mil> Message-ID: Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Christian Seberino writes: > gint exposeEventHandler(GtkWidget* widget, GdkEventExpose* event) { > gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], > Pixmaps::myPicture, event->area.x, event->area.y, > event->area.x, event->area.y, event->area.width, event->area.height); > > return FALSE; > }; > > > Pixmaps make expose event handlers easy I think because you can just > redraw uncovered portion with a single function call as in function above. > > WHY CAN'T WE REDRAW A PORTION OF THE DRAWING AREA THE SAME > WAY AND AVOID NEED FOR PIXMAP? Because the user will see each individual drawing operation, causing flicker. Try it. This is what GTK 2 fixes - it automatically double buffers, so you can redraw directly to the drawing area and do not need the pixmap. Havoc From flavio@maqplas.com.br Thu Feb 28 12:43:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from powerdroid.ns1.com.br (smtphost.ns1.com.br [200.185.44.15]) by mail.gnome.org (Postfix) with ESMTP id 10D11198BB for ; Thu, 28 Feb 2002 12:43:31 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by powerdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1SHh92m068940 for ; Thu, 28 Feb 2002 14:43:11 -0300 (BRT) Subject: How to catch Pixmap widget x & y coordinates ? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 28 Feb 2002 14:45:47 -0300 Message-Id: <1014918350.1154.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I need to know how to catch the coordinates from a pixmap Widget; Thanks for any help Thanks a lot Flavio Alberto From pbd@op.net Thu Feb 28 13:03:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 02E761992E for ; Thu, 28 Feb 2002 13:03:57 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-247.phlpa.fast.net [209.92.227.247]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA09231; Thu, 28 Feb 2002 13:03:54 -0500 (EST) Message-Id: <200202281803.NAA09231@renoir.op.net> To: Fl vio Alberto Lopes Soares Cc: gtk-list Subject: Re: How to catch Pixmap widget x & y coordinates ? In-reply-to: Your message of "28 Feb 2002 14:45:47 -0300." <1014918350.1154.0.camel@flavio.maqplas> Date: Thu, 28 Feb 2002 13:03:38 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hello all, > >I need to know how to catch the coordinates from a pixmap Widget; >Thanks for any help your question is not clear. please be more specific. From venkat_ramakrishnan@hotmail.com Thu Feb 28 13:13:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f73.law11.hotmail.com [64.4.17.73]) by mail.gnome.org (Postfix) with ESMTP id 4E4B01834B for ; Thu, 28 Feb 2002 13:13:20 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 28 Feb 2002 10:13:19 -0800 Received: from 61.11.57.127 by lw11fd.law11.hotmail.msn.com with HTTP; Thu, 28 Feb 2002 18:13:19 GMT X-Originating-IP: [61.11.57.127] From: "Venkat Ramakrishnan" To: gtk-list@gnome.org Subject: PangoFontMetrics Date: Thu, 28 Feb 2002 18:13:19 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Feb 2002 18:13:19.0541 (UTC) FILETIME=[99B99650:01C1C083] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I am new to GTK+ . I used to use X and motif calls for UI design and i really find GTK to be very flexible and powerful. Thanks to the people who brought it up . I have a small question . I want to write some strings into a drawing area using certain fonts . And I am using Pango for this . Now I want to find out the height and width (ascent and descent etc) of the string so that i can place it properly . Hence I am using the PangoFontMterics. But there is one call which is confusing for me pango_language_from_string (const char *language); where language : a string representing a language tag (as the API says) Can somebosy tell me what string to passed as the "language" in the above call .Is it related somehow to the locale . I tried passing the string (i want to draw , but it does not work ) I mean for different strings I get the same ascent and descent . I am confused . I think the ascent and descent is based on the font being used . I would apprecite any help on this. Is there any application using pango . Cyrrently I am refering the API Refarence (from gtk.org) Thanks vankat _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From flavio@maqplas.com.br Thu Feb 28 13:44:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pkdroid.ns1.com.br (pkdroid.ns1.com.br [200.185.44.16]) by mail.gnome.org (Postfix) with ESMTP id 8E40B18FB0 for ; Thu, 28 Feb 2002 13:44:44 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by pkdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1SIicff042634; Thu, 28 Feb 2002 15:44:38 -0300 (BRT) Subject: Re: How to catch Pixmap widget x & y coordinates ? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Paul Davis Cc: gtk-list In-Reply-To: <200202281803.NAA09231@renoir.op.net> References: <200202281803.NAA09231@renoir.op.net> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 28 Feb 2002 15:47:06 -0300 Message-Id: <1014922027.1156.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Em 28 Feb 2002 13:03:38 -0500, Paul Davis escreveu: Ok, I want to use gdk_draw_pixmap to exchange one Gtk Pixmap with a file pixmap, I made some experiences with this command as above : int troca_pixmap(gpointer user_data, char *nome_pixmap, char *filename, gboolean use_pixmap_interno, GdkPixmap *pixmap_interno) { GtkWidget *pixmap; GdkColormap *colormap; GdkPixmap *gdkpixmap; GdkBitmap *mask; gchar *pathname = NULL; pixmap = lookup_widget(user_data, nome_pixmap); if(use_pixmap_interno == FALSE) { if (!filename || !filename[0]) return -1; pathname = gnome_pixmap_file (filename); if (!pathname) { g_warning (_("Couldn't find pixmap file: %s"), filename); return -1; } colormap = gtk_widget_get_colormap (user_data); gdkpixmap = gdk_pixmap_colormap_create_from_xpm (NULL, colormap, &mask, NULL, pathname); if (gdkpixmap == NULL) { g_warning (_("Couldn't create pixmap from file: %s"), pathname); g_free (pathname); return -1; } } else { if (pixmap_interno == NULL) { g_warning (_("Couldn't create pixmap from pixmap_interno")); return -1; } gdkpixmap = pixmap_interno; } if(use_pixmap_interno == FALSE) { g_free (pathname); gdk_draw_pixmap (pixmap->window, pixmap->style->fg_gc[GTK_WIDGET_STATE(pixmap)], gdkpixmap, -1, -1, -1, -1, GTK_WIDGET (pixmap)->requisition.width, GTK_WIDGET (pixmap)->requisition.height); } else { gtk_widget_hide(GTK_WIDGET(pixmap)); gtk_pixmap_set(GTK_PIXMAP(pixmap), gdkpixmap, NULL); gtk_widget_show(GTK_WIDGET(pixmap)); } if(use_pixmap_interno == FALSE) { gdk_pixmap_unref (gdkpixmap); gdk_bitmap_unref (mask); } return 1; } This works fine, but the position of pixmaps are allways in left up corner I believe because the parameters -1, -1, -1, -1, but I don't know what to put in these parameters, the gdk reference manual says that these parameters are the x,y coordinates of source and destination, but I don't know how to obtain this information. Any help to a newbie are Welcome Thanks a lot Flavio Alberto > >Hello all, > > > >I need to know how to catch the coordinates from a pixmap Widget; > >Thanks for any help > > your question is not clear. please be more specific. From a9308317@unet.univie.ac.at Thu Feb 28 14:09:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from email02.aon.at (WARSL401PIP3.highway.telekom.at [195.3.96.75]) by mail.gnome.org (Postfix) with SMTP id BE1C41832F for ; Thu, 28 Feb 2002 14:09:39 -0500 (EST) Received: (qmail 338460 invoked from network); 28 Feb 2002 19:09:38 -0000 Received: from n603p019.dipool.highway.telekom.at (HELO email.aon.at) ([212.183.85.83]) (envelope-sender ) by qmail2.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 28 Feb 2002 19:09:38 -0000 From: Markus Klein To: gtk-list@gnome.org Subject: messed up GTK Message-ID: <20020228201425.A1179@pcd-5nd> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.0.0 X-Mutt-Fcc: Gesendet Lines: 84 Date: Thu, 28 Feb 2002 14:09:39 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi everybody. I am looking for help with my Gnome/GTK installation. I want to compile some gnome programs but "make" always complains about missing files, though "./configure" is just fine: (Note: "Datei oder Verzeichnis nicht gefunden" means "file or directory not found").. ---cut --- In file included from /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid.h:23, from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:104, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden In file included from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:106, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-start.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-start.h:23: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden In file included from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:107, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-standard.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-standard.h:23: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden In file included from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:108, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-finish.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-finish.h:23: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden In file included from gtkdial.c:21: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-window-icon.h:28: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-window-icon.h:29: gtk/gtkwindow.h: Datei oder Verzeichnis nicht gefunden make[2]: *** [gtkdial.o] Error 1 make[2]: Leaving directory `/home/mox/gtkdial-0.4.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mox/gtkdial-0.4.0' make: *** [all-recursive-am] Error 2 mox@pcd-5nd:~/gtkdial-0.4.0 > As far as I can see all the relevant files are actually there. I have installed all the devel-packages (GTK, imlib, X, gnome-libs, etc.) but I have installed GTK-1.2.10 twice: One time by the dist-rpm-packages, one time by the *.tar.gz source (configure/make/make install). I remember that this was due to a "configure" didn't find GTK one time, so I did this. Now I have to find a solution for this problem. GTK-1.2.10 is in /usr/local/include/gtk-1.2/ and /opt/gnome/include/gtk-1.2/ The other files are were they should be, I suppose: mox@pcd-5nd:~ > ls /opt/gnome/include/ gdk_imlib.h gdk-pixbuf-1.0 Imlib.h libIDL-1.0 gdk_imlib_private.h gnome-1.0 Imlib_private.h libmedusa gdk_imlib_types.h gtk-1.2 Imlib_types.h orbit-1.0 gtk-config says following: # gtk-config --prefix /usr/local # gtk-config --exec-prefix /usr/local # gtk-config --libs -L/usr/local/libs -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm My distribution is a Suse7.2 (Xfree3) and Ximian Gnome (red-carpet). ... ?help? thanx mox From hp@redhat.com Thu Feb 28 14:26:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id C2AFF1832F for ; Thu, 28 Feb 2002 14:26:17 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SJQF424517; Thu, 28 Feb 2002 14:26:15 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Venkat Ramakrishnan" Cc: gtk-list@gnome.org Subject: Re: PangoFontMetrics References: From: Havoc Pennington Date: 28 Feb 2002 14:26:15 -0500 In-Reply-To: Message-ID: Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Venkat Ramakrishnan" writes: > I am new to GTK+ . I used to use X and motif calls for UI design and > i really find GTK to be very flexible and powerful. Thanks to the > people who brought it up . > I have a small question . I want to write some strings into a drawing > area using certain fonts . And I am using Pango for this . Now I want > to find out the height and width (ascent and descent etc) of the > string so that i can place it properly . Hence I am using the > PangoFontMterics. > But there is one call which is confusing for me > pango_language_from_string (const char *language); > where > language : a string representing a language tag (as the API says) > > Can somebosy tell me what string to passed as the "language" in the > above call .Is it related somehow to the locale . > I tried passing the string (i want to draw , but it does not work ) > I mean for different strings I get the same ascent and descent . > > I am confused . I think the ascent and descent is based on the font > being used . > I would apprecite any help on this. Is there any application using > pango . Cyrrently I am refering the API Refarence (from gtk.org) > Rather than fooling with font metrics, you probably just want to call pango_layout_get_pixel_extents(). If you need a PangoLanguage gtk_get_default_language() is the simplest way. Havoc From gtk_plus@yahoo.com Thu Feb 28 14:33:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11905.mail.yahoo.com (web11905.mail.yahoo.com [216.136.172.189]) by mail.gnome.org (Postfix) with SMTP id 30D3F1817F for ; Thu, 28 Feb 2002 14:33:27 -0500 (EST) Message-ID: <20020228193326.31707.qmail@web11905.mail.yahoo.com> Received: from [195.202.246.117] by web11905.mail.yahoo.com via HTTP; Thu, 28 Feb 2002 11:33:26 PST Date: Thu, 28 Feb 2002 11:33:26 -0800 (PST) From: Ibrahim Shaame Subject: Installing test gtk-1.3.15 To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have downloaded the lattest version, and would like to install it. I have created a directory within gnome directory (opt/gnome/gtk-1.3.15), successfully compiled glib-2.0, tried to load the libraries (from gtk-1.3.15/lib), but when trying to compile atk-0.13 I get a message the message that glib >= 1.3.12 is not found, and that I should try to edit the "script"/opt/gnome/bin/pkg-config (which infact is binary!). I have already compiled the new pkg-config into the directory /opt/gnome/gtk-1.3.15. I think my problem is how to make the system use the directory /opt/gnome/gtk-1.3.15. Could anyone help me how to use another another copy of gtk instead of the one which came with the system. Thanks IS __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com From maldonado@ibiquity.com Thu Feb 28 14:41:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from radioflyer.ibocradio.com (unknown [208.33.57.98]) by mail.gnome.org (Postfix) with ESMTP id 7BFA51820E for ; Thu, 28 Feb 2002 14:41:06 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1C08F.DCBB67F2" Subject: floating points Date: Thu, 28 Feb 2002 14:41:05 -0500 Message-ID: <6AC325EB1D98F84B986D83F985121C1F16FDBF@radioflyer.ibocradio.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: floating points Thread-Index: AcHAj9yuAivZs6oORZSsd9GtkHA2XQ== From: "Lourdes Maldonado" To: "Gtk-List" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1C08F.DCBB67F2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 I have an entry field where the user enters a string that should correspond to a floating point number (an FM frequency). When I retrieve the string from the entry field and convert it (using strtod) to a floating point, the number does not come out exact (i.e. if I enter the string 85.3 the floating point number I get is 85.299995). =20 I'm sorry this is not necessarily a gtk question, but the other day I saw a message on this Gtk-list were someone mentioned a similar issue with floating point representation and I forget if there was a solution included in the message. =20 Any help would be appreciated, =20 Lourdes ------_=_NextPart_001_01C1C08F.DCBB67F2 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

 

I have an entry field where the user enters a string = that should correspond to a floating point number (an FM frequency).  = When I retrieve the string from the entry field and convert it (using strtod) = to a floating point, the number does not come out exact (i.e. if I enter the = string 85.3 the floating point number I get is 85.299995).

 

I’m sorry this is not necessarily a gtk = question, but the other day I saw a message on this Gtk-list were someone mentioned a = similar issue with floating point representation and I forget if there was a = solution included in the message.

 

Any help would be appreciated,

 

Lourdes

=00 ------_=_NextPart_001_01C1C08F.DCBB67F2-- From sven@gimp.org Thu Feb 28 15:26:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9587782.dip.t-dialin.net [217.88.119.130]) by mail.gnome.org (Postfix) with ESMTP id 622DE18152 for ; Thu, 28 Feb 2002 15:26:50 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16gX8e-0004vP-00; Thu, 28 Feb 2002 21:26:52 +0100 To: Ibrahim Shaame Cc: gtk-list@gnome.org Subject: Re: Installing test gtk-1.3.15 References: <20020228193326.31707.qmail@web11905.mail.yahoo.com> From: Sven Neumann Date: 28 Feb 2002 21:26:51 +0100 In-Reply-To: <20020228193326.31707.qmail@web11905.mail.yahoo.com> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Ibrahim Shaame writes: > I have downloaded the lattest version, and would like > to install it. I have created a directory within gnome > directory (opt/gnome/gtk-1.3.15), successfully > compiled glib-2.0, tried to load the libraries (from > gtk-1.3.15/lib), but when trying to compile atk-0.13 I > get a message the message that glib >= 1.3.12 is not > found, and that I should try to edit the > "script"/opt/gnome/bin/pkg-config (which infact is > binary!). I have already compiled the new pkg-config > into the directory /opt/gnome/gtk-1.3.15. I think my > problem is how to make the system use the directory > /opt/gnome/gtk-1.3.15. read the output of configure again. It asked you to add the location of glib-2.0.pc to your PKG_CONFIG_PATH. You might also have to adapt your LD_LIBRARY_PATH. Salut, Sven From trefftzs@tcsn.net Thu Feb 28 17:18:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from thoth.trefftzs.org (psrb-ppp1-130.tcsn.net [63.174.82.130]) by mail.gnome.org (Postfix) with ESMTP id 2D1B118245 for ; Thu, 28 Feb 2002 17:18:47 -0500 (EST) Received: from outmail.tcsn.net (jeff@localhost) by thoth.trefftzs.org (8.9.3/8.9.3) with ESMTP id OAA01497; Thu, 28 Feb 2002 14:17:42 -0800 Message-Id: <200202282217.OAA01497@thoth.trefftzs.org> X-Authentication-Warning: thoth.trefftzs.org: jeff owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Ibrahim Shaame Cc: gtk-list@gnome.org Subject: Re: Installing test gtk-1.3.15 In-Reply-To: Message from Ibrahim Shaame of "Thu, 28 Feb 2002 11:33:26 PST." <20020228193326.31707.qmail@web11905.mail.yahoo.com> From: Jeff Trefftzs Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 28 Feb 2002 14:17:42 -0800 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Ibrahim - You're in luck. I had exactly the same problem last night. Here's how I fixed it (at least according to my notes). First, as root run /sbin/ldconfig to update your libraries. Find where your pkgconfig files are. There might be one under /opt/gnome. If so, the export PKG_CONFIG_PATH="/opt/gnome/pkgconfig:$PKG_CON FIG_PATH" and try again. You may also need to set LD_LIBRARY_PATH. I did, but I was installing in a *really* strange place (/usr/local/development). HTH, -- --Jeff Jeff Trefftzs http://www.tcsn.net/trefftzs Home Page http://gug.sunsite.dk/gallery.php?artist=68 Gimp Gallery http://trefftzs.topcities.com/home.html Photo galleries From shane_b@users.sourceforge.net Sun Feb 24 04:31:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail009.syd.optusnet.com.au (mail009.syd.optusnet.com.au [203.2.75.170]) by mail.gnome.org (Postfix) with ESMTP id 60B5E18129 for ; Sun, 24 Feb 2002 04:31:01 -0500 (EST) Received: from pluto (geeax5-103.dialup.optusnet.com.au [198.142.96.103]) by mail009.syd.optusnet.com.au (8.11.1/8.11.1) with ESMTP id g1O9Uvn22774 for ; Sun, 24 Feb 2002 20:30:58 +1100 Subject: GTK+2 - GtkTreeModel From: Shane Butler To: "List, GTK+" Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.99.2 (Preview Release) Date: 24 Feb 2002 20:32:52 +1100 Message-Id: <1014543176.8347.5.camel@pluto> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Just wondering if someone could suggest the best way to move a row in a GtkTreeModel up or down. Thanks, Shane From amrithamani@hotmail.com Sun Feb 24 12:56:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f94.law3.hotmail.com [209.185.241.94]) by mail.gnome.org (Postfix) with ESMTP id 7B966180E9 for ; Sun, 24 Feb 2002 12:56:27 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 24 Feb 2002 09:56:26 -0800 Received: from 137.132.3.9 by lw3fd.law3.hotmail.msn.com with HTTP; Sun, 24 Feb 2002 17:56:26 GMT X-Originating-IP: [137.132.3.9] From: "Amritha Mani" To: gtk-list@gnome.org Subject: Scrolling of Drawing area within GTKLayout Date: Mon, 25 Feb 2002 01:56:26 +0800 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 24 Feb 2002 17:56:26.0854 (UTC) FILETIME=[9476D060:01C1BD5C] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have just started using GTK. I need to draw a diagram with lines that depicts data flow between a client and a server, i.e, keeps growing in the vertical direction. I tried using Gtk Window-> Gtk Layout->Gtk Drawing area but the drawing area doesnt grow(and shows only the first few data lines) Is there some other simple way to do this? Kindly help. Amritha _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From falconer@falconer.best.vwh.net Mon Feb 25 15:57:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id D017618C15 for ; Mon, 25 Feb 2002 15:57:27 -0500 (EST) Received: (qmail 41813 invoked by uid 25889); 25 Feb 2002 20:57:23 -0000 Received: from unknown (HELO localhost) ([192.220.101.33]) (envelope-sender ) by 192.220.101.33 (qmail-ldap-1.03) with SMTP for ; 25 Feb 2002 20:57:23 -0000 Date: Mon, 25 Feb 2002 20:57:23 +0000 (GMT) From: Edward A Falk Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests In-Reply-To: <200202241320.IAA17161@renoir.op.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > > arguments. > > which window is that for? think about it. First window, or even all top-level windows. It would still be more useful than not being able to specify at all. Face it, most applications start with one initial window. Throwing away a useful feature because it's ambiguous (note: ambiguous, not broken) in the general case is silly. > > * It would be nice to add a scale factor option to sliders and > > you can write this yourself. ... Yes, but it's a fair bit of work, the way how is non-obvious (I didn't even know it was possible until I read your post), and most app writers won't even think to do it. In the slider widget I wrote for Xt, input scaling was simply set through a resource, and by default was automatic for sliders less than 100 pixels long. > > * It would be nice for TextEntry widgets to have signals which > > indicate that the widget has received/lost keyboard focus. > > focus_in_event > focus_out_event Doh! Didn't think to look at the signals in the super-classes. Thanks; I have a lot of code to re-write now. > > * I found the toolkit's habit of highlighting the widget under the > > cursor rather than highlighting the widget with keyboard focus > > to be confusing. > > catch enter_notify_event and leave_notify_event and stop the > emission. this will prevent prelighting. i wish there was a way to > turn off prelighting on a global basis, but it appears to contradict > the desire of GTK+'s designers for a consistent GUI experience. I was thinking of the general case. The prelighting should reflect the keyboard focus, not the mouse position. The user *knows* where the mouse is. > > * It would be nice if I could use my own select loop with gtk; > > GTK uses glib, and its inner loop is a bit more complex than > this. I was afraid of that. I've been able to use gtk_input_add(), but in my years of programming experience, I've learned that there are always cases that the API designer didn't think of. Someday, an application will come up that needs to react to events that are not file input events or signals, and then what? Anyway, thanks for your comments. -ed falk From falconer@falconer.best.vwh.net Mon Feb 25 16:07:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id 2897618B10 for ; Mon, 25 Feb 2002 16:07:08 -0500 (EST) Received: (qmail 42710 invoked by uid 25889); 25 Feb 2002 21:07:07 -0000 Received: from unknown (HELO localhost) ([192.220.101.33]) (envelope-sender ) by 192.220.101.33 (qmail-ldap-1.03) with SMTP for ; 25 Feb 2002 21:07:07 -0000 Date: Mon, 25 Feb 2002 21:07:07 +0000 (GMT) From: Edward A Falk Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Both features and bug reports should go in bugzilla - Thanks, didn't know about bugzilla. > Certainly a number of these comments would be useful in bugzilla. > > > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > > arguments. > > gtk_window_parse_geometry(). Thanx; missed that one in the docs. Better than nothing. > > * It would be very handy to be able to somehow specify the > > width of a TextEntry widget in terms of displayed characters > > instead of pixels. > > gtk_entry_set_width_chars() Also thanx. This one not my copy of the docs. I need to get an updated set. Or was this new with gtk 2? Wait, never mind. I see it's new with gtk 2. Excellent. > > * Scrollbars and scales desperately need a way for callbacks to > > differentiate a scroll-in-progress from a scroll-completed type > > gtk_range_set_update_policy() is the intended feature here, though it > doesn't handle the case you mention. Right. I know how to specify events under each policy, but there's no way to collect *both* kinds of events and differentiate them. I've already written two different CAD applications that need to know the difference. > > * It would be nice to add a scale factor option to sliders and > > scrollbars so that a large mouse motion results in a small > > change in slider position (very useful feature when dealing > > with very small sliders. See > > Wouldn't it make more sense for the slider to autocompute the scale > factor depending on its size and range and step increment? The slider I wrote does exactly that by default. If AutoScale is true, then scaling is set appropriate to the size of the slider. Otherwise, the application may manually set a scale factor. > > * It would be a nice feature to add "focus follows mouse" to the > > Hrm, I think you'll find little enthusiasm for that... no modern > toolkit does this. I know. I was re-writing the old Xaw toolkit to support keyboard traversal, and I had to face the issue that some users would object to changing the paradigm. So I added a user-setable flag to choose the focus model. Then I realized that the two models aren't incompatible and set the default behavior to use both. It really works quite well. -ed falk From syborg@janeway.vonbek.dhs.org Mon Feb 25 18:36:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from janeway.vonbek.dhs.org (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by mail.gnome.org (Postfix) with ESMTP id 584D019453 for ; Mon, 25 Feb 2002 18:36:27 -0500 (EST) Received: by janeway.vonbek.dhs.org (Postfix, from userid 12347) id 382D6FC70A4; Mon, 25 Feb 2002 18:37:30 -0500 (EST) Date: Mon, 25 Feb 2002 18:37:30 -0500 (EST) From: John Bleichert To: GTK list Subject: Re: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I just recently setup gtk on freebsd and I had similar results. I removed what I installed, and then installed gtk using /stand/sysinstall (the proper package management, along with the pkg_* tools) and it worked fine. Try that out - at first attempt I treated it like linux/ldconfig, but they are not the same system and it had, erm, unexpected results hehe ;-) I'M rtfm on that particular subject right now. JB On Mon, 25 Feb 2002, Yu-Fong Cho spewed forth: > Hi, > > I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is > a little different, so please take a look. Thank you!!! > > I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any > gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so > and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! > > I tried to install Netscape 6.2, but it keep telling me: > > error in loading shared libraries: libgtk-1.2.so.0: cannot open shared > object file: No such file or directory. > > My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my > whole file system. There is just no libgtk-1.2.so.0. > > What's wrong with it? > > > Yu-Fong > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From pyaggi@aulamagna.com.ar Tue Feb 26 16:20:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aulamagna.com.ar (unknown [200.49.75.38]) by mail.gnome.org (Postfix) with SMTP id C913E1925D for ; Tue, 26 Feb 2002 16:20:04 -0500 (EST) Received: (qmail 4941 invoked from network); 26 Feb 2002 21:29:46 -0000 Received: from unknown (HELO there) (200.63.133.120) by 0 with SMTP; 26 Feb 2002 21:29:46 -0000 Content-Type: text/plain; charset="iso-8859-3" From: Pablo Yaggi To: gtk-list@gnome.org Subject: Slot never called Date: Tue, 26 Feb 2002 18:17:42 -0300 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Organization: Aulamagna Message-Id: <20020226212004.C913E1925D@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I new on gtk-- and also in C++, so please be patient =) I'm doing this: - I create a window with glade (with anjusta) - I create a button in that window (with glade) and connect the click signal to some slot named on_clicked (with glade) - I manually add on_clicked to the class declaration (is that correct ?) because glade didn't do it. - In that function I call the constructor of a file_select dialog created with glade. Then there is no problem the file_select dialog is created and sown. - I connected the clicked signal of the ok button to a slot named on_clicked (with glade) and add that slot to the file_select class declaration manually. - That slot is never called, why ? Pablo From adam@cfar.umd.edu Tue Feb 26 17:37:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from chia.umiacs.umd.edu (chia.umiacs.umd.edu [128.8.120.111]) by mail.gnome.org (Postfix) with ESMTP id 67D911812F; Tue, 26 Feb 2002 17:37:39 -0500 (EST) Received: from localhost (adam@localhost) by chia.umiacs.umd.edu (8.9.3/8.9.1) with ESMTP id RAA02535; Tue, 26 Feb 2002 17:37:29 -0500 (EST) X-Authentication-Warning: chia.umiacs.umd.edu: adam owned process doing -bs Date: Tue, 26 Feb 2002 17:37:29 -0500 (EST) From: Adam X-X-Sender: To: Michael Torrie Cc: =?ISO-8859-1?Q?Rams=E9s?= Morales , , Subject: Re: I think I found a freak bug on GTK+-1.3.15 In-Reply-To: <1014762810.32494.14.camel@divit.cs.byu.edu> Message-ID: X-WEB: http://www.eax.com Content-Type-X: multipart/mixed; boundary="------------3897B7E0F65FF08A89ED6C92" MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > This type of thing is very likely indicative of some memory corruption > in your code. It's unlikely to be in gtk (but could be). Just the fact > that removing the second pointer declaration makes it work indicates > that it's your code that's messing up somewhere. Just declaring a > pointer doesn't do any object initialization (ie gtk_tree_view_new type > stuff). What it does do is change your stack layout slightly such that > whatever memory corruption you're doing won't cause an immediate crash > when you remove that unused variable. Adding it back in changes offsets > just slightly so that something important on the stack is overwritten. > > Pointer errors always maifest themselves in this type of manner. Very > frustrating. Good luck. You'll want to run your code through DDD > debugger. It has some very powerful facilities for viewing your > variables etc. You can then watch what happens when the offending line > is executed. Also you can load the core file into the debugger after > the fact and see what line triggered the core dump, see the variables, > etc. Should help you establish what's happening. (DDD is run by the > command ddd. It's downloadable from the internet too -- see > freshmeat.net) actually I would suggset memory debugger. some of those include efence njamd purify (non-free) my favourie is njamd (it comes with redhat 7.2 and possibly others) run it until it stop showing any errors and the above problem should get auto-magically corrected -- Adam http://www.eax.com The Supreme Headquarters of the 32 bit registers From asmcoded@home.com Tue Feb 26 23:04:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from femail16.sdc1.sfba.home.com (femail16.sdc1.sfba.home.com [24.0.95.143]) by mail.gnome.org (Postfix) with ESMTP id C60F618122 for ; Tue, 26 Feb 2002 23:04:20 -0500 (EST) Received: from asm ([68.81.142.15]) by femail16.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20020227040420.LZHH12244.femail16.sdc1.sfba.home.com@asm> for ; Tue, 26 Feb 2002 20:04:20 -0800 Message-ID: <002f01c1bf5d$94f2fa20$6501a8c0@asm> From: "Kevin Candelaria" To: Subject: gtk-engine compile problem. Date: Tue, 26 Feb 2002 23:08:38 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002C_01C1BF1A.86836EE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_002C_01C1BF1A.86836EE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable i compiled glib all standard=20 ./configure make make install then gtk all the latest sources. but when i do gtk-engine=20 i get this: checking for gtk-config... /usr/local/bin/gtk-config checking for GTK - version >=3D 1.2.9... no *** Could not run GTK test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding GTK or finding the wrong *** version of GTK. If it is not finding GTK, you'll need to set your *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to = point *** to the installed location Also, make sure you have run ldconfig if = that *** is required on your system *** *** If you have an old version installed, it is best to remove it, = although *** you may also be able to get things to work by modifying = LD_LIBRARY_PATH *** *** If you have a RedHat 5.0 system, you should remove the GTK package = that *** came with the system with the command *** *** rpm --erase --nodeps gtk gtk-devel configure: error: *** GTK+-1.2.9 not installed - please install first = *** i have dont ldconfig and stuff but i dont understand about the = LD_LIBRARY_PATH thanks. ------=_NextPart_000_002C_01C1BF1A.86836EE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
i compiled glib all standard =
./configure
make
make install
then gtk
all the latest sources.
but when i do gtk-engine
i get this:
 
checking for gtk-config...=20 /usr/local/bin/gtk-config
checking for GTK - version >=3D 1.2.9... = no
***=20 Could not run GTK test program, checking why...
*** The test program=20 compiled, but did not run. This usually means
*** that the run-time = linker is=20 not finding GTK or finding the wrong
*** version of GTK. If it is not = finding=20 GTK, you'll need to set your
*** LD_LIBRARY_PATH environment = variable, or=20 edit /etc/ld.so.conf to point
*** to the installed location  = Also, make=20 sure you have run ldconfig if that
*** is required on your=20 system
***
*** If you have an old version installed, it is best to = remove=20 it, although
*** you may also be able to get things to work by = modifying=20 LD_LIBRARY_PATH
***
*** If you have a RedHat 5.0 system, you = should remove=20 the GTK package that
*** came with the system with the=20 command
***
***    rpm --erase --nodeps gtk=20 gtk-devel
configure: error: *** GTK+-1.2.9 not installed - please = install=20 first ***
 
i have dont ldconfig and stuff but i = dont=20 understand about the LD_LIBRARY_PATH
thanks.
 
------=_NextPart_000_002C_01C1BF1A.86836EE0-- From unicorn@minet.uni-jena.de Wed Feb 27 09:31:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fsuj20.rz.uni-jena.de (fsuj20.rz.uni-jena.de [141.35.1.18]) by mail.gnome.org (Postfix) with ESMTP id 59131184CD for ; Wed, 27 Feb 2002 09:31:38 -0500 (EST) Received: from virusscan.rz.uni-jena.de (virusscan.rz.uni-jena.de [141.35.1.23]) by fsuj20.rz.uni-jena.de (8.12.0.Beta7/8.11.1) with ESMTP id g1REVVmH008215 for ; Wed, 27 Feb 2002 15:31:31 +0100 (MET) Received: from virusscan.rz.uni-jena.de (localhost [127.0.0.1]) by virusscan.rz.uni-jena.de (8.11.6/8.11.6) with ESMTP id g1REVbq10224 for ; Wed, 27 Feb 2002 15:31:37 +0100 Received: from pax10e3.mipool.uni-jena.de (daemon@pax10e2.mipool.uni-jena.de [141.35.13.142]) by pax08e3.mipool.uni-jena.de (8.11.6/8.11.6) with ESMTP id g1REVak417168 for ; Wed, 27 Feb 2002 15:31:36 +0100 (CET) From: Randy Rueckner Received: (from unicorn@localhost) by pax10e3.mipool.uni-jena.de (8.11.6/8.11.6) id g1REVao459665 for gtk-list@gnome.org; Wed, 27 Feb 2002 15:31:36 +0100 (MET) Message-Id: <200202271431.g1REVao459665@pax10e3.mipool.uni-jena.de> Subject: progressbar update To: gtk-list@gnome.org Date: Wed, 27 Feb 2002 15:31:36 +0100 (MET) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello there! maybe someone can help me here. i've made a little gtk_progress_bar to show the progress of long calculations. i use »gtk_progress_set_value(...)« to update the progressbar and »while(g_main_iteration(FALSE))« to update the display. works fine with gtk v1.2.10, but my program must also run with gtk v1.1.5 and i have no idea how to update the display with v1.1.5. thanks in advance, randy r. From kalsuram@yahoo.com Wed Feb 27 12:45:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web21302.mail.yahoo.com (web21302.mail.yahoo.com [216.136.173.210]) by mail.gnome.org (Postfix) with SMTP id 94B6E1971E for ; Wed, 27 Feb 2002 12:45:06 -0500 (EST) Message-ID: <20020227174505.56584.qmail@web21302.mail.yahoo.com> Received: from [210.214.128.63] by web21302.mail.yahoo.com via HTTP; Wed, 27 Feb 2002 09:45:05 PST Date: Wed, 27 Feb 2002 09:45:05 -0800 (PST) From: Kal ram Subject: Number of Characters in GtkEntry widget To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want to know is there is any limit on the max no of characters entered for a GtkEntry Widget ? When I try to enter more than 7200(approx) characters the characters are getting overlapped. Thanks, kalsuram. __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com From gparrot@free.fr Thu Feb 28 02:51:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from postfix2-1.free.fr (postfix2-1.free.fr [213.228.0.9]) by mail.gnome.org (Postfix) with ESMTP id E9DBF18418 for ; Thu, 28 Feb 2002 02:51:06 -0500 (EST) Received: from gilkar (nas-cbv-1-128-110.dial.proxad.net [62.147.128.110]) by postfix2-1.free.fr (Postfix) with SMTP id 51D83150 for ; Thu, 28 Feb 2002 08:51:05 +0100 (CET) From: "Gilles Parrot" To: Subject: Zend Studio Date: Thu, 28 Feb 2002 08:50:18 +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.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I have downloaded the demo version of Zend Studio 2.0 to see if it corresponds to my needs. It is a good tool but I have a problem with my GTK developpements. Zend Studio uses its own version of php and don't read the php.ini stored in c:\windows. The php.ini stored in the Zend's directory has only two lines. I've tried to add the following line, like in the other php.ini: php-gtk.extensions = php_gtk_libglade.dll, php_gtk_sqpane.dll It doesn't work. Has anybody allready tried to use GTK with Zend Studio ? Thanks. Gilles PARROT From syed@mimos.my Thu Feb 28 04:38:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from filter.mimos.my (filter.mimos.my [192.228.137.70]) by mail.gnome.org (Postfix) with ESMTP id 43B0D181EB for ; Thu, 28 Feb 2002 04:38:06 -0500 (EST) Received: from ew.mimos.my (localhost.localdomain [127.0.0.1]) by filter.mimos.my (8.11.0/8.11.0) with ESMTP id g1S9Oim08200 for ; Thu, 28 Feb 2002 17:24:44 +0800 Received: (from root@localhost) by ew.mimos.my (8.11.6/8.11.6) id g1S9c3c27893 for gtk-list@gnome.org; Thu, 28 Feb 2002 17:38:03 +0800 (MYT) (envelope-from syed@mimos.my) Received: from mimos.my (infoniti25.nat.mimos.my [10.1.21.25]) by ew.mimos.my (8.11.6/8.11.6) with ESMTP id g1S9c2a27837 for ; Thu, 28 Feb 2002 17:38:02 +0800 (MYT) (envelope-from syed@mimos.my) Message-ID: <3C7DF9E5.34D0B8A5@mimos.my> Date: Thu, 28 Feb 2002 17:35:33 +0800 From: mrzali X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk notebook & pixmap X-scanner: scanned by Inflex 1.0.10 - (http://pldaniels.com/inflex/) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How i want to attach pixmap into gtk-notebook-tab? As far i know we can only set label on it. Any suggestion. Thanks, mr_zali From feiguin@magnet.fsu.edu Thu Feb 28 13:25:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fangio.magnet.fsu.edu (fangio.magnet.fsu.edu [146.201.234.41]) by mail.gnome.org (Postfix) with ESMTP id D36821853E for ; Thu, 28 Feb 2002 13:25:09 -0500 (EST) Received: from localhost (feiguin@localhost) by fangio.magnet.fsu.edu (8.11.6/8.11.6) with ESMTP id g1SIP9w16309 for ; Thu, 28 Feb 2002 13:25:09 -0500 (EST) X-Authentication-Warning: fangio.magnet.fsu.edu: feiguin owned process doing -bs Date: Thu, 28 Feb 2002 13:25:09 -0500 (EST) From: Adrian Feiguin To: gtk-list@gnome.org Subject: built-in types Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I wonder if somebody can shed some light on the way the BOXED data types are generated. I understand that maketypes.awk is used, are there any guidelines? Thank you! From kevin@mpcf.com Thu Feb 28 13:30:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.mpcf.com (unknown [209.215.137.161]) by mail.gnome.org (Postfix) with ESMTP id 972AF18165 for ; Thu, 28 Feb 2002 13:30:18 -0500 (EST) Received: from mpcf.com (10.0.0.8 [10.0.0.8]) by mail.mpcf.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id FKYGZG9C; Thu, 28 Feb 2002 13:27:54 -0500 Message-ID: <3C7E7669.68BAF389@mpcf.com> Date: Thu, 28 Feb 2002 13:26:49 -0500 From: kevin X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.17 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk 1.2.10 configure issues Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, First off, i am not a list member so please direct any replies to kevin@mpcf.com, thanks. I am trying to compile Gtk+1.2.10 on a Slackware 8 box. I downloaded glib1.2.10 and gtk1.2.10 tarballs from the Gtk site. Glib compiled and installed just fine but when i run ./configure for Gtk, it keeps saying glib 1.2.8 (or greater) is not installed. I run "glib-config --version" and it spits 1.2.10 back at me, so obviously it is installed and running fine. I removed the glib.h and gmodules.h from the /usr/local/include/ dir, as directed by the INSTALL file and my ld.so.conf is pointing to all the correct places for libraries. Anyone have any ideas as to where i should look first? Thanks for your help, VeKTeReX From gtw@research.att.com Thu Feb 28 16:03:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-blue.research.att.com (mail-blue.research.att.com [135.207.30.102]) by mail.gnome.org (Postfix) with ESMTP id 34094181D9 for ; Thu, 28 Feb 2002 16:03:20 -0500 (EST) Received: from postal.research.att.com (postal.research.att.com [135.207.23.30]) by mail-blue.research.att.com (Postfix) with ESMTP id C43034CF1A for ; Thu, 28 Feb 2002 16:03:19 -0500 (EST) Received: from pc-gtw.research.att.com (root@pc-gtw.research.att.com [135.207.22.247]) by postal.research.att.com (8.8.7/8.8.7) with ESMTP id PAA20602 for ; Thu, 28 Feb 2002 15:59:26 -0500 (EST) Received: (from gtw@localhost) by pc-gtw.research.att.com (8.9.3/8.9.3) id QAA25224 for gtk-list@gnome.org; Thu, 28 Feb 2002 16:03:18 -0500 Date: Thu, 28 Feb 2002 16:03:18 -0500 From: Gary Wong To: gtk-list@gnome.org Subject: pixbuf-engine: image borders when stretch = FALSE Message-ID: <20020228160318.A25166@pc-gtw.research.att.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, The pixbuf-engine (CVS head) behaviour for image borders when stretch is FALSE doesn't match what I expect. For example, suppose I am using the definition: image { ... file = "foo.png" border = { 1, 1, 1, 1 } stretch = FALSE } and foo.png is a 4x4 image which looks like this: #### #x.# #.x# #### When this image is drawn on a (say) 10x10 area, I expect to see: ########## #x.x.x.x.# #.x.x.x.x# #x.x.x.x.# #.x.x.x.x# #x.x.x.x.# #.x.x.x.x# #x.x.x.x.# #.x.x.x.x# ########## but instead I get something like the following (the "offset" varies depending on the position of the window): ########## x.##x.##x. .x##.x##.x ########## ########## x.##x.##x. .x##.x##.x ########## ########## x.##x.##x. Is this behaviour wrong? Am I using pixbuf-engine incorrectly? Or am I just expecting the wrong thing to happen? After a very brief look at the source, it seems that theme_pixbuf_render() ignores theme_pb->border_* when theme_pb->stretch is FALSE. I'm happy to mention something on bugzilla and/or have a go at modifying this function, but I thought I'd ask for advice here first in case I misunderstand the situation. Cheers, Gary. -- Gary Wong gtw@gnu.org http://www.cs.arizona.edu/~gary/ From hzeng@hf.tvia.com Thu Jan 31 19:51:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx2.hf.tvia.com (unknown [61.132.182.9]) by mail.gnome.org (Postfix) with ESMTP id 5704D18B75 for ; Thu, 31 Jan 2002 19:51:44 -0500 (EST) Received: from hzeng ([192.168.2.65]) by mx2.hf.tvia.com (8.11.6/8.11.6) with SMTP id g110gvZ00563 for ; Fri, 1 Feb 2002 08:42:57 +0800 Message-ID: <000d01c1aaba$40ddc800$4102a8c0@hf.tvia.com> From: "hzeng" To: Subject: What event has happened? Date: Fri, 1 Feb 2002 08:49:06 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: base64 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQogICAgQXQgdGhlIHZpcnR1YWwgc2NyZWVuIG9mIFhXaW5kb3csd2hlbiBJIGRvIG5vdGhp bmcgdG8gbXkgYXBwIHdpbmRvdyBhbmQgb25seSBtb3ZlIHRoZQ0KIG1vdXNlLCBzbyBteSBhcHAg d2luZG93IHdpbGwgbW92ZSBvdXQgb2YgdGhlIHZpZXcgcG9ydCBib3JkZXJlZCBieSB0aGUgbW9u aXRvci4gSW4gdGhpcw0KIHNpdHVhdGlvbiBJIHdhbnQgdG8gZG8gc29tZSB0aGluZyBpbiBteSBh cHAsIGJ1dCBob3cgY2FuIEkgZ2V0IHRoZSBzaWduYWwsIG9yIHdoYXQgZXZlbnQNCiBoYXBwZW4/ IA0KDQpUaGFuayB5b3UgdmVyeSBtdWNoICENCkh6ZW5nDQo= From kasonhuang@kinposh.com.cn Thu Jan 31 21:27:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 16770180FA for ; Thu, 31 Jan 2002 21:27:00 -0500 (EST) Subject: how to change focus problem in two tables? MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="----_=_NextPart_001_01C1AAC7.ED85BA24" Date: Fri, 1 Feb 2002 10:27:00 +0800 Message-ID: <92CD479384374A439EFA0077E7C50F821FE889@kes01.kinposh.com.cn> X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: how to change focus problem in two tables? Thread-Index: AcGqx+vblN/cEhbsEda2uQCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Cc: , "Paul Davis" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1AAC7.ED85BA24 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable how to change focus problem in two tables?

hello:
do anyone tell me = how to change focus of buttons in two GtkTable with "up down left = right"key on the condition of no mouse supporting.if a easy = way?

i find i could change = focus in one table,not happened in two tables.

eg:buttons in two = tables
__________________________________
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|_______________|_________________ |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |        table_a
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|_______________|_________________ |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |
|______________ | = _________________ |

        =20 3D"ole0.bmp"focus with keyboard = control 3D"ole1.bmp"
__________________________________
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |  
|_______________|_________________ = |      
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      |      =
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |      
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |       table_b
|_______________|_________________ = |       
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |        
|         &nb= sp;           &nbs= p;    = |            =             &= nbsp;      = |         
|_______________| = _________________|         &= nbsp;  =


------_=_NextPart_001_01C1AAC7.ED85BA24 Content-Type: image/bmp; name="ole0.bmp" Content-Transfer-Encoding: base64 Content-Description: ole0.bmp Content-Location: No%20AttachName Qk0yAQAAAAAAAD4AAAAoAAAADAAAAD0AAAABAAEAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAA AP///wD/8AAA/fAAAPnwAAD48AAA8PAAAPBwAADgcAAA4DAAAMAwAADAEAAAgBAAAP3wAAD98AAA /fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD9 8AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3w AAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAA AP3wAAD98AAA/fAAAP3wAAD/8AAA ------_=_NextPart_001_01C1AAC7.ED85BA24 Content-Type: image/bmp; name="ole1.bmp" Content-Transfer-Encoding: base64 Content-Description: ole1.bmp Content-Location: No%20AttachName-2 Qk0iAgAAAAAAAD4AAAAoAAAADAAAAHkAAAABAAEAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAA AP///wD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA /fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD9 8AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3w AAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAA AP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA /fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD9 8AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3w AAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA/fAAAP3wAAD98AAA//AAAMAQAADAMAAA4DAA AOBwAADwcAAA8PAAAPjwAAD58AAA/fAAAP/wAAD/8AAA ------_=_NextPart_001_01C1AAC7.ED85BA24-- From shiraz_baig@yahoo.com Fri Feb 1 00:05:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13904.mail.yahoo.com (web13904.mail.yahoo.com [216.136.175.67]) by mail.gnome.org (Postfix) with SMTP id DBB1618779 for ; Fri, 1 Feb 2002 00:05:57 -0500 (EST) Message-ID: <20020201050557.82681.qmail@web13904.mail.yahoo.com> Received: from [203.135.6.194] by web13904.mail.yahoo.com via HTTP; Thu, 31 Jan 2002 21:05:57 PST Date: Thu, 31 Jan 2002 21:05:57 -0800 (PST) From: Shiraz Baig Subject: Re: drawing a line To: gtk-list@gnome.org In-Reply-To: <3C594C38.9080303@ng-london.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Thanks for the reply. But I have not really understood the answer. My doubt is that if Drawing the line with the timer function does not need any "expose" event. Then why is pushing_button needing it? Why can't pushing_button also draw the line without expose_event? Thanks. Shiraz --- John.Cupitt@ng-london.org.uk wrote: > Shiraz Baig wrote: > > > Hi, > > I want to draw a line when I push a button. I > have > > written the following code. It draws line thru > two > > alternative signal commands. > > a. Thru the timer function. > > b. Thru the push button. > > > > It works with the timer function. But it does not > work > > with the push button. > > > > Question: > > Can anyone suggest how can it draw the line when > I > > click the button? > > > > > Hi, you need to connect to "expose_event" and do > your repaint there. > > Don't paint on button click. Instead, change your > model (your internal > representation of what it is you are showing on the > screen), and ask for > a repaint to be queued for your window with > gtk_widget_draw(). > > Also, you have a problem with your button callback. > > The scribble example covers some of this stuff: > > http://www.gtk.org/tutorial/sec-thedrawingareawidget.html > > John > > > > > ========================================================== > > Coming soon: > Aelbert Cuyp 13 February - 12 May 2002 > > For information and tickets: > http://www.nationalgallery.org.uk __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From hp@redhat.com Fri Feb 1 00:54:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 5D7F41876E for ; Fri, 1 Feb 2002 00:54:45 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g115sho24923; Fri, 1 Feb 2002 00:54:43 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200201291451.JAA17130@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 00:54:43 -0500 In-Reply-To: <200201291451.JAA17130@renoir.op.net> Message-ID: Lines: 10 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > i sincerely hope that in a future release of the 1.2 series, > pkg-config gets added. > Note that pkg-config has some dubious "legacy hacks" in it - try "pkg-config --cflags gtk" for example. Havoc From hp@redhat.com Fri Feb 1 00:57:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wilber.gimp.org (graft.XCF.Berkeley.EDU [128.32.247.248]) by mail.gnome.org (Postfix) with ESMTP id 35C90187C7 for ; Fri, 1 Feb 2002 00:57:22 -0500 (EST) Received: from nat-pool-meridian.redhat.com ([12.107.208.200] helo=icon.labs.redhat.com) by wilber.gimp.org with esmtp (Exim 3.12 #1 (Debian)) id 16WWhN-000728-00 for ; Thu, 31 Jan 2002 21:57:21 -0800 Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g115vI224927; Fri, 1 Feb 2002 00:57:18 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Isaac Pernas" Cc: Subject: Re: GtkEntry color Background References: <003e01c1a8c4$6308c4e0$03001aac@berta> From: Havoc Pennington Date: 01 Feb 2002 00:57:18 -0500 In-Reply-To: <003e01c1a8c4$6308c4e0$03001aac@berta> Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Isaac Pernas" writes: > Estoy intentando cambiar el fondo d un GtkEntry pero por m=E1s que lo > intento no me deja. Nos=E9 que estoy haciendo mal. La versi=F3n de mis > librer=EDas Gtk es la 1.2. > I'm trying to change de background color for my GtkEntry but i can=B4t. > I don't know what i'm doing wrong. I have de Gtk+ 1.2 version. > This funcxtion changes the color of the background when youn click the > button. >=20 See http://pobox.com/~hp/gtk-colors.html Havoc From hp@redhat.com Fri Feb 1 00:58:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 6AD1F1876E for ; Fri, 1 Feb 2002 00:58:50 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g115wni24931; Fri, 1 Feb 2002 00:58:49 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Andreas Scherf Cc: Gtk Liste Subject: Re: GtkListStore getting values in Gtk2.0 References: <1012487955.25095.3.camel@xerxes> From: Havoc Pennington Date: 01 Feb 2002 00:58:49 -0500 In-Reply-To: <1012487955.25095.3.camel@xerxes> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Andreas Scherf writes: > Hello, im porting some apps to Gtk+2.0, i wondering how to get values > back from a GtkListStore ? I saw only functions to add or del values > inside the List but no function to get the data back.What i want is to > print a GtkTreeView so istored the data inside a GtkListStore but after > showing them i couldn't get the data back ? Have i messed something ? > gtk_tree_model_get() Havoc From corsepiu@faw.uni-ulm.de Fri Feb 1 01:46:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.faw.uni-ulm.de (www.faw.uni-ulm.de [134.60.100.4]) by mail.gnome.org (Postfix) with SMTP id D29A91876E for ; Fri, 1 Feb 2002 01:46:29 -0500 (EST) Received: (qmail 4670 invoked from network); 1 Feb 2002 06:46:29 -0000 Received: from ultra2.faw.uni-ulm.de (HELO mailserv.faw.uni-ulm.de) (172.16.15.2) by www-intern.faw.uni-ulm.de with SMTP; 1 Feb 2002 06:46:29 -0000 Received: (qmail 5844 invoked by uid 0); 1 Feb 2002 06:46:27 -0000 Received: from dialin6.faw.uni-ulm.de (corsepiu@172.18.1.6) by mailserv.faw.uni-ulm.de with SMTP; 1 Feb 2002 06:46:27 -0000 Subject: Re: Does GTK+ support OpenGL and Inventor ? From: Ralf Corsepius To: "Lin, Lynn" Cc: gtk-list@gnome.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1012546025.32320.462.camel@mccallum> Mime-Version: 1.0 X-Mailer: Evolution/1.0.2 Date: 01 Feb 2002 07:47:09 +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am Don, 2002-01-31 um 20.07 schrieb Lin, Lynn: > Hi there, > > If I create a GtkWidget* gtk_drawing_area_new, can I call OpenGL or > Inventor routines to draw 3D graphics on the GTK drawing area widget ? If > yes, how to do it ? There exist several more or less immature ports of InventorXt to Gtk+. You might want to consult google and search for SoGtk. I have a port of InventorXt to Gtk+ of my own, but unfortunately, it's not in a shape worth being released nor will I have time to do so in the foreseeable furture. Ralf From shiraz_baig@yahoo.com Fri Feb 1 01:58:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13903.mail.yahoo.com (web13903.mail.yahoo.com [216.136.175.29]) by mail.gnome.org (Postfix) with SMTP id BCE0118AC7 for ; Fri, 1 Feb 2002 01:58:32 -0500 (EST) Message-ID: <20020201065832.15093.qmail@web13903.mail.yahoo.com> Received: from [203.135.6.194] by web13903.mail.yahoo.com via HTTP; Thu, 31 Jan 2002 22:58:32 PST Date: Thu, 31 Jan 2002 22:58:32 -0800 (PST) From: Shiraz Baig Subject: Re: drawing a line To: Sven Neumann Cc: gtk-list@gnome.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Mr Sven Neumann has given an excellent answer. Now I understand the difference between two functions (gtk_signal_connect and gtk_signal_connect_object). I changed the parameters as suggested by Mr Neumann and viola! I am drawing the lines without "expose" event and only with pushing a button. Thanks. I Must also thank Jeff Trefftzs who gave similar views though in too abbreviated a form. Bye Shiraz --- Sven Neumann wrote: > Hi, > > Shiraz Baig writes: > > > I want to draw a line when I push a button. I have > > written the following code. It draws line thru two > > alternative signal commands. > > a. Thru the timer function. > > b. Thru the push button. > > > > It works with the timer function. But it does not > work > > with the push button. > > you will need a separate function for the button > clicked > callback since it is called with the GtkButton as > first > parameter. Alternatively you could use > gtk_signal_connect_object() which swaps the > parameters. > > > Salut, Sven __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Fri Feb 1 02:00:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wilber.gimp.org (graft.XCF.Berkeley.EDU [128.32.247.248]) by mail.gnome.org (Postfix) with ESMTP id 0C8D818D5A for ; Fri, 1 Feb 2002 02:00:09 -0500 (EST) Received: from web9902.mail.yahoo.com ([216.136.129.37]) by wilber.gimp.org with smtp (Exim 3.12 #1 (Debian)) id 16WXg8-0007dj-00 for ; Thu, 31 Jan 2002 23:00:08 -0800 Message-ID: <20020201070008.29297.qmail@web9902.mail.yahoo.com> Received: from [213.29.206.62] by web9902.mail.yahoo.com via HTTP; Thu, 31 Jan 2002 23:00:08 PST Date: Thu, 31 Jan 2002 23:00:08 -0800 (PST) From: Vahid Zahiri Subject: Re: Send signal? To: Ishan Cc: gtk-list@gtk.org In-Reply-To: <000001c1aa7b$8560d6a0$59e3e30a@ishan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi ishan i can execute callbackfunction :), but i want get selection text in other applications by button3 click on my entry. but i find better way (on GTK world)to do this. thanks Vahid --- Ishan wrote: > Why on earth would you want the computer to think > that way? Better execute > the callback function which you have written for the > clicked signal of your > button. Hope this helps, > Ishan > > > Hi All > > > I want send a click signal to a widget, > > is it possible? > > > I want widget thinked mouse click on it. > > is it possible? > > > Thanks in advance > > Vahid Zahiri > > __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From inimss@yahoo.com Fri Feb 1 03:07:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by mail.gnome.org (Postfix) with SMTP id F0F55181BB for ; Fri, 1 Feb 2002 03:07:56 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 1 Feb 2002 08:07:54 -0000 Message-ID: <3C5A4CCD.ED06E07D@yahoo.com> Date: Fri, 01 Feb 2002 13:37:41 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: [INIMSS] GtkCList :: Wrapping Text in Cells Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, How can I make the text in the cell of GtkCList wrap-around within it? If it can't be done with GtkCList, then which widget should I use for the purpose? Thanks Dino Cherian K _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From lettere@di.unipi.it Fri Feb 1 03:29:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailserver.di.unipi.it (apis.di.unipi.it [131.114.4.6]) by mail.gnome.org (Postfix) with ESMTP id 5DFF6185C6 for ; Fri, 1 Feb 2002 03:29:03 -0500 (EST) Received: from idra.di.unipi.it (idra [131.114.2.113]) by mailserver.di.unipi.it (8.11.6/8.11.6) with ESMTP id g118T1823411 for ; Fri, 1 Feb 2002 09:29:01 +0100 Received: from localhost (lettere@localhost) by idra.di.unipi.it (8.11.2/8.9.1) with ESMTP id g118SKU27731 for ; Fri, 1 Feb 2002 09:28:20 +0100 X-Authentication-Warning: idra.di.unipi.it: lettere owned process doing -bs Date: Fri, 1 Feb 2002 09:28:16 +0100 (CET) From: Marco Lettere To: Subject: colors in pixmap Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello everyone, suppose I've a pixmap with a color which I want to modify with 3 slider widgets for RGB. The way I'm performing it now is to destroy the old pixmap, change the xpm C structure and then recreate the pixmap with the new data. Isn't there a better way (less expensive) of performing this operation I'm thinking about something like gtk_pixmap_update_color(Gtkpixmap* pix,int colorIndex,GdkColor* newColor); thanx, M. ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| From coframi.balr001@rd.francetelecom.com Fri Feb 1 03:32:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id C223818303 for ; Fri, 1 Feb 2002 03:32:46 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1AK0QZ7L>; Fri, 1 Feb 2002 09:32:38 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , gtk-list@gnome.org Subject: RE: [INIMSS] GtkCList :: Wrapping Text in Cells Date: Fri, 1 Feb 2002 09:32:38 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-a778d693-1656-11d6-b1e4-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-a778d693-1656-11d6-b1e4-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AAFB.01CD9CD0" ------_=_NextPart_001_01C1AAFB.01CD9CD0 Content-Type: text/plain Hello, you can get the text of a GtkCList cell using gtk_clist_get_text (GtkCList * clist, gchar * texte); and put a text in a cell using gtk_clist_set_text (GtkCList * clist, int row, int column, gchar * texte); With your variable texte, you can use all string.h functions (strcat, strcpy, sprintf...) I don't know if I understood your question Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : vendredi 1 fevrier 2002 09:08 A : gtk-list@gnome.org Objet : [INIMSS] GtkCList :: Wrapping Text in Cells Hi, How can I make the text in the cell of GtkCList wrap-around within it? If it can't be done with GtkCList, then which widget should I use for the purpose? Thanks Dino Cherian K _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AAFB.01CD9CD0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] GtkCList :: Wrapping Text in Cells

Hello,

you can get the text of a GtkCList cell using = gtk_clist_get_text (GtkCList * clist, gchar * texte); and put a text in = a cell using gtk_clist_set_text (GtkCList * clist,  int row, int = column, gchar * texte);


With your variable texte, you can use all string.h = functions (strcat, strcpy, sprintf...)

I don't know if I understood your question

Isabelle


-----Message d'origine-----
De : Dino Cherian K [mailto:inimss@yahoo.com]
Envoye : vendredi 1 fevrier 2002 09:08
A : gtk-list@gnome.org
Objet : [INIMSS] GtkCList :: Wrapping Text in = Cells


Hi,

How can I make the text in the cell of GtkCList = wrap-around within it?

If it can't be done with GtkCList, then which widget = should I use for
the purpose?

Thanks
Dino Cherian K

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

------_=_NextPart_001_01C1AAFB.01CD9CD0-- ------=_NextPartTM-000-a778d693-1656-11d6-b1e4-00508b69ab48-- From inimss@yahoo.com Fri Feb 1 04:00:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp018.mail.yahoo.com (smtp018.mail.yahoo.com [216.136.174.115]) by mail.gnome.org (Postfix) with SMTP id 403C0188EB for ; Fri, 1 Feb 2002 04:00:46 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 1 Feb 2002 09:00:38 -0000 Message-ID: <3C5A592D.40C96998@yahoo.com> Date: Fri, 01 Feb 2002 14:30:29 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: zze-coframi balr001 Cc: gtk-list@gnome.org Subject: Re: [INIMSS] GtkCList :: Wrapping Text in Cells References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I think you had not really understood the situation. I actually meant to wrap the text only in the display of the cell and not the data. By default the text that exceeds the limit of the cell is truncated. I want to avoid this truncation and make the text displayed wrapped-down so that we can view the whole text. May be the height of the row will have to be varied. Thanks Dino Cherian K > zze-coframi balr001 wrote: > > Hello, > > you can get the text of a GtkCList cell using gtk_clist_get_text > (GtkCList * clist, gchar * texte); and put a text in a cell using > gtk_clist_set_text (GtkCList * clist, int row, int column, gchar * > texte); > > With your variable texte, you can use all string.h functions (strcat, > strcpy, sprintf...) > > I don't know if I understood your question > > Isabelle > > -----Message d'origine----- > De : Dino Cherian K [mailto:inimss@yahoo.com] > Envoye : vendredi 1 fevrier 2002 09:08 > A : gtk-list@gnome.org > Objet : [INIMSS] GtkCList :: Wrapping Text in Cells > > Hi, > > How can I make the text in the cell of GtkCList wrap-around within it? > > If it can't be done with GtkCList, then which widget should I use for > the purpose? > > Thanks > Dino Cherian K > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From sven@gimp.org Fri Feb 1 04:07:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id AAF031892D for ; Fri, 1 Feb 2002 04:07:43 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16WZfZ-00035w-00; Fri, 01 Feb 2002 10:07:41 +0100 To: Shiraz Baig Cc: gtk-list@gnome.org Subject: Re: drawing a line References: <20020201065832.15093.qmail@web13903.mail.yahoo.com> From: Sven Neumann Date: 01 Feb 2002 10:07:40 +0100 In-Reply-To: <20020201065832.15093.qmail@web13903.mail.yahoo.com> Message-ID: Lines: 17 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Shiraz Baig writes: > I changed the parameters as suggested by Mr Neumann > and viola! I am drawing the lines without "expose" > event and only with pushing a button. now move your mouse over the line you've just drawn or obscure the window by moving another window over it. Assuming you are using a drawing_area to draw on directly, X will clear the area you've just painted on and since you aren't redrawing in your expose event handler, the line you've just drawn will be gone. Salut, Sven From coframi.balr001@rd.francetelecom.com Fri Feb 1 04:56:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id 5FD6818AF1 for ; Fri, 1 Feb 2002 04:56:00 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Fri, 1 Feb 2002 10:55:29 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , zze-coframi balr001 Cc: gtk-list@gnome.org Subject: RE: [INIMSS] GtkCList :: Wrapping Text in Cells Date: Fri, 1 Feb 2002 10:55:29 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, Now I undestand your point. Why don't you use ScrolledWindow ?? If you don't want to see the scroll bar, you put the gtk_policy to Never I explain : 1- You create you window 2- You add you scrolledwindow and put gtk_scrolled_window_set_policy (scrollwindow, GTK_POLICY_NEVER, GTK_POLICY_NEVER) 3- You add your GtkCList in your scrolledwindow With that you will be able to see the whole text that is in the cell using you arrow key Does this solution is OK for you ?? Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : vendredi 1 fevrier 2002 10:00 A : zze-coframi balr001 Cc : gtk-list@gnome.org Objet : Re: [INIMSS] GtkCList :: Wrapping Text in Cells Hi I think you had not really understood the situation. I actually meant to wrap the text only in the display of the cell and not the data. By default the text that exceeds the limit of the cell is truncated. I want to avoid this truncation and make the text displayed wrapped-down so that we can view the whole text. May be the height of the row will have to be varied. Thanks Dino Cherian K > zze-coframi balr001 wrote: > > Hello, > > you can get the text of a GtkCList cell using gtk_clist_get_text > (GtkCList * clist, gchar * texte); and put a text in a cell using > gtk_clist_set_text (GtkCList * clist, int row, int column, gchar * > texte); > > With your variable texte, you can use all string.h functions (strcat, > strcpy, sprintf...) > > I don't know if I understood your question > > Isabelle > > -----Message d'origine----- > De : Dino Cherian K [mailto:inimss@yahoo.com] > Envoye : vendredi 1 fevrier 2002 09:08 > A : gtk-list@gnome.org > Objet : [INIMSS] GtkCList :: Wrapping Text in Cells > > Hi, > > How can I make the text in the cell of GtkCList wrap-around within it? > > If it can't be done with GtkCList, then which widget should I use for > the purpose? > > Thanks > Dino Cherian K > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From John.Cupitt@ng-london.org.uk Fri Feb 1 06:56:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id D0786187D5 for ; Fri, 1 Feb 2002 06:56:47 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HG7G>; Fri, 1 Feb 2002 11:56:46 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HG7F; Fri, 1 Feb 2002 11:56:39 -0000 Message-ID: <3C5A7F3C.1@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: hzeng@hf.tvia.com Cc: gtk-list@gnome.org Subject: Re: What event has happened? Date: Fri, 1 Feb 2002 11:42:52 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="windows-1252" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hzeng wrote: > At the virtual screen of XWindow,when I do nothing to my app window and only move the > mouse, so my app window will move out of the view port bordered by the monitor. In this > situation I want to do some thing in my app, but how can I get the signal, or what event > happen? Hi, I think you need "enter_notify_event" and "leave_notify_event". The event watch in testgtk uses these sugnals. John ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From John.Cupitt@ng-london.org.uk Fri Feb 1 07:20:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 36098187D5 for ; Fri, 1 Feb 2002 07:20:18 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HG90>; Fri, 1 Feb 2002 12:20:17 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HG99; Fri, 1 Feb 2002 12:20:07 -0000 Message-ID: <3C5A84BB.5080605@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: shiraz_baig@yahoo.com Cc: gtk-list@gnome.org Subject: Re: drawing a line Date: Fri, 1 Feb 2002 12:06:19 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hiya, try the page for the drawing area widget: http://gtk.org/tutorial/sec-thedrawingareawidget.html I think this explains the problem. With a window system, you don't just draw on the screen. What happens when your window is covered or uncovered? You need to be able to recreate any part of your display when it is exposed. The rule is: do all drawing in the expose handler. If you want to draw in respose to an event, set some hints somewhere and trigger an expose. As Sven said, you also have a bug in your button callback. John Shiraz Baig wrote: > Hi, > Thanks for the reply. But I have not really > understood the answer. My doubt is that if Drawing the > line with the timer function does not need any > "expose" event. Then why is pushing_button needing it? > Why can't pushing_button also draw the line without > expose_event? > Thanks. > Shiraz > > --- John.Cupitt@ng-london.org.uk wrote: > >>Shiraz Baig wrote: >> >> > Hi, >> > I want to draw a line when I push a button. I >>have >> > written the following code. It draws line thru >>two >> > alternative signal commands. >> > a. Thru the timer function. >> > b. Thru the push button. >> > >> > It works with the timer function. But it does not >>work >> > with the push button. >> > >> > Question: >> > Can anyone suggest how can it draw the line when >>I >> > click the button? >> > >> >> >>Hi, you need to connect to "expose_event" and do >>your repaint there. >> >>Don't paint on button click. Instead, change your >>model (your internal >>representation of what it is you are showing on the >>screen), and ask for >>a repaint to be queued for your window with >>gtk_widget_draw(). >> >>Also, you have a problem with your button callback. >> >>The scribble example covers some of this stuff: >> ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From hzeng@hf.tvia.com Fri Feb 1 08:06:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx2.hf.tvia.com (unknown [61.132.182.9]) by mail.gnome.org (Postfix) with ESMTP id 73843182C8 for ; Fri, 1 Feb 2002 08:06:28 -0500 (EST) Received: from hzeng ([192.168.2.65]) by mx2.hf.tvia.com (8.11.6/8.11.6) with SMTP id g11CvSZ10197; Fri, 1 Feb 2002 20:57:28 +0800 Message-ID: <000801c1ab20$de71fd00$4102a8c0@hf.tvia.com> From: "hzeng" To: Cc: References: <3C5A7F3C.1@ng-london.org.uk> Subject: Re: What event has happened? Date: Fri, 1 Feb 2002 21:03:38 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: base64 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQogICAgSSB0aGluayB5b3UgbWlzdW5kZXJzdGFuZCBteSBtZWFuaW5nLiBJIHdhbnQgdG8g Z2V0IHRoZSBzaWduYWwgZW1pdCBieSB0aGUgYXBwIHdpbmRvdyB3aGVuIA0KICAgIEkgbW92ZSB0 aGUgbW91c2UgaW4gYW55d2h3ZXJlIG9mIHRoZSB2aXJ0dWFsIGRlc2t0b3AsIHRoZSBlbnRlcl9u b3RpZnlfZXZlbnQgYW5kIHRoZSBsZWF2ZV9ub3RpZnlfZXZlbnQgaXMNCiAgICBlbWl0IG9ubHkg dGhlIG1vdXNlIGVudGVyIHRoZSBhcHAgd2luZG93IGFuZCBsZWF2ZSB0aGUgYXBwIHdpbmRvdy4g SSBtdXN0IGRvIHNvbWUgc3BlY2lhbCB3b3JrIHdoZW4gDQogICAgbXkgYXBwIG1vdmUgb3V0IG9m IHRoZSBtb25pdG9yIGJvcmRlciBpbiB2ZXJ0dWFsIHNjcmVlbiBvciBldmVuIHRoZSB2aXN1YWwg cG9zaXRpb24gb2YgdGhlIGFwcCB3aW5kb3cgY2hhbmdlZCwNCiAgICBJIGp1c3QgZG9uJ3Qga25v dyBpZiB0aGVyZSBhcmUgc3VjaCBzaWduYWxzIGluIGd0ay4gTWF5YmUgIHRoZSBndGsgZG9uJ3Qg Y2FyZSBhYm91dCB0aGVzZSBzaXR1YWwgYW5kIGxlZnQgaXQgdG8gYmUgZG9uZSBieSANCiAgICBY c2VydmVyLiAgSSBoYXZlIHRyeSBtYW55IGV2ZW50IGJ1dCB0aGV5IGRvZXNuJ3QgZml0LiBTb3Jy eSBhYm91dCBteSBwb29yIEVuZ2xpc2guDQogICAgVGhhbmtzIGFueXdheSENCkh6ZW5nDQogICAg DQotLS0tLSBPcmlnaW5hbCBNZXNzYWdlIC0tLS0tIA0KDQo+IA0KPiBIaSwgSSB0aGluayB5b3Ug bmVlZCAiZW50ZXJfbm90aWZ5X2V2ZW50IiBhbmQgImxlYXZlX25vdGlmeV9ldmVudCIuIFRoZSAN Cj4gZXZlbnQgd2F0Y2ggaW4gdGVzdGd0ayB1c2VzIHRoZXNlIHN1Z25hbHMuDQo+IA0KPiBKb2hu DQo+IA0KDQo= From John.Cupitt@ng-london.org.uk Fri Feb 1 08:15:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 0AD2C18711 for ; Fri, 1 Feb 2002 08:15:10 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HHDC>; Fri, 1 Feb 2002 13:15:09 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HHDB; Fri, 1 Feb 2002 13:15:05 -0000 Message-ID: <3C5A919D.8040800@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: hzeng@hf.tvia.com Cc: gtk-list@gnome.org Subject: Re: What event has happened? Date: Fri, 1 Feb 2002 13:01:17 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="windows-1252" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ah, sorry, I misunderstood. You could grab the pointer: then you get all mouse movement until you ungrab. Of course, this will stop all other programs from working :-( so you must be very careful. gdk_pointer_grab() and gdk_pointer_ungrab(). John hzeng wrote: > Hi, > I think you misunderstand my meaning. I want to get the signal emit by the app window when > I move the mouse in anywhwere of the virtual desktop, the enter_notify_event and the leave_notify_event is > emit only the mouse enter the app window and leave the app window. I must do some special work when > my app move out of the monitor border in vertual screen or even the visual position of the app window changed, > I just don't know if there are such signals in gtk. Maybe the gtk don't care about these situal and left it to be done by > Xserver. I have try many event but they doesn't fit. Sorry about my poor English. > Thanks anyway! > Hzeng > > ----- Original Message ----- > > >>Hi, I think you need "enter_notify_event" and "leave_notify_event". The >>event watch in testgtk uses these sugnals. >> >>John >> >> > -- John Cupitt, john.cupitt@ng-london.org.uk, +44 (0)20 7747 2570 VASARI Lab, The National Gallery, Trafalgar Square, London, WC2N 5DN ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From lnx1138@us.ibm.com Fri Feb 1 09:31:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from e1.ny.us.ibm.com (e1.ny.us.ibm.com [32.97.182.101]) by mail.gnome.org (Postfix) with ESMTP id A6CC418D28 for ; Fri, 1 Feb 2002 09:31:12 -0500 (EST) Received: from northrelay01.pok.ibm.com (northrelay01.pok.ibm.com [9.117.200.21]) by e1.ny.us.ibm.com (8.9.3/8.9.3) with ESMTP id JAA488954 for ; Fri, 1 Feb 2002 09:28:05 -0500 Received: from chavez.austin.ibm.com (chavez.austin.ibm.com [9.53.216.228]) by northrelay01.pok.ibm.com (8.11.1m3/NCO v5.01) with ESMTP id g11EVAg190060 for ; Fri, 1 Feb 2002 09:31:10 -0500 Subject: Re: GUI design From: Luciano Chavez To: gtk-list@gnome.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 01 Feb 2002 08:31:07 -0600 Message-Id: <1012573868.2054.4.camel@chavez> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-01-30 at 20:34, Raymond Wan wrote: > > Hi all, > > Not directly related to GTK+, but I was wondering if anyone could > suggest a book which talks about how to design a GUI. In particular, what > are the do's and don'ts of GUI design. And, even better, if such a book > exists which is directed at GTK+. > > Thanks in advance! > > Ray > Ray, If you want to follow UI guidelines related to GTK+ or GNOME apps, read what the GNOME Usability Project is proposing. See http://developer.gnome.org/projects/gup/. > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- regards, Luciano Chavez lnx1138@us.ibm.com http://sf.net/projects/evms From engenharia3@maqplas.com.br Fri Feb 1 09:47:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id 1CE6018D21 for ; Fri, 1 Feb 2002 09:47:31 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11ElP35095578 for ; Fri, 1 Feb 2002 12:47:25 -0200 (BRST) Subject: GTK without X ??? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 12:44:08 -0200 Message-Id: <1012574649.1123.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I hear (in Linux for PlayStation2 Forum) about some version of GTK+ that access directly the framebuffer, does not need for X, this proceed ????, if yes where can I found information about this (for PC X86) ? Thanks in advance Flavio Alberto From lapenta_jm@yahoo.com Fri Feb 1 09:53:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14002.mail.yahoo.com (web14002.mail.yahoo.com [216.136.175.93]) by mail.gnome.org (Postfix) with SMTP id DDEFE18458 for ; Fri, 1 Feb 2002 09:53:27 -0500 (EST) Message-ID: <20020201145327.81863.qmail@web14002.mail.yahoo.com> Received: from [129.55.200.20] by web14002.mail.yahoo.com via HTTP; Fri, 01 Feb 2002 06:53:27 PST Date: Fri, 1 Feb 2002 06:53:27 -0800 (PST) From: Jason LaPenta Subject: Problem with *widget on show_event w/ idle process To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm using glade. I'm starting up an idle process when the main window is shown. I'm passing a widget pointer to the idle process so it can do widget lookups with lookup_widget(). If I start the idle process under a show event, then lookup_widget fails and causes my program to exit; Any ideas why this is? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From coframi.balr001@rd.francetelecom.com Fri Feb 1 09:56:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id D456418E0B for ; Fri, 1 Feb 2002 09:56:46 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Fri, 1 Feb 2002 15:50:59 +0100 Message-ID: From: zze-coframi balr001 To: =?iso-8859-1?Q?=27Fl=E1vio_Alberto_Lopes_Soares=27?= , gtk-list Subject: RE: GTK without X ??? Date: Fri, 1 Feb 2002 15:50:59 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, there's a version of GTK that directly access the framebuffer, but it's under developpement. It's GTK 1.3.X This version of GTK doesn't need an X Server. You can find it in = rmpfind.net or on gtk.org You can find information on it on gtk.org or directfb.org Isabelle -----Message d'origine----- De : Fl=E1vio Alberto Lopes Soares [mailto:engenharia3@maqplas.com.br] Envoy=E9 : vendredi 1 f=E9vrier 2002 15:44 =C0 : gtk-list Objet : GTK without X ??? Hello all, I hear (in Linux for PlayStation2 Forum) about some version of GTK+ = that access directly the framebuffer, does not need for X, this proceed = ????, if yes where can I found information about this (for PC X86) ? Thanks in advance Flavio Alberto _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From coframi.balr001@rd.francetelecom.com Fri Feb 1 10:01:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id 67E6F196B6 for ; Fri, 1 Feb 2002 10:01:47 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1AK0RA7Q>; Fri, 1 Feb 2002 16:01:33 +0100 Message-ID: From: zze-coframi balr001 To: 'Jason LaPenta' , gtk-list@gnome.org Subject: RE: Problem with *widget on show_event w/ idle process Date: Fri, 1 Feb 2002 16:01:33 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-a778e229-1656-11d6-b1e4-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-a778e229-1656-11d6-b1e4-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AB31.568C0A50" ------_=_NextPart_001_01C1AB31.568C0A50 Content-Type: text/plain Hello, Do you have named your widget using gtk_widget_set_name (GtkWidget * , char *); ?? Before making your call to lookup_widget, try to print the result of gtk_widget_get_name (GtkWidget *) GtkWdget * window = gtk_widget_new (....) gtk_widget_set_name (window, "toto"); ............. In a callback on a widget, GtkWidget * window = (GtkWidget *) lookup_widget (widget, "toto"); Isabelle -----Message d'origine----- De : Jason LaPenta [mailto:lapenta_jm@yahoo.com] Envoye : vendredi 1 fevrier 2002 15:53 A : gtk-list@gnome.org Objet : Problem with *widget on show_event w/ idle process Hello, I'm using glade. I'm starting up an idle process when the main window is shown. I'm passing a widget pointer to the idle process so it can do widget lookups with lookup_widget(). If I start the idle process under a show event, then lookup_widget fails and causes my program to exit; Any ideas why this is? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AB31.568C0A50 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: Problem with *widget on show_event w/ idle process

Hello,

Do you have named your widget using = gtk_widget_set_name (GtkWidget * , char *); ??

Before making your call to lookup_widget, try to = print the result of gtk_widget_get_name (GtkWidget *)

GtkWdget * window =3D gtk_widget_new (....)
gtk_widget_set_name (window, = "toto");

.............

In a callback on a widget,

GtkWidget * window =3D (GtkWidget *) lookup_widget = (widget, "toto");

Isabelle


-----Message d'origine-----
De : Jason LaPenta [mailto:lapenta_jm@yahoo.com]
Envoye : vendredi 1 fevrier 2002 15:53
A : gtk-list@gnome.org
Objet : Problem with *widget on show_event w/ idle = process


Hello,

I'm using glade.
I'm starting up an idle process when the main
window is shown. I'm passing a widget pointer = to
the idle process so it can do widget lookups = with

lookup_widget(). If I start the idle process
under a show event, then lookup_widget fails = and
causes my program to exit; Any ideas why this = is?


Thanks
Jason

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! =
http://auctions.yahoo.com
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list

------_=_NextPart_001_01C1AB31.568C0A50-- ------=_NextPartTM-000-a778e229-1656-11d6-b1e4-00508b69ab48-- From engenharia3@maqplas.com.br Fri Feb 1 10:15:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id A274619717 for ; Fri, 1 Feb 2002 10:15:26 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11FFKnp096677; Fri, 1 Feb 2002 13:15:21 -0200 (BRST) Subject: RE: GTK without X ??? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: zze-coframi balr001 Cc: gtk-list In-Reply-To: References: Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 13:11:59 -0200 Message-Id: <1012576326.1122.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Can I compile my application normally (I making my application using GTK+ 1.2.10), or I must make some changes ? Thanks in advance Flavio Alberto Em 01 Feb 2002 15:50:59 +0100, zze-coframi balr001 escreveu: > Hello, > > there's a version of GTK that directly access the framebuffer, but it's > under developpement. It's GTK 1.3.X > This version of GTK doesn't need an X Server. You can find it in rmpfind.net > or on gtk.org > You can find information on it on gtk.org or directfb.org > > Isabelle > From coframi.balr001@rd.francetelecom.com Fri Feb 1 10:21:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id CAA591973E for ; Fri, 1 Feb 2002 10:21:04 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Fri, 1 Feb 2002 16:19:37 +0100 Message-ID: From: zze-coframi balr001 To: =?iso-8859-1?Q?=27Fl=E1vio_Alberto_Lopes_Soares=27?= , zze-coframi balr001 Cc: gtk-list Subject: RE: GTK without X ??? Date: Fri, 1 Feb 2002 16:19:37 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, you don't need to make some changes. You just have to compile your code using the GTK 1.3.X for linux-fb librairies. Isabelle -----Message d'origine----- De : Fl=E1vio Alberto Lopes Soares [mailto:engenharia3@maqplas.com.br] Envoy=E9 : vendredi 1 f=E9vrier 2002 16:12 =C0 : zze-coframi balr001 Cc : gtk-list Objet : RE: GTK without X ??? Can I compile my application normally (I making my application using GTK+ 1.2.10), or I must make some changes ? Thanks in advance Flavio Alberto Em 01 Feb 2002 15:50:59 +0100, zze-coframi balr001 escreveu: > Hello, >=20 > there's a version of GTK that directly access the framebuffer, but = it's > under developpement. It's GTK 1.3.X > This version of GTK doesn't need an X Server. You can find it in rmpfind.net > or on gtk.org > You can find information on it on gtk.org or directfb.org >=20 > Isabelle >=20 From paulm@khan.dev.magentatech.com.au Thu Jan 31 21:14:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from magentatech.com.au (magent3.lnk.telstra.net [139.130.198.117]) by mail.gnome.org (Postfix) with ESMTP id 4DDFC18AED for ; Thu, 31 Jan 2002 21:14:44 -0500 (EST) Received: from khan.magentatech.com.au (kmsv [134.18.8.154]) by magentatech.com.au (8.8.8+Sun/8.8.8) with ESMTP id NAA16045 for ; Fri, 1 Feb 2002 13:07:59 +1100 (EST) Received: from blade.dev.magentatech.com.au (blade [134.18.8.105]) by khan.magentatech.com.au (8.9.3+Sun/8.9.3) with ESMTP id NAA08881 for ; Fri, 1 Feb 2002 13:16:02 +1100 (EST) Received: from blade (blade [134.18.8.105]) by blade.dev.magentatech.com.au (8.9.3+Sun/8.9.3) with SMTP id NAA09610 for ; Fri, 1 Feb 2002 13:16:24 +1100 (EST) Message-Id: <200202010216.NAA09610@blade.dev.magentatech.com.au> Date: Fri, 1 Feb 2002 13:16:24 +1100 (EST) From: Paul Moore Reply-To: Paul Moore Subject: linker problems To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: MULTIPART/mixed; BOUNDARY=Herd_of_Elephants_369_000 X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4.2 SunOS 5.8 sun4u sparc Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --Herd_of_Elephants_369_000 Content-Type: TEXT/plain; charset=US-ASCII Content-Transfer-Encoding: QUOTED-PRINTABLE Content-MD5: G2Hm9R+GHLsWMHwVOBHRwQ== Hi - I'm trying to build gtk+-1.2.10 on Solaris 8.=20 I started off by building glib-1.2.10. I ran the configure script, did a ma= ke,=20 followed by a make install. See the attached file (lib_list) for a list of= =20 libraries that were installed as a result of the make install. I then tried to build gtk+-1.2.10. I can not get the configure script to=20 complete successfully. The error is ------------------------------------------------------------------------- *** Could not run GLIB test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding GLIB or finding the wrong *** version of GLIB. If it is not finding GLIB, you'll need to set your *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point *** to the installed location Also, make sure you have run ldconfig if tha= t *** is required on your system *** *** If you have an old version installed, it is best to remove it, although *** you may also be able to get things to work by modifying LD_LIBRARY_PATH *** *** If you have a RedHat 5.0 system, you should remove the GTK package that *** came with the system with the command *** *** rpm --erase --nodeps gtk gtk-devel configure: error:=20 *** GLIB 1.2.8 or better is required. The latest version of GLIB *** is always available from ftp://ftp.gtk.org/. ------------------------------------------------------------------------- I've set the LD_LIBRARY_PATH as requested. Here is what the LD_LIBRARY_PATH= is=20 set to: /usr/lib:/usr/ucblib:/usr/dt/lib:/usr/openwin/lib:/usr/ccs/lib:/opt/SUNWspr= o/lib :/opt1/SUNWspro/lib:/opt/galaxy/lib:/opt/SUNWmotif/lib:/opt/softbench/lib:/= users /davidf/lib:/usr/local/lib/glib/include:/usr/local/lib:/usr/local/lib/pkgco= nfig You can see that the location of the GLIB libs (/usr/loacl/lib) appears in = the=20 LD_LIBRARY_PATH variable. Can you give me any idea why configure fails when I have correctly specifie= d the=20 path to the glib libraries. Thanks - Paul Moore. --Herd_of_Elephants_369_000 Content-Type: TEXT/plain; name=configure_output; charset=US-ASCII; x-unix-mode=0664 Content-Transfer-Encoding: BASE64 Content-Description: configure_output Content-MD5: GBWxdok639TVsFXVZBCVaw== U2NyaXB0IHN0YXJ0ZWQgb24gRnJpIEZlYiAwMSAxMjo1Nzo0MCAyMDAyCkRJ U1BMQVkgYWxyZWFkeSBzZXQgdG86IGJsYWRlOjIuMA0Ka2hhbltwYXVsbV0+ IC4vY29uZmlndXJlDQpsb2FkaW5nIGNhY2hlIC4vY29uZmlnLmNhY2hlDQpj aGVja2luZyBmb3IgYSBCU0QgY29tcGF0aWJsZSBpbnN0YWxsLi4uIC4vaW5z dGFsbC1zaCAtYw0KY2hlY2tpbmcgd2hldGhlciBidWlsZCBlbnZpcm9ubWVu dCBpcyBzYW5lLi4uIHllcw0KY2hlY2tpbmcgd2hldGhlciBtYWtlIHNldHMg JHtNQUtFfS4uLiAoY2FjaGVkKSB5ZXMNCmNoZWNraW5nIGZvciB3b3JraW5n IGFjbG9jYWwuLi4gbWlzc2luZw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYXV0 b2NvbmYuLi4gbWlzc2luZw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYXV0b21h a2UuLi4gbWlzc2luZw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYXV0b2hlYWRl ci4uLiBtaXNzaW5nDQpjaGVja2luZyBmb3Igd29ya2luZyBtYWtlaW5mby4u LiBtaXNzaW5nDQpjaGVja2luZyBob3N0IHN5c3RlbSB0eXBlLi4uIHNwYXJj LXN1bi1zb2xhcmlzMi44DQpjaGVja2luZyBidWlsZCBzeXN0ZW0gdHlwZS4u LiBzcGFyYy1zdW4tc29sYXJpczIuOA0KY2hlY2tpbmcgZm9yIHJhbmxpYi4u LiAoY2FjaGVkKSByYW5saWINCmNoZWNraW5nIGZvciBnY2MuLi4gKGNhY2hl ZCkgY2MNCmNoZWNraW5nIHdoZXRoZXIgdGhlIEMgY29tcGlsZXIgKGNjICAp IHdvcmtzLi4uIHllcw0KY2hlY2tpbmcgd2hldGhlciB0aGUgQyBjb21waWxl ciAoY2MgICkgaXMgYSBjcm9zcy1jb21waWxlci4uLiBubw0KY2hlY2tpbmcg d2hldGhlciB3ZSBhcmUgdXNpbmcgR05VIEMuLi4gKGNhY2hlZCkgbm8NCmNo ZWNraW5nIHdoZXRoZXIgY2MgYWNjZXB0cyAtZy4uLiAoY2FjaGVkKSB5ZXMN CmNoZWNraW5nIGZvciBub24tR05VIGxkLi4uIChjYWNoZWQpIC91c3IvY2Nz L2Jpbi9sZA0KY2hlY2tpbmcgaWYgdGhlIGxpbmtlciAoL3Vzci9jY3MvYmlu L2xkKSBpcyBHTlUgbGQuLi4gKGNhY2hlZCkgbm8NCmNoZWNraW5nIGZvciBC U0QtY29tcGF0aWJsZSBubS4uLiAoY2FjaGVkKSAvdXNyL2Njcy9iaW4vbm0g LXANCmNoZWNraW5nIHdoZXRoZXIgbG4gLXMgd29ya3MuLi4gKGNhY2hlZCkg eWVzDQpsb2FkaW5nIGNhY2hlIC4vY29uZmlnLmNhY2hlIHdpdGhpbiBsdGNv bmZpZw0KY2hlY2tpbmcgd2hldGhlciB3ZSBhcmUgdXNpbmcgR05VIEMuLi4g bm8NCmNoZWNraW5nIGZvciBvYmplY3Qgc3VmZml4Li4uIG8NCmNoZWNraW5n IGZvciBleGVjdXRhYmxlIHN1ZmZpeC4uLiAoY2FjaGVkKSBubw0KY2hlY2tp bmcgZm9yIGNjIG9wdGlvbiB0byBwcm9kdWNlIFBJQy4uLiAtS1BJQw0KY2hl Y2tpbmcgaWYgY2MgUElDIGZsYWcgLUtQSUMgd29ya3MuLi4geWVzDQpjaGVj a2luZyBpZiBjYyBzdXBwb3J0cyAtYyAtbyBmaWxlLm8uLi4geWVzDQpjaGVj a2luZyBpZiBjYyBzdXBwb3J0cyAtYyAtbyBmaWxlLmxvLi4uIG5vDQpjaGVj a2luZyBpZiBjYyBzdGF0aWMgZmxhZyAtQnN0YXRpYyB3b3Jrcy4uLiAtQnN0 YXRpYw0KY2hlY2tpbmcgaWYgdGhlIGxpbmtlciAoL3Vzci9jY3MvYmluL2xk KSBpcyBHTlUgbGQuLi4gbm8NCmNoZWNraW5nIHdoZXRoZXIgdGhlIGxpbmtl ciAoL3Vzci9jY3MvYmluL2xkKSBzdXBwb3J0cyBzaGFyZWQgbGlicmFyaWVz Li4uIHllcw0KY2hlY2tpbmcgY29tbWFuZCB0byBwYXJzZSAvdXNyL2Njcy9i aW4vbm0gLXAgb3V0cHV0Li4uIG9rDQpjaGVja2luZyBob3cgdG8gaGFyZGNv ZGUgbGlicmFyeSBwYXRocyBpbnRvIHByb2dyYW1zLi4uIGltbWVkaWF0ZQ0K Y2hlY2tpbmcgZm9yIC91c3IvY2NzL2Jpbi9sZCBvcHRpb24gdG8gcmVsb2Fk IG9iamVjdCBmaWxlcy4uLiAtcg0KY2hlY2tpbmcgZHluYW1pYyBsaW5rZXIg Y2hhcmFjdGVyaXN0aWNzLi4uIHNvbGFyaXMyLjggbGQuc28NCmNoZWNraW5n IGlmIGxpYnRvb2wgc3VwcG9ydHMgc2hhcmVkIGxpYnJhcmllcy4uLiB5ZXMN CmNoZWNraW5nIHdoZXRoZXIgdG8gYnVpbGQgc2hhcmVkIGxpYnJhcmllcy4u LiB5ZXMNCmNoZWNraW5nIHdoZXRoZXIgdG8gYnVpbGQgc3RhdGljIGxpYnJh cmllcy4uLiB5ZXMNCmNoZWNraW5nIGZvciBvYmpkaXIuLi4gLmxpYnMNCmNy ZWF0aW5nIGxpYnRvb2wNCmxvYWRpbmcgY2FjaGUgLi9jb25maWcuY2FjaGUN CmNoZWNraW5nIHdoZXRoZXIgdG8gZW5hYmxlIG1haW50YWluZXItc3BlY2lm aWMgcG9ydGlvbnMgb2YgTWFrZWZpbGVzLi4uIG5vDQpjaGVja2luZyBob3N0 IHN5c3RlbSB0eXBlLi4uIHNwYXJjLXN1bi1zb2xhcmlzMi44DQpjaGVja2lu ZyB3aGV0aGVyIGJ1aWxkIGVudmlyb25tZW50IGlzIHNhbmUuLi4geWVzDQpj aGVja2luZyBmb3IgZ2NjLi4uIChjYWNoZWQpIGNjDQpjaGVja2luZyB3aGV0 aGVyIHRoZSBDIGNvbXBpbGVyIChjYyAtZyApIHdvcmtzLi4uIHllcw0KY2hl Y2tpbmcgd2hldGhlciB0aGUgQyBjb21waWxlciAoY2MgLWcgKSBpcyBhIGNy b3NzLWNvbXBpbGVyLi4uIG5vDQpjaGVja2luZyB3aGV0aGVyIHdlIGFyZSB1 c2luZyBHTlUgQy4uLiAoY2FjaGVkKSBubw0KY2hlY2tpbmcgd2hldGhlciBj YyBhY2NlcHRzIC1nLi4uIChjYWNoZWQpIHllcw0KY2hlY2tpbmcgZm9yIFBP U0lYaXplZCBJU0MuLi4gbm8NCmNoZWNraW5nIGZvciBjYyBvcHRpb24gdG8g YWNjZXB0IEFOU0kgQy4uLiBub25lIG5lZWRlZA0KY2hlY2tpbmcgZm9yIGEg QlNEIGNvbXBhdGlibGUgaW5zdGFsbC4uLiAuL2luc3RhbGwtc2ggLWMNCmNo ZWNraW5nIHdoZXRoZXIgbWFrZSBzZXRzICR7TUFLRX0uLi4gKGNhY2hlZCkg eWVzDQpjaGVja2luZyBmb3IgZ2F3ay4uLiBubw0KY2hlY2tpbmcgZm9yIG1h d2suLi4gbm8NCmNoZWNraW5nIGZvciBuYXdrLi4uIG5hd2sNCmNoZWNraW5n IGZvciBwZXJsNS4uLiBubw0KY2hlY2tpbmcgZm9yIHBlcmwuLi4gcGVybA0K Y2hlY2tpbmcgZm9yIGluZGVudC4uLiBpbmRlbnQNCmNoZWNraW5nIHdoZXRo ZXIgbWFrZSBpcyBHTlUgTWFrZS4uLiBubw0KY2hlY2tpbmcgaG93IHRvIHJ1 biB0aGUgQyBwcmVwcm9jZXNzb3IuLi4gY2MgLUUNCmNoZWNraW5nIGZvciBB TlNJIEMgaGVhZGVyIGZpbGVzLi4uIHllcw0KY2hlY2tpbmcgZm9yIHdvcmtp bmcgY29uc3QuLi4geWVzDQpjaGVja2luZyBmb3IgaW5saW5lLi4uIG5vDQpj aGVja2luZyBmb3Igb2ZmX3QuLi4geWVzDQpjaGVja2luZyBmb3Igc2l6ZV90 Li4uIHllcw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgYWxsb2NhLmguLi4geWVz DQpjaGVja2luZyBmb3IgYWxsb2NhLi4uIHllcw0KY2hlY2tpbmcgZm9yIHVu aXN0ZC5oLi4uIHllcw0KY2hlY2tpbmcgZm9yIGdldHBhZ2VzaXplLi4uIHll cw0KY2hlY2tpbmcgZm9yIHdvcmtpbmcgbW1hcC4uLiB5ZXMNCmNoZWNraW5n IGZvciBhcmd6LmguLi4gbm8NCmNoZWNraW5nIGZvciBsaW1pdHMuaC4uLiB5 ZXMNCmNoZWNraW5nIGZvciBsb2NhbGUuaC4uLiB5ZXMNCmNoZWNraW5nIGZv ciBubF90eXBlcy5oLi4uIHllcw0KY2hlY2tpbmcgZm9yIG1hbGxvYy5oLi4u IHllcw0KY2hlY2tpbmcgZm9yIHN0cmluZy5oLi4uIHllcw0KY2hlY2tpbmcg Zm9yIHVuaXN0ZC5oLi4uIChjYWNoZWQpIHllcw0KY2hlY2tpbmcgZm9yIHN5 cy9wYXJhbS5oLi4uIHllcw0KY2hlY2tpbmcgZm9yIGdldGN3ZC4uLiB5ZXMN CmNoZWNraW5nIGZvciBtdW5tYXAuLi4geWVzDQpjaGVja2luZyBmb3IgcHV0 ZW52Li4uIHllcw0KY2hlY2tpbmcgZm9yIHNldGVudi4uLiBubw0KY2hlY2tp bmcgZm9yIHNldGxvY2FsZS4uLiB5ZXMNCmNoZWNraW5nIGZvciBzdHJjaHIu Li4geWVzDQpjaGVja2luZyBmb3Igc3RyY2FzZWNtcC4uLiB5ZXMNCmNoZWNr aW5nIGZvciBzdHJkdXAuLi4geWVzDQpjaGVja2luZyBmb3IgX19hcmd6X2Nv dW50Li4uIG5vDQpjaGVja2luZyBmb3IgX19hcmd6X3N0cmluZ2lmeS4uLiBu bw0KY2hlY2tpbmcgZm9yIF9fYXJnel9uZXh0Li4uIG5vDQpjaGVja2luZyBm b3Igc3RwY3B5Li4uIG5vDQpjaGVja2luZyBmb3IgTENfTUVTU0FHRVMuLi4g eWVzDQpjaGVja2luZyB3aGV0aGVyIE5MUyBpcyByZXF1ZXN0ZWQuLi4geWVz DQpjaGVja2luZyBmb3IgbGliaW50bC5oLi4uIHllcw0KY2hlY2tpbmcgZm9y IGRnZXR0ZXh0IGluIGxpYmMuLi4geWVzDQpjaGVja2luZyBmb3IgbXNnZm10 Li4uIC9iaW4vbXNnZm10DQpjaGVja2luZyBmb3IgZGNnZXR0ZXh0Li4uIHll cw0KY2hlY2tpbmcgZm9yIGdtc2dmbXQuLi4gL2Jpbi9tc2dmbXQNCmNoZWNr aW5nIGZvciB4Z2V0dGV4dC4uLiAvYmluL3hnZXR0ZXh0DQpmb3VuZCB4Z2V0 dGV4dCBwcm9ncmFtIGlzIG5vdCBHTlUgeGdldHRleHQ7IGlnbm9yZSBpdA0K Y2hlY2tpbmcgZm9yIGNhdGFsb2dzIHRvIGJlIGluc3RhbGxlZC4uLiAgYXog Y2EgY3MgZGEgZGUgZWwgZXMgZXQgZXUgZmkgZnIgZ2EgZ2wgaHIgaHUgaXQg amEga28gbHQgbmwgbm8gbm4gcGwgcHQgcHRfQlIgcm8gcnUgc2sgc2wgc3Ag c3Igc3YgdHIgdWsgdmkgd2EgemhfQ04uR0IyMzEyIHpoX1RXLkJpZzUNCmNo ZWNraW5nIGZvciBleHRyYSBmbGFncyB0byBnZXQgQU5TSSBsaWJyYXJ5IHBy b3RvdHlwZXMuLi4gbm9uZSBuZWVkZWQNCmNoZWNraW5nIGZvciBleHRyYSBm bGFncyBmb3IgUE9TSVggY29tcGxpYW5jZS4uLiBub25lIG5lZWRlZA0KY2hl Y2tpbmcgZm9yIGdsaWItY29uZmlnLi4uIC91c3IvbG9jYWwvYmluL2dsaWIt Y29uZmlnDQpjaGVja2luZyBmb3IgR0xJQiAtIHZlcnNpb24gPj0gMS4yLjgu Li4gbm8NCioqKiBDb3VsZCBub3QgcnVuIEdMSUIgdGVzdCBwcm9ncmFtLCBj aGVja2luZyB3aHkuLi4NCioqKiBUaGUgdGVzdCBwcm9ncmFtIGNvbXBpbGVk LCBidXQgZGlkIG5vdCBydW4uIFRoaXMgdXN1YWxseSBtZWFucw0KKioqIHRo YXQgdGhlIHJ1bi10aW1lIGxpbmtlciBpcyBub3QgZmluZGluZyBHTElCIG9y IGZpbmRpbmcgdGhlIHdyb25nDQoqKiogdmVyc2lvbiBvZiBHTElCLiBJZiBp dCBpcyBub3QgZmluZGluZyBHTElCLCB5b3UnbGwgbmVlZCB0byBzZXQgeW91 cg0KKioqIExEX0xJQlJBUllfUEFUSCBlbnZpcm9ubWVudCB2YXJpYWJsZSwg b3IgZWRpdCAvZXRjL2xkLnNvLmNvbmYgdG8gcG9pbnQNCioqKiB0byB0aGUg aW5zdGFsbGVkIGxvY2F0aW9uICBBbHNvLCBtYWtlIHN1cmUgeW91IGhhdmUg cnVuIGxkY29uZmlnIGlmIHRoYXQNCioqKiBpcyByZXF1aXJlZCBvbiB5b3Vy IHN5c3RlbQ0KKioqDQoqKiogSWYgeW91IGhhdmUgYW4gb2xkIHZlcnNpb24g aW5zdGFsbGVkLCBpdCBpcyBiZXN0IHRvIHJlbW92ZSBpdCwgYWx0aG91Z2gN CioqKiB5b3UgbWF5IGFsc28gYmUgYWJsZSB0byBnZXQgdGhpbmdzIHRvIHdv cmsgYnkgbW9kaWZ5aW5nIExEX0xJQlJBUllfUEFUSA0KKioqDQoqKiogSWYg eW91IGhhdmUgYSBSZWRIYXQgNS4wIHN5c3RlbSwgeW91IHNob3VsZCByZW1v dmUgdGhlIEdUSyBwYWNrYWdlIHRoYXQNCioqKiBjYW1lIHdpdGggdGhlIHN5 c3RlbSB3aXRoIHRoZSBjb21tYW5kDQoqKioNCioqKiAgICBycG0gLS1lcmFz ZSAtLW5vZGVwcyBndGsgZ3RrLWRldmVsDQpjb25maWd1cmU6IGVycm9yOiAN CioqKiBHTElCIDEuMi44IG9yIGJldHRlciBpcyByZXF1aXJlZC4gVGhlIGxh dGVzdCB2ZXJzaW9uIG9mIEdMSUINCioqKiBpcyBhbHdheXMgYXZhaWxhYmxl IGZyb20gZnRwOi8vZnRwLmd0ay5vcmcvLg0Ka2hhbltwYXVsbV0+IGV4aXQK c2NyaXB0IGRvbmUgb24gRnJpIEZlYiAwMSAxMjo1ODoxNCAyMDAyCg== --Herd_of_Elephants_369_000 Content-Type: TEXT/plain; name=lib_list; charset=us-ascii; x-unix-mode=0664 Content-Description: lib_list Content-MD5: REcIQAPQJl9I9JwWGankUA== total 3904 -rw-r--r-- 1 root other 8096 Feb 21 2001 a2ps.header.ps drwxrwxr-x 3 paulm vicpol 512 Jan 31 18:58 glib lrwxrwxrwx 1 paulm vicpol 21 Jan 31 19:33 libglib-1.2.so.0 -> libglib-1.2.so.0.0.10 -rwxr-xr-x 1 paulm vicpol 549796 Jan 31 19:33 libglib-1.2.so.0.0.10 -rw-r--r-- 1 paulm vicpol 1267956 Jan 31 19:33 libglib.a -rwxr-xr-x 1 paulm vicpol 668 Jan 31 19:33 libglib.la lrwxrwxrwx 1 paulm vicpol 21 Jan 31 19:33 libglib.so -> libglib-1.2.so.0.0.10 lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgmodule-1.2.so.0 -> libgmodule-1.2.so.0.0.10 -rwxr-xr-x 1 paulm vicpol 21492 Jan 31 19:33 libgmodule-1.2.so.0.0.10 -rw-r--r-- 1 paulm vicpol 49908 Jan 31 19:33 libgmodule.a -rw-r--r-- 1 paulm vicpol 694 Jan 31 19:33 libgmodule.la lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgmodule.so -> libgmodule-1.2.so.0.0.10 lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgthread-1.2.so.0 -> libgthread-1.2.so.0.0.10 -rwxr-xr-x 1 paulm vicpol 17304 Jan 31 19:33 libgthread-1.2.so.0.0.10 -rw-r--r-- 1 paulm vicpol 47040 Jan 31 19:33 libgthread.a -rwxr-xr-x 1 paulm vicpol 698 Jan 31 19:33 libgthread.la lrwxrwxrwx 1 paulm vicpol 24 Jan 31 19:33 libgthread.so -> libgthread-1.2.so.0.0.10 drwxrwxr-x 2 paulm vicpol 512 Jan 31 19:33 pkgconfig --Herd_of_Elephants_369_000-- From engenharia3@maqplas.com.br Fri Feb 1 11:01:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id C858718776 for ; Fri, 1 Feb 2002 11:01:42 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11G0sCV016065 for ; Fri, 1 Feb 2002 14:00:59 -0200 (BRST) Subject: Catching keys combinations From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 13:58:12 -0200 Message-Id: <1012579101.1122.2.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello again, I need to catch key combinations (ex.: CTRL + X + any key) , my application windows are connected with the key_press_event, but I view only 1 key press in moment, what I do ? Thanks in advance Flavio Alberto From lapenta_jm@yahoo.com Fri Feb 1 11:04:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14006.mail.yahoo.com (web14006.mail.yahoo.com [216.136.175.122]) by mail.gnome.org (Postfix) with SMTP id 37F7918123 for ; Fri, 1 Feb 2002 11:04:59 -0500 (EST) Message-ID: <20020201160458.86534.qmail@web14006.mail.yahoo.com> Received: from [129.55.200.20] by web14006.mail.yahoo.com via HTTP; Fri, 01 Feb 2002 08:04:58 PST Date: Fri, 1 Feb 2002 08:04:58 -0800 (PST) From: Jason LaPenta Subject: Problem passing pointer to widget with gtk_idle_add() To: gtk-list@gnome.org Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hello, When I pass a pointer to a widget with void on_scan_window_show( GtkWidget *widget, gpointer user_data ) { printf( " adding main_idle 0x%x\n", widget ); g_idle_id = gtk_idle_add( main_idle, widget ); } By the time the user_data pointer gets to gint main_idle ( gpointer user_data ) { ... } My user_data( which should be a pointer to widget ) looks like it got casted to a 16bit int for some reason. At the very least it is mangled. Anybody know why? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From hp@redhat.com Fri Feb 1 11:10:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 03D9C18215 for ; Fri, 1 Feb 2002 11:10:40 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11GAcw25262; Fri, 1 Feb 2002 11:10:38 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: zze-coframi balr001 , gtk-list Subject: Re: GTK without X ??? References: <1012576326.1122.1.camel@flavio.maqplas> From: Havoc Pennington Date: 01 Feb 2002 11:10:38 -0500 In-Reply-To: <1012576326.1122.1.camel@flavio.maqplas> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Fl=E1vio Alberto Lopes Soares writes: > Can I compile my application normally (I making my application using > GTK+ 1.2.10), or I must make some changes ? >=20 You will need to port to 1.3.x/2.0, which is fairly simple and a good idea anyway. There's some information in the reference manual: http://developer.gnome.org/doc/API/2.0/gtk/gtk-framebuffer.html Havoc From hp@redhat.com Fri Feb 1 11:12:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 5DFDA197DC for ; Fri, 1 Feb 2002 11:12:11 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11GCB825266; Fri, 1 Feb 2002 11:12:11 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: gtk-list@gnome.org Subject: Re: GUI design References: <1012573868.2054.4.camel@chavez> From: Havoc Pennington Date: 01 Feb 2002 11:12:11 -0500 In-Reply-To: <1012573868.2054.4.camel@chavez> Message-ID: Lines: 8 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "User Interface Design for Programmers" by Joel Spolsky is good. It's online in shortened form but the paper version is enough better to be worth buying I think. Havoc From pbd@op.net Fri Feb 1 11:31:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 260051825C for ; Fri, 1 Feb 2002 11:31:39 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA15209; Fri, 1 Feb 2002 11:31:34 -0500 (EST) Message-Id: <200202011631.LAA15209@renoir.op.net> To: Fl vio Alberto Lopes Soares Cc: gtk-list Subject: Re: Catching keys combinations In-reply-to: Your message of "01 Feb 2002 13:58:12 -0200." <1012579101.1122.2.camel@flavio.maqplas> Date: Fri, 01 Feb 2002 11:29:08 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I need to catch key combinations (ex.: CTRL + X + any key) , my >application windows are connected with the key_press_event, but I view >only 1 key press in moment, what I do ? if i understand your question (which i am not confident about), then you must keep track of keys yourself. modifier keys known to the X server will change the "state" field of a GdkEventKey. in general, keys like "ctrl" and "alt" are set up as modifier keys. the "X" key will not be. so, you need to create a data structure to track which keys are "down", and modify your action according to its state. --p From pbd@op.net Fri Feb 1 11:32:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 0A27519816 for ; Fri, 1 Feb 2002 11:32:28 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA15282; Fri, 1 Feb 2002 11:32:21 -0500 (EST) Message-Id: <200202011632.LAA15282@renoir.op.net> To: Havoc Pennington Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX In-reply-to: Your message of "01 Feb 2002 00:54:43 EST." Date: Fri, 01 Feb 2002 11:29:55 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > >Paul Davis writes: >> i sincerely hope that in a future release of the 1.2 series, >> pkg-config gets added. >> > >Note that pkg-config has some dubious "legacy hacks" in it - try >"pkg-config --cflags gtk" for example. which version? 0.8.0 just reports an error if i try that. From hp@redhat.com Fri Feb 1 12:04:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 9D92518109 for ; Fri, 1 Feb 2002 12:04:54 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11H4rs25349; Fri, 1 Feb 2002 12:04:53 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011632.LAA15282@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 12:04:52 -0500 In-Reply-To: <200202011632.LAA15282@renoir.op.net> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > > >Paul Davis writes: > >> i sincerely hope that in a future release of the 1.2 series, > >> pkg-config gets added. > >> > > > >Note that pkg-config has some dubious "legacy hacks" in it - try > >"pkg-config --cflags gtk" for example. > > which version? 0.8.0 just reports an error if i try that. 0.8 should have this. I'm pretty sure it was there almost from the start, even before 0.8. What error do you get? If you "strace -f" is there any fork/exec of gtk-config going on? Havoc From hp@redhat.com Fri Feb 1 12:08:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id E88EF18109 for ; Fri, 1 Feb 2002 12:08:32 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11H8Sn25353; Fri, 1 Feb 2002 12:08:28 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "K P-W" Cc: gtk-list@gnome.org Subject: Re: setting the font in a program using gtk 1.3.12 References: From: Havoc Pennington Date: 01 Feb 2002 12:08:28 -0500 In-Reply-To: Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "K P-W" writes: > I have been trying to find out how tp set the font and the fontsize in > my program using gtk version 1.3.12 because the standard font is > unreadable. This really isn't a reason to hardcode the font in your app - that will just result in every app having a different font. What you need to do is fix the default font on your system. You can do this by editing etc/pango/pangox.aliases if using old-style X fonts and etc/X11/XftConfig if using Xft fonts. Change what the "sans" alias points to. If your font is just too small, you have DPI set wrong on your X server. Do "xdpyinfo" to get the current DPI. Measure your monitor with a ruler, and put its correct size in /etc/X11/XF86Config (see "man XF86Config" - search for DisplaySize). Havoc From rsteinke@w-link.net Fri Feb 1 12:11:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 279B818E33 for ; Fri, 1 Feb 2002 12:11:11 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.33 #1 (Debian)) id 16WhDO-0002NH-00; Fri, 01 Feb 2002 09:11:06 -0800 Date: Fri, 01 Feb 2002 09:11:06 -0800 From: rsteinke@w-link.net To: lettere@di.unipi.it, gtk-list@gnome.org Subject: Re: colors in pixmap Message-ID: <3C5ACC2A.nail6X81NWRBW@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Marco Lettere > > hello everyone, > > suppose I've a pixmap with a color which I want to modify with 3 slider > widgets for RGB. > The way I'm performing it now is to destroy the old pixmap, change the xpm > C structure and then recreate the pixmap with the new data. > Isn't there a better way (less expensive) of performing this operation > I'm thinking about something like > > gtk_pixmap_update_color(Gtkpixmap* pix,int colorIndex,GdkColor* newColor); Is this just a solid color pixmap? If so, you could just use gdk_draw_rectangle(), and avoid using the xpm entirely. If not, you probably should create a series of pixmaps, one for each color, and swap them in and out. Ron Steinke From engenharia3@maqplas.com.br Fri Feb 1 12:20:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id 3669018246 for ; Fri, 1 Feb 2002 12:20:43 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g11HJxCV021112; Fri, 1 Feb 2002 15:20:00 -0200 (BRST) Subject: Re: GTK without X ??? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Havoc Pennington Cc: zze-coframi balr001 , gtk-list In-Reply-To: References: <1012576326.1122.1.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution/0.10 (Preview Release) Date: 01 Feb 2002 15:17:21 -0200 Message-Id: <1012583843.1123.3.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello again Where can I download GTK+2.0 ? Thanks Flavio Alberto Em 01 Feb 2002 11:10:38 -0500, Havoc Pennington escreveu: > > Flávio Alberto Lopes Soares writes: > > Can I compile my application normally (I making my application using > > GTK+ 1.2.10), or I must make some changes ? > > > > You will need to port to 1.3.x/2.0, which is fairly simple and a good > idea anyway. > > There's some information in the reference manual: > http://developer.gnome.org/doc/API/2.0/gtk/gtk-framebuffer.html > > Havoc From sven@gimp.org Fri Feb 1 12:27:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id BCA1A187C6 for ; Fri, 1 Feb 2002 12:27:38 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16WhGL-00008f-00; Fri, 01 Feb 2002 18:14:09 +0100 To: Havoc Pennington Cc: Paul Davis , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011632.LAA15282@renoir.op.net> From: Sven Neumann Date: 01 Feb 2002 18:14:09 +0100 In-Reply-To: Message-ID: Lines: 35 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Havoc Pennington writes: > Paul Davis writes: > > > > > >Paul Davis writes: > > >> i sincerely hope that in a future release of the 1.2 series, > > >> pkg-config gets added. > > >> > > > > > >Note that pkg-config has some dubious "legacy hacks" in it - try > > >"pkg-config --cflags gtk" for example. pkg-config --libs gtk Package gtk was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk.pc' to the PKG_CONFIG_PATH environment variable No package 'gtk' found which pkg-config /usr/local/bin/pkg-config which gtk-config /usr/bin/gtk-config > If you "strace -f" is there any fork/exec of gtk-config going on? I hope you are joking here. Forking gtk-config would be a really evil hack. If that's indeed what pkg-config does, a crash is what you deserve. Salut, Sven From pbd@op.net Fri Feb 1 12:30:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9B5E618E17 for ; Fri, 1 Feb 2002 12:30:27 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA22617; Fri, 1 Feb 2002 12:30:21 -0500 (EST) Message-Id: <200202011730.MAA22617@renoir.op.net> To: Havoc Pennington Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX In-reply-to: Your message of "01 Feb 2002 12:04:52 EST." Date: Fri, 01 Feb 2002 12:27:55 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >0.8 should have this. I'm pretty sure it was there almost from the >start, even before 0.8. > >What error do you get? > >If you "strace -f" is there any fork/exec of gtk-config going on? it doesn't fork/exec it, doesn't open it, stat it, read it or mmap it. --p From hp@redhat.com Fri Feb 1 13:04:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id D836519836 for ; Fri, 1 Feb 2002 13:04:56 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11I4th07499; Fri, 1 Feb 2002 13:04:55 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Sven Neumann Cc: Paul Davis , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011632.LAA15282@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 13:04:54 -0500 In-Reply-To: Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sven Neumann writes: > I hope you are joking here. Forking gtk-config would be a really > evil hack. If that's indeed what pkg-config does, a crash is what > you deserve. > It allows you to use PKG_CHECK_MODULES with the GNOME 1 platform. It's kind of a cheesy special case, but there's nothing broken about it. (Other than it doesn't seem to work for you but does work for me, I don't understand what that could possibly be about.) Havoc From hp@redhat.com Fri Feb 1 13:05:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id A7C8719836 for ; Fri, 1 Feb 2002 13:05:45 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11I5ig07503; Fri, 1 Feb 2002 13:05:44 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: zze-coframi balr001 , gtk-list Subject: Re: GTK without X ??? References: <1012576326.1122.1.camel@flavio.maqplas> <1012583843.1123.3.camel@flavio.maqplas> From: Havoc Pennington Date: 01 Feb 2002 13:05:44 -0500 In-Reply-To: <1012583843.1123.3.camel@flavio.maqplas> Message-ID: Lines: 7 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Fl=E1vio Alberto Lopes Soares writes: > Where can I download GTK+2.0 ? Get 1.3.13 (the unstable version that will become 2.0). It's on ftp.gtk.org. Havoc From pbd@op.net Fri Feb 1 13:17:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id B8E0B18760 for ; Fri, 1 Feb 2002 13:17:11 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-402.phlpa.fast.net [209.92.228.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA28161; Fri, 1 Feb 2002 13:17:05 -0500 (EST) Message-Id: <200202011817.NAA28161@renoir.op.net> To: Havoc Pennington Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX In-reply-to: Your message of "01 Feb 2002 13:04:54 EST." Date: Fri, 01 Feb 2002 13:14:39 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> I hope you are joking here. Forking gtk-config would be a really >> evil hack. If that's indeed what pkg-config does, a crash is what >> you deserve. >> > >It allows you to use PKG_CHECK_MODULES with the GNOME 1 platform. It's >kind of a cheesy special case, but there's nothing broken about it. ah. thats different. thats an m4 macro that probably calls pkg-config and handles failure. that doesn't mean pkg-config itself can handle it. --p From seberino@dt092n42.san.rr.com Fri Feb 1 14:10:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 7138018772 for ; Fri, 1 Feb 2002 14:10:49 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16Wj5F-00009e-00 for gtk-list@gnome.org; Fri, 01 Feb 2002 11:10:49 -0800 Date: Fri, 1 Feb 2002 11:10:49 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: Is this "thread-safe" in GTK+.... Message-ID: <20020201111049.B527@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I want to use pthreads to have a thread that just generates numbers used by GTK+ in another thread for drawing. (pixmap plot of the numbers) I believe variables are global with pthreads but are there any gotchas to this? Do I need to use semaphores? (I must find out what they are first!) :( Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From scherfa@web.de Fri Feb 1 14:22:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id D6BF3181B8 for ; Fri, 1 Feb 2002 14:22:53 -0500 (EST) Received: from [62.180.24.173] (helo=u-173-24.mannheim.ipdial.viaginterkom.de) by smtp.web.de with asmtp (Exim 4.11 #37) id 16WjFc-0002ML-00; Fri, 01 Feb 2002 20:21:33 +0100 Subject: Re: GNode and GtkCTree From: Andreas Scherf To: Randy Rueckner Cc: Gtk Liste In-Reply-To: <200201311440.g0VEe69198610@pax10e3.mipool.uni-jena.de> References: <200201311440.g0VEe69198610@pax10e3.mipool.uni-jena.de> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 01 Feb 2002 20:21:36 +0100 Message-Id: <1012591297.1591.2.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am Don, 2002-01-31 um 15.40 schrieb Randy Rueckner: > hello there! > > i write a little application to manipulate and filter magnetic resonance > tomographie - images using glib/gtk. > the main part is done - gtk is really great, but now i have a little > problem and hope someone here can help me. > i want to build a GtkCTree which shows the local images, but that is no > easy task. > the images are named as follows: xxxx-yyy-zzz.ima, where xxxx, yyy, zzz > are integers (xxxx ist the patient id, yyy the study no and zzz the image > no in the study yyy). > the GtkCTree should look like this: > > ---local IMA's // the root_item > |-+-3331 // patient_id = 3331 > |-+-4222 > |---4546 > | |-+-2 // study_no = 2 ( for patient_id = 4546) > | |-+-3 > | |---6 > | | |-23 // image_no = 23 (in study_no = 6) > | | |-24 // filename for this entry: 4546-6-24.ima > | | |-25 > | | |-84 > | |-+-8 // study_no = 8 > |-+-5123 // this is the next patient_id > |-+-5423 > > i hope you understand what i mean. > so i read all image names into an array, split them and build an GNode > tree. my GNode - tree is correct. > now i tried to add my GNode_root_item into an empty GtkCTree. > but in my application there is only an empty item shown, like this: > > -+- > > and nothing more... > i can click on plus, but without an effect. where is the rest of my tree. > please help me. > > thanks in advance > randy There are a few things that goes wrong here, but you could send me your code and i will have a look at it. Or you change your app to work with gtk+2.0 the Tree and list functions are now a lot easier to handle and adding pictures or widgets is simpler than in gtk+1.2 i think in long term it was better to choose gtk+2.0 for this task. MfG Scherfy -- Andreas Scherf ICQ: 52910964 scherfa@web.de b.de From hp@redhat.com Fri Feb 1 14:59:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id C533B18923 for ; Fri, 1 Feb 2002 14:59:19 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11JxGc07370; Fri, 1 Feb 2002 14:59:16 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Sven Neumann , "Lin, Lynn" , "'gtk-list@gnome.org'" Subject: Re: HELP: Compiling GTK+ Applications on UNIX References: <200202011817.NAA28161@renoir.op.net> From: Havoc Pennington Date: 01 Feb 2002 14:59:16 -0500 In-Reply-To: <200202011817.NAA28161@renoir.op.net> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > ah. thats different. thats an m4 macro that probably calls pkg-config > and handles failure. that doesn't mean pkg-config itself can handle it. > No, pkg-config itself definitely does ask a set of legacy *-config scripts for results if it can't find .pc files for a module. I wrote the code, so I'm sure it exists. ;-) I think I see the problem now - "pkg-config --cflags gtk" goes via gnome-config, which you probably don't have. Change it to "pkg-config --cflags gtk+" (add the "+") and it will call gtk-config instead. If that still doesn't work, or you do have gnome-config installed, then send me the output if you add the --debug option. Havoc From rwalden@tripos.com Fri Feb 1 16:48:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id 20B94181CC for ; Fri, 1 Feb 2002 16:48:35 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id PAA26482 for <@firewall.tripos.com:gtk-list@gnome.org>; Fri, 1 Feb 2002 15:48:34 -0600 (CST) Received: from elara.tripos.com(172.20.5.15) by gatekeeper.tripos.com via smap (V5.5) id xma026467; Fri, 1 Feb 02 15:48:17 -0600 Received: from ariel.tripos.com (ariel [172.20.5.145]) by tripos.com (980919.SGI.STAND) via ESMTP id PAA04804 for ; Fri, 1 Feb 2002 15:48:16 -0600 (CST) Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id PAA27663 for ; Fri, 1 Feb 2002 15:48:16 -0600 (CST) Message-ID: <3C5B0D1F.54F3BA42@tripos.com> Date: Fri, 01 Feb 2002 15:48:15 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 Cc: gtk-list@gnome.org Subject: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It seems to me that glib innow REQUIRES the use of GNU gettext, which is covered under GPL. If that's true, then GTK2 can no longer be used for commercial software development. Is this intentional? Am I missing something? Is there a way to use glib/GTK2 without GNU gettext? Thanks, Ralph Walden -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Fri Feb 1 17:26:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 967EA183AA for ; Fri, 1 Feb 2002 17:26:34 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11MQXq31536; Fri, 1 Feb 2002 17:26:33 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ralph Walden Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> From: Havoc Pennington Date: 01 Feb 2002 17:26:32 -0500 In-Reply-To: <3C5B0D1F.54F3BA42@tripos.com> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > It seems to me that glib innow REQUIRES the use of > GNU gettext, which is covered under GPL. > > If that's true, then GTK2 can no longer be used > for commercial software development. > > Is this intentional? > > Am I missing something? Is there a way to use glib/GTK2 without > GNU gettext? > GNU gettext is now available under the LGPL, at our request. I think GTK is supposed to still work with other gettext, though. Havoc From rwalden@tripos.com Fri Feb 1 17:32:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id 56D641863B for ; Fri, 1 Feb 2002 17:32:45 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id QAA27608; Fri, 1 Feb 2002 16:32:44 -0600 (CST) Received: from elara.tripos.com(172.20.5.15) by gatekeeper.tripos.com via smap (V5.5) id xma027604; Fri, 1 Feb 02 16:32:01 -0600 Received: from ariel.tripos.com (ariel [172.20.5.145]) by tripos.com (980919.SGI.STAND) via ESMTP id QAA05226; Fri, 1 Feb 2002 16:32:00 -0600 (CST) Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id QAA05357; Fri, 1 Feb 2002 16:31:59 -0600 (CST) Message-ID: <3C5B175F.6CD6F8AD@tripos.com> Date: Fri, 01 Feb 2002 16:31:59 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Where can I obtain the LGPL version of gettext? I downloaded the gettext-0.11 version from gnu.org, and there is no mention of LGPL, only GPL. Thanks, Ralph Walden Havoc Pennington wrote: > > Ralph Walden writes: > > It seems to me that glib innow REQUIRES the use of > > GNU gettext, which is covered under GPL. > > > > If that's true, then GTK2 can no longer be used > > for commercial software development. > > > > Is this intentional? > > > > Am I missing something? Is there a way to use glib/GTK2 without > > GNU gettext? > > > > GNU gettext is now available under the LGPL, at our request. > > I think GTK is supposed to still work with other gettext, though. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From rwalden@tripos.com Fri Feb 1 17:34:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id BED7818C92 for ; Fri, 1 Feb 2002 17:34:45 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id QAA27665; Fri, 1 Feb 2002 16:34:45 -0600 (CST) Received: from elara.tripos.com(172.20.5.15) by gatekeeper.tripos.com via smap (V5.5) id xma027660; Fri, 1 Feb 02 16:34:30 -0600 Received: from ariel.tripos.com (ariel [172.20.5.145]) by tripos.com (980919.SGI.STAND) via ESMTP id QAA05240; Fri, 1 Feb 2002 16:34:29 -0600 (CST) Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id QAA09534; Fri, 1 Feb 2002 16:34:29 -0600 (CST) Message-ID: <3C5B17F5.3F536D54@tripos.com> Date: Fri, 01 Feb 2002 16:34:29 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Oops, sorry. I didn't look closely enough. in the NEWS file with gettext-0.11: Version 0.10.40 - September 2001 * The libintl library is now covered by the GNU LGPL. The tools are still covered by the GNU GPL. Thanks, Ralph Walden Havoc Pennington wrote: > > Ralph Walden writes: > > It seems to me that glib innow REQUIRES the use of > > GNU gettext, which is covered under GPL. > > > > If that's true, then GTK2 can no longer be used > > for commercial software development. > > > > Is this intentional? > > > > Am I missing something? Is there a way to use glib/GTK2 without > > GNU gettext? > > > > GNU gettext is now available under the LGPL, at our request. > > I think GTK is supposed to still work with other gettext, though. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Fri Feb 1 17:47:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 29C2318115 for ; Fri, 1 Feb 2002 17:47:02 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g11Ml0s19617; Fri, 1 Feb 2002 17:47:00 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ralph Walden Cc: gtk-list@gnome.org Subject: Re: GTK2 and gettext References: <1012573868.2054.4.camel@chavez> <3C5B0D1F.54F3BA42@tripos.com> <3C5B175F.6CD6F8AD@tripos.com> From: Havoc Pennington Date: 01 Feb 2002 17:47:00 -0500 In-Reply-To: <3C5B175F.6CD6F8AD@tripos.com> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > Where can I obtain the LGPL version of gettext? > > I downloaded the gettext-0.11 version from > gnu.org, and there is no mention of LGPL, only GPL. > Look at intl/COPYING.LIB-2.1 in the source tree. Only the library part of gettext is LGPL, the command line utilities like msgfmt are still GPL. 0.10.40 and 0.11 both have the LGPL. Havoc From sandmann@daimi.au.dk Fri Feb 1 18:44:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from alex.daimi.au.dk (alex.daimi.au.dk [130.225.16.45]) by mail.gnome.org (Postfix) with ESMTP id C9D6D18FC3 for ; Fri, 1 Feb 2002 18:44:28 -0500 (EST) Received: (from sandmann@localhost) by alex.daimi.au.dk (8.11.6/8.11.6) id g11NiO417319; Sat, 2 Feb 2002 00:44:24 +0100 (MET) To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: Is this "thread-safe" in GTK+.... References: <20020201111049.B527@spawar.navy.mil> From: Soeren Sandmann Date: 02 Feb 2002 00:44:24 +0100 In-Reply-To: <20020201111049.B527@spawar.navy.mil> Message-ID: Lines: 75 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Chris Seberino writes: > I want to use pthreads to have a thread that just generates > numbers used by GTK+ in another thread for drawing. > (pixmap plot of the numbers) >=20 > I believe variables are global with pthreads but > are there any gotchas to this? Do I need to > use semaphores? (I must find out what they are first!) :( There are lots of gotchas with threads. One way to do what you want without using threads is like this: typedef struct MyComputation MyComputation; struct MyComputation { =20=20=20=20 /* put all your computation's state here */; gboolean cancelled_by_user;=20=20=20=20 } gboolean run_my_computation (gpointer data) { MyComputation *my_computation =3D data; /* don't run for more than about 10-20 ms if you can avoid it=20 */ ; if (computation is finished || my_computation->cancelled_by_user) { g_free (my_computation); return FALSE; /* don't call me again */ } else { return TRUE; /* please call me again */ } } and then later do my_computation =3D g_new (MyComputation, 1); my_computation->cancelled_by_user =3D FALSE; my_computation->... =3D ...; g_idle_add (run_my_computation, my_computation); This will make sure your application is responsive and in addition provide these benefits: - the user can stop the computation. In the callback for the click on "cancel", just do=20 my_computation->cancelled_by_user =3D TRUE; - you can easily have a progress/activity bar - you don't have to mess with threads and locking. If you must use threads for some reason, then you will generally want to avoid calling gdk and gtk functions from the thread. Instead use the same trick and=20 g_idle_add (function_that_does_what_do_need_to_do, ...);=20 The function_that_does_what_you_need_to_do() can safely call any gtk and gdk functions it wants to. S=F8ren From scherfa@web.de Fri Feb 1 19:18:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id A0084181CC for ; Fri, 1 Feb 2002 19:18:51 -0500 (EST) Received: from [62.180.25.216] (helo=d-216-25.mannheim.ipdial.viaginterkom.de) by smtp.web.de with asmtp (Exim 4.11 #37) id 16Wnt6-0001Z1-00 for gtk-list@gnome.org; Sat, 02 Feb 2002 01:18:36 +0100 Subject: How to set only ONE Column editable (GTK2) From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 02 Feb 2002 01:18:42 +0100 Message-Id: <1012609123.30197.3.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have another problem, i have 2 columns : Number Name Now i want that the user could edit the name but not want that he could change the number. I have solved this by dont let the changes come trough : column = g_object_get_data (G_OBJECT (cell), "column"); if ((gint) column==NUMBER_COLUMN) { return; } But thats a bad result, could i set the column number 0 to not_EDITABLE ? Thanks Scherfy -- Andreas Scherf ICQ: 52910964 scherfa@web.de From hp@redhat.com Fri Feb 1 20:11:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id D0CE11825D for ; Fri, 1 Feb 2002 20:11:12 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g121BAp22392; Fri, 1 Feb 2002 20:11:10 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Andreas Scherf Cc: Gtk Liste Subject: Re: How to set only ONE Column editable (GTK2) References: <1012609123.30197.3.camel@xerxes> From: Havoc Pennington Date: 01 Feb 2002 20:11:10 -0500 In-Reply-To: <1012609123.30197.3.camel@xerxes> Message-ID: Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Andreas Scherf writes: > I have another problem, > i have 2 columns : > Number Name > Now i want that the user could edit the name but not want that he could > change the number. I have solved this by dont let the changes come > trough : > column = g_object_get_data (G_OBJECT (cell), "column"); > > if ((gint) column==NUMBER_COLUMN) { > return; > } > But thats a bad result, could i set the column number 0 to not_EDITABLE > ? > You can use a different cell renderer for each column, right. Havoc From monkeyiq@gmx.net Sat Feb 2 07:29:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from monkeyiq.dnsalias.org (CPE-203-45-214-174.qld.bigpond.net.au [203.45.214.174]) by mail.gnome.org (Postfix) with ESMTP id A60AF18FA5 for ; Sat, 2 Feb 2002 07:29:41 -0500 (EST) Received: by monkeyiq.dnsalias.org id g12CVhj24647 ; Sat, 2 Feb 2002 22:31:43 +1000 Date: Sat, 2 Feb 2002 22:31:43 +1000 Message-Id: <200202021231.g12CVhj24647@monkeyiq.dnsalias.org> To: GTK Mailing List Subject: GtkTreeView and gtk 1.3.13 From: monkeyiq MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I recently upgraded to the rawhide rpms for gtk 1.3.13 and now I am getting a segv on app startup of Ego: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 24632)] __strtol_internal (nptr=0x8108c30 "\002", endptr=0x0, base=3, group=-1073746544) at eval.c:38 38 eval.c: No such file or directory. in eval.c (gdb) bt #0 __strtol_internal (nptr=0x8108c30 "\002", endptr=0x0, base=3, group=-1073746544) at eval.c:38 #1 0x409cf548 in g_closure_invoke () at eval.c:41 #2 0x409e4358 in signal_emit_unlocked_R () at eval.c:41 #3 0x409e30b6 in g_signal_emit_valist () at eval.c:41 #4 0x409e3403 in g_signal_emit_by_name () at eval.c:41 #5 0x406b04d6 in gtk_tree_model_row_inserted () at eval.c:41 #6 0x406bcf61 in gtk_tree_store_append () at eval.c:41 #7 0x080799c3 in Ego::ContextView::makeDummyView (this=0x80ffa70) at ContextView.cpp:2168 Any thoughts on code that may have changed 1.3.12 -> .13 that I might look at first? -- ----------------------------------------------------- http://witme.sourceforge.net/libferris.web/ From v.j.arkesteijn@utwente.nl Sat Feb 2 09:33:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ken (dyn093252.inbel.utwente.nl [130.89.93.252]) by mail.gnome.org (Postfix) with ESMTP id 2AA8C18B04 for ; Sat, 2 Feb 2002 09:33:53 -0500 (EST) Received: by ken (Postfix, from userid 1000) id 00FA819DF; Sat, 2 Feb 2002 15:35:47 +0100 (CET) Date: Sat, 2 Feb 2002 15:35:46 +0100 From: Vincent Arkesteijn To: gtk-list@gnome.org Subject: scrolled window: scroll in only one direction? Message-ID: <20020202153542.A4579@ken> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I would like to have a scrolled window, in which the child is only scrolled in one direction. In the other direction, the child's size should change when the user changes the size of the window. Is this possible? Background: I have an application that shows some data inside a drawing area in real time. As there may be more data than fits in the window, I want the drawing area inside a scrolled window. Let's assume this scrolls in the vertical direction. When new data is received, it is drawn in the right, and the older data is automatically moved left. Now I want the width of the window to determine how far back in time the data is visible, so no horizontal scrolling by the user. So in the horizontal direction, everything should work like there was no scrolled window, just as in the scribble drawing program in the tutorial. I have tried changing the size of the drawing area whenever a configure event is raised, but this hasn't worked very well yet and to me it sounds more like a hack than a real good solution. I would appreciate your help. Vincent. From hp@redhat.com Sat Feb 2 09:58:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 8AFEF18EDC for ; Sat, 2 Feb 2002 09:58:22 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g12EwKU29258; Sat, 2 Feb 2002 09:58:20 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Vincent Arkesteijn Cc: gtk-list@gnome.org Subject: Re: scrolled window: scroll in only one direction? References: <20020202153542.A4579@ken> From: Havoc Pennington Date: 02 Feb 2002 09:58:20 -0500 In-Reply-To: <20020202153542.A4579@ken> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Vincent Arkesteijn writes: > > I would like to have a scrolled window, in which the child is only > scrolled in one direction. In the other direction, the child's size > should change when the user changes the size of the window. Is this > possible? > I think you just want to set GTK_POLICY_NEVER on one direction? Havoc From neofolk@yahoo.de Sat Feb 2 15:10:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp017.mail.yahoo.com (smtp017.mail.yahoo.com [216.136.174.114]) by mail.gnome.org (Postfix) with SMTP id 33A1918145 for ; Sat, 2 Feb 2002 15:10:47 -0500 (EST) Received: from p3ee37673.dip.t-dialin.net (HELO p3desktop) (62.227.118.115) by smtp.mail.vip.sc5.yahoo.com with SMTP; 2 Feb 2002 20:10:39 -0000 Message-ID: <001e01c1ac25$5ed06e50$6600a8c0@p3desktop> Reply-To: "Oliver Kroll :ALT EUROPA: - Magazin" From: "Oliver Kroll :ALT EUROPA: - Magazin" To: Subject: CList: how to change column-count at runtime Date: Sat, 2 Feb 2002 21:08:20 +0100 Organization: :ALT EUROPA: - Magazin MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001B_01C1AC2D.BE3DEE00" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_001B_01C1AC2D.BE3DEE00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi all, i created a form (clist included) with glade. i filled a ctree with databases and tables from the mysql-server, now i = like to read the data stored in a mysql-table into the clist. this is no problem so far. but how can i change the column-count from the gtk-clist at runtime, so = that it will fit to the column-count of the mysql-resultset? thanks a lot for your help. sincerly oliver k. ------=_NextPart_000_001B_01C1AC2D.BE3DEE00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi all,
 
i created a form (clist included) with=20 glade.
 
i filled a ctree with databases and = tables from the=20 mysql-server, now i like to read the data stored in a mysql-table into = the=20 clist.
this is no problem so far.
 
but how can i change the column-count = from the=20 gtk-clist at runtime, so that it will fit to the column-count of the=20 mysql-resultset?
 
thanks a lot for your = help.
 
sincerly
 
oliver k.
 
 
------=_NextPart_000_001B_01C1AC2D.BE3DEE00-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From pbd@op.net Sat Feb 2 15:55:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 7C2A418E03 for ; Sat, 2 Feb 2002 15:55:10 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-108.fast.net [209.92.60.108]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA26748 for ; Sat, 2 Feb 2002 15:55:09 -0500 (EST) Message-Id: <200202022055.PAA26748@renoir.op.net> To: gtk-list@gnome.org Subject: HTML-formatted mail/attachments Date: Sat, 02 Feb 2002 15:53:00 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: is there any chance that we could get this, like linux-kernel and others, to reject mail containing either only HTML-formatted mail or HTML attachments? i send polite messages to people who send such things, but the incoming flow is growing all the time, and individual filtering by procmail will do little to stem it. --p From shiraz_baig@yahoo.com Sun Feb 3 09:54:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13907.mail.yahoo.com (web13907.mail.yahoo.com [216.136.175.70]) by mail.gnome.org (Postfix) with SMTP id 8921A1810E for ; Sun, 3 Feb 2002 09:54:33 -0500 (EST) Message-ID: <20020203145432.54196.qmail@web13907.mail.yahoo.com> Received: from [203.135.0.66] by web13907.mail.yahoo.com via HTTP; Sun, 03 Feb 2002 06:54:32 PST Date: Sun, 3 Feb 2002 06:54:32 -0800 (PST) From: Shiraz Baig Subject: Re: drawing a line To: Sven Neumann Cc: gtk-list@gnome.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I do understand the advantage of "expose" but I wanted to understand the fundamentals first. Therefore, i wanted to draw the drawline like this. Thanks for all the help. BTW, I have now drawn the line with "expose" event. But I am slightly confused, becuase it calls the expose function three times. This is how I tested it. I just put a statement in the "expose" function call as; int static turn=0 g_print turn++; And I found that when I first draw the line this command prints 0,1 and 2. That means that it has been exposed three times. I thought that it is only being exposed when it is created. Any comments on that? I am now grappling with drawing the line in color. And the tutorial does not talk about color. The "ref" does talk about it but no example is available. I did find some examples from other sources, but they are too complicated. I would first like to understand the basics and then go on to complexities. So, if there is a simple 10 line program to draw a line in color I shall welcome it. Thanks and bye Shiraz --- Sven Neumann wrote: > Hi, > > Shiraz Baig writes: > > > I changed the parameters as suggested by Mr > Neumann > > and viola! I am drawing the lines without "expose" > > event and only with pushing a button. > > now move your mouse over the line you've just drawn > or obscure the window by moving another window over > it. Assuming you are using a drawing_area to draw on > directly, X will clear the area you've just painted > on and since you aren't redrawing in your expose > event handler, the line you've just drawn will be > gone. > > > Salut, Sven __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From sven@gimp.org Sun Feb 3 10:38:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E6BCFE.dip.t-dialin.net [217.230.188.254]) by mail.gnome.org (Postfix) with ESMTP id 71BC8180E2 for ; Sun, 3 Feb 2002 10:38:31 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16XOio-0004nA-00; Sun, 03 Feb 2002 16:38:26 +0100 To: Shiraz Baig Cc: gtk-list@gnome.org Subject: Re: drawing a line References: <20020203145432.54196.qmail@web13907.mail.yahoo.com> From: Sven Neumann Date: 03 Feb 2002 16:38:26 +0100 In-Reply-To: <20020203145432.54196.qmail@web13907.mail.yahoo.com> Message-ID: Lines: 35 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Shiraz Baig writes: > I do understand the advantage of "expose" but I > wanted to understand the fundamentals first. actually I don't think the concept of expose events as exposed by X11 (and thus GDK) has any advantages, but that's a different question... > BTW, I have now drawn the line with "expose" event. > But I am slightly confused, becuase it calls the > expose function three times. This is how I tested it. > I just put a statement in the "expose" function call > as; > int static turn=0 > g_print turn++; > > And I found that when I first draw the line this > command prints 0,1 and 2. That means that it has been > exposed three times. I thought that it is only being > exposed when it is created. Any comments on that? the expose event is called whenever the window (or parts of it) need to be repainted. This is the case if the gtk_widget_queue_draw() or a similar function is called and whenever the X server decides that it needs to happen (for example because the window was obscured by another window and becomes unobscured). You should note that the expose_event carries an expose rectangle (event->area) so you probably see three expose events on different areas of your windows. You will only want to redraw the entire window on every expose event if you are lazy. Salut, Sven From kasonhuang@kinposh.com.cn Sun Feb 3 22:30:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id C2C1D1826A for ; Sun, 3 Feb 2002 22:30:25 -0500 (EST) Subject: about how to create a function named of gtk_button_ellipse_new_with_label()? Date: Mon, 4 Feb 2002 11:30:17 +0800 MIME-Version: 1.0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F821FF2DC@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: about how to create a function named of gtk_button_ellipse_new_with_label()? Thread-Index: AcGtLEHLChfgThlgEda2uQCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: about how to create a function named of = gtk_button_ellipse_new_with_label()?

hello:
could anyone tell me = the inheritence of the gtk.
if i want to create = a function named gtk_button_ellipse_new_with_label(),how to do = that?
for gtk is writed = with c not c++,in c++ you could incapsuate a ellipsebutton class by = rewriting the virtual function in the button class

could any = know?
Thanks in = advance.
kason

From satyajit.kanungo@wipro.com Mon Feb 4 02:17:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 9D56A180E7 for ; Mon, 4 Feb 2002 02:17:53 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g147GrX20099 for ; Mon, 4 Feb 2002 12:46:53 +0530 (IST) Received: from satyajit ([10.114.9.188]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GQZYW600.0EO for ; Mon, 4 Feb 2002 12:46:54 +0530 From: "satyajit kanungo" To: Subject: gtk+1.3 library Date: Mon, 4 Feb 2002 12:54:39 +0530 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I am trying to build gtk+-1.3.12 (from GNOME alpha release) on my Linux machine. and it builds properly on my system. I found the gtk sources still using deprecated features such as GtkTypeInfo,GtkType variables, gtk_signal_new etc. Are there any plans to removed these features in future versions. I am thinking of making the changes to remove the above deprecated features from the library. Any suggestions ?? regards satyajit From coframi.balr001@rd.francetelecom.com Mon Feb 4 03:51:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id A1C99180DD for ; Mon, 4 Feb 2002 03:51:37 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Mon, 4 Feb 2002 09:28:37 +0100 Message-ID: From: zze-coframi balr001 To: "'Oliver Kroll :ALT EUROPA: - Magazin'" , gtk-list@gnome.org Subject: RE: CList: how to change column-count at runtime Date: Mon, 4 Feb 2002 09:28:46 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-48e65877-1946-11d6-ac1e-00508b692753" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-48e65877-1946-11d6-ac1e-00508b692753 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AD55.F6B24C30" ------_=_NextPart_001_01C1AD55.F6B24C30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, =20 I don't know if it's possible to change the number of columns during runtime. Why don't you try to delete your clist and to create a new one = with the right number of columns ??=20 =20 Isabelle -----Message d'origine----- De : Oliver Kroll :ALT EUROPA: - Magazin [mailto:neofolk@yahoo.de] Envoy=E9 : samedi 2 f=E9vrier 2002 21:08 =C0 : gtk-list@gnome.org Objet : CList: how to change column-count at runtime hi all, =20 i created a form (clist included) with glade. =20 i filled a ctree with databases and tables from the mysql-server, now i = like to read the data stored in a mysql-table into the clist. this is no problem so far. =20 but how can i change the column-count from the gtk-clist at runtime, so = that it will fit to the column-count of the mysql-resultset? =20 thanks a lot for your help. =20 sincerly =20 oliver k. =20 =20 ------_=_NextPart_001_01C1AD55.F6B24C30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
I=20 don't know if it's possible to change the number of columns during = runtime. Why=20 don't you try to delete your clist and to create a new one with the = right number=20 of columns ??
 
Isabelle
-----Message d'origine-----
De : Oliver Kroll = :ALT=20 EUROPA: - Magazin [mailto:neofolk@yahoo.de]
Envoy=E9 : = samedi 2=20 f=E9vrier 2002 21:08
=C0 :=20 gtk-list@gnome.org
Objet : CList: how to change = column-count at=20 runtime

hi all,
 
i created a form (clist included) = with=20 glade.
 
i filled a ctree with databases and = tables from=20 the mysql-server, now i like to read the data stored in a mysql-table = into the=20 clist.
this is no problem so = far.
 
but how can i change the = column-count from the=20 gtk-clist at runtime, so that it will fit to the column-count of the=20 mysql-resultset?
 
thanks a lot for your = help.
 
sincerly
 
oliver k.
 
 
------_=_NextPart_001_01C1AD55.F6B24C30-- ------=_NextPartTM-000-48e65877-1946-11d6-ac1e-00508b692753-- From inimss@yahoo.com Mon Feb 4 04:32:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp015.mail.yahoo.com (smtp015.mail.yahoo.com [216.136.173.59]) by mail.gnome.org (Postfix) with SMTP id 02E491821C for ; Mon, 4 Feb 2002 04:32:49 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 Feb 2002 09:32:46 -0000 Message-ID: <3C5E5536.6BDBFC5C@yahoo.com> Date: Mon, 04 Feb 2002 15:02:38 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list Subject: [INIMSS] A Newbie Question Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All Can I depend on the pointer returned by functions like gtk_entry_get_text(entry1). Can I keep it for later processing. Thank You Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From rhfreeman@micron.com Mon Feb 4 05:55:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id 8CF9C181BF for ; Mon, 4 Feb 2002 05:55:06 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g14At5K19246 for ; Mon, 4 Feb 2002 03:55:05 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g14At5219234 for ; Mon, 4 Feb 2002 03:55:05 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Mon, 4 Feb 2002 03:55:03 -0700 Message-ID: From: rhfreeman To: "'gtk-list@gnome.org'" Subject: Paned questions Date: Mon, 4 Feb 2002 03:54:58 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi folks, I'm wanting to use the paned widgets to re-size my current widgets but I'm a bit unsure about how it works. My program is quite simple. It has a window with a vbox in it. It keeps adding hboxes to the vbox like this: (no hboxes) +------------+ | | | | | | | | | | +------------+ +------------+ | | | | | (hbox) | | | | | +------------+ +------------+ | hbox 1 | | | |------------| | hbox 2 | | | +------------+ +------------+ | hbox 1 | |------------| | hbox 2 | |------------| | hbox 3 | +------------+ I want a paned widget on the separator between hboxes. So I want a paned widget controlling hbox1/hbox2 and another one controlling hbox2/hbox3. So my questions are: 1. Can a widget have multiple paned widgets attached to it? 2. Can a paned widget control any widget type? As most example code I've seen seems to be re-sizing a frame. Thanks!!! Rich From liviu@heart.med.upatras.gr Mon Feb 4 06:11:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from heart.med.upatras.gr (unknown [150.140.167.160]) by mail.gnome.org (Postfix) with ESMTP id 39C8418449 for ; Mon, 4 Feb 2002 06:11:13 -0500 (EST) Received: from there (IDENT:i4eXe/KcT2xezAPGrXSLJOV5SyG7/uqz@zakinthos.med.upatras.gr [150.140.167.161]) by heart.med.upatras.gr (8.9.3/8.8.7) with SMTP id OAA09940 for ; Mon, 4 Feb 2002 14:10:56 +0200 Message-Id: <200202041210.OAA09940@heart.med.upatras.gr> Content-Type: text/plain; charset="iso-8859-15" From: Liviu Vladutu Reply-To: LiviuVladutu@ieee.org Organization: Medical Physics Dept., School of Medicine To: gtk-list@gnome.org Subject: gtk+ Date: Mon, 4 Feb 2002 13:12:40 +0200 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi everyone, I'd like to ask you where can Ifind the latest source (rpm preferred) distribution for gtk+ running under Linux (RedHat). Liviu From inimss@yahoo.com Mon Feb 4 06:14:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by mail.gnome.org (Postfix) with SMTP id 1E6C1189A7 for ; Mon, 4 Feb 2002 06:14:29 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 Feb 2002 11:14:15 -0000 Message-ID: <3C5E6CFF.3FC290E0@yahoo.com> Date: Mon, 04 Feb 2002 16:44:07 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list , gtk-app-devel Subject: [INIMSS] How can I change the text of a button. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Any body please help me in finding a way to change the text of a GtkButton. Thanks Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:17:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9906.mail.yahoo.com (web9906.mail.yahoo.com [216.136.129.249]) by mail.gnome.org (Postfix) with SMTP id 5764C18A83 for ; Mon, 4 Feb 2002 06:17:46 -0500 (EST) Message-ID: <20020204111745.25122.qmail@web9906.mail.yahoo.com> Received: from [213.29.206.62] by web9906.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:17:45 PST Date: Mon, 4 Feb 2002 03:17:45 -0800 (PST) From: Vahid Zahiri Subject: Re: gtk+ To: LiviuVladutu@ieee.org Cc: gtk-list@gnome.org In-Reply-To: <200202041210.OAA09940@heart.med.upatras.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi Liviu you can download gtk 1.2 (stable version)from : ftp://ftp.gtk.org/pub/gtk/v1.2/binary/RPMS/RedHat-6.2/ or gtk 1.3 form : ftp://ftp.gtk.org/pub/gtk/v1.3/binary/RedHat-7.1/ Vahid --- Liviu Vladutu wrote: > Hi everyone, > > I'd like to ask you where can Ifind the latest > source (rpm preferred) > distribution for gtk+ running under Linux (RedHat). > Liviu > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:29:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9901.mail.yahoo.com (web9901.mail.yahoo.com [216.136.129.36]) by mail.gnome.org (Postfix) with SMTP id 614221812B for ; Mon, 4 Feb 2002 06:29:21 -0500 (EST) Message-ID: <20020204112920.35954.qmail@web9901.mail.yahoo.com> Received: from [213.29.206.62] by web9901.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:29:20 PST Date: Mon, 4 Feb 2002 03:29:20 -0800 (PST) From: Vahid Zahiri Subject: Re: [INIMSS] How can I change the text of a button. To: gtk-list@gnome.org Cc: gtk-list@gnome.org In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Dino you can add a label to button by : gtk_container_add(GTK_CONTAINER(button),label); and change label by: gtk_label_set_text(label ,"hello ;-)" ); Vahid --- Dino Cherian K wrote: > Hi > > Any body please help me in finding a way to change > the text of a > GtkButton. > > Thanks > Dino CK > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at > http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:29:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9901.mail.yahoo.com (web9901.mail.yahoo.com [216.136.129.36]) by mail.gnome.org (Postfix) with SMTP id 6CDCF18248 for ; Mon, 4 Feb 2002 06:29:21 -0500 (EST) Message-ID: <20020204112920.35954.qmail@web9901.mail.yahoo.com> Received: from [213.29.206.62] by web9901.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:29:20 PST Date: Mon, 4 Feb 2002 03:29:20 -0800 (PST) From: Vahid Zahiri Subject: Re: [INIMSS] How can I change the text of a button. To: gtk-list@gnome.org Cc: gtk-list@gnome.org In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Dino you can add a label to button by : gtk_container_add(GTK_CONTAINER(button),label); and change label by: gtk_label_set_text(label ,"hello ;-)" ); Vahid --- Dino Cherian K wrote: > Hi > > Any body please help me in finding a way to change > the text of a > GtkButton. > > Thanks > Dino CK > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at > http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:29:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9907.mail.yahoo.com (web9907.mail.yahoo.com [216.136.129.250]) by mail.gnome.org (Postfix) with SMTP id E5AF81812B for ; Mon, 4 Feb 2002 06:29:27 -0500 (EST) Message-ID: <20020204112927.28295.qmail@web9907.mail.yahoo.com> Received: from [213.29.206.62] by web9907.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:29:27 PST Date: Mon, 4 Feb 2002 03:29:27 -0800 (PST) From: Vahid Zahiri Subject: Re: [INIMSS] How can I change the text of a button. To: gtk-list@gnome.org In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Dino you can add a label to button by : gtk_container_add(GTK_CONTAINER(button),label); and change label by: gtk_label_set_text(label ,"hello ;-)" ); Vahid --- Dino Cherian K wrote: > Hi > > Any body please help me in finding a way to change > the text of a > GtkButton. > > Thanks > Dino CK > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at > http://mail.yahoo.com > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From v_zahiri@yahoo.com Mon Feb 4 06:34:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web9905.mail.yahoo.com (web9905.mail.yahoo.com [216.136.129.248]) by mail.gnome.org (Postfix) with SMTP id 0269D184C7 for ; Mon, 4 Feb 2002 06:34:48 -0500 (EST) Message-ID: <20020204113448.2698.qmail@web9905.mail.yahoo.com> Received: from [213.29.206.62] by web9905.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 03:34:48 PST Date: Mon, 4 Feb 2002 03:34:48 -0800 (PST) From: Vahid Zahiri Subject: Sorry :( To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi all sorry if you get 3 mail instead one mail; vahid __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From flavio@maqplas.com.br Mon Feb 4 06:59:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aspdroid.ns1.com.br (aspdroid.ns1.com.br [200.185.44.19]) by mail.gnome.org (Postfix) with ESMTP id 9939018449 for ; Mon, 4 Feb 2002 06:59:19 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by aspdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g14BVodB032946 for ; Mon, 4 Feb 2002 09:31:51 -0200 (BRST) Subject: How to compile in gtk+ 1.3 From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 04 Feb 2002 09:56:05 -0200 Message-Id: <1012823766.1474.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I downloaded the GTK+ 1.3 (rpm packages) and make upgrade, aparently all OK, now I want to compile an aplication that I was making with gtk+1.2.10 (the interface was generated by Glade), but it always compile in gtk+1.2, I see in Makefile that it make many references to gtk+1.2, what I has to change to compile in gtk+1.3 ? Thanks in advance Flavio Alberto From sven@gimp.org Mon Feb 4 07:05:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 6098318259; Mon, 4 Feb 2002 07:05:27 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16XhsA-0002Mk-00; Mon, 04 Feb 2002 13:05:22 +0100 To: Dino Cherian K Cc: gtk-list , gtk-app-devel Subject: Re: [INIMSS] How can I change the text of a button. References: <3C5E6CFF.3FC290E0@yahoo.com> From: Sven Neumann Date: 04 Feb 2002 13:05:22 +0100 In-Reply-To: <3C5E6CFF.3FC290E0@yahoo.com> Message-ID: Lines: 12 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Dino Cherian K writes: > Any body please help me in finding a way to change the text of a > GtkButton. gtk_label_set_text (GTK_LABEL (GTK_BIN (button)->child), "foo"); Salut, Sven From coframi.balr001@rd.francetelecom.com Mon Feb 4 07:23:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail1.rd.francetelecom.com (p-mail1.rd.francetelecom.com [193.49.124.31]) by mail.gnome.org (Postfix) with SMTP id 66B2B18294 for ; Mon, 4 Feb 2002 07:23:18 -0500 (EST) Received: by p-biset.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id ; Mon, 4 Feb 2002 13:23:00 +0100 Message-ID: From: zze-coframi balr001 To: "'LiviuVladutu@ieee.org'" , gtk-list@gnome.org Subject: RE: gtk+ Date: Mon, 4 Feb 2002 13:23:09 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: http://www.rpmfind.net -----Message d'origine----- De : Liviu Vladutu [mailto:liviu@heart.med.upatras.gr] Envoy=E9 : lundi 4 f=E9vrier 2002 12:13 =C0 : gtk-list@gnome.org Objet : gtk+ Hi everyone, I'd like to ask you where can Ifind the latest source (rpm preferred)=20 distribution for gtk+ running under Linux (RedHat). Liviu _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From flavio@maqplas.com.br Mon Feb 4 09:39:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pkdroid.ns1.com.br (pkdroid.ns1.com.br [200.185.44.16]) by mail.gnome.org (Postfix) with ESMTP id 51E2C18CDF for ; Mon, 4 Feb 2002 09:39:52 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by pkdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g14EdjVX070038 for ; Mon, 4 Feb 2002 12:39:45 -0200 (BRST) Subject: Run time error in gtk1.3 application From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: multipart/mixed; boundary="=-VE59CUR5uqi/Gdat/QKL" X-Mailer: Evolution/0.10 (Preview Release) Date: 04 Feb 2002 12:36:38 -0200 Message-Id: <1012833399.1475.3.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-VE59CUR5uqi/Gdat/QKL Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello all,=20 I make some modifications in my Makefile (attached in mail) in order to compile my application in gtk+1.3 (gtk+2.0), in compilation I get this messages (was several similar messages to each file of my application, I put only piece of messages) : gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 -c callbacks.c gcc: -lgtk-x11-1.3: linker input file unused since linking not donegcc: -lgdk-x11-1.3: linker input file unused since linking not donegcc: -lXi: linker input file unused since linking not done gcc: -lgdk_pixbuf-1.3: linker input file unused since linking not done gcc: -lm: linker input file unused since linking not done gcc: -lpangox: linker input file unused since linking not done gcc: -lpangoxft: linker input file unused since linking not done gcc: -lXft: linker input file unused since linking not done gcc: -lXrender: linker input file unused since linking not done gcc: -lXext: linker input file unused since linking not done gcc: -lX11: linker input file unused since linking not done gcc: -lfreetype: linker input file unused since linking not done gcc: -lpango: linker input file unused since linking not done gcc: -latk: linker input file unused since linking not done gcc: -lgobject-1.3: linker input file unused since linking not donegcc: -lgmodule-1.3: linker input file unused since linking not donegcc: -ldl: linker input file unused since linking not done gcc: -lglib-1.3: linker input file unused since linking not done And when I ran the compiled program, this crashed and emited these messages: (process:5172): GRuntime-CRITICAL **: gtype.c:1762:g_type_register_static(): initialization assertion failed, use g_type_init() prior to this function (process:5172): GRuntime-CRITICAL **: file gobject.c: line 588 (g_object_new): assertion `G_TYPE_IS_OBJECT (object_type)' failed Falha de segmenta=E7=E3o (core dumped) << Portuguese =3D Segmentation fault (core dumped) Where's the problem ? I must modify my application (made in Gtk1.2.10) to run in gtk1.3 ? ps: please note the line in Makefile (line 139) is original line, and line above is modified by me. Thanks in advance Flavio Alberto --=-VE59CUR5uqi/Gdat/QKL Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile Content-ID: 1012832202.1465.2.camel@flavio.maqplas Content-Transfer-Encoding: 7bit # Generated automatically from Makefile.in by configure. # Makefile.in generated automatically by automake 1.4a from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. SHELL = /bin/sh srcdir = . top_srcdir = .. prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin libexecdir = ${exec_prefix}/libexec datadir = ${prefix}/share sysconfdir = ${prefix}/etc sharedstatedir = ${prefix}/com localstatedir = ${prefix}/var libdir = ${exec_prefix}/lib infodir = ${prefix}/info mandir = ${prefix}/man includedir = ${prefix}/include oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/ihm_princ pkglibdir = $(libdir)/ihm_princ pkgincludedir = $(includedir)/ihm_princ top_builddir = .. ACLOCAL = aclocal -I macros AUTOCONF = autoconf AUTOMAKE = automake AUTOHEADER = autoheader INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL_PROGRAM} INSTALL_STRIP_FLAG = transform = s,x,x, NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_alias = i686-pc-linux host_triplet = i686-pc-linux-gnu BUILD_INCLUDED_LIBINTL = no CATALOGS = CATOBJEXT = .gmo CC = gcc DATADIRNAME = share GENCAT = gencat GLIBC21 = yes GMOFILES = GMSGFMT = /usr/bin/msgfmt GNOMEGNORBA_LIBS = -rdynamic -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOMEUI_LIBS = -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOME_APPLETS_LIBS = GNOME_CAPPLET_LIBS = GNOME_CONFIG = /usr/bin/gnome-config GNOME_DOCKLETS_LIBS = GNOME_INCLUDEDIR = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNOME_LIBDIR = -rdynamic -L/usr/lib -L/usr/X11R6/lib GNOME_LIBS = -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNORBA_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNORBA_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GTKXMHTML_LIBS = -rdynamic -lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm GTK_CFLAGS = -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include GTK_CONFIG = /usr/bin/gtk-config GTK_LIBS = -lSM -lICE -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm INSTOBJEXT = .mo INTLBISON = bison INTLLIBS = INTLOBJS = INTL_LIBTOOL_SUFFIX_PREFIX = LIBICONV = MAKEINFO = makeinfo MKINSTALLDIRS = ./mkinstalldirs MSGFMT = /usr/bin/msgfmt ORBIT_CFLAGS = -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include ORBIT_CONFIG = /usr/bin/orbit-config ORBIT_IDL = /usr/bin/orbit-idl ORBIT_LIBS = -L/usr/lib -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lglib -lnsl -lm PACKAGE = ihm_princ POFILES = POSUB = po PTHREAD_LIB = -lpthread RANLIB = ranlib USE_INCLUDED_LIBINTL = no USE_NLS = yes VERSION = 0.1 XPM_LIBS = -lXpm ZVT_LIBS = -rdynamic -lzvt -lutil -lSM -lICE -lgdk_imlib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm cflags_set = yes cxxflags_set = @cxxflags_set@ INCLUDES = -I$(top_srcdir)/intl $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = main.c support.c support.h interface.c interface.h callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = PROGRAMS = $(bin_PROGRAMS) DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. CPPFLAGS = -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include LDFLAGS = LIBS = ihm_princ_OBJECTS = main.o support.o interface.o callbacks.o auxiliar.o parametro.o ihm_princ_DEPENDENCIES = ihm_princ_LDFLAGS = CFLAGS = -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 #CFLAGS = -g -O2 -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best DEP_FILES = .deps/callbacks.P .deps/interface.P .deps/main.P \ .deps/support.P SOURCES = $(ihm_princ_SOURCES) OBJECTS = $(ihm_princ_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) distclean-binPROGRAMS: maintainer-clean-binPROGRAMS: install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) list='$(bin_PROGRAMS)'; for p in $$list; do \ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: ihm_princ: $(ihm_princ_OBJECTS) $(ihm_princ_DEPENDENCIES) @rm -f ihm_princ $(LINK) $(ihm_princ_LDFLAGS) $(ihm_princ_OBJECTS) $(ihm_princ_LDADD) $(LIBS) tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = src distdir: $(DISTFILES) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(top_distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; \ cd $(top_srcdir) \ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) -include $(DEP_FILES) mostlyclean-depend: clean-depend: distclean-depend: -rm -rf .deps maintainer-clean-depend: %.o: %.c @echo '$(COMPILE) -c $<'; \ $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.lo: %.c @echo '$(LTCOMPILE) -c $<'; \ $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ < .deps/$(*F).pp > .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-binPROGRAMS install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-binPROGRAMS uninstall: uninstall-am all-am: Makefile $(PROGRAMS) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ mostlyclean-tags mostlyclean-depend mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \ distclean-depend distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-tags \ maintainer-clean-depend maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile tags mostlyclean-tags distclean-tags \ clean-tags maintainer-clean-tags distdir mostlyclean-depend \ distclean-depend clean-depend maintainer-clean-depend info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: --=-VE59CUR5uqi/Gdat/QKL-- From leidola@newcon.de Mon Feb 4 09:46:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (mail-1.newcon.de [195.145.56.9]) by mail.gnome.org (Postfix) with ESMTP id 61F9018D2A for ; Mon, 4 Feb 2002 09:46:15 -0500 (EST) Received: from [213.70.108.72] ([213.70.108.72]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id PAA23432; Mon, 4 Feb 2002 15:46:07 +0100 Subject: Re: How to compile in gtk+ 1.3 From: Olaf Leidinger To: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares , GTK Mailing List , FREE PASCAL list In-Reply-To: <1012823766.1474.1.camel@flavio.maqplas> References: <1012823766.1474.1.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <1012834104.899.82.camel@attic> Mime-Version: 1.0 X-Mailer: Evolution/0.12 (Preview Release) Date: 04 Feb 2002 15:48:35 +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 04 Feb 2002 09:56:05 -0200 schrieb Fl=E1vio Alberto Lopes Soares: > Hello all, > I downloaded the GTK+ 1.3 (rpm packages) and make upgrade, aparently all > OK, > now I want to compile an aplication that I was making with gtk+1.2.10 > (the interface was generated by Glade), > but it always compile in gtk+1.2, I see in Makefile that it make many > references to gtk+1.2, what I has to change to compile > in gtk+1.3 ? >=20 > Thanks in advance >=20 > Flavio Alberto >=20 > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list >=20 Hello! You might hack the configure script in the way that it doesn't look for gtk and glib and add `pkg-config gtk+-2.0 --cflags` to the CFLAGS environment variable and 'pkg-config gtk+-2.0 --libs` to LDFLAGS. A (perhaps) more comfortable way is to change the gtk-config and glib-config file for the moment. Look for a line like: echo -L/usr/X11R6/lib -lgtk -lgdk $my_glib_libs -lXi ... comment this line with a # and write the following: echo `pkg-config gtk+-2.0 --libs` Look for the line with the cflags and change it to echo `pkg-config gtk+-2.0 --cflags` And finally look for a line that sais --version) echo 1.2.10 =20 or whatever and note down your version here. Well, this all is just a really dirty hack but it works. I'd love to see a much simpler way (let's say changing to config file that it looks for GTK2 directly - but I'm not famillar with the config-file). Good luck with your work, Ciao Olaf From leidola@newcon.de Mon Feb 4 10:23:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (mail-1.newcon.de [195.145.56.9]) by mail.gnome.org (Postfix) with ESMTP id 8538C189D1 for ; Mon, 4 Feb 2002 10:23:36 -0500 (EST) Received: from [213.70.108.73] ([213.70.108.73]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id QAA24379; Mon, 4 Feb 2002 16:23:31 +0100 Subject: Re: Paned questions From: Olaf Leidinger To: rhfreeman , GTK Mailing List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1012836355.901.104.camel@attic> Mime-Version: 1.0 X-Mailer: Evolution/0.12 (Preview Release) Date: 04 Feb 2002 16:25:58 +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 04 Feb 2002 03:54:58 -0700 schrieb rhfreeman: > Hi folks, > > I'm wanting to use the paned widgets to re-size my current widgets but I'm a > bit unsure about how it works. > > My program is quite simple. It has a window with a vbox in it. It keeps > adding hboxes to the vbox like this: > > (no hboxes) > > +------------+ > | | > | | > | | > | | > | | > +------------+ > > +------------+ > | | > | | > | (hbox) | > | | > | | > +------------+ > > +------------+ > | hbox 1 | > | | > |------------| > | hbox 2 | > | | > +------------+ > > +------------+ > | hbox 1 | > |------------| > | hbox 2 | > |------------| > | hbox 3 | > +------------+ > > I want a paned widget on the separator between hboxes. So I want a paned > widget controlling hbox1/hbox2 and another one controlling hbox2/hbox3. > > So my questions are: > > 1. Can a widget have multiple paned widgets attached to it? > 2. Can a paned widget control any widget type? As most example code I've > seen seems to be re-sizing a frame. > > Thanks!!! > > Rich > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hello! As I understood it a paned widget has two containers where you can add widgets, a left side and a right one (or an upper and a lower). +--------------+ | | | container 1 | | | +=== gutter ===+ | | | container 2 | | | +--------------+ You can surely make a hbox to be child of a container. And I think you don't have to set all the two childs of a paned widget so you might create the following combination: +----vbox----------+ | +- hpaned 1----+ | | | | | | | child 1 | | | | | | | +=== gutter ===+ | | | | | | | child 2 | | | | | | | +--------------+ | | +- hpaned 2 ---+ | | | | | | | empty/not | | | | visible | | | | | | | +=== gutter ===+ | | | | | | | child 2 | | | | | | | +--------------+ | +------------------+ or something similar. Ciao Olaf From lapenta_jm@yahoo.com Mon Feb 4 11:12:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14004.mail.yahoo.com (web14004.mail.yahoo.com [216.136.175.120]) by mail.gnome.org (Postfix) with SMTP id 5AD2F18154 for ; Mon, 4 Feb 2002 11:12:12 -0500 (EST) Message-ID: <20020204161211.13516.qmail@web14004.mail.yahoo.com> Received: from [129.55.200.20] by web14004.mail.yahoo.com via HTTP; Mon, 04 Feb 2002 08:12:11 PST Date: Mon, 4 Feb 2002 08:12:11 -0800 (PST) From: Jason LaPenta Subject: clist : lines truncated using clist_append To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm using gtk_clist_append( (GtkCList *)dsp_message_clist, data ); and my data, which is about 58 chars long, get truncated to about 30 chars when I add it to the list. I've tried making the column wider with gtk_clist_set_column_width( (GtkCList *)dsp_message_clist, 1, width * 2); But now, even thought there's tons of room, the text still get truncated. Do you know what I can do to fix this problem? Thanks Jason __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From hp@redhat.com Mon Feb 4 11:32:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 9FEDE181BF for ; Mon, 4 Feb 2002 11:32:48 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g14GWYU29668; Mon, 4 Feb 2002 11:32:34 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "satyajit kanungo" Cc: Subject: Re: gtk+1.3 library References: From: Havoc Pennington Date: 04 Feb 2002 11:32:34 -0500 In-Reply-To: Message-ID: Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "satyajit kanungo" writes: > I found the gtk sources still using deprecated features such as > GtkTypeInfo,GtkType variables, gtk_signal_new etc. Are there any > plans to removed these features in future versions. > > I am thinking of making the changes to remove the above deprecated > features from the library. Any suggestions ?? I believe there are outstanding patches in bugzilla related to this. I could be wrong. But you probably want to try to find them before working on it. We do want to remove them eventually, but it isn't as high a priority as other things. Havoc From hp@redhat.com Mon Feb 4 11:36:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id E96E418E6B for ; Mon, 4 Feb 2002 11:35:59 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g14GZxu29673; Mon, 4 Feb 2002 11:35:59 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: gtk-list Subject: Re: Run time error in gtk1.3 application References: <1012833399.1475.3.camel@flavio.maqplas> From: Havoc Pennington Date: 04 Feb 2002 11:35:59 -0500 In-Reply-To: <1012833399.1475.3.camel@flavio.maqplas> Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Fl=E1vio Alberto Lopes Soares writes: >=20 > I make some modifications in my Makefile (attached in mail) in order > to compile my application in gtk+1.3 (gtk+2.0), in compilation I get > this messages (was several similar messages to each file of my > application, I put only piece of messages) : Your Makefile is all screwed up somehow. Note that you're getting GTK 1.2 flags in there, and GNOME 1.x. You need GNOME 2 to use GTK 2. Show us the Makefile.am, rather than the Makefile. Havoc From hummaida@cs.man.ac.uk Mon Feb 4 12:47:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mail.gnome.org (Postfix) with ESMTP id 7E2DF18402 for ; Mon, 4 Feb 2002 12:47:05 -0500 (EST) Received: from cs.man.ac.uk ([62.252.236.59]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020204174703.IWAG7000.mta06-svc.ntlworld.com@cs.man.ac.uk> for ; Mon, 4 Feb 2002 17:47:03 +0000 Message-ID: <3C5EC950.8070501@cs.man.ac.uk> Date: Mon, 04 Feb 2002 17:48:00 +0000 From: A R Hummaida User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: fileselection question Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dear all well this question is kind of related to the file selection widget. i have the following GList *my_selection_list; //global // call back for ok button on file selection void on_file_selection_ok_button_clicked (GtkWidget * w, gpointer user_data) { . . gchar *file_selected ; file_selected = gtk_file_selection_get_filename (GTK_FILE_SELECTION (file_selection_widget)); . . . if (g_list_find(my_selection_list,file_selected)==NULL) { my_selection_list=g_list_append (my_selection_list,file_selected); g_print("file selected is %s\n",file_selected); . . } } so i want a file to be selected only once.this works the first time as the list is empty but next tries don't print the file name even though a different file is selected. i have tried many of these glist functions to no avail. please help Thanks From hunchback@netcabo.pt Mon Feb 4 12:59:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id BCE0D18794 for ; Mon, 4 Feb 2002 12:59:50 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Mon, 4 Feb 2002 17:54:17 +0000 Content-Class: urn:content-classes:message From: To: "gtk-list" , "Flávio Alberto Lopes Soares" Subject: RE: Run time error in gtk1.3 application Date: Mon, 4 Feb 2002 17:54:17 -0000 Message-ID: <21f601c1ada4$f6f88b10$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcGtpPb4SiWHvBmIEdaCdgBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, >gcc: -lgtk-x11-1.3: linker input file unused since linking not donegcc: >-lgdk-x11-1.3: linker input file unused since linking not donegcc: = -lXi: >linker input file unused since linking not done >gcc: -lgdk_pixbuf-1.3: linker input file unused since linking not done >gcc: -lm: linker input file unused since linking not done >gcc: -lpangox: linker input file unused since linking not done >gcc: -lpangoxft: linker input file unused since linking not done >gcc: -lXft: linker input file unused since linking not done >gcc: -lXrender: linker input file unused since linking not done >gcc: -lXext: linker input file unused since linking not done >gcc: -lX11: linker input file unused since linking not done >gcc: -lfreetype: linker input file unused since linking not done >gcc: -lpango: linker input file unused since linking not done >gcc: -latk: linker input file unused since linking not done >gcc: -lgobject-1.3: linker input file unused since linking not donegcc: >-lgmodule-1.3: linker input file unused since linking not donegcc: = -ldl: >linker input file unused since linking not done >gcc: -lglib-1.3: linker input file unused since linking not done this happens because you're trying to link a file with the gtk libs that = doesn't uses them. your Makefile may not be correct... >And when I ran the compiled program, this crashed and emited these >messages: >(process:5172): GRuntime-CRITICAL **: >gtype.c:1762:g_type_register_static(): initialization assertion failed, >use g_type_init() prior to this function >(process:5172): GRuntime-CRITICAL **: file gobject.c: line 588 >(g_object_new): assertion `G_TYPE_IS_OBJECT (object_type)' failed >Falha de segmenta=E7=E3o (core dumped) << Portuguese =3D Segmentation = fault >(core dumped) as for this i don't know... i haven't worked with 1.3 (and i haven't = seen this error on 1.2). Cumprimentos, Nuno Afonso From John.Cupitt@ng-london.org.uk Mon Feb 4 13:03:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 3B104188F8 for ; Mon, 4 Feb 2002 13:03:16 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HKJ9>; Mon, 4 Feb 2002 18:03:15 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HKJ7; Mon, 4 Feb 2002 18:03:03 -0000 Message-ID: <3C5EC997.3030504@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: hummaida@cs.man.ac.uk Cc: gtk-list@gnome.org Subject: Re: fileselection question Date: Mon, 4 Feb 2002 17:49:11 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I think you're comparing pointers when you should be comparing strings. Add the selected filename to your list with my_selection_list = g_list_prepend( my_selection_list, g_strdup( file_selected ) ); (prepend is faster than append, and you need to strdup pointers you get back from _get_filename()) Test for is-filename-there-already by looping along your list and strcmp()ing each element. You can use g_list_find_custom for this: if( g_list_find_custom( my_selection_list, file_selected, strcmp ) ) { HTH, John A R Hummaida wrote: > i have the following > > > GList *my_selection_list; //global > > // call back for ok button on file selection > > void on_file_selection_ok_button_clicked (GtkWidget * w, gpointer > user_data) > { > . > . > gchar *file_selected ; > > file_selected = > gtk_file_selection_get_filename (GTK_FILE_SELECTION > (file_selection_widget)); > . > . > . > if (g_list_find(my_selection_list,file_selected)==NULL) > { my_selection_list=g_list_append > (my_selection_list,file_selected); > g_print("file selected is %s\n",file_selected); > . > . > > } > } > > so i want a file to be selected only once.this works the first time as > the list is empty but next tries don't > print the file name even though a different file is selected. i have > tried many of these glist functions to no avail. please help ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From kasonhuang@kinposh.com.cn Mon Feb 4 19:24:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 0ED63180E3 for ; Mon, 4 Feb 2002 19:24:22 -0500 (EST) Subject: RE: [INIMSS] How can I change the text of a button. Date: Tue, 5 Feb 2002 08:24:08 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F821FF5DB@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: [INIMSS] How can I change the text of a button. Thread-Index: AcGtbT2hiiHrqIWgRQC0AJgLsj1onQAbIgDQ From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: "Dino Cherian K" Cc: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi Dino: you can try gtk_label_set_text();and you must add the label to the = button container. eg: gtk_label_set_text(GTK_LABEL(m_pLabel),m_LabelText); if any question about it ,you could ask me. kason -----Original Message----- From: Dino Cherian K [mailto:inimss@yahoo.com] Sent: Monday, February 04, 2002 7:14 PM To: gtk-list; gtk-app-devel Subject: [INIMSS] How can I change the text of a button. Hi Any body please help me in finding a way to change the text of a GtkButton. Thanks Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From kasonhuang@kinposh.com.cn Mon Feb 4 19:49:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wilber.gimp.org (graft.XCF.Berkeley.EDU [128.32.247.248]) by mail.gnome.org (Postfix) with ESMTP id A100618B60 for ; Mon, 4 Feb 2002 19:49:23 -0500 (EST) Received: from [210.78.17.12] (helo=kes01.kinposh.com.cn) by wilber.gimp.org with esmtp (Exim 3.12 #1 (Debian)) id 16XtnW-0004UT-00 for ; Mon, 04 Feb 2002 16:49:22 -0800 Subject: SOS about gtk xim? MIME-Version: 1.0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable Date: Tue, 5 Feb 2002 08:49:09 +0800 Message-ID: <92CD479384374A439EFA0077E7C50F821FF622@kes01.kinposh.com.cn> content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SOS about gtk xim? Thread-Index: AcGt3unVzctprRoPEda2uQCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SOS about gtk xim?

hi all:
  I have a = problem about gtk xim. Now I start a program with xim by handmake way, = then I can start kinput2; but if I start it using a shell, I can't start = kinput2. I don't know why? please help me!

Thanks a lot!
kason

From Volkan_Arslan@gmx.net Tue Feb 5 04:39:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id AD8AD188FA for ; Tue, 5 Feb 2002 04:39:40 -0500 (EST) Received: (qmail 21704 invoked by uid 0); 5 Feb 2002 09:39:39 -0000 Received: from ru-pc11.inf.ethz.ch (HELO gmx.net) (129.132.12.191) by mail.gmx.net (mp009-rz3) with SMTP; 5 Feb 2002 09:39:39 -0000 Message-ID: <3C5FA856.F49CECF1@gmx.net> Date: Tue, 05 Feb 2002 10:39:34 +0100 From: Volkan Arslan X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Release date of GTK+ 2.0 ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, does someone know, when GTK+ 2.0 will be released ? I have looked at www.gtk.org, but couldn't find anything regarding the release date of GTK+ 2.0. Best regards, Volkan Arslan From root@localhost.localdomain Tue Feb 5 07:28:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.225.173]) by mail.gnome.org (Postfix) with ESMTP id 0FF5D18DF0 for ; Tue, 5 Feb 2002 07:28:02 -0500 (EST) Received: (from root@localhost) by localhost.localdomain (8.11.2/8.11.2) id g15CLpF01961; Tue, 5 Feb 2002 17:51:51 +0530 Date: Tue, 5 Feb 2002 17:51:51 +0530 Message-Id: <200202051221.g15CLpF01961@localhost.localdomain> To: gtk-list@gnome.org From: Dino Subject: [INIMSS] How to avoid focusing on CList column titles. Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, How can I avoid the focusing of the column titles in a CList when i go thru the widgets in a window using the TAB key. Thank You Dino CK From flavio@maqplas.com.br Tue Feb 5 08:22:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id D5A8818180 for ; Tue, 5 Feb 2002 08:22:15 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g15DM7wc031623; Tue, 5 Feb 2002 11:22:08 -0200 (BRST) Subject: Re: Run time error in gtk1.3 application From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Havoc Pennington Cc: gtk-list Content-Type: multipart/mixed; boundary="=-CYk0BJZM1LkgXCEhrsBr" X-Mailer: Evolution/0.10 (Preview Release) Date: 05 Feb 2002 11:18:03 -0200 Message-Id: <1012915087.1142.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello all, I was writing this message bellow when my mail-server crash yesterday, then I attempt to run autogen.sh and my application compileted normally & run normally, I see the Makefile and found some references to gtk-1.2, gtk-2.0, glib-1.2, glib-2.0, I don't know what's the diferences behind this new Makefile (made by autogen.sh) and old (compile but not run), I suspect that my application compiled in gtk-1.2 and not in gtk-2.0, but I don't know to say. If anyone has a clue I thanks very much. Thanks in advance Flavio Alberto=20 ******************************************************** ORIGINAL MAIL ***************************************************************************= ** I made the changes that Olaf sugests and now doesn't show "stranger" messages in compilation, but the resulting program continues with the same crash when I run it. The Makefile has many references to glib-1.2 & gtk-1.2 (old) and I don't know how to change these files, if I change 1.2 to 2.0 the errors are this :=20 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-2.0 -I/usr/lib/glib/include -I/usr/include/gtk-2.0 -I/usr/X11R6/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -Wall -Wunused -c main.c In file included from /usr/include/libgnomeui/libgnomeui.h:19, from /usr/include/gnome.h:17, from main.c:10: /usr/include/libgnomeui/gnome-canvas-image.h:15: gtk/gtkpacker.h: Arquivo ou diret=F3rio n=E3o encontrado In file included from /usr/include/libgnomeui/libgnomeui.h:24, from /usr/include/gnome.h:17, from main.c:10: /usr/include/libgnomeui/gnome-canvas-text.h:15: gtk/gtkpacker.h: Arquivo ou diret=F3rio n=E3o encontrado In file included from /usr/include/libgnomeui/libgnomeui.h:26, from /usr/include/gnome.h:17, from main.c:10: /usr/include/libgnomeui/gnome-canvas-widget.h:15: gtk/gtkpacker.h: File not found make: *** [main.o] Error 1 Really, the file gtkpacker.h doesn't exists inside gtk-2.0, I have to change some thing in my program ? I will send the glib-config & gtk-config that I edited how sugests Olaf and the Makefile.am & Makefile that ./configure script generated; Excuse-me for send so many files but really I don't know what to do. Thanks for all help Flavio Alberto Em 04 Feb 2002 11:35:59 -0500, Havoc Pennington escreveu: >=20 > Fl=E1vio Alberto Lopes Soares writes: > >=20 > > I make some modifications in my Makefile (attached in mail) in order > > to compile my application in gtk+1.3 (gtk+2.0), in compilation I get > > this messages (was several similar messages to each file of my > > application, I put only piece of messages) : >=20 > Your Makefile is all screwed up somehow. Note that you're getting GTK > 1.2 flags in there, and GNOME 1.x. You need GNOME 2 to use GTK 2. >=20 > Show us the Makefile.am, rather than the Makefile. >=20 > Havoc --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-sh Content-Disposition: attachment; filename=glib-config Content-ID: 1012846901.13020.0.camel@flavio.maqplas Content-Transfer-Encoding: 7bit #!/bin/sh prefix=/usr exec_prefix=${prefix} exec_prefix_set=no usage() { cat <&2 fi lib_glib=yes while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg if test $exec_prefix_set = no ; then exec_prefix=$optarg fi ;; --prefix) echo_prefix=yes ;; --exec-prefix=*) exec_prefix=$optarg exec_prefix_set=yes ;; --exec-prefix) echo_exec_prefix=yes ;; --version) echo 1.3.7 exit 0 ;; --cflags) echo_cflags=yes ;; --libs) echo_libs=yes ;; glib) lib_glib=yes ;; gmodule) lib_gmodule=yes ;; gthread) lib_gthread=yes ;; *) usage 1 1>&2 ;; esac shift done if test "$echo_prefix" = "yes"; then echo $prefix fi if test "$echo_exec_prefix" = "yes"; then echo $exec_prefix fi if test "$echo_cflags" = "yes"; then cflags="" if test "$lib_gthread" = "yes"; then cflags="$cflags -D_REENTRANT" fi echo -I${prefix}/include/glib-2.0 -I/usr/lib/glib/include $includes $cflags fi if test "$echo_libs" = "yes"; then libsp="" libsa="" if test "$lib_glib" = "yes"; then libsp="$libsp -lglib" fi if test "$lib_gthread" = "yes"; then libsp="-lgthread $libsp" libsa="$libsa -lpthread" fi if test "$lib_gmodule" = "yes"; then libsp="-rdynamic -lgmodule $libsp" libsa="$libsa -ldl" fi echo -L/usr/lib $libsp $libsa fi --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile Content-ID: 1012846941.13020.2.camel@flavio.maqplas Content-Transfer-Encoding: 7bit # Generated automatically from Makefile.in by configure. # Makefile.in generated automatically by automake 1.4a from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. SHELL = /bin/sh srcdir = . top_srcdir = .. prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin libexecdir = ${exec_prefix}/libexec datadir = ${prefix}/share sysconfdir = ${prefix}/etc sharedstatedir = ${prefix}/com localstatedir = ${prefix}/var libdir = ${exec_prefix}/lib infodir = ${prefix}/info mandir = ${prefix}/man includedir = ${prefix}/include oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/ihm_princ pkglibdir = $(libdir)/ihm_princ pkgincludedir = $(includedir)/ihm_princ top_builddir = .. ACLOCAL = aclocal -I macros AUTOCONF = autoconf AUTOMAKE = automake AUTOHEADER = autoheader INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL_PROGRAM} INSTALL_STRIP_FLAG = transform = s,x,x, NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_alias = i686-pc-linux host_triplet = i686-pc-linux-gnu BUILD_INCLUDED_LIBINTL = no CATALOGS = CATOBJEXT = .gmo CC = gcc DATADIRNAME = share GENCAT = gencat GLIBC21 = yes GMOFILES = GMSGFMT = /usr/bin/msgfmt GNOMEGNORBA_LIBS = -rdynamic -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOMEUI_LIBS = -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOME_APPLETS_LIBS = GNOME_CAPPLET_LIBS = GNOME_CONFIG = /usr/bin/gnome-config GNOME_DOCKLETS_LIBS = GNOME_INCLUDEDIR = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNOME_LIBDIR = -rdynamic -L/usr/lib -L/usr/X11R6/lib GNOME_LIBS = -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNORBA_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNORBA_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GTKXMHTML_LIBS = -rdynamic -lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 GTK_CONFIG = /usr/bin/gtk-config GTK_LIBS = -lSM -lICE -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 INSTOBJEXT = .mo INTLBISON = bison INTLLIBS = INTLOBJS = INTL_LIBTOOL_SUFFIX_PREFIX = LIBICONV = MAKEINFO = makeinfo MKINSTALLDIRS = ./mkinstalldirs MSGFMT = /usr/bin/msgfmt ORBIT_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib/include -I/usr/include ORBIT_CONFIG = /usr/bin/orbit-config ORBIT_IDL = /usr/bin/orbit-idl ORBIT_LIBS = -L/usr/lib -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lglib -lnsl -lm PACKAGE = ihm_princ POFILES = POSUB = po PTHREAD_LIB = -lpthread RANLIB = ranlib USE_INCLUDED_LIBINTL = no USE_NLS = yes VERSION = 0.1 XPM_LIBS = -lXpm ZVT_LIBS = -rdynamic -lzvt -lutil -lSM -lICE -lgdk_imlib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm cflags_set = yes cxxflags_set = @cxxflags_set@ INCLUDES = -I$(top_srcdir)/intl $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = main.c support.c support.h interface.c interface.h callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = PROGRAMS = $(bin_PROGRAMS) DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. CPPFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 LDFLAGS = -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 LIBS = ihm_princ_OBJECTS = main.o support.o interface.o callbacks.o auxiliar.o \ parametro.o ihm_princ_DEPENDENCIES = ihm_princ_LDFLAGS = CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 -Wall -Wunused COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best DEP_FILES = .deps/auxiliar.P .deps/callbacks.P .deps/interface.P \ .deps/main.P .deps/parametro.P .deps/support.P SOURCES = $(ihm_princ_SOURCES) OBJECTS = $(ihm_princ_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) distclean-binPROGRAMS: maintainer-clean-binPROGRAMS: install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) list='$(bin_PROGRAMS)'; for p in $$list; do \ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: ihm_princ: $(ihm_princ_OBJECTS) $(ihm_princ_DEPENDENCIES) @rm -f ihm_princ $(LINK) $(ihm_princ_LDFLAGS) $(ihm_princ_OBJECTS) $(ihm_princ_LDADD) $(LIBS) tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = src distdir: $(DISTFILES) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(top_distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; \ cd $(top_srcdir) \ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) -include $(DEP_FILES) mostlyclean-depend: clean-depend: distclean-depend: -rm -rf .deps maintainer-clean-depend: %.o: %.c @echo '$(COMPILE) -c $<'; \ $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.lo: %.c @echo '$(LTCOMPILE) -c $<'; \ $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ < .deps/$(*F).pp > .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-binPROGRAMS install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-binPROGRAMS uninstall: uninstall-am all-am: Makefile $(PROGRAMS) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ mostlyclean-tags mostlyclean-depend mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \ distclean-depend distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-tags \ maintainer-clean-depend maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile tags mostlyclean-tags distclean-tags \ clean-tags maintainer-clean-tags distdir mostlyclean-depend \ distclean-depend clean-depend maintainer-clean-depend info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile.am Content-ID: 1012846945.13020.3.camel@flavio.maqplas Content-Transfer-Encoding: 7bit ## Process this file with automake to produce Makefile.in INCLUDES = \ -I$(top_srcdir)/intl \ $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = \ main.c \ support.c support.h \ interface.c interface.h \ callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) --=-CYk0BJZM1LkgXCEhrsBr Content-Type: text/x-sh Content-Disposition: attachment; filename=gtk-config Content-ID: 1012847026.13020.4.camel@flavio.maqplas Content-Transfer-Encoding: 7bit #!/bin/sh glib_libs="-L/usr/lib -rdynamic -lgmodule -lglib -ldl" glib_cflags="-I/usr/include/glib-2.0 -I/usr/lib/glib/include" glib_thread_libs="-L/usr/lib -rdynamic -lgmodule -lgthread -lglib -lpthread -ldl" glib_thread_cflags="-I/usr/include/glib-2.0 -I/usr/lib/glib/include -D_REENTRANT" prefix=/usr exec_prefix=/usr exec_prefix_set=no usage() { cat <&2 fi lib_gtk=yes while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg if test $exec_prefix_set = no ; then exec_prefix=$optarg fi ;; --prefix) echo_prefix=yes ;; --exec-prefix=*) exec_prefix=$optarg exec_prefix_set=yes ;; --exec-prefix) echo_exec_prefix=yes ;; --version) echo 1.3.7 ;; --cflags) echo_cflags=yes ;; --libs) echo_libs=yes ;; gtk) lib_gtk=yes ;; gthread) lib_gthread=yes ;; *) usage 1 1>&2 ;; esac shift done if test "$echo_prefix" = "yes"; then echo $prefix fi if test "$echo_exec_prefix" = "yes"; then echo $exec_prefix fi if test "$lib_gthread" = "yes"; then glib_cflags="$glib_thread_cflags" glib_libs="$glib_thread_libs" fi if test "$echo_cflags" = "yes"; then # echo -I/usr/include/gtk-1.2 $glib_cflags -I/usr/X11R6/include echo `pkg-config gtk+-2.0 --cflags` fi if test "$echo_libs" = "yes"; then my_glib_libs= libdirs=-L/usr/lib for i in $glib_libs ; do if test $i != -L/usr/lib ; then if test -z "$my_glib_libs" ; then my_glib_libs="$i" else my_glib_libs="$my_glib_libs $i" fi fi done # echo $libdirs -L/usr/X11R6/lib -lgtk -lgdk $my_glib_libs -lXext -lX11 -lm echo `pkg-config gtk+-2.0 --libs` fi --=-CYk0BJZM1LkgXCEhrsBr Content-ID: 1012914763.1129.0.camel@flavio.maqplas Content-Description: Content-Type: text/x-makefile Content-Disposition: attachment; filename=Makefile_new Content-Transfer-Encoding: 7bit # Generated automatically from Makefile.in by configure. # Makefile.in generated automatically by automake 1.4a from Makefile.am # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. SHELL = /bin/sh srcdir = . top_srcdir = .. prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sbindir = ${exec_prefix}/sbin libexecdir = ${exec_prefix}/libexec datadir = ${prefix}/share sysconfdir = ${prefix}/etc sharedstatedir = ${prefix}/com localstatedir = ${prefix}/var libdir = ${exec_prefix}/lib infodir = ${prefix}/info mandir = ${prefix}/man includedir = ${prefix}/include oldincludedir = /usr/include DESTDIR = pkgdatadir = $(datadir)/ihm_princ pkglibdir = $(libdir)/ihm_princ pkgincludedir = $(includedir)/ihm_princ top_builddir = .. ACLOCAL = aclocal -I macros AUTOCONF = autoconf AUTOMAKE = automake AUTOHEADER = autoheader INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 INSTALL_SCRIPT = ${INSTALL_PROGRAM} INSTALL_STRIP_FLAG = transform = s,x,x, NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : host_alias = i686-pc-linux host_triplet = i686-pc-linux-gnu BUILD_INCLUDED_LIBINTL = no CATALOGS = CATOBJEXT = .gmo CC = gcc DATADIRNAME = share GENCAT = gencat GLIBC21 = yes GMOFILES = GMSGFMT = /usr/bin/msgfmt GNOMEGNORBA_LIBS = -rdynamic -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOMEUI_LIBS = -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNOME_APPLETS_LIBS = GNOME_CAPPLET_LIBS = GNOME_CONFIG = /usr/bin/gnome-config GNOME_DOCKLETS_LIBS = GNOME_INCLUDEDIR = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNOME_LIBDIR = -rdynamic -L/usr/lib -L/usr/X11R6/lib GNOME_LIBS = -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GNORBA_CFLAGS = -I/usr/include -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include GNORBA_LIBS = -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgnorba -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lnsl -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl GTKXMHTML_LIBS = -rdynamic -lgtkxmhtml -lXpm -ljpeg -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm GTK_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 GTK_CONFIG = /usr/bin/gtk-config GTK_LIBS = -lSM -lICE -L/usr/lib -L/usr/X11R6/lib -lgtk-x11-1.3 -lgdk-x11-1.3 -lXi -lgdk_pixbuf-1.3 -lm -lpangox -lpangoxft -lXft -lXrender -lXext -lX11 -lfreetype -lpango -latk -lgobject-1.3 -lgmodule-1.3 -ldl -lglib-1.3 INSTOBJEXT = .mo INTLBISON = bison INTLLIBS = INTLOBJS = INTL_LIBTOOL_SUFFIX_PREFIX = LIBICONV = MAKEINFO = makeinfo MKINSTALLDIRS = ./mkinstalldirs MSGFMT = /usr/bin/msgfmt ORBIT_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/glib/include -I/usr/include ORBIT_CONFIG = /usr/bin/orbit-config ORBIT_IDL = /usr/bin/orbit-idl ORBIT_LIBS = -L/usr/lib -lORBitCosNaming -lORBit -lIIOP -lORBitutil -lglib -lnsl -lm PACKAGE = ihm_princ POFILES = POSUB = po PTHREAD_LIB = -lpthread RANLIB = ranlib USE_INCLUDED_LIBINTL = no USE_NLS = yes VERSION = 0.1 XPM_LIBS = -lXpm ZVT_LIBS = -rdynamic -lzvt -lutil -lSM -lICE -lgdk_imlib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lm cflags_set = yes cxxflags_set = @cxxflags_set@ INCLUDES = -I$(top_srcdir)/intl $(GNOME_INCLUDEDIR) bin_PROGRAMS = ihm_princ ihm_princ_SOURCES = main.c support.c support.h interface.c interface.h callbacks.c callbacks.h auxiliar.c auxiliar.h parametro.c parametro.h ihm_princ_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h CONFIG_CLEAN_FILES = PROGRAMS = $(bin_PROGRAMS) DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. CPPFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/atk-1.0 LDFLAGS = LIBS = ihm_princ_OBJECTS = main.o support.o interface.o callbacks.o auxiliar.o \ parametro.o ihm_princ_DEPENDENCIES = ihm_princ_LDFLAGS = CFLAGS = -g -O2 -Wall -Wunused COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ DIST_COMMON = Makefile.am Makefile.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) TAR = gtar GZIP_ENV = --best DEP_FILES = .deps/auxiliar.P .deps/callbacks.P .deps/interface.P \ .deps/main.P .deps/parametro.P .deps/support.P SOURCES = $(ihm_princ_SOURCES) OBJECTS = $(ihm_princ_OBJECTS) all: all-redirect .SUFFIXES: .SUFFIXES: .S .c .o .s $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status mostlyclean-binPROGRAMS: clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) distclean-binPROGRAMS: maintainer-clean-binPROGRAMS: install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) $(mkinstalldirs) $(DESTDIR)$(bindir) @list='$(bin_PROGRAMS)'; for p in $$list; do \ if test -f $$p; then \ echo " $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) list='$(bin_PROGRAMS)'; for p in $$list; do \ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ done .s.o: $(COMPILE) -c $< .S.o: $(COMPILE) -c $< mostlyclean-compile: -rm -f *.o core *.core clean-compile: distclean-compile: -rm -f *.tab.c maintainer-clean-compile: ihm_princ: $(ihm_princ_OBJECTS) $(ihm_princ_DEPENDENCIES) @rm -f ihm_princ $(LINK) $(ihm_princ_LDFLAGS) $(ihm_princ_OBJECTS) $(ihm_princ_LDADD) $(LIBS) tags: TAGS ID: $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ here=`pwd` && cd $(srcdir) \ && mkid -f$$here/ID $$unique $(LISP) TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS)'; \ unique=`for i in $$list; do echo $$i; done | \ awk ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) mostlyclean-tags: clean-tags: distclean-tags: -rm -f TAGS ID maintainer-clean-tags: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) subdir = src distdir: $(DISTFILES) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(top_distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; \ cd $(top_srcdir) \ && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile @for file in $(DISTFILES); do \ d=$(srcdir); \ if test -d $$d/$$file; then \ cp -pr $$d/$$file $(distdir)/$$file; \ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file || :; \ fi; \ done DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) -include $(DEP_FILES) mostlyclean-depend: clean-depend: distclean-depend: -rm -rf .deps maintainer-clean-depend: %.o: %.c @echo '$(COMPILE) -c $<'; \ $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-cp .deps/$(*F).pp .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm .deps/$(*F).pp %.lo: %.c @echo '$(LTCOMPILE) -c $<'; \ $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ < .deps/$(*F).pp > .deps/$(*F).P; \ tr ' ' '\012' < .deps/$(*F).pp \ | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ >> .deps/$(*F).P; \ rm -f .deps/$(*F).pp info-am: info: info-am dvi-am: dvi: dvi-am check-am: all-am check: check-am installcheck-am: installcheck: installcheck-am install-exec-am: install-binPROGRAMS install-exec: install-exec-am install-data-am: install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am install: install-am uninstall-am: uninstall-binPROGRAMS uninstall: uninstall-am all-am: Makefile $(PROGRAMS) all-redirect: all-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install installdirs: $(mkinstalldirs) $(DESTDIR)$(bindir) mostlyclean-generic: clean-generic: distclean-generic: -rm -f Makefile $(CONFIG_CLEAN_FILES) -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \ mostlyclean-tags mostlyclean-depend mostlyclean-generic mostlyclean: mostlyclean-am clean-am: clean-binPROGRAMS clean-compile clean-tags clean-depend \ clean-generic mostlyclean-am clean: clean-am distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \ distclean-depend distclean-generic clean-am distclean: distclean-am maintainer-clean-am: maintainer-clean-binPROGRAMS \ maintainer-clean-compile maintainer-clean-tags \ maintainer-clean-depend maintainer-clean-generic \ distclean-am @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." maintainer-clean: maintainer-clean-am .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ mostlyclean-compile distclean-compile clean-compile \ maintainer-clean-compile tags mostlyclean-tags distclean-tags \ clean-tags maintainer-clean-tags distdir mostlyclean-depend \ distclean-depend clean-depend maintainer-clean-depend info-am info \ dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ uninstall-am uninstall all-redirect all-am all installdirs \ mostlyclean-generic distclean-generic clean-generic \ maintainer-clean-generic clean mostlyclean distclean maintainer-clean # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: --=-CYk0BJZM1LkgXCEhrsBr-- From inimss@yahoo.com Tue Feb 5 09:03:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by mail.gnome.org (Postfix) with SMTP id 61A9918162 for ; Tue, 5 Feb 2002 09:03:38 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 5 Feb 2002 14:03:31 -0000 Message-ID: <3C5FE62B.719F9B40@yahoo.com> Date: Tue, 05 Feb 2002 19:33:24 +0530 From: Dino CK X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: [INIMSS] How to add a pixmap to a toggle button? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Anybody please help me in adding a pixmap to a toggle button. I added it from the glade interface but it is not showing up not when compiled and run, or while editing in glade. Thankyou Dino CK _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From lnx1138@us.ibm.com Tue Feb 5 09:50:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.129]) by mail.gnome.org (Postfix) with ESMTP id AFDA6182EE for ; Tue, 5 Feb 2002 09:50:04 -0500 (EST) Received: from westrelay01.boulder.ibm.com (westrelay01.boulder.ibm.com [9.99.140.22]) by e31.co.us.ibm.com (8.9.3/8.9.3) with ESMTP id JAA69826 for ; Tue, 5 Feb 2002 09:46:55 -0500 Received: from chavez.austin.ibm.com (chavez.austin.ibm.com [9.53.216.228]) by westrelay01.boulder.ibm.com (8.11.1m3/NCO v5.01) with ESMTP id g15Eo3T64486 for ; Tue, 5 Feb 2002 07:50:03 -0700 Subject: Re: [INIMSS] How to avoid focusing on CList column titles. From: Luciano Chavez To: gtk-list@gnome.org In-Reply-To: <200202051221.g15CLpF01961@localhost.localdomain> References: <200202051221.g15CLpF01961@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 05 Feb 2002 08:49:49 -0600 Message-Id: <1012920590.2358.23.camel@chavez> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Tue, 2002-02-05 at 06:21, Dino wrote: > Hi, > > How can I avoid the focusing of the column titles in a CList when i go thru the widgets in a window using the TAB key. > > Thank You > Dino CK > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list Dino, Try gtk_clist_column_titles_passive (). -- regards, Luciano Chavez lnx1138@us.ibm.com http://sf.net/projects/evms From hp@redhat.com Tue Feb 5 11:12:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 08CD918283 for ; Tue, 5 Feb 2002 11:12:02 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g15GBxY17829; Tue, 5 Feb 2002 11:11:59 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Volkan Arslan Cc: gtk-list@gnome.org Subject: Re: Release date of GTK+ 2.0 ? References: <3C5FA856.F49CECF1@gmx.net> From: Havoc Pennington Date: 05 Feb 2002 11:11:58 -0500 In-Reply-To: <3C5FA856.F49CECF1@gmx.net> Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Volkan Arslan writes: > > does someone know, when GTK+ 2.0 will be released ? I have looked at > www.gtk.org, but couldn't find anything regarding the release date of > GTK+ 2.0. > Look at developer.gnome.org/dotplan, it will be out before GNOME 2 is. Havoc From Volkan_Arslan@gmx.net Tue Feb 5 11:16:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id 5FE861841A for ; Tue, 5 Feb 2002 11:16:13 -0500 (EST) Received: (qmail 11472 invoked by uid 0); 5 Feb 2002 16:16:12 -0000 Received: from ru-pc11.inf.ethz.ch (HELO gmx.net) (129.132.12.191) by mail.gmx.net (mp011-rz3) with SMTP; 5 Feb 2002 16:16:12 -0000 Message-ID: <3C60053D.1BA7880B@gmx.net> Date: Tue, 05 Feb 2002 17:15:57 +0100 From: Volkan Arslan X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: Release date of GTK+ 2.0 ? References: <3C5FA856.F49CECF1@gmx.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Havoc, thanks for the information. Regards, Volkan Havoc Pennington wrote: > Volkan Arslan writes: > > > > does someone know, when GTK+ 2.0 will be released ? I have looked at > > www.gtk.org, but couldn't find anything regarding the release date of > > GTK+ 2.0. > > > > Look at developer.gnome.org/dotplan, it will be out before GNOME 2 is. > > Havoc From leidola@newcon.de Tue Feb 5 16:59:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (mail-1.newcon.de [195.145.56.9]) by mail.gnome.org (Postfix) with ESMTP id 8DA1B186CB for ; Tue, 5 Feb 2002 16:59:38 -0500 (EST) Received: from [213.70.108.83] ([213.70.108.83]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id WAA31184; Tue, 5 Feb 2002 22:59:30 +0100 Subject: Re: Run time error in gtk1.3 application From: Olaf Leidinger To: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares , GTK Mailing List In-Reply-To: <1012927235.1141.4.camel@flavio.maqplas> References: <1012915087.1142.1.camel@flavio.maqplas> <1012919654.791.18.camel@attic> <1012927235.1141.4.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution/0.12 (Preview Release) Date: 05 Feb 2002 23:01:55 +0100 Message-Id: <1012946521.2645.14.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Well, I think you need something like gnome 2.0.=20 Your gnome version (and mine too) uses gtk+-1.2 and when you link your app with the gnome libs it will also use gtk+-1.2 Have a look at=20 gnome-config --libs gnomeui or =09 gnome-config --libs gnome glib+-1.2 and gtk+-1.2 are always linked to your executable. But have a look at this http://developer.gnome.org/dotplan/porting/ it might help you with your work. Ciao, Olaf Am 05 Feb 2002 14:40:34 -0200 schrieb Fl=E1vio Alberto Lopes Soares: > Is true that to compile gtk+2.0 I need Gnome 2.0 ? >=20 > If true I'm crashing my head in wall ! >=20 > I need to install all gnome2.0 to correctly compile my program ????? >=20 > Thanks for all help >=20 > Flavio Alberto=20 >=20 >=20 From doc@deadvirgins.org.uk Tue Feb 5 18:55:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand3.global.net.uk (sand3.global.net.uk [195.147.246.249]) by mail.gnome.org (Postfix) with ESMTP id 81AB918D44 for ; Tue, 5 Feb 2002 18:55:33 -0500 (EST) Received: from p6ds08a06.client.global.net.uk ([195.147.216.110] helo=deadvirgins.org.uk) by sand3.global.net.uk with esmtp (Exim 3.22 #1) id 16YFQx-00073x-00 for gtk-list@gnome.org; Tue, 05 Feb 2002 23:55:32 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g15NtTs00427 for gtk-list@gnome.org; Tue, 5 Feb 2002 23:55:29 GMT Message-Id: <200202052355.g15NtTs00427@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: gtk-list@gnome.org Subject: auto repeat Date: Tue, 5 Feb 2002 23:55:28 +0000 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Can anyone give me some pointers on implementing a form of auto-repeat...? I've looked through the FAQ and the Tutorial, but it's only mentioned as a "things to add later" when talking about designing custom widgets... I don't want to add repeat to buttons or similar type widgets, but instead to a GDK drawing area. I have 'hotspots' in my drawing area that the user can click in to increment a value, and I'd like to have an autorepeat so the user doesn't wear his mouse button out.... Anyone give me any pointers...? -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From pbd@op.net Tue Feb 5 19:01:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id CCB0318D44 for ; Tue, 5 Feb 2002 19:01:08 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-43.phlpa.fast.net [209.92.96.43]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id TAA21564; Tue, 5 Feb 2002 19:01:04 -0500 (EST) Message-Id: <200202060001.TAA21564@renoir.op.net> To: doc@deadvirgins.org.uk Cc: gtk-list@gnome.org Subject: Re: auto repeat In-reply-to: Your message of "Tue, 05 Feb 2002 23:55:28 GMT." <200202052355.g15NtTs00427@deadvirgins.org.uk> Date: Tue, 05 Feb 2002 18:59:41 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > >Hi > >Can anyone give me some pointers on implementing a form of auto-repeat...? >I've looked through the FAQ and the Tutorial, but it's only mentioned as a >"things to add later" when talking about designing custom widgets... > >I don't want to add repeat to buttons or similar type widgets, but instead to >a GDK drawing area. I have 'hotspots' in my drawing area that the user can >click in to increment a value, and I'd like to have an autorepeat so the user >doesn't wear his mouse button out.... > >Anyone give me any pointers...? look at the spinbutton code, which users timers to achieve this. i have a generic C++ class called AutoSpinner which splits the spinbutton code out into a distinct object that can be used for other things besides spinbuttons. let me know if you're interested. --p From inodal@teleline.es Tue Feb 5 20:05:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp5.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 12788182D6 for ; Tue, 5 Feb 2002 20:05:25 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp5.mail.isp (Netscape Messaging Server 4.15 tsmtp5 Jul 26 2001 13:10:38) with ESMTP id GR370E00.89D for ; Wed, 6 Feb 2002 02:05:02 +0100 Message-ID: <3C608153.9050404@teleline.es> Date: Wed, 06 Feb 2002 01:05:23 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: GTK+ equivalent to Motif "XtAppProcessEvent()" Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want my aplication to stop the gtk_main() until the user press a button, which change the value of a variable called "state": while(state == EXIT_WAIT) { ....**stop gtk_main**.... } if (state == EXIT_OK) { [...] } else { [...] } ------ In Motif I used: while (state == EXIT_WAIT) XtAppProcessEvent(GB_context, XtIMAll); if (state == EXIT_OK) { [...] } else { [...] } ----- Which is the GTK+ equivalent? Thanks, Ignacio Nodal From seberino@dt092n42.san.rr.com Wed Feb 6 03:23:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 7B6DE183A4 for ; Wed, 6 Feb 2002 03:23:59 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNMx-00009n-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:23:55 -0800 Date: Wed, 6 Feb 2002 00:23:55 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How initialize pixmap to something besides NULL? Message-ID: <20020206002355.A588@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: For various reasons I want to initialize a pixmap (GdkPixmap*) to something besides NULL. Is there another quick and easy thing I can initialize pixmap object too? (There is a command to return a pointer to a new pixmap object but I did not understand the first arg.) Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 03:25:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 3142E1879A for ; Wed, 6 Feb 2002 03:25:50 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNOo-00009r-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:25:50 -0800 Date: Wed, 6 Feb 2002 00:25:50 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: What's purpose of returned boolean in expose/configure event functions? Message-ID: <20020206002550.B588@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Examples of expose and configure event functions regarding pixmaps seem to return either TRUE or FALSE. What is the meaning of this return value and the purpose? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 03:29:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id B2CCB18170 for ; Wed, 6 Feb 2002 03:29:43 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNSZ-0000AD-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:29:43 -0800 Date: Wed, 6 Feb 2002 00:29:43 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: Please explain 1st arg of configure & expose event functions... Message-ID: <20020206002943.C588@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Examples of configure and expose event functions have a mysterious GtkWidget for the first arg. I cannot seem to discern what it is. Please explain... Here is an example of an expose event function: gint middleMassTimeSeriesPlotPatch(GtkWidget* widget, GdkEventExpose* event) { gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], Pixmaps::middleMassTimeSeriesPlot, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return FALSE; }; Here is an example of a configure event function: gint middleMassTimeSeriesPlotDraw(GtkWidget* widget, GdkEventConfigure* event) { gdk_pixmap_unref(Pixmaps::middleMassTimeSeriesPlot); Pixmaps::middleMassTimeSeriesPlot = gdk_pixmap_new(widget->window, widget->allocation.width, widget->allocation.height, -1); gdk_draw_rectangle(Pixmaps::middleMassTimeSeriesPlot, widget->style->black_gc, TRUE, 0, 0, widget->allocation.width, widget->allocation.height); gdk_draw_line(Pixmaps::middleMassTimeSeriesPlot, widget->style->white_gc, 0, 0, widget->allocation.width, widget->allocation.height); gdk_draw_line(Pixmaps::middleMassTimeSeriesPlot, widget->style->white_gc, 0, widget->allocation.height, widget->allocation.width, 0); return TRUE; }; What is all this widget->allocation.height, widget->window stuff and where did it come from and why is it useful? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 03:32:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 4E82E187D4 for ; Wed, 6 Feb 2002 03:32:38 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YNVO-0000Ad-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 00:32:38 -0800 Date: Wed, 6 Feb 2002 00:32:38 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: vertical or rotated gtk_label_new("TEXT") possible??? Message-ID: <20020206003238.A656@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is it possible to have gtk_label_new("TEXT") be vertical or rotated??? Since one cannot put letters in a pixmap this is my only hope for vertical/sideways letters. Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From blue_pion@hotmail.com Wed Feb 6 03:42:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f62.pav1.hotmail.com [64.4.31.62]) by mail.gnome.org (Postfix) with ESMTP id 62AD518472 for ; Wed, 6 Feb 2002 03:42:53 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 6 Feb 2002 00:42:52 -0800 Received: from 137.132.3.9 by pv1fd.pav1.hotmail.msn.com with HTTP; Wed, 06 Feb 2002 08:42:52 GMT X-Originating-IP: [137.132.3.9] From: "Ricky Foo" To: gtk-list@gnome.org Subject: help! Date: Wed, 06 Feb 2002 08:42:52 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 06 Feb 2002 08:42:52.0495 (UTC) FILETIME=[43BA55F0:01C1AEEA] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I have this graph that is to show the traffic throughput. It updates every 2 secs. What should be the correct way to do this so that the axes can update dynamically, i.e it progress from right to left, showing the time. The diagram below shows the x-axis. now: ---+----+----+----+---- 20 22 24 26 later: ---+----+----+----+---- 22 24 26 28 Ricky _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From root@localhost.localdomain Wed Feb 6 04:09:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.225.173]) by mail.gnome.org (Postfix) with ESMTP id 5CE8C185B0 for ; Wed, 6 Feb 2002 04:09:15 -0500 (EST) Received: (from root@localhost) by localhost.localdomain (8.11.2/8.11.2) id g16997q03907; Wed, 6 Feb 2002 14:39:07 +0530 Date: Wed, 6 Feb 2002 14:39:07 +0530 Message-Id: <200202060909.g16997q03907@localhost.localdomain> To: gtk-list@gnome.org From: inimss@yahoo.com Subject: Problem with select_row signal of CList Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). Please help me to find out a way to make it trigger the signal. ThankYou Dino CK From root@localhost.localdomain Wed Feb 6 04:10:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.225.173]) by mail.gnome.org (Postfix) with ESMTP id 85BEC186D6 for ; Wed, 6 Feb 2002 04:10:26 -0500 (EST) Received: (from root@localhost) by localhost.localdomain (8.11.2/8.11.2) id g169A1g03915; Wed, 6 Feb 2002 14:40:01 +0530 Date: Wed, 6 Feb 2002 14:40:01 +0530 Message-Id: <200202060910.g169A1g03915@localhost.localdomain> To: gtk-list@gnome.org From: inimss@yahoo.com Subject: [INIMSS] Problem with select_row signal of CList Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). Please help me to find out a way to make it trigger the signal. ThankYou Dino CK From coframi.balr001@rd.francetelecom.com Wed Feb 6 04:53:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id 1B47418132 for ; Wed, 6 Feb 2002 04:53:42 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M416640>; Wed, 6 Feb 2002 10:52:54 +0100 Message-ID: From: zze-coframi balr001 To: "'inimss@yahoo.com'" , gtk-list@gnome.org Subject: RE: [INIMSS] Problem with select_row signal of CList Date: Wed, 6 Feb 2002 10:53:08 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-94cab528-1acd-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-94cab528-1acd-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AEF4.146151A0" ------_=_NextPart_001_01C1AEF4.146151A0 Content-Type: text/plain Hello, try GTK_SELECTION_BROWSE Isabelle -----Message d'origine----- De : inimss@yahoo.com [mailto:inimss@yahoo.com] Envoye : mercredi 6 fevrier 2002 10:10 A : gtk-list@gnome.org Objet : [INIMSS] Problem with select_row signal of CList Hi In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). Please help me to find out a way to make it trigger the signal. ThankYou Dino CK _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AEF4.146151A0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] Problem with select_row signal of CList

Hello,

try GTK_SELECTION_BROWSE

Isabelle

-----Message d'origine-----
De : inimss@yahoo.com [mailto:inimss@yahoo.com]
Envoye : mercredi 6 fevrier 2002 10:10
A : gtk-list@gnome.org
Objet : [INIMSS] Problem with select_row signal of = CList


Hi

In my gtk app I tried to handle the select_row signal = of GtkCList. When I changed the row selection with my mouse, it worked = fine, but when I do it with the keyboard's arrow keys, its not working, = ie the signal is not triggered for the keyboard. I had made the CList = Selection Mode to Single (glade term).

Please help me to find out a way to make it trigger = the signal.

ThankYou
Dino CK


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

------_=_NextPart_001_01C1AEF4.146151A0-- ------=_NextPartTM-000-94cab528-1acd-11d6-b1e5-00508b69ab48-- From switk@yahoo.com Wed Feb 6 06:20:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p100.localdomain (24-216-38-22.hsacorp.net [24.216.38.22]) by mail.gnome.org (Postfix) with ESMTP id 0DB6A18130 for ; Wed, 6 Feb 2002 06:20:57 -0500 (EST) Received: from [192.168.1.3] (ada.localdomain [192.168.1.3]) by p100.localdomain (8.9.3/8.9.3) with ESMTP id GAA17474 for ; Wed, 6 Feb 2002 06:28:31 -0500 Subject: Re: [INIMSS] Problem with select_row signal of CList From: Stephen Witkop To: gtk-list In-Reply-To: <200202060910.g169A1g03915@localhost.localdomain> References: <200202060910.g169A1g03915@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 06 Feb 2002 06:20:55 -0500 Message-Id: <1012994456.6610.3.camel@ada.localdomain> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-06 at 04:10, inimss@yahoo.com wrote: > Hi > > In my gtk app I tried to handle the select_row signal of GtkCList. When I changed the row selection with my mouse, it worked fine, but when I do it with the keyboard's arrow keys, its not working, ie the signal is not triggered for the keyboard. I had made the CList Selection Mode to Single (glade term). > > Please help me to find out a way to make it trigger the signal. > The "select_row" signal is generated when you use the on a row, not just when it is highlighted moving through the list with the arrow keys. Stephen From John.Cupitt@ng-london.org.uk Wed Feb 6 07:13:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 6C10018A17 for ; Wed, 6 Feb 2002 07:13:16 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <1CX3HN1G>; Wed, 6 Feb 2002 12:13:15 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1CX3HN1F; Wed, 6 Feb 2002 12:13:13 -0000 Message-ID: <3C611A9A.7090201@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: inodal@teleline.es Cc: gtk-list@gnome.org Subject: Re: GTK+ equivalent to Motif "XtAppProcessEvent()" Date: Wed, 6 Feb 2002 11:59:22 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal wrote: > I want my aplication to stop the gtk_main() until the user press a > button, which change the value of a variable called "state": Hi Ignacio, there are two gtk equivalents. First, you can call gtk_main() recursively. In your button callback, call gtk_main_quit(), and the enclosing gtk_main() will terminate. Second, you can call gtk_main_iteration() repeatedly, and stop when your button callback sets a flag. http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-MAIN-QUIT HTH, John ========================================================== Coming soon: Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From pbd@op.net Wed Feb 6 10:04:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 0E22F18344 for ; Wed, 6 Feb 2002 10:04:19 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA15617; Wed, 6 Feb 2002 10:04:10 -0500 (EST) Message-Id: <200202061504.KAA15617@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: vertical or rotated gtk_label_new("TEXT") possible??? In-reply-to: Your message of "Wed, 06 Feb 2002 00:32:38 PST." <20020206003238.A656@spawar.navy.mil> Date: Wed, 06 Feb 2002 10:02:55 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Is it possible to have gtk_label_new("TEXT") >be vertical or rotated??? no. X (which GDK relies on in the version of GTK+ that you are almost certainly using) provides no facilities for text rotation. if you want to do this, you have to put each letter into a pixmap using tricks that will be revealed in the file gnome-canvas-text-item.c in the gnome canvas code in GNOME CVS. its ugly, disgusting stuff. then you can pack the pixmaps into boxes or whatever. i don't know if Pango, which GTK+ 1.3/2.0 uses for text can do a better job on this. i have a feeling it can, but i am not sure. From pbd@op.net Wed Feb 6 10:07:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3018C18F78 for ; Wed, 6 Feb 2002 10:07:41 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA16080; Wed, 6 Feb 2002 10:07:38 -0500 (EST) Message-Id: <200202061507.KAA16080@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: Please explain 1st arg of configure & expose event functions... In-reply-to: Your message of "Wed, 06 Feb 2002 00:29:43 PST." <20020206002943.C588@spawar.navy.mil> Date: Wed, 06 Feb 2002 10:06:24 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Examples of configure and expose event functions >have a mysterious GtkWidget for the first arg. >I cannot seem to discern what it is. often, a signal is emitted because of an event occuring in/on the widget. the handler(s) for the signal receive a pointer to the widget as their first argument. this allows them to know which widget they are dealing with (since the same function might be used to handle similar signals for many different widgets). >What is all this widget->allocation.height, widget->window stuff and where >did it come from and why is it useful? if you are going to do "low level" drawing in a widget, you need to know how big the widget is, and you need access to the GdkWindow that is actually the object in which drawing occurs. these are members of all GtkWidgets (though the GdkWindow member is only valid after the widget has been realized - it corresponds (when using XWindow) to an actual X window). --p From pbd@op.net Wed Feb 6 10:10:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D007318CB1 for ; Wed, 6 Feb 2002 10:10:30 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA16411; Wed, 6 Feb 2002 10:10:27 -0500 (EST) Message-Id: <200202061510.KAA16411@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? In-reply-to: Your message of "Wed, 06 Feb 2002 00:25:50 PST." <20020206002550.B588@spawar.navy.mil> Date: Wed, 06 Feb 2002 10:09:12 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Examples of expose and configure event functions >regarding pixmaps seem to return either TRUE or FALSE. > >What is the meaning of this return value and the purpose? *all* signal handlers for signals that have a non-void return type must return TRUE or FALSE to indicate whether or not they have handled the signal. its up to the handler code to decide what "handled" might mean, given the following awareness of what their return value will mean: if they return TRUE, then generally other handlers that were connected later will not be called. if they return FALSE, the other handlers will be called. the way this all works is a bit muddied in GTK+ 1.2; it appears to be much cleaner in GTK+ 1.3/2.0. --p From davidgn@servidor.unam.mx Wed Feb 6 10:23:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id E4C9218CC4 for ; Wed, 6 Feb 2002 10:23:48 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.176]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g16FMXk06370 for ; Wed, 6 Feb 2002 09:22:34 -0600 (CST) Date: Wed, 6 Feb 2002 09:39:19 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: Button press Message-Id: <20020206093919.003da1d9.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times 20 times at once or so. (The button is supossed to increment the content of a label). How can i make it so that if i held the button pressed, the signal will repeat itself, but with a small, but noticeable, delay? or is this in the FAQ? Thank you in advance. -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From sven@gimp.org Wed Feb 6 10:40:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id D759818344 for ; Wed, 6 Feb 2002 10:40:38 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16YUBK-0002zG-00; Wed, 06 Feb 2002 16:40:22 +0100 To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: Button press References: <20020206093919.003da1d9.davidgn@servidor.unam.mx> From: Sven Neumann Date: 06 Feb 2002 16:40:22 +0100 In-Reply-To: <20020206093919.003da1d9.davidgn@servidor.unam.mx> Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, David Eduardo Gomez Noguera writes: > I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. > Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times 20 times at once or so. (The button is supossed to increment the content of a label). > How can i make it so that if i held the button pressed, the signal will repeat itself, but with a small, but noticeable, delay? or is this in the FAQ? > use a timeout: http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-TIMEOUT-ADD Salut, Sven From pbd@op.net Wed Feb 6 10:41:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id EA67019047 for ; Wed, 6 Feb 2002 10:41:09 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA20200; Wed, 6 Feb 2002 10:41:06 -0500 (EST) Message-Id: <200202061541.KAA20200@renoir.op.net> To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: Button press In-reply-to: Your message of "Wed, 06 Feb 2002 09:39:19 CST." <20020206093919.003da1d9.davidgn@servidor.unam.mx> Date: Wed, 06 Feb 2002 10:39:51 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I wanted to make a button behave lika a keyboard key, in that if i leave the k >ey pressed, it will repeat. >Thus i connected a button widget to a pressed signal, but when i press it its >like sometimes it was kust once, and other times 20 times at once or so. (The >button is supossed to increment the content of a label). >How can i make it so that if i held the button pressed, the signal will repea >t itself, but with a small, but noticeable, delay? or is this in the FAQ? search the archives for yesterday. i answered a similar question then. From sven@gimp.org Wed Feb 6 10:51:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 5E0EF18F22 for ; Wed, 6 Feb 2002 10:51:32 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16YU93-0002z6-00; Wed, 06 Feb 2002 16:38:01 +0100 To: Paul Davis Cc: Chris Seberino , gtk-list@gnome.org Subject: Re: vertical or rotated gtk_label_new("TEXT") possible??? References: <200202061504.KAA15617@renoir.op.net> From: Sven Neumann Date: 06 Feb 2002 16:38:01 +0100 In-Reply-To: <200202061504.KAA15617@renoir.op.net> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Paul Davis writes: > >Is it possible to have gtk_label_new("TEXT") > >be vertical or rotated??? > > no. X (which GDK relies on in the version of GTK+ that you are almost > certainly using) provides no facilities for text rotation. this is not the full truth since X11R6 does support rotated glyphs, see http://www.faqs.org/faqs/x-faq/part7/section-45.html > i don't know if Pango, which GTK+ 1.3/2.0 uses for text can do a > better job on this. i have a feeling it can, but i am not sure. while the layers below Pango probably have this feature (at least FreeType2 allows to specify a transformation matrix), Pango itself has no API for rotations or other transformations. Salut, Sven From pbd@op.net Wed Feb 6 10:56:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 29C8418D92 for ; Wed, 6 Feb 2002 10:56:29 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA21863; Wed, 6 Feb 2002 10:56:24 -0500 (EST) Message-Id: <200202061556.KAA21863@renoir.op.net> To: Sven Neumann Cc: Chris Seberino , gtk-list@gnome.org Subject: Re: vertical or rotated gtk_label_new("TEXT") possible??? In-reply-to: Your message of "06 Feb 2002 16:38:01 +0100." Date: Wed, 06 Feb 2002 10:55:10 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> >Is it possible to have gtk_label_new("TEXT") >> >be vertical or rotated??? >> >> no. X (which GDK relies on in the version of GTK+ that you are almost >> certainly using) provides no facilities for text rotation. > >this is not the full truth since X11R6 does support rotated glyphs, see > > http://www.faqs.org/faqs/x-faq/part7/section-45.html rotated glyphs do not make for rotated text :) to get vertical text you still have to place each glyph individually. xvertext can take care of this, i suppose. From davidgn@servidor.unam.mx Wed Feb 6 11:14:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id E879418FA4 for ; Wed, 6 Feb 2002 11:14:10 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.176]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g16GCnk26012 for ; Wed, 6 Feb 2002 10:12:51 -0600 (CST) Date: Wed, 6 Feb 2002 10:29:59 -0600 From: David Eduardo Gomez Noguera To: gtk-list@gnome.org Subject: Re: Button press Message-Id: <20020206102959.1b232283.davidgn@servidor.unam.mx> In-Reply-To: References: <20020206093919.003da1d9.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 06 Feb 2002 16:40:22 +0100 Sven Neumann wrote: > Hi, > > David Eduardo Gomez Noguera writes: > > > I wanted to make a button behave lika a keyboard key, in that if i leave the key pressed, it will repeat. > > Thus i connected a button widget to a pressed signal, but when i press it its like sometimes it was kust once, and other times 20 times at once or so. (The button is supossed to increment the content of a label). > > How can i make it so that if i held the button pressed, the signal will repeat itself, but with a small, but noticeable, delay? or is this in the FAQ? > > > > use a timeout: > http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-TIMEOUT-ADD > > Thank you. I was just thinking what would be the best way of action. Have the function registered on a button pressed event, and removed on a button realeased event? or have a gtlobal static variable set to TRUE, and the function registered on a button press, and have the button release set the var to FALSE? (that variable would be the return fariable. I guess the firstone is better (more secure and less error prone), but would like to hear some advices. Thank you again. > Salut, Sven > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From pbd@op.net Wed Feb 6 11:20:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D0EBA190D0 for ; Wed, 6 Feb 2002 11:20:17 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-15.phlpa.fast.net [209.92.230.15]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA24829; Wed, 6 Feb 2002 11:20:14 -0500 (EST) Message-Id: <200202061620.LAA24829@renoir.op.net> To: davidgn@servidor.unam.mx Cc: gtk-list@gnome.org Subject: Re: Button press In-reply-to: Your message of "Wed, 06 Feb 2002 10:29:59 CST." <20020206102959.1b232283.davidgn@servidor.unam.mx> Date: Wed, 06 Feb 2002 11:19:01 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Thank you. >I was just thinking what would be the best way of action. >Have the function registered on a button pressed event, and removed on a butto >n realeased event? >or have a gtlobal static variable set to TRUE, and the function registered on >a button press, and have the button release set the var to FALSE? (that variab >le would be the return fariable. >I guess the firstone is better (more secure and less error prone), but would l >ike to hear some advices. globals are always a bad idea. look at the code in gtkspinbutton.c --p From hp@redhat.com Wed Feb 6 12:11:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 09774182C5 for ; Wed, 6 Feb 2002 12:11:04 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g16HAr624653; Wed, 6 Feb 2002 12:10:53 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "satyajit kanungo" Cc: Subject: Re: gtk+1.3 library References: From: Havoc Pennington Date: 06 Feb 2002 12:10:53 -0500 In-Reply-To: Message-ID: Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "satyajit kanungo" writes: > Well, I see gtk+ using lot of deprecated calls. I also saw many patches submitted > in bugzilla (#52790) but not yet gone into the source. > > I have replaced all the GtkType & GtkTypeInfo to GType & GTypeInfo. > The attached diff contains the changes. I 'm planning to do all signal changes > (replacing gtk_signal_* calls) also in the library. > > Expecting your comments. Thanks! Please be sure your patches are in bugzilla, so they won't be forgotten. Havoc From inodal@teleline.es Wed Feb 6 13:03:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp4.mail.isp (unknown [195.235.113.151]) by mail.gnome.org (Postfix) with ESMTP id A964318761 for ; Wed, 6 Feb 2002 13:03:25 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp4.mail.isp (Netscape Messaging Server 4.15 tsmtp4 Jul 26 2001 13:10:38) with ESMTP id GR4I4Y00.5RB for ; Wed, 6 Feb 2002 19:02:58 +0100 Message-ID: <3C616FE8.4060309@teleline.es> Date: Wed, 06 Feb 2002 18:03:20 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: don't wanna see this CRITICAL Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there any way to avoid this message from being prompt? ** CRITICAL **: file gtkglarea.c: line 184 (gtk_gl_area_make_current): assertion `GTK_WIDGET_REALIZED(gl_area)' failed. I just want to call glViewport() in my InitGL() function. I know my "gl_area" isn't still realized, but I don't care... Does anybody know if I can call glViewport() without caring of the if (gtk_gl_area_make_current (glarea)) result?? I'm only using one GtkGLArea in my program. Thanks Ignacio Nodal From seberino@dt092n42.san.rr.com Wed Feb 6 13:05:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id DAA4A18F9A for ; Wed, 6 Feb 2002 13:04:59 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YWRE-00004u-00; Wed, 06 Feb 2002 10:04:56 -0800 Date: Wed, 6 Feb 2002 10:04:56 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? Message-ID: <20020206100456.A266@spawar.navy.mil> References: <20020206002550.B588@spawar.navy.mil> <200202061510.KAA16411@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202061510.KAA16411@renoir.op.net>; from pbd@op.net on Wed, Feb 06, 2002 at 10:09:12AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Feb 06, 2002 at 10:09:12AM -0500, Paul Davis wrote: > >Examples of expose and configure event functions > >regarding pixmaps seem to return either TRUE or FALSE. > > > >What is the meaning of this return value and the purpose? > > *all* signal handlers for signals that have a non-void return type > must return TRUE or FALSE to indicate whether or not they have > handled the signal. its up to the handler code to decide what > "handled" might mean, given the following awareness of what their > return value will mean: > > if they return TRUE, then generally other handlers that were connected > later will not be called. if they return FALSE, the other handlers > will be called. > > the way this all works is a bit muddied in GTK+ 1.2; it appears to be > much cleaner in GTK+ 1.3/2.0. > > --p Thanks for reply. So it sounds like some signal handlers are only the first of many functions to handle an event. (Most of which we don't see or deal with?) If our function does ALL work then we return TRUE but if it is only one of many then we return FALSE. How are we to know if there are other functions GTK+ will want to call for an event? Thanks again, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 13:13:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id AF08B18246 for ; Wed, 6 Feb 2002 13:13:31 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA07323; Wed, 6 Feb 2002 13:13:28 -0500 (EST) Message-Id: <200202061813.NAA07323@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? In-reply-to: Your message of "Wed, 06 Feb 2002 10:04:56 PST." <20020206100456.A266@spawar.navy.mil> Date: Wed, 06 Feb 2002 13:12:15 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Thanks for reply. So it sounds like some signal handlers >are only the first of many functions to handle an event. >(Most of which we don't see or deal with?) >If our function does ALL work then we return TRUE >but if it is only one of many then we return FALSE. >How are we to know if there are other functions GTK+ >will want to call for an event? you don't. thats why you have to decide if you think the signal has been handled or not. that will depend hugely on the circumstances of your program. sometimes i know i have to return TRUE, sometimes i know i have to return FALSE and sometimes it really doesn't matter. for GTK+ 1.2, there happens to be a default handler which will be called whether or not yours returns TRUE or FALSE. but my understanding is that in 1.3/2.0, returning TRUE will stop even the default handler from being called. there are also so-called "after" handlers (connected with gtk_signal_connect_after()) which are called after the default handler. its not clear to me if these will still be called in 1.3/2.0 if a "before" handler returns TRUE. owen/havoc and others will know. --p From pbd@op.net Wed Feb 6 13:14:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id EFFDA18E29 for ; Wed, 6 Feb 2002 13:14:34 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA07411; Wed, 6 Feb 2002 13:14:27 -0500 (EST) Message-Id: <200202061814.NAA07411@renoir.op.net> To: Ignacio Nodal Cc: GTK-List Subject: Re: don't wanna see this CRITICAL In-reply-to: Your message of "Wed, 06 Feb 2002 18:03:20 GMT." <3C616FE8.4060309@teleline.es> Date: Wed, 06 Feb 2002 13:13:15 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Is there any way to avoid this message from being prompt? > >** CRITICAL **: file gtkglarea.c: line 184 (gtk_gl_area_make_current): >assertion `GTK_WIDGET_REALIZED(gl_area)' failed. > > >I just want to call glViewport() in my InitGL() function. I know my >"gl_area" isn't still realized, but I don't care... you don't, but gtkglarea.c does. just call gtk_widget_realize() on your glarea before calling InitGL(). --p From seberino@dt092n42.san.rr.com Wed Feb 6 13:22:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F12B91821B for ; Wed, 6 Feb 2002 13:22:08 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YWhL-00005w-00; Wed, 06 Feb 2002 10:21:35 -0800 Date: Wed, 6 Feb 2002 10:21:35 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: Please explain 1st arg of configure & expose event functions... Message-ID: <20020206102135.B266@spawar.navy.mil> References: <20020206002943.C588@spawar.navy.mil> <200202061507.KAA16080@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202061507.KAA16080@renoir.op.net>; from pbd@op.net on Wed, Feb 06, 2002 at 10:06:24AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, Feb 06, 2002 at 10:06:24AM -0500, Paul Davis wrote: > >Examples of configure and expose event functions > >have a mysterious GtkWidget for the first arg. > >I cannot seem to discern what it is. > > often, a signal is emitted because of an event occuring in/on the > widget. the handler(s) for the signal receive a pointer to the widget > as their first argument. this allows them to know which widget they > are dealing with (since the same function might be used to handle > similar signals for many different widgets). > > >What is all this widget->allocation.height, widget->window stuff and where > >did it come from and why is it useful? > > if you are going to do "low level" drawing in a widget, you need to > know how big the widget is, and you need access to the GdkWindow that > is actually the object in which drawing occurs. these are members of > all GtkWidgets (though the GdkWindow member is only valid after the > widget has been realized - it corresponds (when using XWindow) to an > actual X window). > > --p P. Thanks again! This widget that is the first argument seems to be the window that _contains_ the pixmap drawing from what you are saying. I'm confused because some elements of this window object are used to give information about the _pixmap_?!?!? Let me explain if you don't mind... I know that following command ends up drawing a rectangle in the pixmap which is NOT the same size as the window it is in. Yet, notice that all dimensions given are the dimensions of the window?!?!? (This is inside a configure event signal handler so widget is the first arg we are talking about.) gdk_draw_rectangle(Pixmaps::middleMassTimeSeriesPlot, widget->style->black_gc, TRUE, 0, 0, widget->allocation.width, widget->allocation.height); And... The following command redraws a pixmap after an expose event. Notice the second argument seems to be saying "Use the style of the widget (window)". Shouldn't we be using the "style" of the pixmap?? (By the way, unrelated: why do we need event->area.x * event->area.y args twice?) gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], Pixmaps::powerSpectralDensityPlot, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 13:47:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 156AB180E8 for ; Wed, 6 Feb 2002 13:47:05 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA11202; Wed, 6 Feb 2002 13:47:00 -0500 (EST) Message-Id: <200202061847.NAA11202@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: Please explain 1st arg of configure & expose event functions... In-reply-to: Your message of "Wed, 06 Feb 2002 10:21:35 PST." <20020206102135.B266@spawar.navy.mil> Date: Wed, 06 Feb 2002 13:45:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >This widget that is the first argument seems to be the window >that _contains_ the pixmap drawing from what you are saying. no. its the widget for which the event took place and for which the signal is being emitted. this mistake has caused you much later confusion. >I'm confused because some elements of this window object >are used to give information about the _pixmap_?!?!? it seems you don't have much of a grounding in XWindow basics, which is leading to your confusion (you could think of them as GDK basics, but GDK's model comes mostly from XWindow). anything that gets drawn on the screen must be drawn on an object called a "window". that includes text, lines, pixmaps, rectangles, whatever. a pixmap itself is really just a set of data containing pixel values. by itself, that won't cause anything to appear on the screen. for it to be visible, it has to be drawn. for it to be drawn, there has to be a window to draw it into. thus, the widget (i.e. a C struct) that is used to display pixmaps contains both info about the pixmap itself, and info about a window (a GdkWindow, specifically) into which it is drawn. now, this window has *nothing* to do with the kind of window you are thinking about. its just a rectangular area of the screen. specifically, it is *not* a GtkWindow (notice the "t" instead of the "d"), it is not a widget, and it is not managed by your window manager. its just a part of the screen where things may be drawn. most widgets have a window associated with them, though a number of them do not, and draw onto their container/parent's window (or their grand-parent's window, or whatever). to repeat: you cannot draw without a GdkWindow. the GdkWindow does not contain the pixmap the way a GtkWindow would, it is where the pixmap is drawn. a pixmap widget contains info about the pixmap and a pointer to the GdkWindow where the data in the pixmap will be drawn. >Shouldn't we be using the "style" of the pixmap?? (By the way, unrelated: >why do we need event->area.x * event->area.y args twice?) > > gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widge >t)], > Pixmaps::powerSpectralDensityPlot, event->area.x, event->area.y, > event->area.x, event->area.y, event->area.width, event->area.height); look at the docs for gdk_draw_pixmap, and it will be clear. --p From seberino@dt092n42.san.rr.com Wed Feb 6 14:08:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 7B21D18761 for ; Wed, 6 Feb 2002 14:08:38 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YXQr-000084-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 11:08:37 -0800 Date: Wed, 6 Feb 2002 11:08:37 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How get NEW value for "value_changed" event? (from GtkAdjustment object?) Message-ID: <20020206110837.A495@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "value_changed" events are when someone changes value with a slider bar. (I think.) This calls a signal handler that gets the GtkAdjustment object as a parameter. How/where can I pull out the value that slider bar value was changed to. I need to do something with the NEW value! Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 14:14:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 379A318761 for ; Wed, 6 Feb 2002 14:14:04 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA14219; Wed, 6 Feb 2002 14:14:00 -0500 (EST) Message-Id: <200202061914.OAA14219@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How get NEW value for "value_changed" event? (from GtkAdjustment object?) In-reply-to: Your message of "Wed, 06 Feb 2002 11:08:37 PST." <20020206110837.A495@spawar.navy.mil> Date: Wed, 06 Feb 2002 14:12:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >"value_changed" events are when someone changes >value with a slider bar. (I think.) > >This calls a signal handler that gets the GtkAdjustment >object as a parameter. How/where can I pull out the value >that slider bar value was changed to. I need to do >something with the NEW value! sorry chris. this one is definitely an RTFM. the tutorial is a good place to start. --p From seberino@dt092n42.san.rr.com Wed Feb 6 14:19:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 508F0180D9 for ; Wed, 6 Feb 2002 14:19:06 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YXaz-00009D-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 11:19:05 -0800 Date: Wed, 6 Feb 2002 11:19:05 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-ID: <20020206111905.A566@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I need to sometimes initialize an object to NULL and get this message. How avoid??? warning: ANSI C++ forbids implicit conversion from `void *' in initialization Here is the pixmap class that causes this (outside of main() ) class Pixmaps { private: public: static GdkPixmap* middleMassTimeSeriesPlot; static GdkPixmap* phaseSpacePlot; static GdkPixmap* totalTimeSeriesPlot; static GdkPixmap* powerSpectralDensityPlot; }; GdkPixmap* Pixmaps::middleMassTimeSeriesPlot = NULL; GdkPixmap* Pixmaps::phaseSpacePlot = NULL; GdkPixmap* Pixmaps::totalTimeSeriesPlot = NULL; GdkPixmap* Pixmaps::powerSpectralDensityPlot = NULL; CS -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 14:24:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id EDAB3182C5 for ; Wed, 6 Feb 2002 14:24:02 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-363.phlpa.fast.net [209.92.228.109]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA15372; Wed, 6 Feb 2002 14:24:00 -0500 (EST) Message-Id: <200202061924.OAA15372@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? In-reply-to: Your message of "Wed, 06 Feb 2002 11:19:05 PST." <20020206111905.A566@spawar.navy.mil> Date: Wed, 06 Feb 2002 14:22:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I need to sometimes initialize an object to NULL and get this >message. How avoid??? this is getting too close to generic programming questions for this list. if you don't understand how to fix this yourself, i worry about future progress on your software. SomeObject *someObject = (SomeObject *) 0; you should never use "NULL" in a C++ program. look it up with google to understand why. --p From inodal@teleline.es Wed Feb 6 14:24:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp10.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 96EAE180D9 for ; Wed, 6 Feb 2002 14:24:51 -0500 (EST) Received: from paranoia ([213.97.141.171]) by tsmtp10.mail.isp (Netscape Messaging Server 4.15 tsmtp10 Jul 26 2001 13:10:38) with SMTP id GR4LWS00.4WB; Wed, 6 Feb 2002 20:24:28 +0100 Message-ID: <000f01c1af43$f3fb3200$0a01a8c0@paranoia> From: "Ignacio Nodal" To: "Paul Davis" Cc: "GTK-List" References: <200202061814.NAA07411@renoir.op.net> Subject: Re: don't wanna see this CRITICAL Date: Wed, 6 Feb 2002 19:24:47 -0000 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ----- Original Message ----- From: "Paul Davis" To: "Ignacio Nodal" Cc: "GTK-List" Sent: Wednesday, February 06, 2002 6:13 PM Subject: Re: don't wanna see this CRITICAL > >Is there any way to avoid this message from being prompt? > > > >** CRITICAL **: file gtkglarea.c: line 184 (gtk_gl_area_make_current): > >assertion `GTK_WIDGET_REALIZED(gl_area)' failed. > > > > > >I just want to call glViewport() in my InitGL() function. I know my > >"gl_area" isn't still realized, but I don't care... > > you don't, but gtkglarea.c does. just call gtk_widget_realize() on > your glarea before calling InitGL(). > > --p I know it does, hehehe, but if I call gtk_widget_realize() the glarea will be shown, and I don't want it to be shown so soon.. even if I use gtk_widget_unrealize() inmediatelly after calling glViewport() I can see the glarea.Is there anyway to realize it without been shown? :) Thanks From hp@redhat.com Wed Feb 6 14:41:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 7A4C418307 for ; Wed, 6 Feb 2002 14:41:04 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g16Jf3124717; Wed, 6 Feb 2002 14:41:03 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Chris Seberino , gtk-list@gnome.org Subject: Re: What's purpose of returned boolean in expose/configure event functions? References: <200202061813.NAA07323@renoir.op.net> From: Havoc Pennington Date: 06 Feb 2002 14:41:03 -0500 In-Reply-To: <200202061813.NAA07323@renoir.op.net> Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > there are also so-called "after" handlers (connected with > gtk_signal_connect_after()) which are called after the default > handler. its not clear to me if these will still be called in 1.3/2.0 > if a "before" handler returns TRUE. owen/havoc and others will know. > No, they won't be called. TRUE stops the entire emission in 2.0. Havoc From Dexter.Filmore@gmx.de Wed Feb 6 16:15:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id AC057181A1 for ; Wed, 6 Feb 2002 16:15:28 -0500 (EST) Received: (qmail 17047 invoked by uid 0); 6 Feb 2002 21:15:27 -0000 Received: from pd952d1c4.dip.t-dialin.net (HELO shodan) (217.82.209.196) by mail.gmx.net (mp011-rz3) with SMTP; 6 Feb 2002 21:15:27 -0000 Date: Wed, 6 Feb 2002 22:13:20 +0100 From: Dexter Filmore To: gtklist Subject: wrong location? (n00b question) Message-Id: <20020206221320.07f2dfae.Dexter.Filmore@gmx.de> Organization: SCHWA Corporation X-Mailer: Sylpheed version 0.7.0 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: So I installed gtk on my Slack 8 recently for I thought "whatever was installed, maybe get the latest version". Then I discovered that 1.2.10 is already enclosured in Slack 8 and friend told me it's not too good having 2 packages of it simultaneously installed. So I kicked the one I installed myself out, deleted the package from Slack and reinstalled it. I'm still kinda linux noob, so one may forgive me that. Funny thing is: on a tty "echo $PATH" displays full path with /opt/gnome in it, on X as user as well, but in a terminal in X as root via su command the /opt/gnome path does not apper. How come? Next thing: is this the right location anyway? Tried to compile gtoaster recently, ./configure said "hey u dont have gtk" and other apps, too - they all look for gtk and devel stuff in /usr/local/somewhere as it seems. If someone could please shed some light on this? I'm close to insanity spending days on the simplest things. Dexter Filmore From seberino@dt092n42.san.rr.com Wed Feb 6 18:37:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 1EDE518141 for ; Wed, 6 Feb 2002 18:37:21 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16Ybcw-0000OU-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 15:37:22 -0800 Date: Wed, 6 Feb 2002 15:37:22 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How change color, draw border, change other stylistics of SLIDERS??? Message-ID: <20020206153722.A1515@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a list of sliders that sort of all blend together. * A nice border around each one would be nice to distinguish different slider components. * Different colors would serve same purpose. * Sliders DO NOT have arrows on each side like scroll bars do!!! How get arrow buttons back????? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 6 18:37:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F260C18141 for ; Wed, 6 Feb 2002 18:37:54 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16YbdU-0000OY-00 for gtk-list@gnome.org; Wed, 06 Feb 2002 15:37:56 -0800 Date: Wed, 6 Feb 2002 15:37:56 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: How change size/font of gtk_label_new("TEXT")??? Message-ID: <20020206153756.B1515@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How change font or size of text for gtk_label_new("TEXT")??? cs -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Wed Feb 6 21:32:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id F169F18541 for ; Wed, 6 Feb 2002 21:32:07 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-230.phlpa.fast.net [209.92.227.230]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id VAA28700; Wed, 6 Feb 2002 21:32:04 -0500 (EST) Message-Id: <200202070232.VAA28700@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How change color, draw border, change other stylistics of SLIDERS??? In-reply-to: Your message of "Wed, 06 Feb 2002 15:37:22 PST." <20020206153722.A1515@spawar.navy.mil> Date: Wed, 06 Feb 2002 21:30:57 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: killing two birds with one stone: 1) >How change font or size of text for gtk_label_new("TEXT")??? 2) >* Different colors would serve same purpose. GtkWidget *label = gtk_label_new ("foo"); gtk_widget_set_name (label, "SuperlativeLabel"); GtkWidget *slider = gtk_hslider_new (....); gtk_widget_set_name (slider, "SuperlativeSlider"); then see Havoc's FAQ on colors: http://pobox.com/~hp/gtk-colors.html >I have a list of sliders that sort of all blend together. > >* A nice border around each one would be nice to > distinguish different slider components. put them in a frame in a box having called gtk_container_set_spacing() on the box. >* Sliders DO NOT have arrows on each side like > scroll bars do!!! How get arrow buttons back????? use scrollbars, i guess .... --p From pbd@op.net Wed Feb 6 21:34:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 16DB318FF2 for ; Wed, 6 Feb 2002 21:34:21 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-230.phlpa.fast.net [209.92.227.230]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id VAA28900; Wed, 6 Feb 2002 21:34:18 -0500 (EST) Message-Id: <200202070234.VAA28900@renoir.op.net> To: "Ignacio Nodal" Cc: "GTK-List" Subject: Re: don't wanna see this CRITICAL In-reply-to: Your message of "Wed, 06 Feb 2002 19:24:47 GMT." <000f01c1af43$f3fb3200$0a01a8c0@paranoia> Date: Wed, 06 Feb 2002 21:33:11 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> >I just want to call glViewport() in my InitGL() function. I know my >> >"gl_area" isn't still realized, but I don't care... >> >> you don't, but gtkglarea.c does. just call gtk_widget_realize() on >> your glarea before calling InitGL(). >> >> --p > >I know it does, hehehe, but if I call gtk_widget_realize() the glarea will >be shown, and I don't want it to be shown so soon.. even if I use >gtk_widget_unrealize() inmediatelly after calling glViewport() I can see the >glarea.Is there anyway to realize it without been shown? :) i don't know one. however, you could invert the problem and call InitGL() from a realize signal handler for the glarea. --p From Steph.Fox@btinternet.com Wed Feb 6 21:37:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium.btinternet.com (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id 071B718541 for ; Wed, 6 Feb 2002 21:37:27 -0500 (EST) Received: from host62-7-30-93.dial.btopenworld.com ([62.7.30.93] helo=t2r1o8) by protactinium.btinternet.com with smtp (Exim 3.22 #8) id 16YeR4-0003Hy-00; Thu, 07 Feb 2002 02:37:18 +0000 Message-ID: <017b01c1af80$2aee0080$b54c073e@t2r1o8> From: "Steph" To: "Chris Seberino" , "Paul Davis" Cc: References: <200202070232.VAA28700@renoir.op.net> Subject: Re: How change color, draw border, change other stylistics of SLIDERS??? Date: Thu, 7 Feb 2002 02:35:52 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: can't you use gtk_paint_arrow()? ----- Original Message -----=20 From: "Paul Davis" To: "Chris Seberino" Cc: Sent: Thursday, February 07, 2002 2:30 AM Subject: Re: How change color, draw border, change other stylistics of = SLIDERS???=20 > killing two birds with one stone: >=20 > 1) >How change font or size of text for gtk_label_new("TEXT")??? > 2) >* Different colors would serve same purpose. >=20 > GtkWidget *label =3D gtk_label_new ("foo"); > gtk_widget_set_name (label, "SuperlativeLabel"); >=20 > GtkWidget *slider =3D gtk_hslider_new (....); > gtk_widget_set_name (slider, "SuperlativeSlider"); >=20 > then see Havoc's FAQ on colors: >=20 > http://pobox.com/~hp/gtk-colors.html >=20 > >I have a list of sliders that sort of all blend together. > > > >* A nice border around each one would be nice to > > distinguish different slider components. >=20 > put them in a frame in a box having called > gtk_container_set_spacing() on the box. >=20 > >* Sliders DO NOT have arrows on each side like > > scroll bars do!!! How get arrow buttons back????? >=20 > use scrollbars, i guess .... >=20 > --p > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From rhfreeman@micron.com Thu Feb 7 04:53:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id 34EEB185F2 for ; Thu, 7 Feb 2002 04:53:38 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g179rbu14851 for ; Thu, 7 Feb 2002 02:53:37 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g179raV14846 for ; Thu, 7 Feb 2002 02:53:37 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 02:53:35 -0700 Message-ID: From: rhfreeman To: GTK Mailing List Subject: RE: Paned questions Date: Thu, 7 Feb 2002 02:53:35 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes thanks Olaf (and Thomas) for your input. The solution I used in the end was to have vpaneds in vpaneds to give all the levels I need. So in Olaf's example, hpaned2's pack1 widget was infact hpaned1! I can have as many hboxes as I need now and have some sort of paned control over them. Just one question now. My hboxes have a drawing_area in them which I need to resize. However, I can't tell the difference between the main window being re-sized and the paned widget re-sizing the hbox. I need to handle these differently! Does the paned widget give out a different signal or something similar I can use to tell the two events apart? Thanks!!! Rich > -----Original Message----- > From: Olaf Leidinger [mailto:leidola@newcon.de] > Sent: 04 February 2002 15:26 > To: rhfreeman; GTK Mailing List > Subject: Re: Paned questions > > > Am 04 Feb 2002 03:54:58 -0700 schrieb rhfreeman: > > Hi folks, > > > > I'm wanting to use the paned widgets to re-size my current > widgets but I'm a > > bit unsure about how it works. > > > > My program is quite simple. It has a window with a vbox in > it. It keeps > > adding hboxes to the vbox like this: > > > > (no hboxes) > > > > +------------+ > > | | > > | | > > | | > > | | > > | | > > +------------+ > > > > +------------+ > > | | > > | | > > | (hbox) | > > | | > > | | > > +------------+ > > > > +------------+ > > | hbox 1 | > > | | > > |------------| > > | hbox 2 | > > | | > > +------------+ > > > > +------------+ > > | hbox 1 | > > |------------| > > | hbox 2 | > > |------------| > > | hbox 3 | > > +------------+ > > > > I want a paned widget on the separator between hboxes. So I > want a paned > > widget controlling hbox1/hbox2 and another one controlling > hbox2/hbox3. > > > > So my questions are: > > > > 1. Can a widget have multiple paned widgets attached to it? > > 2. Can a paned widget control any widget type? As most > example code I've > > seen seems to be re-sizing a frame. > > > > Thanks!!! > > > > Rich > > _______________________________________________ > > gtk-list mailing list > > gtk-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > Hello! > > As I understood it a paned widget has two containers where you can add > widgets, a left side and a right one (or an upper and a lower). > > +--------------+ > | | > | container 1 | > | | > +=== gutter ===+ > | | > | container 2 | > | | > +--------------+ > > You can surely make a hbox to be child of a container. > And I think you don't have to set all the two childs of a paned widget > so you might create the following combination: > > +----vbox----------+ > | +- hpaned 1----+ | > | | | | > | | child 1 | | > | | | | > | +=== gutter ===+ | > | | | | > | | child 2 | | > | | | | > | +--------------+ | > | +- hpaned 2 ---+ | > | | | | > | | empty/not | | > | | visible | | > | | | | > | +=== gutter ===+ | > | | | | > | | child 2 | | > | | | | > | +--------------+ | > +------------------+ > > or something similar. > > Ciao > > Olaf > From rhfreeman@micron.com Thu Feb 7 05:47:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id 837C218319 for ; Thu, 7 Feb 2002 05:47:13 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g17AlCu08143 for ; Thu, 7 Feb 2002 03:47:12 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g17AlCV08139 for ; Thu, 7 Feb 2002 03:47:12 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 03:47:11 -0700 Message-ID: From: rhfreeman To: GTK Mailing List Subject: RE: Paned questions Date: Thu, 7 Feb 2002 03:47:09 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: As much as I hate to follow myself up! I've got the resizing working properly now thanks to using the resize event. A lot easier than I thought it would be. Now the other problem I've got also exists in the paned.c example program that comes with GTK. When you maximise the window, only the bottom widget gets expanded and the top widget remains the same size. I'd like them to be expanded proportionally together! Is there anyway of doing this? Thanks again! Rich > -----Original Message----- > From: rhfreeman [mailto:rhfreeman@micron.com] > Sent: 07 February 2002 09:54 > To: GTK Mailing List > Subject: RE: Paned questions > > > Yes thanks Olaf (and Thomas) for your input. The solution I > used in the end > was to have vpaneds in vpaneds to give all the levels I need. > So in Olaf's > example, hpaned2's pack1 widget was infact hpaned1! I can have as many > hboxes as I need now and have some sort of paned control over them. > > Just one question now. My hboxes have a drawing_area in them > which I need to > resize. However, I can't tell the difference between the main > window being > re-sized and the paned widget re-sizing the hbox. I need to > handle these > differently! Does the paned widget give out a different > signal or something > similar I can use to tell the two events apart? > > Thanks!!! > > Rich > > > -----Original Message----- > > From: Olaf Leidinger [mailto:leidola@newcon.de] > > Sent: 04 February 2002 15:26 > > To: rhfreeman; GTK Mailing List > > Subject: Re: Paned questions > > > > > > Am 04 Feb 2002 03:54:58 -0700 schrieb rhfreeman: > > > Hi folks, > > > > > > I'm wanting to use the paned widgets to re-size my current > > widgets but I'm a > > > bit unsure about how it works. > > > > > > My program is quite simple. It has a window with a vbox in > > it. It keeps > > > adding hboxes to the vbox like this: > > > > > > (no hboxes) > > > > > > +------------+ > > > | | > > > | | > > > | | > > > | | > > > | | > > > +------------+ > > > > > > +------------+ > > > | | > > > | | > > > | (hbox) | > > > | | > > > | | > > > +------------+ > > > > > > +------------+ > > > | hbox 1 | > > > | | > > > |------------| > > > | hbox 2 | > > > | | > > > +------------+ > > > > > > +------------+ > > > | hbox 1 | > > > |------------| > > > | hbox 2 | > > > |------------| > > > | hbox 3 | > > > +------------+ > > > > > > I want a paned widget on the separator between hboxes. So I > > want a paned > > > widget controlling hbox1/hbox2 and another one controlling > > hbox2/hbox3. > > > > > > So my questions are: > > > > > > 1. Can a widget have multiple paned widgets attached to it? > > > 2. Can a paned widget control any widget type? As most > > example code I've > > > seen seems to be re-sizing a frame. > > > > > > Thanks!!! > > > > > > Rich > > > _______________________________________________ > > > gtk-list mailing list > > > gtk-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/gtk-list > > > > > > > Hello! > > > > As I understood it a paned widget has two containers where > you can add > > widgets, a left side and a right one (or an upper and a lower). > > > > +--------------+ > > | | > > | container 1 | > > | | > > +=== gutter ===+ > > | | > > | container 2 | > > | | > > +--------------+ > > > > You can surely make a hbox to be child of a container. > > And I think you don't have to set all the two childs of a > paned widget > > so you might create the following combination: > > > > +----vbox----------+ > > | +- hpaned 1----+ | > > | | | | > > | | child 1 | | > > | | | | > > | +=== gutter ===+ | > > | | | | > > | | child 2 | | > > | | | | > > | +--------------+ | > > | +- hpaned 2 ---+ | > > | | | | > > | | empty/not | | > > | | visible | | > > | | | | > > | +=== gutter ===+ | > > | | | | > > | | child 2 | | > > | | | | > > | +--------------+ | > > +------------------+ > > > > or something similar. > > > > Ciao > > > > Olaf > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From jyothi@ncoretech.com Thu Feb 7 07:25:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id EFD0C180EC for ; Thu, 7 Feb 2002 07:25:39 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CPWY14193 for ; Thu, 7 Feb 2002 17:55:32 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g17CPWM17065 for gtk-list@gnome.org.VIRCHECK; Thu, 7 Feb 2002 17:55:32 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CPTK16974 for ; Thu, 7 Feb 2002 17:55:31 +0530 Message-ID: <3C627D7D.14BCF07F@ncoretech.com> Date: Thu, 07 Feb 2002 18:43:33 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Differentiating between Entry and Text Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 7 17:55:31 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a function for which I am getting Widget reference from some other function. >From this reference, I have to check whether this widget is GtkEntry or GtkText. How can I do it?? Thanks in Advance, Jyothi. From jyothi@ncoretech.com Thu Feb 7 07:28:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id 111FD184BE for ; Thu, 7 Feb 2002 07:28:04 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CRxY14219 for ; Thu, 7 Feb 2002 17:57:59 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g17CRxE17782 for gtk-list@gnome.org.VIRCHECK; Thu, 7 Feb 2002 17:57:59 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CRwK17693 for ; Thu, 7 Feb 2002 17:57:58 +0530 Message-ID: <3C627E13.7BB09226@ncoretech.com> Date: Thu, 07 Feb 2002 18:46:03 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Scribble in gtk tutorial Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 7 17:57:58 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In the scribble-xinput, when I press on Input-dialog, it say no input devices with a close button. How to solve this problem ??? What are these input devices ? Is it the mouse or stylus ??. If so how do I specify it ??.. Thanks in Advance, Jyothi. From jyothi@ncoretech.com Thu Feb 7 07:31:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id 5F52518758 for ; Thu, 7 Feb 2002 07:30:59 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CUsY14246 for ; Thu, 7 Feb 2002 18:00:54 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g17CUsM18212 for gtk-list@gnome.org.VIRCHECK; Thu, 7 Feb 2002 18:00:54 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g17CUsK18123 for ; Thu, 7 Feb 2002 18:00:54 +0530 Message-ID: <3C627EC3.7D550AF0@ncoretech.com> Date: Thu, 07 Feb 2002 18:48:59 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Regarding Scribble Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 7 18:00:54 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In gtk tutorial , scribble program is written to draw anything on the Drawing area. How do I capture the data written in the scribbling pad as soon as a button-release-event occurs ??..... Thanks in advance, Jyothi. From Padraig.Obriain@Sun.COM Thu Feb 7 07:36:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34]) by mail.gnome.org (Postfix) with ESMTP id E6FED18655 for ; Thu, 7 Feb 2002 07:36:11 -0500 (EST) Received: from dub-mail1.Ireland.Sun.COM ([129.156.220.70]) by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id FAA22891; Thu, 7 Feb 2002 05:35:44 -0700 (MST) Received: from maxfly (maxfly [129.156.238.23]) by dub-mail1.Ireland.Sun.COM (8.10.2+Sun/8.10.2/ENSMAIL,v2.1p1) with SMTP id g17CZZu08973; Thu, 7 Feb 2002 12:35:36 GMT Message-Id: <200202071235.g17CZZu08973@dub-mail1.Ireland.Sun.COM> Date: Thu, 7 Feb 2002 12:35:35 +0000 (GMT) From: "Padraig O'Briain" Reply-To: "Padraig O'Briain" Subject: Re: Differentiating between Entry and Text To: gtk-list@gnome.org, jyothi@ncoretech.com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: zJaRscvW169XYD6ZS0zrDQ== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4 SunOS 5.8 sun4u sparc Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: if (GTK_IS_ENTRY (widget)) { ... } else if (GTK_IS_TEXT (widget)) { ... } Padraig > Hi, > > I have a function for which I am getting Widget reference from some > other function. > >From this reference, I have to check whether this widget is GtkEntry or > GtkText. How can I do it?? > > Thanks in Advance, > Jyothi. > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From inimss@yahoo.com Thu Feb 7 09:36:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp016.mail.yahoo.com (smtp016.mail.yahoo.com [216.136.174.113]) by mail.gnome.org (Postfix) with SMTP id 1BA981888C for ; Thu, 7 Feb 2002 09:36:53 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 7 Feb 2002 14:36:50 -0000 Message-ID: <3C61B4BF.2CF01D34@yahoo.com> Date: Thu, 07 Feb 2002 04:27:03 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list Subject: [INIMSS] Which is the best place to initialize widgets in a window. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Which is the best event handler to be used for initializing the widgets in a window, (to load data into it). Thanks Dino Cherian K _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From inimss@yahoo.com Thu Feb 7 10:23:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by mail.gnome.org (Postfix) with SMTP id EBB2D18500 for ; Thu, 7 Feb 2002 10:23:16 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.173) by smtp.mail.vip.sc5.yahoo.com with SMTP; 7 Feb 2002 15:23:15 -0000 Message-ID: <3C61BFA3.C19E3133@yahoo.com> Date: Thu, 07 Feb 2002 05:13:31 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list Subject: [INIMSS] Where can I find help for editing gtkrc? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Anybody please help me in editing a gtkrc file? What is the basic syntax of the file? Where can I find answer for these questions? Thanks Dino _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From coframi.balr001@rd.francetelecom.com Thu Feb 7 10:35:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id CE3EA188C4 for ; Thu, 7 Feb 2002 10:35:54 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M417RQ5>; Thu, 7 Feb 2002 16:29:00 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , gtk-list Subject: RE: [INIMSS] Where can I find help for editing gtkrc? Date: Thu, 7 Feb 2002 16:28:57 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-94cad57a-1acd-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-94cad57a-1acd-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AFEC.28E4A3E0" ------_=_NextPart_001_01C1AFEC.28E4A3E0 Content-Type: text/plain Hello, look at http://developer.gnome.org/doc/API/2.0/gtk/gtk-resource-files.html Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : jeudi 7 fevrier 2002 00:44 A : gtk-list Objet : [INIMSS] Where can I find help for editing gtkrc? Hi Anybody please help me in editing a gtkrc file? What is the basic syntax of the file? Where can I find answer for these questions? Thanks Dino _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AFEC.28E4A3E0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] Where can I find help for editing gtkrc?

Hello,

look at http://developer.gnome.org/doc/API/2.0/gtk/gtk-resourc= e-files.html

Isabelle

-----Message d'origine-----
De : Dino Cherian K [mailto:inimss@yahoo.com]
Envoye : jeudi 7 fevrier 2002 00:44
A : gtk-list
Objet : [INIMSS] Where can I find help for editing = gtkrc?


Hi

Anybody please help me in editing a gtkrc = file?
What is the basic syntax of the file?
Where can I find answer for these questions?

Thanks
Dino

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

------_=_NextPart_001_01C1AFEC.28E4A3E0-- ------=_NextPartTM-000-94cad57a-1acd-11d6-b1e5-00508b69ab48-- From coframi.balr001@rd.francetelecom.com Thu Feb 7 11:18:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id A0B3A185E9 for ; Thu, 7 Feb 2002 11:18:09 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M417R6S>; Thu, 7 Feb 2002 16:42:37 +0100 Message-ID: From: zze-coframi balr001 To: 'Dino Cherian K' , gtk-list Subject: RE: [INIMSS] Where can I find help for editing gtkrc? Date: Thu, 7 Feb 2002 16:42:34 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-94cad60f-1acd-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-94cad60f-1acd-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AFEE.0F9ED7F0" ------_=_NextPart_001_01C1AFEE.0F9ED7F0 Content-Type: text/plain Hi again, Look also at http://www106.pair.com/rhp/gtk-colors.html Isabelle -----Message d'origine----- De : Dino Cherian K [mailto:inimss@yahoo.com] Envoye : jeudi 7 fevrier 2002 00:44 A : gtk-list Objet : [INIMSS] Where can I find help for editing gtkrc? Hi Anybody please help me in editing a gtkrc file? What is the basic syntax of the file? Where can I find answer for these questions? Thanks Dino _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1AFEE.0F9ED7F0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable RE: [INIMSS] Where can I find help for editing gtkrc?

Hi again,

Look also at  http://www106.pair.com/rhp/gtk-colors.html

Isabelle

-----Message d'origine-----
De : Dino Cherian K [mailto:inimss@yahoo.com]
Envoye : jeudi 7 fevrier 2002 00:44
A : gtk-list
Objet : [INIMSS] Where can I find help for editing = gtkrc?


Hi

Anybody please help me in editing a gtkrc = file?
What is the basic syntax of the file?
Where can I find answer for these questions?

Thanks
Dino

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

------_=_NextPart_001_01C1AFEE.0F9ED7F0-- ------=_NextPartTM-000-94cad60f-1acd-11d6-b1e5-00508b69ab48-- From stonybrk@ix.netcom.com Thu Feb 7 11:27:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mclean.mail.mindspring.net (mclean.mail.mindspring.net [207.69.200.57]) by mail.gnome.org (Postfix) with ESMTP id E52D1185E9 for ; Thu, 7 Feb 2002 11:27:52 -0500 (EST) Received: from user-2iniv4a.dialup.mindspring.com ([165.121.124.138] helo=norman) by mclean.mail.mindspring.net with smtp (Exim 3.33 #1) id 16YrOU-0005a6-00; Thu, 07 Feb 2002 11:27:30 -0500 Message-ID: <005701c1aff4$5802e3f0$0200a8c0@norman> From: "Norman Black" To: "Chris Seberino" Cc: "gtk-list" References: <20020206153756.B1515@spawar.navy.mil> Subject: Re: How change size/font of gtk_label_new("TEXT")??? Date: Thu, 7 Feb 2002 08:27:31 -0800 Organization: Stony Brook Software 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a Modula-2 code snip, but I think you get the idea. rc_style := gtk_rc_style_new(); rc_style^.font_name := YourFontNameGoesHere; gtk_widget_modify_style(YourWidget, rc_style); gtk_rc_style_unref(rc_style); The font name is just like a Gdk font name used for gdk_font_load Best Regards, Norman Black Stony Brook Software ----- Original Message ----- From: "Chris Seberino" To: Sent: Wednesday, February 06, 2002 3:37 PM Subject: How change size/font of gtk_label_new("TEXT")??? > How change font or size of text for gtk_label_new("TEXT")??? > > cs > -- > ======================================================= > | Dr. Christian Seberino || (619) 553-7940 (office) | > | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | > | 53560 HULL ST || | > | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | > ======================================================= > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From rtk@cmed.com Thu Feb 7 11:32:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.cmed.com (mail.cmed.com [12.147.70.66]) by mail.gnome.org (Postfix) with SMTP id BF75B18B29 for ; Thu, 7 Feb 2002 11:32:41 -0500 (EST) Received: from no.name.available by mail.cmed.com via smtpd (for moniker.gnome.org [209.116.70.73]) with SMTP; 7 Feb 2002 16:32:41 UT Received: by exchange.cmed.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 09:32:40 -0700 Message-ID: From: Ronald Kneusel To: "'gtk-list@gnome.org'" Subject: GtkEntry not accepting keyboard input (GTK+ 1.2)? Date: Thu, 7 Feb 2002 09:32:31 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a GtkEntry which is attached to a fixed widget and that is attached to a frame in another fixed widget. The entry box appears and I can set the text, highlight the text with the mouse, but cannot type in the box. Anything typed appears at the shell prompt. Why? Am I missing a step? I've set the widget to "editable" with no appearant effect. Ron Kneusel rtk@cmed.com From pbd@op.net Thu Feb 7 11:39:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 1C5C618822 for ; Thu, 7 Feb 2002 11:39:49 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-105.phlpa.fast.net [209.92.99.105]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA09652; Thu, 7 Feb 2002 11:39:41 -0500 (EST) Message-Id: <200202071639.LAA09652@renoir.op.net> To: Dino Cherian K Cc: gtk-list Subject: Re: [INIMSS] Which is the best place to initialize widgets in a window. In-reply-to: Your message of "Thu, 07 Feb 2002 04:27:03 +0530." <3C61B4BF.2CF01D34@yahoo.com> Date: Thu, 07 Feb 2002 11:38:41 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Which is the best event handler to be used for initializing the widgets >in a window, (to load data into it). the expose event is where the widget gets drawn, so that would be the obvious place. just do your stuff, and return FALSE. the regular drawing code will then happen as expected, using your data. i sometimes use map_event for widgets that need to be rebuilt every time they are "mapped" (XWindow terminology for the step of taking the X server data structure for a window and making its contents appear on a display). however, in general, i think you should be using the expose event. --p From eg_hyy@stu.ust.hk Thu Feb 7 12:16:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx3.ust.hk (mx3.ust.hk [143.89.13.11]) by mail.gnome.org (Postfix) with ESMTP id 266BE1819C for ; Thu, 7 Feb 2002 12:16:00 -0500 (EST) Received: from webmaild.ust.hk (webmaild.ust.hk [143.89.14.206]) by mx3.ust.hk (8.11.5/8.11.5) with ESMTP id g17HFvB09001 for ; Fri, 8 Feb 2002 01:15:57 +0800 Received: from localhost (localhost [[UNIX: localhost]]) by webmaild.ust.hk (8.9.3/8.9.3) id BAA08796; Fri, 8 Feb 2002 01:15:56 +0800 Message-Id: <200202071715.BAA08796@webmaild.ust.hk> User-Agent: IMHO/0.97.1 (HKUST Webmail 1.0b) MIME-Version: 1.0 X-Originating-IP: [61.15.163.60] To: gtk-list@gnome.org Content-Transfer-Encoding: 8bit Date: Fri, 08 Feb 2002 01:15:56 +0800 Content-Type: text/plain; charset=iso-8859-1 From: Subject: callbacks function of apply in glade Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear all, I am a newbie and I have some question about the callbacks function of "apply" signal in glade. I have a propertybox which have 3 pages with one "apply" button automatically created by glade. I set something in the apply callbacks function, and I find that each time I press the apply button, the program go into the apply callbacks function serveral times!! I afraid that this will slow down my program. Because my apply callbacks function is quite complicated and long...and i afraid that if each time user click "apply" for once, but the program go into the apply callbacks function serveral times, this will really slow down my program. I would be very pleased that u have some suggestion for me. From hp@redhat.com Thu Feb 7 12:40:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id DC21A18306 for ; Thu, 7 Feb 2002 12:40:05 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g17HdtU24886; Thu, 7 Feb 2002 12:39:55 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Kneusel Cc: "'gtk-list@gnome.org'" Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? References: From: Havoc Pennington Date: 07 Feb 2002 12:39:55 -0500 In-Reply-To: Message-ID: Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Kneusel writes: > I have a GtkEntry which is attached to a fixed widget and that is > attached to a frame in another fixed widget. > > The entry box appears and I can set the text, highlight the text > with the mouse, but cannot type in the box. Anything typed appears > at the shell prompt. > > Why? Am I missing a step? I've set the widget to "editable" with > no appearant effect. > Sounds like your window manager still has focus on the terminal console window, instead of your GTK app. Why that is, I don't know. Havoc From rtk@cmed.com Thu Feb 7 12:44:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.cmed.com (mail.cmed.com [12.147.70.66]) by mail.gnome.org (Postfix) with SMTP id 4298318CB2 for ; Thu, 7 Feb 2002 12:44:13 -0500 (EST) Received: from no.name.available by mail.cmed.com via smtpd (for moniker.gnome.org [209.116.70.73]) with SMTP; 7 Feb 2002 17:44:13 UT Received: by exchange.cmed.com with Internet Mail Service (5.5.2653.19) id ; Thu, 7 Feb 2002 10:44:07 -0700 Message-ID: From: Ronald Kneusel To: Cc: "'gtk-list@gnome.org'" Subject: RE: GtkEntry not accepting keyboard input (GTK+ 1.2)? Date: Thu, 7 Feb 2002 10:44:06 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > -----Original Message----- > From: Havoc Pennington [SMTP:hp@redhat.com] > Sent: Thursday, February 07, 2002 10:40 AM > To: Ronald Kneusel > Cc: 'gtk-list@gnome.org' > Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? > > > Ronald Kneusel writes: > > I have a GtkEntry which is attached to a fixed widget and that is > > attached to a frame in another fixed widget. > > > > The entry box appears and I can set the text, highlight the text > > with the mouse, but cannot type in the box. Anything typed appears > > at the shell prompt. > > > > Why? Am I missing a step? I've set the widget to "editable" with > > no appearant effect. > > > >Sounds like your window manager still has focus on the terminal >console window, instead of your GTK app. Why that is, I don't know. You were correct! I created a full screen window as a POPUP window and it wasn't getting keyboard focus. I made it a TOPLEVEL window without decorations and all it well. Thanks! Ron From flavio@maqplas.com.br Thu Feb 7 13:21:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id 535F218519 for ; Thu, 7 Feb 2002 13:21:41 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g17ILPD1021073; Thu, 7 Feb 2002 16:21:26 -0200 (BRST) Subject: RE: GtkEntry not accepting keyboard input (GTK+ 1.2)? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Ronald Kneusel Cc: "'gtk-list@gnome.org'" In-Reply-To: References: Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 07 Feb 2002 16:17:31 -0200 Message-Id: <1013105854.1178.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I had this same problem! I wanna create a full window popup (modal for my applications) but it didn't have focus... The solution, I don't know if is elegant, but works, I create a window TOPLEVEL with 0x0 dimension and I atached this big popup Window, when I run the program, the focus came in to this little window and my window has focus. Good Lucky Good Work Success Flavio Alberto Em 07 Feb 2002 10:44:06 -0700, Ronald Kneusel escreveu: > > > > -----Original Message----- > > From: Havoc Pennington [SMTP:hp@redhat.com] > > Sent: Thursday, February 07, 2002 10:40 AM > > To: Ronald Kneusel > > Cc: 'gtk-list@gnome.org' > > Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? > > > > > > Ronald Kneusel writes: > > > I have a GtkEntry which is attached to a fixed widget and that is > > > attached to a frame in another fixed widget. > > > > > > The entry box appears and I can set the text, highlight the text > > > with the mouse, but cannot type in the box. Anything typed appears > > > at the shell prompt. > > > > > > Why? Am I missing a step? I've set the widget to "editable" with > > > no appearant effect. > > > > > > >Sounds like your window manager still has focus on the terminal > >console window, instead of your GTK app. Why that is, I don't know. > > You were correct! I created a full screen window as a POPUP window > and it wasn't getting keyboard focus. I made it a TOPLEVEL window > without decorations and all it well. > > Thanks! > > Ron > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From doc@deadvirgins.org.uk Thu Feb 7 14:01:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand3.global.net.uk (sand3.global.net.uk [195.147.246.249]) by mail.gnome.org (Postfix) with ESMTP id 66DF5181AA for ; Thu, 7 Feb 2002 14:01:25 -0500 (EST) Received: from pacs13a06.client.global.net.uk ([195.147.221.173] helo=deadvirgins.org.uk) by sand3.global.net.uk with esmtp (Exim 3.22 #1) id 16YtnO-0000bb-00 for gtk-list@gnome.org; Thu, 07 Feb 2002 19:01:23 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g17J0Sx00202 for gtk-list@gnome.org; Thu, 7 Feb 2002 19:00:28 GMT Message-Id: <200202071900.g17J0Sx00202@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: gtk-list@gnome.org Subject: Creating widgets with auto-repeat Date: Thu, 7 Feb 2002 19:00:28 +0000 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks to the people who pointed me in the right direction regarding my question about auto-repeating buttons. The spinbutton source code did indeed gave me some ideas and I've hacked together the following "code" which I thought others might find useful as a starting point, particularly in light of the fact that someone asked a similar question straight after me. The auto-repeat starts after the button is held for 500ms, then goes through two levels of speedup if the button is still pressed. Perhaps someone with a bit more experience of this sort of thing could point out a neat way to avoid all the globals here, so this code could be reused in a more generic way... Perosnally, I *like* globals... :-) /******** CODE BEGINS *********************************/ #include #include #define REPEAT_STAGE0_DELAY 500 #define REPEAT_STAGE1_DELAY 50 #define REPEAT_STAGE2_DELAY 3 guint32 timer_id = 0; gint timer_state = 0; gint timer_count = 0; gint value = 0; /* Timer callback function! */ static gint timer_func ( void ) { /* Autorepeat state machine */ switch (timer_state) { case 0: /* Enable slow auto-repeat */ gtk_timeout_remove(timer_id); timer_id = gtk_timeout_add( REPEAT_STAGE1_DELAY, (GtkFunction)timer_func, NULL); timer_state = 1; timer_count = 0; break; case 1: /* Check if it's time for fast repeat yet */ if (timer_count++ > 50) timer_state = 2; break; case 2: /* Start fast auto-repeat */ gtk_timeout_remove(timer_id); timer_id = gtk_timeout_add( REPEAT_STAGE2_DELAY, (GtkFunction)timer_func, NULL); timer_state = 3; break; default: break; } /* Increment value */ printf("value: %d\n", value++); return TRUE; } void button_press_proc( GtkWidget *widget, gpointer data ) { /* Increment value */ printf("VALUE: %d\n", value++); /* Remove an existing timer */ if (timer_id) gtk_timeout_remove(timer_id); /* Setup a timer */ timer_id = gtk_timeout_add( REPEAT_STAGE0_DELAY, (GtkFunction)timer_func, NULL); timer_state = 0; } void button_release_proc( GtkWidget *widget, gpointer data ) { /* Remove timer */ gtk_timeout_remove(timer_id); timer_id = 0; timer_state = 0; } int main( int argc, char *argv[] ) { GtkWidget *window; GtkWidget *button; gtk_init(&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_set_border_width (GTK_CONTAINER (window), 10); button = gtk_button_new_with_label (" INCREMENT "); gtk_signal_connect (GTK_OBJECT (button), "button_press_event", GTK_SIGNAL_FUNC (button_press_proc), NULL); gtk_signal_connect (GTK_OBJECT (button), "button_release_event", GTK_SIGNAL_FUNC (button_release_proc), NULL); gtk_container_add (GTK_CONTAINER (window), button); gtk_widget_show (button); gtk_widget_show (window); gtk_main (); return(0); } /***************** END OF CODE *********************************/ -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From pbd@op.net Thu Feb 7 14:22:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 8AE96183E5 for ; Thu, 7 Feb 2002 14:22:19 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-24.phlpa.fast.net [209.92.99.24]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA27978; Thu, 7 Feb 2002 14:22:14 -0500 (EST) Message-Id: <200202071922.OAA27978@renoir.op.net> To: doc@deadvirgins.org.uk Cc: gtk-list@gnome.org Subject: Re: Creating widgets with auto-repeat In-reply-to: Your message of "Thu, 07 Feb 2002 19:00:28 GMT." <200202071900.g17J0Sx00202@deadvirgins.org.uk> Date: Thu, 07 Feb 2002 14:21:16 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Perhaps someone with a bit more experience of this sort of thing could point >out a neat way to avoid all the globals here, so this code could be reused >in a more generic way... > >Perosnally, I *like* globals... :-) you are right about needing a bit more experience :) >guint32 timer_id = 0; >gint timer_state = 0; >gint timer_count = 0; >gint value = 0; typedef struct timer_func_info { guint32 timer_id; gint timer_state; gint timer_count; gint value; } timer_func_info_t; >/* Timer callback function! */ >static gint timer_func (gpointer data ) >{ timer_func_info_t *info = (timer_func_info_t *) data; ... now use info-> instead of the globals. > return TRUE; > >} > >void button_press_proc( GtkWidget *widget, gpointer data ) >{ timer_func_info_t *info = (timer_func_info_t *) data; > /* Increment value */ > printf("VALUE: %d\n", value++); > > /* Setup a timer */ info->value++; info->count = 0; info->state = 0; > info->timer_id = gtk_timeout_add(REPEAT_STAGE0_DELAY, (GtkFunction)timer_func, info); >} > >void button_release_proc( GtkWidget *widget, gpointer data ) >{ > > /* Remove timer */ timer_func_info_t *info = (timer_func_info_t *) data; gtk_timeout_remove(info->timer_id); >} > >int main( int argc, char *argv[] ) >{ > GtkWidget *window; > GtkWidget *button; timer_func_info_t info; > > gtk_init(&argc, &argv); info->value = 0; > window = gtk_window_new (GTK_WINDOW_TOPLEVEL); > gtk_container_set_border_width (GTK_CONTAINER (window), 10); > button = gtk_button_new_with_label (" INCREMENT "); gtk_signal_connect (GTK_OBJECT (button), "button_press_event", GTK_SIGNAL_FUNC (button_press_proc), &info); gtk_signal_connect (GTK_OBJECT (button), "button_release_event", GTK_SIGNAL_FUNC (button_release_proc), &info); > gtk_container_add (GTK_CONTAINER (window), button); > gtk_widget_show (button); > gtk_widget_show (window); > gtk_main (); > > return(0); >} all clear? --p From hp@redhat.com Thu Feb 7 15:00:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id A5E5118110 for ; Thu, 7 Feb 2002 15:00:52 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g17K0fS14001; Thu, 7 Feb 2002 15:00:41 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Kneusel Cc: "'gtk-list@gnome.org'" Subject: Re: GtkEntry not accepting keyboard input (GTK+ 1.2)? References: From: Havoc Pennington Date: 07 Feb 2002 15:00:41 -0500 In-Reply-To: Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Kneusel writes: > You were correct! I created a full screen window as a POPUP window > and it wasn't getting keyboard focus. I made it a TOPLEVEL window > without decorations and all it well. Right, POPUP windows should never be used if you need to type into the window. POPUP means the window manager does not know about the window, so can't focus it. Havoc From ramses@computer.org Thu Feb 7 22:14:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id 6D49D180E1 for ; Thu, 7 Feb 2002 22:14:11 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020208031430.UJLR480.sv16@adsl50> for ; Thu, 7 Feb 2002 22:14:30 -0500 Subject: A better way to get a widget from a GnomeDialog pointer??? From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 07 Feb 2002 22:21:52 -0500 Message-Id: <1013138513.2696.18.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, check this callback: void on_add_magazine_button_clicked(GtkButton *button, gpointer user_data) { GtkWidget *dialog = create_add_magazine_dialog(); GtkWidget *entry; struct _GtkBoxChild *child; int result; GList *dialog_children = GTK_BOX(GNOME_DIALOG(dialog)->vbox)->children; result = gnome_dialog_run(GNOME_DIALOG(dialog)); if ( result == 0 ) { child = ((struct _GtkBoxChild *)(g_list_nth_data(dialog_children, 3))); entry = child->widget; g_print("%s\n", gtk_entry_get_text(GTK_ENTRY(entry))); child = ((struct _GtkBoxChild *)(g_list_nth_data(dialog_children, 5))); entry = child->widget; g_print("%s\n", gtk_entry_get_text(GTK_ENTRY(entry))); } gtk_widget_destroy(GTK_WIDGET(dialog)); } In short, this callback runs a gnome dialog and gets the data inside the two GtkEntry included on that dialog. Inside this function I only have access to the dialog widget. As you can see, I have harcoded the positions of the GtkEntry widgets inside the GList. If I modify the dialog, adding another widget, then this function will break because the entries won't be at the index 3 and 5. What can I do to have a more elegant, not harcoded way, to reference the GtkEntry widgets?? ALSO: Is it a good idea to mess around directly with struct _GtkBoxChild??? Thanks for your help. From inimss@yahoo.com Fri Feb 8 01:22:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by mail.gnome.org (Postfix) with SMTP id A537F18161 for ; Fri, 8 Feb 2002 01:22:16 -0500 (EST) Received: from unknown (HELO yahoo.com) (202.88.225.117) by smtp.mail.vip.sc5.yahoo.com with SMTP; 8 Feb 2002 06:22:14 -0000 Message-ID: <3C621201.4C140F05@yahoo.com> Date: Thu, 07 Feb 2002 11:04:57 +0530 From: Dino Cherian K X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Paul Davis , gtk-list Subject: Re: [INIMSS] Which is the best place to initialize widgets in a window. References: <200202071639.LAA09652@renoir.op.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Will the events, map_event & expose be triggered multiple times in the life of a window? My understanding is that the map event will be triggered only once, during the creation of the window for the first time, but the other one, expose, will be triggered each time the window or widget comes to the foreground (ie, its visible on the screen). Thanks Dino Paul Davis wrote: > > >Which is the best event handler to be used for initializing the widgets > >in a window, (to load data into it). > > the expose event is where the widget gets drawn, so that would be the > obvious place. just do your stuff, and return FALSE. the regular > drawing code will then happen as expected, using your data. > > i sometimes use map_event for widgets that need to be rebuilt every > time they are "mapped" (XWindow terminology for the step of taking the > X server data structure for a window and making its contents appear on > a display). however, in general, i think you should be using the > expose event. > > --p > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From zanac_fake@libero.it Fri Feb 8 02:43:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by mail.gnome.org (Postfix) with ESMTP id 1C088181ED for ; Fri, 8 Feb 2002 02:43:59 -0500 (EST) Received: from libero.it (193.70.192.44) by smtp2.libero.it (6.0.040) id 3C584044005AF09D for gtk-list@gnome.org; Fri, 8 Feb 2002 08:43:57 +0100 Date: Fri, 8 Feb 2002 08:43:56 +0100 Message-Id: Subject: =?iso-8859-1?Q?GTK_2.0_GtkTreeViewColumn_buggy=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?iso-8859-1?Q?zanac=5Ffake?=" To: gtk-list@gnome.org X-XaM3-API-Version: 2.5 X-type:0 X-SenderIP: 193.227.212.161 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SSdtIHRyeWluZyB0byBhZGQgc29tZSB3aWRnZXQgdG8gYSBHdGtUcmVlVmlldyAgdXNpbmcg IHRoZSAgZnVuY3Rpb24NCmd0a190cmVlX3ZpZXdfY29sdW1uX3NldF93aWRnZXQuIElmIGkg YWRkIGEgR3RrTGFiZWwgYWxsIHdvcmsgIGZpbmUsDQpidXQgaWYgYSBhZGQsIGZvciBleGFt cGxlLCBhIEd0a0J1dHRvbiB1c2luZyBndGtfYnV0dG9uX25ld19tbmVtb25pYw0KdGhlIGJ1 dHRvbiBkb2Vzbid0IGNhbGxiYWNrIHRvIHRoZSBjbGlja2VkIHNpZ25hbC4uLiAgYnV0IHIg ZXBseSAgdG8NCnRoZSBtbmVtb25pYyA8YWx0LXM+Lg0KDQpFdmVuIGlmIGEgYWRkIGEgR3Rr RW50cnkgdGhlIHByb2JsZW0gcGVyc2lzdC4uLg0KDQpIb3cgY2FuIGkgc29sdmUgaXQ/ From deepa.chacko@wipro.com Fri Feb 8 04:20:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id BFCA8180D8; Fri, 8 Feb 2002 04:20:49 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g189JjX20626; Fri, 8 Feb 2002 14:49:45 +0530 (IST) Received: from wipro.com ([10.114.9.180]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GR7J9300.4TQ; Fri, 8 Feb 2002 14:49:51 +0530 Message-ID: <3C639AF8.B378AA0@wipro.com> Date: Fri, 08 Feb 2002 15:01:36 +0530 From: Deepa X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org, desktop-devel-list Subject: Equivalents for gdk_input_remove,gdk_input_add etc Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi I am encountering these deprecated calls in libzvt: gdk_input_remove () gdk_input_add () gdk_rgb_init () Could anyone please tell me what is the replacement for these. Thanks in advance Deepa ------=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8 Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ******************************************************************** ------=_NextPartTM-000-89de4214-1c6d-11d6-a942-00b0d0d06be8-- From Ulrich.Kerber@faidor.de Fri Feb 8 06:38:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailrelay.faidor.de (mailrelay.faidor.de [195.126.215.15]) by mail.gnome.org (Postfix) with ESMTP id A9815181E3 for ; Fri, 8 Feb 2002 06:38:11 -0500 (EST) Received: from faiopf2005.faidor.de (xmail.faidor.de [195.126.215.2]) by mailrelay.faidor.de (8.9.3/8.9.3) with ESMTP id LAA20355 for ; Fri, 8 Feb 2002 11:29:39 +0100 Received: by faiopf2005.faidor.de with Internet Mail Service (5.5.2653.19) id <1Q3L7PTY>; Fri, 8 Feb 2002 12:38:10 +0100 Received: from dshpc004.opf.debis.de ([53.140.8.78]) by faiopf2005.faidor.de with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 1Q3L7PTW; Fri, 8 Feb 2002 12:38:08 +0100 From: "Kerber, Ulrich" To: gtk-list@gnome.org Subject: Memory problems while using a clist Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 08 Feb 2002 12:39:55 +0100 Message-Id: <1013168395.2884.11.camel@dshpc004> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I wrote an app with a clist showing the contents of a log file; the clist is updated every 60 seconds. Although i do a gtk_clist_clear, the memory used is increasing with every run, even if no element is added. After a day of work the amount reaches up to 40 MB! Does anybody know a solution to this problem? Thanks, Uli From nicholas.allen@ireland.sun.com Fri Feb 8 09:24:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kathmandu.sun.com (kathmandu.sun.com [192.18.98.36]) by mail.gnome.org (Postfix) with ESMTP id A9419190CB for ; Fri, 8 Feb 2002 09:24:25 -0500 (EST) Received: from ireserver.Ireland.Sun.COM ([129.156.220.7]) by kathmandu.sun.com (8.9.3+Sun/8.9.3) with ESMTP id HAA06534 for ; Fri, 8 Feb 2002 07:24:24 -0700 (MST) Received: from ireland.sun.com (ledzep [129.156.220.79]) by ireserver.Ireland.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.2) with ESMTP id OAA19986 for ; Fri, 8 Feb 2002 14:24:23 GMT Message-ID: <3C63DF90.1090104@ireland.sun.com> Date: Fri, 08 Feb 2002 14:24:16 +0000 From: nicholas allen Organization: Sun Microsystems User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011226 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Iconify/deioconfy gtk windows Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I can't find any API to iconify and deiconify a GtkWindow. Does anyone know how to do this? How do I listen in for an iconify/deioconify signal as well as there doesn't seem to be a signal to connect to for this event? I can't find anything useful in the Gdk library either. I thought there would be a gtk_window_iconify function or something similar. Thanks in advance for any help anyone can offer. -- Nick Allen Software Engineer Sun Microsystems Ireland Ltd Hamilton House East Point Business Park Dublin 3 email: nicholas.allen@ireland.sun.com From pbd@op.net Fri Feb 8 10:00:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id A848518165 for ; Fri, 8 Feb 2002 10:00:46 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-323.phlpa.fast.net [209.92.228.69]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA28790; Fri, 8 Feb 2002 10:00:43 -0500 (EST) Message-Id: <200202081500.KAA28790@renoir.op.net> To: Dino Cherian K Cc: gtk-list Subject: Re: [INIMSS] Which is the best place to initialize widgets in a window. In-reply-to: Your message of "Thu, 07 Feb 2002 11:04:57 +0530." <3C621201.4C140F05@yahoo.com> Date: Fri, 08 Feb 2002 09:59:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi > >Will the events, map_event & expose be triggered multiple times in the >life of a window? > >My understanding is that the map event will be triggered only once, the map event will occur every time the window is mapped, for example, when it is de-iconfied. >during the creation of the window for the first time, but the other one, >expose, will be triggered each time the window or widget comes to the >foreground (ie, its visible on the screen). the expose event will occur anytime there is an "increase" in the visibility of any part of the widget. this will include de-iconfication, raising above other windows, an occluding window being moved out of the way, etc. to repeat a point thats been several times in the last few days, since many people new to X and GTK+ don't fully grok this: with the XWindow system, the X server does *not* maintain the contents of your window on your behalf. any time visibility increases in some part of your window, *you* must be able to redraw that part from scratch. this is apparently a little different from the situation with win32, but i wouldn't know anything about that. some X servers support "save under", which will handle the redrawing for you under some circumstances, but not all, and my impression is that most people don't use this feature these days. --p From pbd@op.net Fri Feb 8 10:04:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3204A18285 for ; Fri, 8 Feb 2002 10:04:06 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-323.phlpa.fast.net [209.92.228.69]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA29100; Fri, 8 Feb 2002 10:04:03 -0500 (EST) Message-Id: <200202081504.KAA29100@renoir.op.net> To: nicholas allen Cc: gtk-list@gnome.org Subject: Re: Iconify/deioconfy gtk windows In-reply-to: Your message of "Fri, 08 Feb 2002 14:24:16 GMT." <3C63DF90.1090104@ireland.sun.com> Date: Fri, 08 Feb 2002 10:03:18 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I can't find any API to iconify and deiconify a GtkWindow. Does anyone >know how to do this? How do I listen in for an iconify/deioconify signal >as well as there doesn't seem to be a signal to connect to for this >event? I can't find anything useful in the Gdk library either. i would imagine that map_event and unmap event will correspond more or less to these changes. >I thought there would be a gtk_window_iconify function or something similar. i doubt it. under X, (de)iconification is *generally* considered to be a function of the window manager, not the application. --p From sven@gimp.org Fri Feb 8 10:28:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 2DBDD18165 for ; Fri, 8 Feb 2002 10:28:09 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZCjY-00069m-00; Fri, 08 Feb 2002 16:14:40 +0100 To: Paul Davis Cc: nicholas allen , gtk-list@gnome.org Subject: Re: Iconify/deioconfy gtk windows References: <200202081504.KAA29100@renoir.op.net> From: Sven Neumann Date: 08 Feb 2002 16:14:40 +0100 In-Reply-To: <200202081504.KAA29100@renoir.op.net> Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Paul Davis writes: > >I thought there would be a gtk_window_iconify function or something similar. > > i doubt it. under X, (de)iconification is *generally* considered to be > a function of the window manager, not the application. GTK+-2.0 has this function. Basically it calls XIconifyWindow (if using the X11 backend). Salut, Sven From hp@redhat.com Fri Feb 8 11:19:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id F07851810E; Fri, 8 Feb 2002 11:19:27 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18GJIT29439; Fri, 8 Feb 2002 11:19:18 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Deepa Cc: gtk-list@gnome.org, desktop-devel-list Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc References: <3C639AF8.B378AA0@wipro.com> From: Havoc Pennington Date: 08 Feb 2002 11:19:18 -0500 In-Reply-To: <3C639AF8.B378AA0@wipro.com> Message-ID: Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Deepa writes: > gdk_input_remove () g_source_remove() > gdk_input_add () g_io_channel_add_watch () > gdk_rgb_init () No longer required, simply delete all instances of this. Havoc From pbd@op.net Fri Feb 8 11:25:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9481318331; Fri, 8 Feb 2002 11:25:13 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-341.phlpa.fast.net [209.92.231.87]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA08014; Fri, 8 Feb 2002 11:24:52 -0500 (EST) Message-Id: <200202081624.LAA08014@renoir.op.net> To: Havoc Pennington Cc: Deepa , gtk-list@gnome.org, desktop-devel-list Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc In-reply-to: Your message of "08 Feb 2002 11:19:18 EST." Date: Fri, 08 Feb 2002 11:24:07 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >> gdk_input_remove () > >g_source_remove() > >> gdk_input_add () > >g_io_channel_add_watch () last time i looked at the replacement functions, their interface was intimidating in the extreme. it required me to understand a *LOT* more about glib than i wanted to. by contrast, gdk_input_*() were pitched at exactly the right level. i spent 10 minutes or so trying to understand g_io_channel_add_watch() and gave up. --p From hp@redhat.com Fri Feb 8 11:45:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 748AA192B6 for ; Fri, 8 Feb 2002 11:45:35 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18GjXf32623; Fri, 8 Feb 2002 11:45:33 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Kerber, Ulrich" Cc: gtk-list@gnome.org Subject: Re: Memory problems while using a clist References: <1013168395.2884.11.camel@dshpc004> From: Havoc Pennington Date: 08 Feb 2002 11:45:33 -0500 In-Reply-To: <1013168395.2884.11.camel@dshpc004> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Kerber, Ulrich" writes: > I wrote an app with a clist showing the contents of a log file; the > clist is updated every 60 seconds. Although i do a gtk_clist_clear, > the memory used is increasing with every run, even if no element is > added. After a day of work the amount reaches up to 40 MB! > Does anybody know a solution to this problem? > You just need to debug it. Use a tool such as "memprof" to see where the memory is leaked. Havoc From hp@redhat.com Fri Feb 8 11:46:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id BB639192CB for ; Fri, 8 Feb 2002 11:46:35 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18GkV132627; Fri, 8 Feb 2002 11:46:31 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: nicholas allen Cc: gtk-list@gnome.org Subject: Re: Iconify/deioconfy gtk windows References: <3C63DF90.1090104@ireland.sun.com> From: Havoc Pennington Date: 08 Feb 2002 11:46:31 -0500 In-Reply-To: <3C63DF90.1090104@ireland.sun.com> Message-ID: Lines: 11 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: nicholas allen writes: > I thought there would be a gtk_window_iconify function or something > similar. GTK 2 has this function. In 1.2, you probably want to look at the GTK 2 source and copy what it does. Check out the ICCCM to understand why it does it. Havoc From hp@redhat.com Fri Feb 8 12:30:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 51D0C180F8; Fri, 8 Feb 2002 12:30:38 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g18HUat32647; Fri, 8 Feb 2002 12:30:36 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: Deepa , gtk-list@gnome.org, desktop-devel-list Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc References: <200202081624.LAA08014@renoir.op.net> From: Havoc Pennington Date: 08 Feb 2002 12:30:36 -0500 In-Reply-To: <200202081624.LAA08014@renoir.op.net> Message-ID: Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > last time i looked at the replacement functions, their interface was > intimidating in the extreme. it required me to understand a *LOT* more > about glib than i wanted to. by contrast, gdk_input_*() were pitched > at exactly the right level. i spent 10 minutes or so trying to > understand g_io_channel_add_watch() and gave up. > I agree there should be a g_input_add() type of thing. One for bugzilla. It's really not hard though (you just create an IO channel using g_io_channel_unix_new(), g_io_channel_add_watch(), then g_io_channel_unref()). The only difference is having to wrap the file descriptor in the IOChannel deal. Havoc From zanac_fake@libero.it Fri Feb 8 13:18:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by mail.gnome.org (Postfix) with ESMTP id 46E20181E8 for ; Fri, 8 Feb 2002 13:18:59 -0500 (EST) Received: from libero.it (193.70.192.58) by smtp2.libero.it (6.0.040) id 3C5840440061FB84 for gtk-list@gnome.org; Fri, 8 Feb 2002 19:18:57 +0100 Date: Fri, 8 Feb 2002 19:18:49 +0100 Message-Id: Subject: =?iso-8859-1?Q?sample_source_of_buggy_gtk_2.0_function?= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?iso-8859-1?Q?zanac=5Ffake?=" To: gtk-list@gnome.org X-XaM3-API-Version: 2.5 X-type:0 X-SenderIP: 151.25.54.250 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQoNCmFzIGkgbWVudGlvbmVkIGluIGFub3RoZXIgcG9zdCBpIHRoaW5rIHRoYXQgR3Rr VHJlZVZpZXdDb2x1bW4gaXMgYnVnZ3ksDQpidXQgbm8gb25lIGhlbHBlZCBtZS4uLiBzbyBp IGhhdmUganVzdCB3cml0ZSB0aGlzIHNtYWxsIHNhbXBsZSB0aGF0IHlvdQ0KY2FuIHVzZSB0 byB0cnkgdGhpcyBwcm9ibGVtLiBJbiB0aGlzIHNhbXBsZSBpZiB5b3UgcHJlc3MgPGFsdCt1 PiB0aGUNCmJ1dHRvbjIgd29yaywgYnV0IGlmIHlvdSB1c2UgdGhlIG1vdXNlLi4uLi4uLi4u Lg0KDQpieWVaIQ0KDQpfX19fX19fX19fX19fX19fX19jdXQgaGVyZSEhIV9fX19fX19fX19f X19fX19fX19fX19fX19fDQoNCg0KI2luY2x1ZGUgPGd0ay9ndGsuaD4NCg0KdHlwZWRlZiBz dHJ1Y3QNCnsNCiAgZ2ludCAgICAgbnVtYmVyOw0KICBnY2hhciAgICpwcm9kdWN0Ow0KfQ0K SXRlbTsNCg0KZW51bQ0Kew0KICBDT0xVTU5fTlVNQkVSLA0KICBDT0xVTU5fUFJPRFVDVCwN CiAgTlVNX0NPTFVNTlMNCn07DQoNCnN0YXRpYyBHQXJyYXkgKmFydGljbGVzID0gTlVMTDsN Cg0KDQoNCmludCBmbGFnID0gMDsNCmludCBmbGFnMiA9IDE7DQoNCkd0a1dpZGdldCAqYnV0 dG9uMTsNCkd0a1dpZGdldCAqYnV0dG9uMjsNCkd0a1dpZGdldCAqdmlldzsNCg0KLyogT3Vy IG5ldyBpbXByb3ZlZCBjYWxsYmFjay4gIFRoZSBkYXRhIHBhc3NlZCB0byB0aGlzIGZ1bmN0 aW9uDQogKiBpcyBwcmludGVkIHRvIHN0ZG91dC4gKi8NCnZvaWQgY2FsbGJhY2soIEd0a1dp ZGdldCAqd2lkZ2V0LA0KICAgICAgICAgICAgICAgZ3BvaW50ZXIgICBkYXRhICkNCnsNCglp ZiAoc3RyY21wKGRhdGEsICJidXR0b24gMSIpKQ0KCXsNCgkJZmxhZyA9IDEtZmxhZzsNCg0K CQlpZiAoZmxhZykNCgkJCWd0a193aWRnZXRfaGlkZShidXR0b24xKTsNCgkJZWxzZSBndGtf d2lkZ2V0X3Nob3coYnV0dG9uMSk7DQoJCWdfcHJpbnQgKCJIZWxsbyBhZ2FpbiAtICVzIHdh cyBwcmVzc2VkXG4iLCAoY2hhciAqKSBkYXRhKTsNCgl9IGVsc2Ugew0KCQlmbGFnMiA9IDEt ZmxhZzI7DQoJCWd0a193aWRnZXRfc2V0X3NlbnNpdGl2ZShidXR0b24yLCBmbGFnMik7DQoJ fQ0KfQ0KDQpnaW50IGRlbGV0ZV9ldmVudCggR3RrV2lkZ2V0ICp3aWRnZXQsDQogICAgICAg ICAgICAgICAgICAgR2RrRXZlbnQgICpldmVudCwNCiAgICAgICAgICAgICAgICAgICBncG9p bnRlciAgIGRhdGEgKQ0Kew0KICAgIGd0a19tYWluX3F1aXQoKTsNCiAgICByZXR1cm4oRkFM U0UpOw0KfQ0KDQoNCnN0YXRpYyB2b2lkDQphZGRfaXRlbXMgKHZvaWQpDQp7DQogIEl0ZW0g Zm9vOw0KDQogIGdfcmV0dXJuX2lmX2ZhaWwgKGFydGljbGVzICE9IE5VTEwpOw0KDQogIGZv by5udW1iZXIgPSAzOw0KICBmb28ucHJvZHVjdCA9IGdfc3RyZHVwICgiYm90dGxlcyBvZiBj b2tlIik7DQogIGdfYXJyYXlfYXBwZW5kX3ZhbHMgKGFydGljbGVzLCAmZm9vLCAxKTsNCg0K ICBmb28ubnVtYmVyID0gNTsNCiAgZm9vLnByb2R1Y3QgPSBnX3N0cmR1cCAoInBhY2thZ2Vz IG9mIG5vb2RsZXMiKTsNCiAgZ19hcnJheV9hcHBlbmRfdmFscyAoYXJ0aWNsZXMsICZmb28s IDEpOw0KDQogIGZvby5udW1iZXIgPSAyOw0KICBmb28ucHJvZHVjdCA9IGdfc3RyZHVwICgi cGFja2FnZXMgb2YgY2hvY29sYXRlIGNoaXAgY29va2llcyIpOw0KICBnX2FycmF5X2FwcGVu ZF92YWxzIChhcnRpY2xlcywgJmZvbywgMSk7DQoNCiAgZm9vLm51bWJlciA9IDE7DQogIGZv by5wcm9kdWN0ID0gZ19zdHJkdXAgKCJjYW4gdmFuaWxsYSBpY2UgY3JlYW0iKTsNCiAgZ19h cnJheV9hcHBlbmRfdmFscyAoYXJ0aWNsZXMsICZmb28sIDEpOw0KDQogIGZvby5udW1iZXIg PSA2Ow0KICBmb28ucHJvZHVjdCA9IGdfc3RyZHVwICgiZWdncyIpOw0KICBnX2FycmF5X2Fw cGVuZF92YWxzIChhcnRpY2xlcywgJmZvbywgMSk7DQp9DQoNCnN0YXRpYyBHdGtUcmVlTW9k ZWwgKg0KY3JlYXRlX21vZGVsICh2b2lkKQ0Kew0KICBnaW50IGkgPSAwOw0KICBHdGtMaXN0 U3RvcmUgKm1vZGVsOw0KICBHdGtUcmVlSXRlciBpdGVyOw0KDQogIC8qIGNyZWF0ZSBhcnJh eSAqLw0KICBhcnRpY2xlcyA9IGdfYXJyYXlfc2l6ZWRfbmV3IChGQUxTRSwgRkFMU0UsIHNp emVvZiAoSXRlbSksIDEpOw0KDQogIGFkZF9pdGVtcyAoKTsNCg0KICAvKiBjcmVhdGUgbGlz dCBzdG9yZSAqLw0KICBtb2RlbCA9IGd0a19saXN0X3N0b3JlX25ldyAoTlVNX0NPTFVNTlMs IEdfVFlQRV9JTlQsIEdfVFlQRV9TVFJJTkcsDQoJCQkgICAgICBHX1RZUEVfQk9PTEVBTik7 DQoNCiAgLyogYWRkIGl0ZW1zICovDQogIGZvciAoaSA9IDA7IGkgPCBhcnRpY2xlcy0+bGVu OyBpKyspDQogICAgew0KICAgICAgZ3RrX2xpc3Rfc3RvcmVfYXBwZW5kIChtb2RlbCwgJml0 ZXIpOw0KDQogICAgICBndGtfbGlzdF9zdG9yZV9zZXQgKG1vZGVsLCAmaXRlciwNCgkJCSAg Q09MVU1OX05VTUJFUiwNCgkJCSAgZ19hcnJheV9pbmRleCAoYXJ0aWNsZXMsIEl0ZW0sIGkp Lm51bWJlciwNCgkJCSAgQ09MVU1OX1BST0RVQ1QsDQoJCQkgIGdfYXJyYXlfaW5kZXggKGFy dGljbGVzLCBJdGVtLCBpKS5wcm9kdWN0LA0KCQkJICAtMSk7DQogICAgfQ0KDQogIHJldHVy biBHVEtfVFJFRV9NT0RFTCAobW9kZWwpOw0KfQ0KDQoNCnN0YXRpYyB2b2lkDQphZGRfY29s dW1ucyAoR3RrVHJlZVZpZXcgKnRyZWV2aWV3KQ0Kew0KICBHdGtDZWxsUmVuZGVyZXIgKnJl bmRlcmVyOw0KICBHdGtUcmVlTW9kZWwgKm1vZGVsID0gZ3RrX3RyZWVfdmlld19nZXRfbW9k ZWwgKHRyZWV2aWV3KTsNCiAgR3RrVHJlZVZpZXdDb2x1bW4gKmNvbHVtbjsNCg0KICAvKiBu dW1iZXIgY29sdW1uICovDQogIHJlbmRlcmVyID0gZ3RrX2NlbGxfcmVuZGVyZXJfdGV4dF9u ZXcgKCk7DQogIGdfb2JqZWN0X3NldF9kYXRhIChHX09CSkVDVCAocmVuZGVyZXIpLCAiY29s dW1uIiwgKGdpbnQgKilDT0xVTU5fTlVNQkVSKTsNCg0KICBjb2x1bW4gPSBndGtfdHJlZV92 aWV3X2NvbHVtbl9uZXdfd2l0aF9hdHRyaWJ1dGVzICgiRGlyZWN0b3J5IiwNCiAgICAgICAg ICBndGtfY2VsbF9yZW5kZXJlcl90ZXh0X25ldyAoKSwNCiAgICAgICAgICAidGV4dCIsIDAs DQogICAgICAgICAgTlVMTCk7DQoNCiAgZ3RrX3RyZWVfdmlld19jb2x1bW5fc2V0X3dpZGdl dCAoY29sdW1uLCBidXR0b24yKTsNCi8vICBndGtfdHJlZV92aWV3X2NvbHVtbl9zZXRfY2xp Y2thYmxlIChjb2x1bW4sIGJ1dHRvbjIpOw0KICBndGtfdHJlZV92aWV3X2NvbHVtbl9zZXRf c2l6aW5nIChjb2x1bW4sIEdUS19UUkVFX1ZJRVdfQ09MVU1OX0dST1dfT05MWSk7DQogIGd0 a190cmVlX3ZpZXdfYXBwZW5kX2NvbHVtbiAoR1RLX1RSRUVfVklFVyAodmlldyksIGNvbHVt bik7DQoNCiAgLyogcHJvZHVjdCBjb2x1bW4gKi8NCiAgcmVuZGVyZXIgPSBndGtfY2VsbF9y ZW5kZXJlcl90ZXh0X25ldyAoKTsNCiAgZ19vYmplY3Rfc2V0X2RhdGEgKEdfT0JKRUNUIChy ZW5kZXJlciksICJjb2x1bW4iLCAoZ2ludCAqKUNPTFVNTl9QUk9EVUNUKTsNCg0KICBndGtf dHJlZV92aWV3X2luc2VydF9jb2x1bW5fd2l0aF9hdHRyaWJ1dGVzIChHVEtfVFJFRV9WSUVX ICh0cmVldmlldyksDQoJCQkJCSAgICAgICAtMSwgIlByb2R1Y3QiLCByZW5kZXJlciwNCgkJ CQkJICAgICAgICJ0ZXh0IiwgQ09MVU1OX1BST0RVQ1QsDQoJCQkJCSAgICAgICBOVUxMKTsN Cn0NCg0Kdm9pZCBjcmVhKCkNCnsNCiAgICBHdGtUcmVlTW9kZWwgKm1vZGVsOw0KDQogICAg LyogY3JlYXRlIG1vZGVsICovDQogICAgbW9kZWwgPSBjcmVhdGVfbW9kZWwgKCk7DQoNCiAg ICB2aWV3ID0gZ3RrX3RyZWVfdmlld19uZXdfd2l0aF9tb2RlbCAobW9kZWwpOw0KDQogICAg Z19vYmplY3RfdW5yZWYgKEdfT0JKRUNUIChtb2RlbCkpOw0KICAgIGd0a190cmVlX3ZpZXdf c2V0X3J1bGVzX2hpbnQgKEdUS19UUkVFX1ZJRVcgKHZpZXcpLCBUUlVFKTsNCiAgICBndGtf dHJlZV9zZWxlY3Rpb25fc2V0X21vZGUgKGd0a190cmVlX3ZpZXdfZ2V0X3NlbGVjdGlvbg0K KEdUS19UUkVFX1ZJRVcgKHZpZXcpKSwgR1RLX1NFTEVDVElPTl9TSU5HTEUpOw0KDQogICAg YWRkX2NvbHVtbnMgKEdUS19UUkVFX1ZJRVcgKHZpZXcpKTsNCiAgICANCiAgICBndGtfd2lk Z2V0X3Nob3codmlldyk7DQogICAgDQp9DQoNCg0KDQppbnQgbWFpbiggaW50ICAgYXJnYywN CiAgICAgICAgICBjaGFyICphcmd2W10gKQ0Kew0KICAgIEd0a1dpZGdldCAqd2luZG93Ow0K ICAgIEd0a1dpZGdldCAqYm94MTsNCg0KICAgIGd0a19pbml0ICgmYXJnYywgJmFyZ3YpOw0K DQogICAgd2luZG93ID0gZ3RrX3dpbmRvd19uZXcgKEdUS19XSU5ET1dfVE9QTEVWRUwpOw0K DQogICAgZ3RrX3dpbmRvd19zZXRfdGl0bGUgKEdUS19XSU5ET1cgKHdpbmRvdyksICJIZWxs byBCdXR0b25zISIpOw0KDQogICAgZ3RrX3NpZ25hbF9jb25uZWN0IChHVEtfT0JKRUNUICh3 aW5kb3cpLCAiZGVsZXRlX2V2ZW50IiwNCgkJCUdUS19TSUdOQUxfRlVOQyAoZGVsZXRlX2V2 ZW50KSwgTlVMTCk7DQoNCiAgICBndGtfY29udGFpbmVyX3NldF9ib3JkZXJfd2lkdGggKEdU S19DT05UQUlORVIgKHdpbmRvdyksIDEwKTsNCg0KICAgIGJveDEgPSBndGtfdmJveF9uZXco RkFMU0UsIDApOw0KDQogICAgZ3RrX2NvbnRhaW5lcl9hZGQgKEdUS19DT05UQUlORVIgKHdp bmRvdyksIGJveDEpOw0KDQogICAgYnV0dG9uMSA9IGd0a19idXR0b25fbmV3X3dpdGhfbW5l bW9uaWMgKCJfQnV0dG9uIDEiKTsNCg0KICAgIGd0a19zaWduYWxfY29ubmVjdCAoR1RLX09C SkVDVCAoYnV0dG9uMSksICJjbGlja2VkIiwNCgkJCUdUS19TSUdOQUxfRlVOQyAoY2FsbGJh Y2spLCAoZ3BvaW50ZXIpICJidXR0b24gMSIpOw0KDQogICAgZ3RrX2JveF9wYWNrX3N0YXJ0 KEdUS19CT1goYm94MSksIGJ1dHRvbjEsIFRSVUUsIFRSVUUsIDApOw0KDQogICAgZ3RrX3dp ZGdldF9zaG93KGJ1dHRvbjEpOw0KDQogICAgYnV0dG9uMiA9IGd0a19idXR0b25fbmV3X3dp dGhfbW5lbW9uaWMoImJfdXR0b24yIik7DQoNCiAgICBndGtfc2lnbmFsX2Nvbm5lY3QgKEdU S19PQkpFQ1QgKGJ1dHRvbjIpLCAiY2xpY2tlZCIsDQoJCQlHVEtfU0lHTkFMX0ZVTkMgKGNh bGxiYWNrKSwgKGdwb2ludGVyKSAiYnV0dG9uIDIiKTsNCg0KICAgIGd0a193aWRnZXRfc2hv dyhidXR0b24yKTsNCg0KICAgIGNyZWEoKTsNCiAgICBndGtfd2lkZ2V0X3Nob3codmlldyk7 DQogICAgZ3RrX2JveF9wYWNrX3N0YXJ0KEdUS19CT1goYm94MSksIHZpZXcsIFRSVUUsIFRS VUUsIDApOw0KDQogICAgZ3RrX3dpZGdldF9zaG93KGJveDEpOw0KDQogICAgZ3RrX3dpZGdl dF9zaG93ICh3aW5kb3cpOw0KDQogICAgZ3RrX21haW4gKCk7DQoNCiAgICByZXR1cm4oMCk7 DQp9DQoNCg== From eric.thierry@finconsult.fr Fri Feb 8 13:31:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from argyre.fr.uu.net (mail.iway.fr [194.98.0.9]) by mail.gnome.org (Postfix) with ESMTP id 29AA818413 for ; Fri, 8 Feb 2002 13:31:26 -0500 (EST) Received: from finconsult.fr ([212.208.176.166]) by argyre.fr.uu.net (8.9.3/8.8.7) with ESMTP id TAA28095 for ; Fri, 8 Feb 2002 19:38:16 +0100 (MET) Message-ID: <3C641977.5299747B@finconsult.fr> Date: Fri, 08 Feb 2002 19:31:19 +0100 From: Eric THIERRY X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Colored scrolled_window Content-Type: multipart/mixed; boundary="------------F54ED5736F99664E1C8C76A9" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. --------------F54ED5736F99664E1C8C76A9 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I create a scrolled window and a tree that I add in with a viewport. I'd like the background of the viewport to be colored, but it desperately remains white. Could someone help me about it ? Thanks a lot. -- Salutations, Eric THIERRY --------------F54ED5736F99664E1C8C76A9 Content-Type: text/x-vcard; charset=us-ascii; name="eric.thierry.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Eric THIERRY Content-Disposition: attachment; filename="eric.thierry.vcf" begin:vcard n:THIERRY;Eric tel;fax:01-53-45-32-99 tel;work:01-53-45-32-80 x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:eric.thierry@finconsult.fr fn:Eric THIERRY end:vcard --------------F54ED5736F99664E1C8C76A9-- From mmotta@guest.net Fri Feb 8 14:11:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from riccione.guest.net (server.guest.net [80.17.82.2]) by mail.gnome.org (Postfix) with ESMTP id 75B75190C7 for ; Fri, 8 Feb 2002 14:11:19 -0500 (EST) Received: from guest.net (dialup-08.guest.net [80.17.82.200] (may be forged)) by riccione.guest.net (8.8.8/8.8.8) with ESMTP id UAA13743 for ; Fri, 8 Feb 2002 20:18:03 +0100 (CET) (envelope-from mmotta@guest.net) Message-ID: <3C64317A.8030502@guest.net> Date: Fri, 08 Feb 2002 21:13:46 +0100 From: mario motta User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 X-Accept-Language: en-us, it MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: sample source of buggy gtk 2.0 function References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: zanac_fake wrote: > Hi, > > as i mentioned in another post i think that GtkTreeViewColumn is buggy, > but no one helped me... so i have just write this small sample that you > can use to try this problem. In this sample if you press the > button2 work, but if you use the mouse.......... > > byeZ! > $ cat > http://bugzilla.gnome.org/ /mario -- Mario Motta AI Research Group - Rimini http://vdkbuilder.sourceforge.net From emonsler@beamreachnetworks.com Fri Feb 8 17:48:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from newman.BEAMREACHNETWORKS.COM (unknown [209.11.118.10]) by mail.gnome.org (Postfix) with ESMTP id C3ED518189 for ; Fri, 8 Feb 2002 17:48:53 -0500 (EST) Received: from beamreachnetworks.com (e_monsler.beamreachnetworks.com [172.31.40.59]) by newman.BEAMREACHNETWORKS.COM with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 4TNW0W0J; Fri, 8 Feb 2002 14:46:03 -0800 Message-ID: <3C6455BA.11ABCBC0@beamreachnetworks.com> Date: Fri, 08 Feb 2002 14:48:26 -0800 From: "Eric M. Monsler" X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: "Kerber, Ulrich" , gtk-list@gnome.org Subject: Re: Memory problems while using a clist References: <1013168395.2884.11.camel@dshpc004> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington wrote: > > "Kerber, Ulrich" writes: > > I wrote an app with a clist showing the contents of a log file; the > > clist is updated every 60 seconds. Although i do a gtk_clist_clear, > > the memory used is increasing with every run, even if no element is > > added. After a day of work the amount reaches up to 40 MB! > > Does anybody know a solution to this problem? > > > > You just need to debug it. Use a tool such as "memprof" to see where > the memory is leaked. > > Havoc A tool I found very useful was GSK, (GNU Server Kit), which can replace the g_malloc type GLib calls with debug versions, and keeps a record of all outstanding allocations. I used essentially just the gskdebug facility, and it worked great. gsk.sourceforge.net, IIRC Eric From doc@deadvirgins.org.uk Sat Feb 9 10:01:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand7.global.net.uk (sand7.global.net.uk [195.147.246.253]) by mail.gnome.org (Postfix) with ESMTP id 7F72D182C9 for ; Sat, 9 Feb 2002 10:01:20 -0500 (EST) Received: from [195.147.236.28] (helo=deadvirgins.org.uk) by sand7.global.net.uk with esmtp (Exim 3.22 #1) id 16ZZ0K-0003U3-00 for gtk-list@gnome.org; Sat, 09 Feb 2002 15:01:29 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g19F1G600458 for gtk-list@gnome.org; Sat, 9 Feb 2002 15:01:16 GMT Message-Id: <200202091501.g19F1G600458@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: gtk-list@gnome.org Subject: Re: Creating widgets with auto-repeat Date: Sat, 9 Feb 2002 15:01:16 +0000 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks to Pauk for the pointers on how to make my autorepeat code a bit more elegant, but having looked at the suggestions I'm a bit puzzled... info->value++; info->count = 0; info->state = 0; info->timer_id = gtk_timeout_add(REPEAT_STAGE0_DELAY, (GtkFunction)timer_func, info); The "gtk_timeout_add" line doesn't work, becasue you're *passing* the value of info->timer *before* it gets assigned. Hence the timeout function doesn't know the ID of the timer.... This was why I resorted to globals! :-) -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From sven@gimp.org Sat Feb 9 10:23:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E0DDCB.dip.t-dialin.net [217.224.221.203]) by mail.gnome.org (Postfix) with ESMTP id 65C13180E7 for ; Sat, 9 Feb 2002 10:23:00 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZZKh-0004fX-00; Sat, 09 Feb 2002 16:22:31 +0100 To: doc@deadvirgins.org.uk Cc: gtk-list@gnome.org Subject: Re: Creating widgets with auto-repeat References: <200202091501.g19F1G600458@deadvirgins.org.uk> From: Sven Neumann Date: 09 Feb 2002 16:22:31 +0100 In-Reply-To: <200202091501.g19F1G600458@deadvirgins.org.uk> Message-ID: Lines: 26 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, "David J. Singer" writes: > Thanks to Pauk for the pointers on how to make my autorepeat > code a bit more elegant, but having looked at the suggestions > I'm a bit puzzled... > > info->value++; > info->count = 0; > info->state = 0; > info->timer_id = gtk_timeout_add(REPEAT_STAGE0_DELAY, > (GtkFunction)timer_func, info); > > The "gtk_timeout_add" line doesn't work, becasue you're *passing* > the value of info->timer *before* it gets assigned. Hence the timeout > function doesn't know the ID of the timer.... I don't see the problem. You are passing a pointer to the info structure and of course you can change it's contents later and the timer_func will get the current value when it accesses info->timer_id. Apart from that, I don't think you need the timer_id since you can remove the timeout by returning FALSE from timer_func. Salut, Sven From davidgn@servidor.unam.mx Sat Feb 9 11:56:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id ECFCF18154 for ; Sat, 9 Feb 2002 11:56:25 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.113.17]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g19GtCk15022 for ; Sat, 9 Feb 2002 10:55:12 -0600 (CST) Date: Sat, 9 Feb 2002 11:12:46 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: sleeping Message-Id: <20020209111246.58756e22.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello again. I am writing a program to control two steppers. To control its speed, i would need to sleep the function that moves them. Is it safe to use sleep/nanosleep? or are there safer functions or a better way to do it than a callback from an Entry widget (where i get the command from)? (I was just thinking a long coulback could hang the app, am i right?) -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From hunchback@netcabo.pt Sat Feb 9 12:16:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 579E618154 for ; Sat, 9 Feb 2002 12:16:44 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 9 Feb 2002 17:11:04 +0000 Content-Class: urn:content-classes:message From: To: , Subject: RE: sleeping Date: Sat, 9 Feb 2002 17:11:04 -0000 Message-ID: <0b6b01c1b18c$c1c6bed0$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcGxjMHEHg2jUh12EdaCdgBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi,=20 >I am writing a program to control two steppers. To control its speed, i = would need to >sleep the function that moves them. i have a similar problem, i'm doing a movement of a pixmap, but i want = to slow it down, so that the image runs move smothly... i made the signal connect for the mouse events and on the handler i made = it sleep with the GTimer (glib), but the problem is that even putting it = to sleep, it remembers the events, so if i go left, then right, then = left, it always does this movements, but not synchronized with the = mouse... is there some way to do this, or do i have to disconnect the = signal while i put it to sleep? Afonso From sven@gimp.org Sat Feb 9 13:12:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E0D9CC.dip.t-dialin.net [217.224.217.204]) by mail.gnome.org (Postfix) with ESMTP id B55AF1811B for ; Sat, 9 Feb 2002 13:12:54 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZbzL-0004hi-00; Sat, 09 Feb 2002 19:12:39 +0100 To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: sleeping References: <20020209111246.58756e22.davidgn@servidor.unam.mx> From: Sven Neumann Date: 09 Feb 2002 19:12:38 +0100 In-Reply-To: <20020209111246.58756e22.davidgn@servidor.unam.mx> Message-ID: Lines: 13 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, David Eduardo Gomez Noguera writes: > I am writing a program to control two steppers. To control its speed, i would need to sleep the function that moves them. > Is it safe to use sleep/nanosleep? or are there safer functions or a better way to do it than a callback from an Entry widget (where i get the command from)? (I was just thinking a long coulback could hang the app, am i right?) I'd suggest you use the GTK+ main loop instead and install a timeout. Have a look at gtk_timeout_add(). Salut, Sven From davidgn@servidor.unam.mx Sat Feb 9 13:30:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id 960C61879C for ; Sat, 9 Feb 2002 13:30:26 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.110]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g19ITDk26269 for ; Sat, 9 Feb 2002 12:29:13 -0600 (CST) Date: Sat, 9 Feb 2002 12:46:46 -0600 From: David Eduardo Gomez Noguera To: gtk-list@gnome.org Subject: Re: sleeping Message-Id: <20020209124646.0bbf4278.davidgn@servidor.unam.mx> In-Reply-To: References: <20020209111246.58756e22.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 09 Feb 2002 19:12:38 +0100 Sven Neumann wrote: > Hi, > > David Eduardo Gomez Noguera writes: > > > I am writing a program to control two steppers. To control its speed, i would need to sleep the function that moves them. > > Is it safe to use sleep/nanosleep? or are there safer functions or a better way to do it than a callback from an Entry widget (where i get the command from)? (I was just thinking a long coulback could hang the app, am i right?) > > I'd suggest you use the GTK+ main loop instead and install a timeout. > Have a look at gtk_timeout_add(). what do you mean with the GTK+ main loop? havent done much with gtk, so my knowledge about gtk_main is limited to think that i run it only once. I have seen gtk_timeout_add. my function needs the two steppers to start and stop moving at the same time, so i use a line algorithm, and would need static variables there. Also, i get the command to move the steppers from a GtkEntry widget, then i would need some way to not enable execution of new commands until the lastone ends (was thinking of gtk_object_set_data on the Entry, and a check each time to see if the timer exists.) Can i "temporary" block signals from other widgets? I also have a few buttons that affect the steppers, and would have to block them while executing a command. Any help or pointer would be very appreciated... (i have a bad bad english) Thank you. > > > Salut, Sven > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From sven@gimp.org Sat Feb 9 14:17:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E0D9CC.dip.t-dialin.net [217.224.217.204]) by mail.gnome.org (Postfix) with ESMTP id 11E9218360 for ; Sat, 9 Feb 2002 14:17:14 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ZczF-0005Vj-00; Sat, 09 Feb 2002 20:16:37 +0100 To: davidgn@servidor.unam.mx Cc: gtk-list@gnome.org Subject: Re: sleeping References: <20020209111246.58756e22.davidgn@servidor.unam.mx> <20020209124646.0bbf4278.davidgn@servidor.unam.mx> From: Sven Neumann Date: 09 Feb 2002 20:16:37 +0100 In-Reply-To: <20020209124646.0bbf4278.davidgn@servidor.unam.mx> Message-ID: Lines: 30 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, David Eduardo Gomez Noguera writes: > > I'd suggest you use the GTK+ main loop instead and install a timeout. > > Have a look at gtk_timeout_add(). > > what do you mean with the GTK+ main loop? havent done much with gtk, so my knowledge about gtk_main is limited to think that i run it only once. you start it once and then it's running. You should not sleep since that would block the main loop. Instead you should hook your functionality into the main loop. > I have seen gtk_timeout_add. > my function needs the two steppers to start and stop moving at the same time, so i use a line algorithm, and would need static variables there. > Also, i get the command to move the steppers from a GtkEntry widget, then i would need some way to not enable execution of new commands until the lastone ends (was thinking of gtk_object_set_data on the Entry, and a check each time to see if the timer exists.) > Can i "temporary" block signals from other widgets? gtk_signal_handler_block() gtk_signal_handler_block_by_func() gtk_signal_handler_block_by_data() gtk_signal_handler_unblock() gtk_signal_handler_unblock_by_func() gtk_signal_handler_unblock_by_data() Salut, Sven From toni.moreno.gimenez@wanadoo.es Sun Feb 10 01:49:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.wanadoo.es (unknown [62.37.236.151]) by mail.gnome.org (Postfix) with ESMTP id 1380C180FE for ; Sun, 10 Feb 2002 01:49:49 -0500 (EST) Received: from Telemaco (62-36-160-2.dialup.uni2.es [62.36.160.2]) by smtp.wanadoo.es (8.11.6/8.10.2) with SMTP id g1A6o4Y12164 for ; Sun, 10 Feb 2002 07:50:05 +0100 (MET) Content-Type: text/plain; charset="iso-8859-1" From: Toni Moreno =?iso-8859-1?q?Gim=E9nez?= To: gtk-list@gnome.org Subject: Thread Safe GLib ? object/message Date: Sun, 10 Feb 2002 07:55:13 +0100 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02021007551301.02239@Telemaco> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: A single question: are GObject (Glib2) and (Glib 1-2) message system thread safe ? -- ================= Toni Moreno Giménez ================= Pje de las rosas nº 22 Vilassar de Mar (Barcelona) España CP: 08340 From neofolk@yahoo.de Sat Feb 2 00:23:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by mail.gnome.org (Postfix) with SMTP id 934A7180EC for ; Sat, 2 Feb 2002 00:23:40 -0500 (EST) Received: from pc19f2f41.dip.t-dialin.net (HELO p3desktop) (193.159.47.65) by smtp.mail.vip.sc5.yahoo.com with SMTP; 2 Feb 2002 05:23:38 -0000 Message-ID: <001201c1aba9$756ac9c0$6600a8c0@p3desktop> Reply-To: "Oliver Kroll :ALT EUROPA: - Magazin" From: "Oliver Kroll :ALT EUROPA: - Magazin" To: Subject: CList: how to change column-count at runtime Date: Sat, 2 Feb 2002 06:21:22 +0100 Organization: :ALT EUROPA: - Magazin MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000F_01C1ABB1.D5D12860" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C1ABB1.D5D12860 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi all, i created a form (clist included) with glade. i filled a ctree with databases and tables from the mysql-server, now i = like to read the data stored in a mysql-table into the clist. this is no problem so far. but how can i change the column-count from the gtk-clist at runtime, so = that it will fit to the column-count of the mysql-resultset? thanks a lot for your help. sincerly oliver k. ------=_NextPart_000_000F_01C1ABB1.D5D12860 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi all,
 
i created a form (clist included) with=20 glade.
 
i filled a ctree with databases and = tables from the=20 mysql-server, now i like to read the data stored in a mysql-table into = the=20 clist.
this is no problem so far.
 
but how can i change the column-count = from the=20 gtk-clist at runtime, so that it will fit to the column-count of the=20 mysql-resultset?
 
thanks a lot for your = help.
 
sincerly
 
oliver k.
------=_NextPart_000_000F_01C1ABB1.D5D12860-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From nitin.yewale@wipro.com Mon Feb 4 01:22:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 68B04180E7; Mon, 4 Feb 2002 01:22:39 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g146LYX05552; Mon, 4 Feb 2002 11:51:38 +0530 (IST) Received: from M33COM793 ([10.114.9.178]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GQZWBZ00.5CN; Mon, 4 Feb 2002 11:51:35 +0530 Reply-To: From: "Nitin Madhukar Yewale" To: "Desktop-Devel-List" , Subject: Help required on "GMenu" implementation using Model/View architecture. Date: Mon, 4 Feb 2002 11:57:34 +0530 Message-ID: <002b01c1ad45$0823b0f0$b209720a@M33COM793> 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am going through the source code of "GMenu" application. As per the GTK 2.0, GtkTree and GtkList widgets are deprecated and we have to use GtkTreeView,GtkTreeModel widgets to adopt Model/View architecture. In the above application we will have to use gtktreestore as a model which will store information in terms of GtkTreeIter and at the same time we need to update GtkTreeView to show on the GUI so that both of them will be in sync. As per my understanding to extract information of selected column of GtkTreeView we have to use following steps :- 1> Get selected item using GtkTreeSelection from GtkTreeView. 2> Get selected GtkTreeIter of GtkTreeStore from above GtkTreeSelection. Please suggest better way for extracting data from GtkTreeView. Thanks in Advance, Nitin NOTE: I have not subscribed gtk-list mailing list so please send your suggestions to nitin.yewale@wipro.com . From falconer@falconer.best.vwh.net Wed Feb 6 20:48:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id A2B15181CC for ; Wed, 6 Feb 2002 20:48:30 -0500 (EST) Received: (qmail 27095 invoked by uid 25889); 7 Feb 2002 01:48:29 -0000 Date: 7 Feb 2002 01:48:29 -0000 Message-ID: <20020207014829.27094.qmail@falconer.best.vwh.net> From: falconer@falconer.best.vwh.net To: gtk-list@gnome.org Subject: catching unix signals from Gtk Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all; here's a problem I can't find a solution to in any of the docs nor by searching the email database. How can a Gtk-based application respond to unix signals? In particular, I have an app that may receive a SIGUSR1 from another program which tells my app to re-read some files and update its display. I could write an ordinary unix signal handler and register it with signal(2), but it's not safe to call GTK functions from within such a handler. I could write an ordinary unix signal handler and have it set a flag, and then use a timer callback to poll that flag once a second or so. But I don't want to keep a timer running for an event that happens only rarely. I could open a pipe and have the unix signal handler write a single byte to it when there's an interrupt, and then have GTK attach an input handler to the output side of the pipe. These all seem to be kludges to me; is there a better way to do it? -ed falk From jerryxu@kinposh.com.cn Fri Feb 8 00:06:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 1B87C180E1 for ; Fri, 8 Feb 2002 00:06:50 -0500 (EST) Subject: a problem Date: Fri, 8 Feb 2002 13:06:33 +0800 MIME-Version: 1.0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F82228EAF@kes01.kinposh.com.cn> X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: a problem Thread-Index: AcGwXl+cNgiQdONyQMGCqmuYNjbjJA== X-Priority: 1 Priority: Urgent Importance: high From: =?gb2312?B?0Oy4/SBKZXJyeSBYdQ==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: a problem

 

      Now I have a problem: I want to make the = focus  element  more  obvious .For example, I want to = make the focus-rectangle's edges(line)  wider  and wider. Do I = need to revise the file  "gtkstyle.h"? Can you give me = some advice?

     E.G.: There are four buttons in = the dailog. When the key "tab" is pressed, one of them has the = "focus". And
I want = to make the focus button more distinctness. That is, I want to make the = focus rectangel's frame thicker
than the = default, what can I do? 

From twanger@bluetwanger.de Fri Feb 8 04:52:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from leela.one-2-one.net (leela.one-2-one.net [217.115.142.65]) by mail.gnome.org (Postfix) with ESMTP id 80A12180EA; Fri, 8 Feb 2002 04:52:07 -0500 (EST) Received: from [192.168.0.14] (p3E9EC020.dip.t-dialin.net [62.158.192.32]) by leela.one-2-one.net (8.11.0/8.11.0) with ESMTP id g189sOR23427; Fri, 8 Feb 2002 10:54:24 +0100 Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc From: Markus Bertheau To: Deepa Cc: gtk-list@gnome.org, desktop-devel-list In-Reply-To: <3C639AF8.B378AA0@wipro.com> References: <3C639AF8.B378AA0@wipro.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-R4vu62aHORSrIevoFL+2" X-Mailer: Evolution/1.0.2 Date: 08 Feb 2002 10:51:33 +0100 Message-Id: <1013161894.29366.2.camel@entwicklung01.cenes.de> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-R4vu62aHORSrIevoFL+2 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2002-02-08 at 10:31, Deepa wrote: > Hi >=20 > I am encountering these deprecated calls in libzvt: > gdk_input_remove () > gdk_input_add () > gdk_rgb_init () >=20 > Could anyone please tell me what is the replacement for these. =20 http://cvs.gnome.org/lxr/source/gtk+/gdk/gdkevents.c#852 Markus Bertheau --=-R4vu62aHORSrIevoFL+2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8Y5+lKNEjAb345r4RAo3bAJ44OwYVZunHOsHi5kfmJl5vI+9FmgCaAl7R 61pMNNP2u841np5N2YIwZrg= =SxC5 -----END PGP SIGNATURE----- --=-R4vu62aHORSrIevoFL+2-- From jamesv@galleon.co.uk Tue Feb 5 08:02:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from finch-post-12.mail.demon.net (finch-post-12.mail.demon.net [194.217.242.41]) by mail.gnome.org (Postfix) with ESMTP id 2F47918180 for ; Tue, 5 Feb 2002 08:02:06 -0500 (EST) Received: from gallsubs.demon.co.uk ([158.152.242.244] helo=galmss01.960.local) by finch-post-12.mail.demon.net with esmtp (Exim 2.12 #1) id 16Y5Bo-000Ktn-0C for gtk-list@gnome.org; Tue, 5 Feb 2002 12:59:13 +0000 Received: from james_pc.960.local (Jim@james_pc.960.local [192.168.12.103]) by galmss01.960.local (8.8.5/SCA-6.6) with ESMTP id MAA23544 for ; Tue, 5 Feb 2002 12:57:15 GMT Subject: At the end of my tether with gtk_adjustment_value_changed() From: James Vanns To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 05 Feb 2002 12:52:19 +0000 Message-Id: <1012913539.2024.33.camel@james_pc.960.local> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am getting a little frustrated now: I have a signal handler setup to do stuff when an adjustment receives a value_changed signal. This works except when I want to explicitly want to emit a value_changed signal. I have set the adjustment value two ways: gtk_adjustment_set_value (adjustment, (float) key); /* key was an int originally && >= 0) */ and also adjustment->value = (float) key; and then tried to different ways to send out the signal so my callback would be run: gtk_signal_emit_by_name (GTK_OBJECT (adjustment), "value_changed")); and gtk_adjustment_value_changed (adjustment); none of them seem to emit a value_changed signal cos my callback is not called. What am I doing wrong ?? Am I completely misunderstanding the use of these functions!!??? Cheers for any help James Vanns -- James Vanns BSc (Hons) MCP Software Engineer (UNIX / C) Galleon Ltd. From unicorn@minet.uni-jena.de Sat Feb 9 11:31:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fsuj20.rz.uni-jena.de (fsuj20.rz.uni-jena.de [141.35.1.18]) by mail.gnome.org (Postfix) with ESMTP id 0E2C9181DB for ; Sat, 9 Feb 2002 11:31:54 -0500 (EST) Received: from virusscan.rz.uni-jena.de (virusscan.rz.uni-jena.de [141.35.1.23]) by fsuj20.rz.uni-jena.de (8.12.0.Beta7/8.11.1) with ESMTP id g19GVQ2I027442 for ; Sat, 9 Feb 2002 17:31:42 +0100 (MET) Received: from virusscan.rz.uni-jena.de (localhost [127.0.0.1]) by virusscan.rz.uni-jena.de (8.11.6/8.11.6) with ESMTP id g19GVQl05234 for ; Sat, 9 Feb 2002 17:31:26 +0100 Received: from pax10e3.mipool.uni-jena.de (daemon@pax10e2.mipool.uni-jena.de [141.35.13.142]) by pax08e3.mipool.uni-jena.de (8.11.6/8.11.6) with ESMTP id g19GVNk25838 for ; Sat, 9 Feb 2002 17:31:23 +0100 (CET) From: Randy Rueckner Received: (from unicorn@localhost) by pax10e3.mipool.uni-jena.de (8.11.6/8.11.6) id g19GVHK288465 for gtk-list@gnome.org; Sat, 9 Feb 2002 17:31:17 +0100 (MET) Message-Id: <200202091631.g19GVHK288465@pax10e3.mipool.uni-jena.de> Subject: GtkCTreeNode row_data To: gtk-list@gnome.org Date: Sat, 9 Feb 2002 17:31:17 +0100 (MET) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello there! i have a little question. how can i get the row_data from a node (its a leaf) in a GtkCTree if i only know the label from this node? thanks in advance randy r. From doc@deadvirgins.org.uk Sun Feb 10 12:08:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sand7.global.net.uk (sand7.global.net.uk [195.147.246.253]) by mail.gnome.org (Postfix) with ESMTP id DE92C18283 for ; Sun, 10 Feb 2002 12:08:50 -0500 (EST) Received: from [195.147.237.170] (helo=deadvirgins.org.uk) by sand7.global.net.uk with esmtp (Exim 3.22 #1) id 16ZxTH-0006cc-00; Sun, 10 Feb 2002 17:09:00 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by deadvirgins.org.uk (8.11.4/8.11.4) id g1AH8kn00417; Sun, 10 Feb 2002 17:08:46 GMT Message-Id: <200202101708.g1AH8kn00417@deadvirgins.org.uk> Content-Type: text/plain; charset="iso-8859-1" From: "David J. Singer" Reply-To: doc@deadvirgins.org.uk Organization: The Universal League of the Slightly Bewildered To: Sven Neumann Subject: Re: Creating widgets with auto-repeat Date: Sun, 10 Feb 2002 17:08:46 +0000 X-Mailer: KMail [version 1.3.2] Cc: gtk-list@gnome.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > I don't see the problem. You are passing a pointer to the info > structure and of course you can change it's contents later and the > timer_func will get the current value when it accesses info->timer_id. > Apart from that, I don't think you need the timer_id since you can > remove the timeout by returning FALSE from timer_func. I think I must have been having a "slow" day. You're absolutely right, of course... :-) Oops. -- David J. Singer doc@deadvirgins.org.uk "Time flies like an arrow, fruit flies like a banana" From hp@redhat.com Sun Feb 10 12:16:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 23BA8180F4 for ; Sun, 10 Feb 2002 12:16:39 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1AHGZ710921; Sun, 10 Feb 2002 12:16:35 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: falconer@falconer.best.vwh.net Cc: gtk-list@gnome.org Subject: Re: catching unix signals from Gtk References: <20020207014829.27094.qmail@falconer.best.vwh.net> From: Havoc Pennington Date: 10 Feb 2002 12:16:35 -0500 In-Reply-To: <20020207014829.27094.qmail@falconer.best.vwh.net> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: falconer@falconer.best.vwh.net writes: > I could open a pipe and have the unix signal handler write a > single byte to it when there's an interrupt, and then have > GTK attach an input handler to the output side of the pipe. This is in general the best way to do it we've come up with. > These all seem to be kludges to me; is there a better way to > do it? Another way to do it is to write a custom main loop source that checks a flag in its prepare/check methods to see whether a dispatch is needed. But this relies on the fact that your signal wakes up the main loop poll() or select() with an EINTR, and there was some issue with that which I don't remember now. If you search the gtk-devel-list archives you can probably find at least a little bit of discussion on the topic. Havoc From hp@redhat.com Sun Feb 10 12:18:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 5D1DE18283 for ; Sun, 10 Feb 2002 12:18:34 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1AHIWY10925; Sun, 10 Feb 2002 12:18:32 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: James Vanns Cc: gtk-list@gnome.org Subject: Re: At the end of my tether with gtk_adjustment_value_changed() References: <1012913539.2024.33.camel@james_pc.960.local> From: Havoc Pennington Date: 10 Feb 2002 12:18:32 -0500 In-Reply-To: <1012913539.2024.33.camel@james_pc.960.local> Message-ID: Lines: 9 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: James Vanns writes: > What am I doing wrong ?? Am I completely misunderstanding the use of > these functions!!??? No, they should work as you described. I'm guessing you're looking at the wrong piece of code for the bug. Havoc From davidgn@servidor.unam.mx Sun Feb 10 13:23:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id 3BB7118183 for ; Sun, 10 Feb 2002 13:23:51 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.137]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g1AIMbk10258 for ; Sun, 10 Feb 2002 12:22:37 -0600 (CST) Date: Sun, 10 Feb 2002 12:40:17 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: threads Message-Id: <20020210124017.52703751.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. I was thining on a program, and gtk_timeout is not the way to go. So i read a bit on the faq and the "api", and i couldn understand well threads on gtk/gdk/glib. I remember some articles on linux magazine about threads, and i though they were created after a function (passing the funcion as an argument), i dont get what gdk_thread_enter/leave work, and if i can start a thread from a user signal callback. (the examples i have seen so far, start threads from the main, aoutside the gtk_main loop, and put gdk_thread_enter/leave around the gtk_main(). Is there any faq or documentation centered on it? on the mails i read, it seemed as if everybody already understand it. Thank you. -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From davidgn@servidor.unam.mx Sun Feb 10 21:02:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id C657C18340 for ; Sun, 10 Feb 2002 21:02:39 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.111.56]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g1B21Pk03780 for ; Sun, 10 Feb 2002 20:01:25 -0600 (CST) Date: Sun, 10 Feb 2002 20:19:09 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: threads again. Message-Id: <20020210201909.7c263505.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello. Its me asking about the use of threads with gtk again. Why is gdk_treads_enter/leave function? to restrict access to some structures? I was writing this, and i get segfaults. All examples i have seen so far, start threads on main(), but i started a thread on a callback. Is that not possible to do? if so, why? The best i could find is a pointer to check the gftp source, which i am about to do... Well, any explanation would be apreciated. Thank you again. -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. ........Por que no pensaran los hombres como los animales? Pink Panther........ -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From scurveedog@yahoo.com Sun Feb 10 22:07:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web13701.mail.yahoo.com (web13701.mail.yahoo.com [216.136.175.134]) by mail.gnome.org (Postfix) with SMTP id 3DEEC182D5 for ; Sun, 10 Feb 2002 22:07:51 -0500 (EST) Message-ID: <20020211030750.54810.qmail@web13701.mail.yahoo.com> Received: from [209.253.230.249] by web13701.mail.yahoo.com via HTTP; Sun, 10 Feb 2002 19:07:50 PST Date: Sun, 10 Feb 2002 19:07:50 -0800 (PST) From: Jim Adams Subject: GList in a list box To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I am a beginner who has become very confused. I have a data file and can transfer it to a GList which I can then print out. Can anyone help me display the complete GList in a gtk+ list box? My test program to load a GList and then print it out: #include #include /***** FUNC TO DISPLAY GList *****/ void PrintList( GList *list ) { list = g_list_first( list ); while( list != NULL ) { g_print( "%s", (gchar *)list -> data ); list = g_list_next( list ); } } gint main( ) { GList *list = NULL; FILE *infile; gchar buffer[5][81]; gint i = 0; /***** OPEN DATA FILE *****/ if( ( infile = fopen( "/home/jim/gnome/data.dat", "r" )) == NULL ) { g_print( "\nfopen() failed!\n" ); exit( 0 ); } /***** LOAD BUFFER WITH DATA *****/ while( ( fgets( buffer[i], 81, infile ) ) != NULL ) { i++; } /***** ADD BUFFER DATA TO GList *****/ for( i = 0; i < 5; i++ ) { list = g_list_append( list, buffer[i] ); } PrintList( list ); g_list_free( list ); fclose( infile ); return 0; } thank you, jim, scurveedog@yahoo.com __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com From jgotts@ann-arbor.fmfts.com Mon Feb 11 09:57:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ann-arbor.fmfts.com (fmfts.com [64.9.213.97]) by mail.gnome.org (Postfix) with ESMTP id D568E18E08 for ; Mon, 11 Feb 2002 09:57:36 -0500 (EST) Received: from ann-arbor.fmfts.com (jgotts@localhost) by ann-arbor.fmfts.com (8.11.6/8.11.6) with ESMTP id g1BEuWM27570 for ; Mon, 11 Feb 2002 09:56:32 -0500 Message-Id: <200202111456.g1BEuWM27570@ann-arbor.fmfts.com> To: gtk-list@gnome.org From: jgotts@linuxsavvy.com Reply-To: jgotts@linuxsavvy.com Subject: Repeating mouse button widget Date: Mon, 11 Feb 2002 09:56:32 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Is there some kind of widget that I can use to report new events or at least trigger some handler repeatedly after some time interval while a mouse button is being held down? John -- John GOTTS http://linuxsavvy.com/staff/jgotts From pbd@op.net Mon Feb 11 10:13:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 043C11812D for ; Mon, 11 Feb 2002 10:13:39 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-203.phlpa.fast.net [209.92.99.203]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA06439; Mon, 11 Feb 2002 10:13:35 -0500 (EST) Message-Id: <200202111513.KAA06439@renoir.op.net> To: jgotts@linuxsavvy.com Cc: gtk-list@gnome.org Subject: Re: Repeating mouse button widget In-reply-to: Your message of "Mon, 11 Feb 2002 09:56:32 EST." <200202111456.g1BEuWM27570@ann-arbor.fmfts.com> Date: Mon, 11 Feb 2002 10:13:33 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Is there some kind of widget that I can use to report new events or at least >trigger some handler repeatedly after some time interval while a mouse button >is being held down? read the list archive for the last 5-6 days. for some reason, 2 other people asked much the same question, and one of them posted code after i gave them some pointers. --p From lynn.lin@boeing.com Mon Feb 11 13:41:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from blv-smtpout-01.boeing.com (blv-smtpout-01.boeing.com [192.161.36.5]) by mail.gnome.org (Postfix) with ESMTP id 795A11915D for ; Mon, 11 Feb 2002 13:41:09 -0500 (EST) Received: from blv-av-02.boeing.com ([192.54.3.92]) by blv-smtpout-01.boeing.com (8.9.2/8.8.5-M2) with ESMTP id KAA15882 for ; Mon, 11 Feb 2002 10:41:08 -0800 (PST) Received: from slb-hub-01.boeing.com (localhost [127.0.0.1]) by blv-av-02.boeing.com (8.9.3/8.9.2/MBS-AV-01) with ESMTP id KAA08288 for ; Mon, 11 Feb 2002 10:41:07 -0800 (PST) Received: from xch-swbh-02.sw.nos.boeing.com (xch-swbh-02.sw.nos.boeing.com [129.172.87.58]) by slb-hub-01.boeing.com (8.11.3/8.11.3/MBS-LDAP-01) with ESMTP id g1BIf6T17552 for ; Mon, 11 Feb 2002 10:41:06 -0800 (PST) Received: by xch-swbh-02.sw.nos.boeing.com with Internet Mail Service (5.5.2650.21) id <1LVJCA6F>; Mon, 11 Feb 2002 10:41:03 -0800 Message-ID: From: "Lin, Lynn" To: gtk-list@gnome.org Subject: Does GTK+ controls the "feel and look theme" ? Date: Mon, 11 Feb 2002 10:40:56 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, Do you know by chance if GTK+ has the "feel and look" choice that can be made at runtime (for example: windows look, Motif look, Swing/Metal look or Macintosh look) Thank you :) Lynn From lynn.lin@boeing.com Mon Feb 11 19:32:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from blv-smtpout-01.boeing.com (blv-smtpout-01.boeing.com [192.161.36.5]) by mail.gnome.org (Postfix) with ESMTP id 06725186EA for ; Mon, 11 Feb 2002 19:32:28 -0500 (EST) Received: from slb-av-01.boeing.com ([129.172.13.4]) by blv-smtpout-01.boeing.com (8.9.2/8.8.5-M2) with ESMTP id QAA24464 for ; Mon, 11 Feb 2002 16:32:26 -0800 (PST) Received: from slb-hub-01.boeing.com (localhost [127.0.0.1]) by slb-av-01.boeing.com (8.9.3/8.9.2/MBS-AV-01) with ESMTP id QAA00729 for ; Mon, 11 Feb 2002 16:32:26 -0800 (PST) Received: from xch-swbh-02.sw.nos.boeing.com (xch-swbh-02.sw.nos.boeing.com [129.172.87.58]) by slb-hub-01.boeing.com (8.11.3/8.11.3/MBS-LDAP-01) with ESMTP id g1C0WPT08182 for ; Mon, 11 Feb 2002 16:32:25 -0800 (PST) Received: by xch-swbh-02.sw.nos.boeing.com with Internet Mail Service (5.5.2650.21) id <1LVJCV9Y>; Mon, 11 Feb 2002 16:32:24 -0800 Message-ID: From: "Lin, Lynn" To: "'gtk-list@gnome.org'" Subject: glib.h ?? Where is it ? Date: Mon, 11 Feb 2002 16:32:22 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, I am compiling GTK+ source code on Win32 and got this compilation error: "Cannot opened include file glib.h". I ran "Find" to search glib.h but not found. What *zip file that contains glib.h I should download in order to use glib.h ? Thanks a lot for your help, Lynn From pbd@op.net Mon Feb 11 19:43:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id AFCA1186EA for ; Mon, 11 Feb 2002 19:43:52 -0500 (EST) Received: from someip.ppp.op.net (maxtnt03-341.phlpa.fast.net [209.92.231.87]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id TAA11248; Mon, 11 Feb 2002 19:43:13 -0500 (EST) Message-Id: <200202120043.TAA11248@renoir.op.net> To: "Lin, Lynn" Cc: gtk-list@gnome.org Subject: Re: Does GTK+ controls the "feel and look theme" ? In-reply-to: Your message of "Mon, 11 Feb 2002 10:40:56 PST." Date: Mon, 11 Feb 2002 19:37:54 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi there, > >Do you know by chance if GTK+ has the "feel and look" choice that can be >made at runtime (for example: windows look, Motif look, Swing/Metal look or >Macintosh look) yes. visit www.themes.org/gtk --p From mallum@10.am Mon Feb 11 19:57:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost (pc-62-30-165-220-hw.blueyonder.co.uk [62.30.165.220]) by mail.gnome.org (Postfix) with ESMTP id 5460D18FB3 for ; Mon, 11 Feb 2002 19:57:40 -0500 (EST) Received: from mallum by localhost with local (Exim 3.34 #1 (Debian)) id 16aRGL-0000JZ-00 for ; Tue, 12 Feb 2002 00:57:37 +0000 Date: Tue, 12 Feb 2002 00:57:36 +0000 From: mallum To: gtk-list@gnome.org Subject: synthetic button press event in GTK1.2 Message-ID: <20020212005736.GC486@10.am> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I need to send a 'synthetic' button release event. Im under the impression I can only do this with a call to Xlibs XSendEvent. However Im not having much luck :( My main problem seems to be translating GDK Xlib representations back to actual Xlib ones; My XSendEvent looks something like; XSendEvent((Display*)GDK_DISPLAY(), GDK_WINDOW_XWINDOW(((GdkEventAny*)event)->window) ,False, ButtonReleaseMask, (XEvent *)&syn_event); Does that look right ? Event better does anyone have an example of accomplishing this actual feat with GTK ? -- mallum From sven@gimp.org Mon Feb 11 20:37:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (A0cfa.pppool.de [213.6.12.250]) by mail.gnome.org (Postfix) with ESMTP id 3C096195BB for ; Mon, 11 Feb 2002 20:37:05 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16aRsN-00006A-00; Tue, 12 Feb 2002 02:36:55 +0100 To: mallum Cc: gtk-list@gnome.org Subject: Re: synthetic button press event in GTK1.2 References: <20020212005736.GC486@10.am> From: Sven Neumann Date: 12 Feb 2002 02:36:54 +0100 In-Reply-To: <20020212005736.GC486@10.am> Message-ID: Lines: 11 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, mallum writes: > I need to send a 'synthetic' button release event. Im under the > impression I can only do this with a call to Xlibs XSendEvent. do you really need to do that? What are you trying to acomplish? Salut, Sven From rtriay@avantel.net Mon Feb 11 21:02:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h004.c003.snv.cp.net [209.228.32.218]) by mail.gnome.org (Postfix) with SMTP id 2FE8F18118 for ; Mon, 11 Feb 2002 21:02:21 -0500 (EST) Received: (cpmta 9470 invoked from network); 11 Feb 2002 18:02:14 -0800 Received: from 148.240.116.144 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.218) with SMTP; 11 Feb 2002 18:02:14 -0800 X-Sent: 12 Feb 2002 02:02:14 GMT Received: from galatazarai [10.0.0.2] by Proxy+; Mon, 11 Feb 2002 19:57:37 -0600 for multiple recipients Message-ID: <004701c1b369$9a589880$0200000a@galatazarai> From: =?iso-8859-1?Q?Ram=F3n_Triay_Espinosa?= To: "Jim Adams" , References: <20020211030750.54810.qmail@web13701.mail.yahoo.com> Subject: Re: GList in a list box Date: Mon, 11 Feb 2002 20:04:27 -0600 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 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ----- Original Message ----- From: "Jim Adams" To: Sent: Sunday, February 10, 2002 9:07 PM Subject: GList in a list box > Hello, > > I am a beginner who has become very confused. > > I have a data file and can transfer it to a GList which I can then print > out. Can anyone help me display the complete GList in a gtk+ list box? > > My test program to load a GList and then print it out: > > #include > #include > > /***** FUNC TO DISPLAY GList *****/ > void PrintList( GList *list ) > { > list = g_list_first( list ); > > while( list != NULL ) > { > g_print( "%s", (gchar *)list -> data ); > list = g_list_next( list ); > } > } > > gint main( ) > { > GList *list = NULL; > > FILE *infile; > gchar buffer[5][81]; > gint i = 0; > > /***** OPEN DATA FILE *****/ > if( ( infile = fopen( "/home/jim/gnome/data.dat", "r" )) == NULL ) > { > g_print( "\nfopen() failed!\n" ); > exit( 0 ); > } > > /***** LOAD BUFFER WITH DATA *****/ > while( ( fgets( buffer[i], 81, infile ) ) != NULL ) > { > i++; > } > > /***** ADD BUFFER DATA TO GList *****/ > for( i = 0; i < 5; i++ ) > { > list = g_list_append( list, buffer[i] ); > } > > PrintList( list ); > g_list_free( list ); > fclose( infile ); > > return 0; > } > > thank you, > jim, scurveedog@yahoo.com > Hi Jim: What you have to do to get your values in a Listbox is very similar to what you did to get them in the GList, just declare and make an instance of a GtkWindow and GtkList widgets, then put your values in the GList using the gtk_list_insert_items function. The resulting code should look like this. #include /* gtk.h includes glib.h*/ > #include > > /***** FUNC TO DISPLAY GList *****/ > void PrintList( GList *list ) > { > list = g_list_first( list ); > > while( list != NULL ) > { > g_print( "%s", (gchar *)list -> data ); > list = g_list_next( list ); > } > } > /****This is how the function should look like****/ void GListInWindow (GList *list) { GtkWindow *MyWin; GtkList *MyList; MyWin=gtk_window_new(GTK_WINDOW_TOPLEVEL); MyList=gtk_list_new(); gtk_list_insert_items(MyList, list, 0); gtk_window_add(GTK_CONTAINER(MyWin), GTK_WIDGET(MyList)); gtk_widget_show(MyList); gtk_widget_show(MyWin); } /* In order to use gtk.h is necesary to get the command line parameters */ gint main( &argc, &argv[]) > { > GList *list = NULL; > > FILE *infile; > gchar buffer[5][81]; > gint i = 0; > > /***** OPEN DATA FILE *****/ > if( ( infile = fopen( "/home/jim/gnome/data.dat", "r" )) == NULL ) > { > g_print( "\nfopen() failed!\n" ); > exit( 0 ); > } > > /***** LOAD BUFFER WITH DATA *****/ > while( ( fgets( buffer[i], 81, infile ) ) != NULL ) > { > i++; > } > > /***** ADD BUFFER DATA TO GList *****/ > for( i = 0; i < 5; i++ ) > { > list = g_list_append( list, buffer[i] ); > } > > PrintList( list ); /*You MUST include this line before doing ANYTHNG with GTK*/ gtk_init (argc,argv); /*Start infinite loop*/ GListInWindow ( list ); gtk_main(); g_list_free( list ); > fclose( infile ); > > return 0; > } > Of course, to you'll need to kill this program in order to end it. That's because we haven't implementes any event callback to manage the "delete" signal from our main window so let's use kill-9 PID :o) I hope this helps!!!!! rtriay :) _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From leidola@newcon.de Tue Feb 12 05:00:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 8EE9F18237 for ; Tue, 12 Feb 2002 05:00:13 -0500 (EST) Received: from [213.70.108.94] ([213.70.108.94]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id LAA05144; Tue, 12 Feb 2002 11:00:12 +0100 Subject: Re: glib.h ?? Where is it ? From: Olaf Leidinger To: "Lin, Lynn" , GTK Mailing List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 12 Feb 2002 11:02:54 +0100 Message-Id: <1013508175.782.6.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 11 Feb 2002 16:32:22 -0800 schrieb Lin, Lynn: > Hi there, > > I am compiling GTK+ source code on Win32 and got this compilation error: > "Cannot opened include file glib.h". I ran "Find" to search glib.h but not > found. What *zip file that contains glib.h I should download in order to > use glib.h ? > > Thanks a lot for your help, > > Lynn > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hello!!! Glib.h is in glib-1.x.y.tar.gz or .zip. But why do you wanna compile gtk yourself. You can download precompiled binaries from http://www.gimp.org/~tml/gimp/win32//new-downloads.html There you find the latest win32 developer binaries. I think 1.3.12 is the version. Good luck, Olaf From maa@sparc.spb.su Tue Feb 12 06:10:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from guard.sparc.spb.su (guard.sparc.spb.su [195.19.226.98]) by mail.gnome.org (Postfix) with ESMTP id 2FC611905F for ; Tue, 12 Feb 2002 06:10:58 -0500 (EST) Received: from mail.sparc.spb.su (mail.sparc.spb.su [192.168.205.210]) by guard.sparc.spb.su (8.11.4/8.10.1) with ESMTP id g1CBAuN01207 for ; Tue, 12 Feb 2002 14:10:56 +0300 (MSK) Received: from london.sparc.spb.su (london.sparc.spb.su [192.168.205.229]) by mail.sparc.spb.su (8.11.4/8.11.1) with ESMTP id g1CB5lA87262 for ; Tue, 12 Feb 2002 14:05:47 +0300 (MSK) (envelope-from maa@sparc.spb.su) Date: Tue, 12 Feb 2002 14:14:00 +0300 From: "Aleksey A. Malyshev" X-Mailer: The Bat! (v1.53d) Reply-To: "Aleksey A. Malyshev" X-Priority: 3 (Normal) Message-ID: <1921074525.20020212141400@sparc.spb.su> To: gtk-list@gnome.org Subject: Problem with gtk_im_context_get_surrounding () MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a problem with gtk_im_context_get_surrounding (). Test case: #include int main (int argc, char** argv) { GtkIMContext *context; gint *index; gchar **text; gboolean res; gtk_init (&argc, &argv); context = gtk_im_multicontext_new (); res = gtk_im_context_get_surrounding (GTK_IM_CONTEXT(context),text ,index); if (res) printf ("\nResult True\n"); } Output: Segmentation fault What's wrong in this case? What I am doing wrong? Thanks, Aleksey. From mallum@10.am Tue Feb 12 06:32:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost (lan.ipc.co.uk [193.119.160.10]) by mail.gnome.org (Postfix) with ESMTP id E9E661888B for ; Tue, 12 Feb 2002 06:32:45 -0500 (EST) Received: from mallum by localhost with local (Exim 3.34 #1 (Debian)) id 16abA9-00009Q-00; Tue, 12 Feb 2002 11:31:53 +0000 Date: Tue, 12 Feb 2002 11:31:52 +0000 From: mallum To: Sven Neumann Cc: gtk-list@gnome.org Subject: Re: synthetic button press event in GTK1.2 Message-ID: <20020212113152.GB529@10.am> References: <20020212005736.GC486@10.am> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Via an emmision hook, Im writing a gtk module that catches 'held down' button 1 events and on release tranforms them into a button 3 press event. This works fine, but the app is now missing a button release event which is causing problems. Im trying to create this via XSendEvent . This is for touchscreen devices running gtk. Can suggest a better way of accomplishing this ? -- mallum on Tue, Feb 12, 2002 at 02:36:54AM +0100, Sven Neumann wrote: > Hi, > > mallum writes: > > > I need to send a 'synthetic' button release event. Im under the > > impression I can only do this with a call to Xlibs XSendEvent. > > do you really need to do that? What are you trying to acomplish? > > > Salut, Sven > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From hp@redhat.com Tue Feb 12 10:14:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 77E9E1845C for ; Tue, 12 Feb 2002 10:14:39 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1CFEad12548; Tue, 12 Feb 2002 10:14:36 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Aleksey A. Malyshev" Cc: gtk-list@gnome.org Subject: Re: Problem with gtk_im_context_get_surrounding () References: <1921074525.20020212141400@sparc.spb.su> From: Havoc Pennington Date: 12 Feb 2002 10:14:35 -0500 In-Reply-To: <1921074525.20020212141400@sparc.spb.su> Message-ID: Lines: 37 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Aleksey A. Malyshev" writes: > > I have a problem with gtk_im_context_get_surrounding (). > > Test case: > #include > > int > main (int argc, char** argv) > { > GtkIMContext *context; > gint *index; > gchar **text; > gboolean res; > > gtk_init (&argc, &argv); > > context = gtk_im_multicontext_new (); > > res = gtk_im_context_get_surrounding (GTK_IM_CONTEXT(context),text ,index); > if (res) > printf ("\nResult True\n"); > > } > > Output: > Segmentation fault > > > What's wrong in this case? > What I am doing wrong? "text" and "index" are uninitialized. If you turn on warnings (-Wall flag with gcc) then your compiler will tell you these things. Havoc From jeff@sigmaitsolutions.com Tue Feb 12 16:30:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from webmail.greatbasin.net (webmail.greatbasin.net [207.228.37.201]) by mail.gnome.org (Postfix) with ESMTP id DF22A182D0 for ; Tue, 12 Feb 2002 16:30:22 -0500 (EST) Received: from greatbasin.net (localhost.localdomain [127.0.0.1]) by webmail.greatbasin.net (8.11.6/8.11.6) with SMTP id g1CLULI01863 for ; Tue, 12 Feb 2002 13:30:22 -0800 From: "Jeff Payne" Reply-To: jeff@sigmaitsolutions.com To: gtk-list@gnome.org Date: Tue, 12 Feb 2002 13:30:22 -0800 Subject: problem builduing gtk+2.0 (1.3.13) X-Mailer: CWMail Web to Mail Gateway 2.7t, http://netwinsite.com/top_mail.htm Message-id: <3c69896e.745.0@greatbasin.net> X-User-Info: 216.210.203.32 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Forgive my ignorance as I am new to GTK. I'm attempting to build the latest development release of gtk along with the supporting packages. After building the glib, atk, and pango packages, the gtk+2.0 configure script doesn't find the pango package when pkg-config is called. I've checked the /usr/lib/pkgconfig directory and verified that pango.pc is there and pointing to the correct lib and include dirs, but when I manually check for installed packages with pkg-config only the glib and atk packages come up. Has anyone else had this problem? Any help would be greatly appreciated. Jeff Payne Sigma Solutions, Inc. (775)544-3618 From inodal@teleline.es Tue Feb 12 16:33:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp7.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id C336318CE4 for ; Tue, 12 Feb 2002 16:33:07 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp7.mail.isp (Netscape Messaging Server 4.15 tsmtp7 Jul 26 2001 13:10:38) with ESMTP id GRFVUB01.Q6O for ; Tue, 12 Feb 2002 22:32:35 +0100 Message-ID: <3C698A1F.7080500@teleline.es> Date: Tue, 12 Feb 2002 21:33:19 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: problems with the redraw of widgets and callbacks with long operation time Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In my program I have a window where I select a VRML file to load, press OK and in the button callback, I hide this window and call my function to read the VRML file (I use CyberVRML97 for this). The problem is that my GTK+ application seems to be freezed during the load. The main window doesn't care about my "expose_event" callback until the load ends. I don't like this behaviour, how could I avoid this? Thanks in advance, Ignacio Nodal From rsteinke@w-link.net Tue Feb 12 16:48:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id A115919292 for ; Tue, 12 Feb 2002 16:48:51 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16aknC-0003LK-00; Tue, 12 Feb 2002 13:48:50 -0800 Date: Tue, 12 Feb 2002 13:48:50 -0800 From: rsteinke@w-link.net To: inodal@teleline.es, gtk-list@gnome.org Subject: Re: problems with the redraw of widgets and callbacks with long operation time Message-ID: <3C698DC2.nail9WM1QYQMD@w-link.net> References: <3C698A1F.7080500@teleline.es> In-Reply-To: <3C698A1F.7080500@teleline.es> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Ignacio Nodal > > Hi, > > In my program I have a window where I select a VRML file to load, press > OK and in the button callback, I hide this window and call my function > to read the VRML file (I use CyberVRML97 for this). > > The problem is that my GTK+ application seems to be freezed during the > load. The main window doesn't care about my "expose_event" callback > until the load ends. > > I don't like this behaviour, how could I avoid this? You're probably not giving the mainloop any time to run during the load. Look at the documentation on the gtk mainloop (or, better, the glib mainloop) for instructions on how to do this. Ron Steinke From inodal@teleline.es Tue Feb 12 17:29:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp7.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id C8EA2181D7 for ; Tue, 12 Feb 2002 17:29:16 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp7.mail.isp (Netscape Messaging Server 4.15 tsmtp7 Jul 26 2001 13:10:38) with ESMTP id GRFYFW00.FAD; Tue, 12 Feb 2002 23:28:44 +0100 Message-ID: <3C69973A.2030908@teleline.es> Date: Tue, 12 Feb 2002 22:29:14 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: rsteinke@w-link.net Cc: gtk-list@gnome.org Subject: Re: problems with the redraw of widgets and callbacks with long operation time References: <3C698A1F.7080500@teleline.es> <3C698DC2.nail9WM1QYQMD@w-link.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: rsteinke@w-link.net wrote: > From: Ignacio Nodal > >>Hi, >> >>In my program I have a window where I select a VRML file to load, press >>OK and in the button callback, I hide this window and call my function >>to read the VRML file (I use CyberVRML97 for this). >> >>The problem is that my GTK+ application seems to be freezed during the >>load. The main window doesn't care about my "expose_event" callback >>until the load ends. >> >>I don't like this behaviour, how could I avoid this? >> > > You're probably not giving the mainloop any time to run during the load. > Look at the documentation on the gtk mainloop (or, better, the glib mainloop) > for instructions on how to do this. > > Ron Steinke > > I've tried with: while (gtk_events_pending()) gtk_main_iteration(); before calling my VRML load function, but gtk_events_pending returns 0. I've also asked for gdk_events_pending, since i'm working with GtkGLArea, being a "subclass" of GtkDrawingArea , but this one returns 0 also. I'm a bit lost... Thanks in advance, Ignacio From pfeiffer@viper.cs.nmsu.edu Tue Feb 12 17:37:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viper.cs.nmsu.edu (viper.cs.nmsu.edu [128.123.64.113]) by mail.gnome.org (Postfix) with ESMTP id A9A9F1891C for ; Tue, 12 Feb 2002 17:37:50 -0500 (EST) Received: (from pfeiffer@localhost) by viper.cs.nmsu.edu (8.11.6/8.11.6) id g1CMbmj09967; Tue, 12 Feb 2002 15:37:48 -0700 From: Joe Pfeiffer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15465.39228.317499.779151@cs.nmsu.edu> Date: Tue, 12 Feb 2002 15:37:48 -0700 To: Ignacio Nodal Cc: rsteinke@w-link.net, gtk-list@gnome.org Subject: Re: problems with the redraw of widgets and callbacks with long operation time In-Reply-To: <3C69973A.2030908@teleline.es> References: <3C698A1F.7080500@teleline.es> <3C698DC2.nail9WM1QYQMD@w-link.net> <3C69973A.2030908@teleline.es> X-Mailer: VM 7.00 under Emacs 21.1.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > > I've tried with: > > while (gtk_events_pending()) > gtk_main_iteration(); > > before calling my VRML load function, but gtk_events_pending returns 0. > > I've also asked for gdk_events_pending, since i'm working with > GtkGLArea, being a "subclass" of GtkDrawingArea , but this one returns 0 > also. Not before, during. You need to find a point in your load function that is executed fairly frequently (like once per outer loop iteration or something) and look for events there. What's going on is exactly what you're suspecting: once you get into that loop, it's not looking for expose (or any other) events any more, until the function returns. So that's what you need to fix. -- Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605 Department of Computer Science FAX -- (505) 646-1002 New Mexico State University http://www.cs.nmsu.edu/~pfeiffer Southwestern NM Regional Science and Engr Fair: http://www.nmsu.edu/~scifair From rwan@cs.mu.oz.au Tue Feb 12 18:27:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from vike.cs.mu.OZ.AU (vike.cs.mu.OZ.AU [128.250.36.73]) by mail.gnome.org (Postfix) with ESMTP id 6919C1834A for ; Tue, 12 Feb 2002 18:27:06 -0500 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 5A06075C0; Wed, 13 Feb 2002 10:27:04 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 57F70ACA9; Wed, 13 Feb 2002 10:27:04 +1100 (EST) Date: Wed, 13 Feb 2002 10:27:04 +1100 (EST) From: Raymond Wan Reply-To: Raymond Wan To: Jeff Payne Cc: gtk-list@gnome.org Subject: Re: problem builduing gtk+2.0 (1.3.13) In-Reply-To: <3c69896e.745.0@greatbasin.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Jeff, On Tue, 12 Feb 2002, Jeff Payne wrote: > Forgive my ignorance as I am new to GTK. I'm attempting to build the latest > development release of gtk along with the supporting packages. After building > the glib, atk, and pango packages, the gtk+2.0 configure script doesn't find > the pango package when pkg-config is called. I've checked the /usr/lib/pkgconfig > directory and verified that pango.pc is there and pointing to the correct lib > and include dirs, but when I manually check for installed packages with pkg-config > only the glib and atk packages come up. One warning; I installed GTK+ as a non-root user, so there may be some variations. Before you built anything, did you set these environment variables: export GTK_DIR=/home/rwan export PATH="$PATH":$GTK_DIR/bin export LD_LIBRARY_PATH=$GTK_DIR/lib export PKG_CONFIG_PATH=$GTK_DIR/lib/pkgconfig Of course, GTK_DIR can be anything; and that's what I had to do because I was a non-root [that's my home directory]. When you configured pango, did you add a --prefix like this: ./configure --prefix=$GTK_DIR I don't know if you have to do this, but if you didn't, you can give it a try... Ray From inodal@teleline.es Tue Feb 12 19:37:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp1.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id AA03318426 for ; Tue, 12 Feb 2002 19:37:55 -0500 (EST) Received: from paranoia ([213.97.141.171]) by tsmtp1.mail.isp (Netscape Messaging Server 4.15 tsmtp1 Jul 26 2001 13:10:38) with SMTP id GRG4EA01.6MR; Wed, 13 Feb 2002 01:37:22 +0100 Message-ID: <000b01c1b426$aceb8e40$0a01a8c0@paranoia> From: "Ignacio Nodal" To: "Joe Pfeiffer" Cc: References: <3C698A1F.7080500@teleline.es><3C698DC2.nail9WM1QYQMD@w-link.net><3C69973A.2030908@teleline.es> <15465.39228.317499.779151@cs.nmsu.edu> Subject: Re: problems with the redraw of widgets and callbacks with long operation time Date: Wed, 13 Feb 2002 00:37:51 -0000 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Oh, I see... well, then I'll have to be patient and wait for my VRML to end loading. The main computation time takes place in functions from the CyberVRML97 library. It's not my source, and I don't think I want to modify/hack it hehehe :-) Thanks for all, Ignacio Nodal ----- Original Message ----- From: "Joe Pfeiffer" To: "Ignacio Nodal" Cc: ; Sent: Tuesday, February 12, 2002 10:37 PM Subject: Re: problems with the redraw of widgets and callbacks with long operation time > > > > before calling my VRML load function, but gtk_events_pending returns 0. > Not before, during. You need to find a point in your load function > that is executed fairly frequently (like once per outer loop iteration > or something) and look for events there. What's going on is exactly > what you're suspecting: once you get into that loop, it's not looking > for expose (or any other) events any more, until the function > returns. So that's what you need to fix. > > Ignacio Nodal writes: > > > > I've tried with: > > > > while (gtk_events_pending()) > > gtk_main_iteration(); From yogeeshappa.mathighatta@wipro.com Wed Feb 13 01:43:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 5002B180E1 for ; Wed, 13 Feb 2002 01:43:47 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g1D6gCX06172 for ; Wed, 13 Feb 2002 12:12:14 +0530 (IST) Received: from m2foe301975 ([10.114.9.182]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GRGLAO00.926; Wed, 13 Feb 2002 12:12:24 +0530 Message-ID: <030d01c1b459$59695990$b609720a@m2foe301975> Reply-To: "Yogeesh MB" From: "Yogeesh MB" To: "Yogeesh M B" Cc: References: <3C4D5E3B.5010904@ng-london.org.uk> Subject: GtkObject in gnome-utils/Gnome-Calculator Date: Wed, 13 Feb 2002 12:10:38 +0530 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit Hi, In gnome-utils/Gnome-calculator has both GTK_OBJECT_CLASS destroy call :gnome_calc_destroy(GtkObject * gobject), and G_OBJECT_CLASS finalize :gnome_calc_finalize(GObject * gobject). GTK_OBJECT_CLASS is deprecated and there is no destroy call in G_OBJECT_CLASS. I would like to know why the destroy call is still retained. Isn't finalize a substitute for destroy? Regards, Yogeesh MB. Kevin wrote: Hi Yogeesh. I hate to do this, but you should probably ask on the gtk-list mailing list since this is a very general porting question. I'm not familiar with the changes needed to port from GtkObject to GObject so the gtk list will give a better answer. Regards, Kevin ----- Original Message ----- From: Yogeesh MB To: kfv101@psu.edu Sent: Saturday, February 09, 2002 1:47 AM Subject: GtkObject in Gnome-Calculator Hi Kevin, I was testing the ported gnome-utils/gnome-calculator, I found there is GtkObject function call gnome_calc_destroy(GtkObject * gobject) used. In GTK_OBJECT_CALSS there is a destroy call. but in (deprecated) G_OBJECT_CLASS as such there is no destroy call (except finalize) I have build the gnome-calulator by commenting destroy call, Its working fine. Let me know the reason why still GTK_OBJECT_CLASS(destroy) exists. I mailed Bastien Nocera in this regard, below is the mail from him. Awaiting for ur reply, Regards, Yogeesh MB. ****************************************** Hi, Kevin Vandersloot is responsible for the gnome-utils port these days. Mail him. Cheers On Fri, 2002-02-08 at 14:54, Yogeesh MB wrote: > Hi George, > > I was testing the ported gnome-utils/gnome-calculator, > I found there is GtkObject function call gnome_calc_destroy(GtkObject * gobject) used. > In GTK_OBJECT_CALSS there is a destroy call. but in (deprecated) > G_OBJECT_CLASS as such there is no destroy call (except finalize) > I have build the gnome-calulator by commenting destroy call, Its working fine. > > Let me know the reason why still GTK_OBJECT_CLASS(destroy) exists. > > awaiting for ur reply, > Regards, > > Yogeesh MB. > Sr. Software Engineer, > Wipro Technologies, > #53/1, Ganapa Complex, > Madivala(M3), Hosur Road, > Bangalore-68. > Ph:5502001-8, X 5127 > Res:6728996. > > > /Bastien Nocera http://hadess.net Bangalore-68. Ph:5502001-8, X 5127 Res:6728996. ------=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8 Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ******************************************************************** ------=_NextPartTM-000-1f628c5c-2049-11d6-a942-00b0d0d06be8-- From db@zigo.dhs.org Wed Feb 13 02:46:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cosmo.zigo.dhs.org (as2-4-3.an.g.bonet.se [194.236.34.191]) by mail.gnome.org (Postfix) with ESMTP id 2102518108 for ; Wed, 13 Feb 2002 02:46:18 -0500 (EST) Received: from localhost (db@localhost) by cosmo.zigo.dhs.org (8.11.6/8.11.6) with ESMTP id g1D7k3t09662 for ; Wed, 13 Feb 2002 08:46:03 +0100 X-Authentication-Warning: cosmo.zigo.dhs.org: db owned process doing -bs Date: Wed, 13 Feb 2002 08:46:02 +0100 (CET) From: Dennis Bjorklund To: Subject: scrolling gtktextview Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I add lines at the end of the textview and would like it to scroll down to the bottom so I can see the new lines. But I can't get it to work. I tried: gtk_text_buffer_get_end_iter (buf, &iter); gtk_text_view_scroll_to_iter (view, &iter, 0.0, FALSE, 0.0, 0.0); but the does not scroll all the way, it can leave 5-6 lines that are not visible after scroll. Next attempt is to have a mark in the very end of the buffer and doing gtk_text_view_scroll_mark_onscreen (view, mark); but this have similar problems as the first try. The last thing I tried was to get the GtkAdjustment out of the GtkScrolledWindow. When I set this, then it works. But if flickers so badly that it's not usable. I don't understand why I can't get the gtk_text_view_scroll_xxxxxx to work. -- /Dennis From morten@rh-data.com Wed Feb 13 05:15:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.pc-cons.no (mail.pc-cons.no [193.69.57.47]) by mail.gnome.org (Postfix) with ESMTP id C31E2183AC for ; Wed, 13 Feb 2002 05:15:57 -0500 (EST) Received: from www.rh-data.com (rh-data-gw.online.no [194.143.84.10]) by mail.pc-cons.no (8.9.3/8.9.3) with ESMTP id LAA14096 for ; Wed, 13 Feb 2002 11:23:55 +0100 Received: from whitestar.kontor.rh-data.com (whitestar.kontor.rh-data.com [192.168.1.58]) by www.rh-data.com (8.8.7/8.8.7) with ESMTP id LAA05964 for ; Wed, 13 Feb 2002 11:11:41 +0100 Subject: How do I change the default language in GTK / GNOME? From: Morten Andersen To: gtk-list@gnome.org Content-Type: multipart/alternative; boundary="=-eut4Defdr0g8zcD3SnW5" X-Mailer: Evolution/1.0.2 Date: 13 Feb 2002 11:15:44 +0100 Message-Id: <1013595344.8972.18.camel@whitestar.kontor.rh-data.com> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-eut4Defdr0g8zcD3SnW5 Content-Type: text/plain Content-Transfer-Encoding: 7bit Somehow my default language changed from english to polish or something on almost all of my gnome apps and all GTK apps. Does anyone know how to change it back to english?? ------------------------------------------------------------------------------- With best regards from Morten Andersen System Consultant RH-Data AS email: morten@rh-data.com tlf: 32770906 fax: 32770901 mobil: 41600026 web: http://www.rh-data.com Also take a look at these web sites: http://www.redhat.com http://www.ximian.com ------------------------------------------------------------------------------- --=-eut4Defdr0g8zcD3SnW5 Content-Type: text/html; charset=utf-8
Somehow my default language changed from english to polish or something on almost all of my gnome apps and all GTK apps.
Does anyone know how to change it back to english??
-------------------------------------------------------------------------------
With best regards from
Morten Andersen
System Consultant RH-Data AS
email: morten@rh-data.com
tlf: 32770906
fax: 32770901
mobil: 41600026
web: http://www.rh-data.com


Also take a look at these web sites:
http://www.redhat.com
http://www.ximian.com
-------------------------------------------------------------------------------
--=-eut4Defdr0g8zcD3SnW5-- From hp@redhat.com Wed Feb 13 11:36:00 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 141A81810E for ; Wed, 13 Feb 2002 11:36:00 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1DGZpI00939; Wed, 13 Feb 2002 11:35:51 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Yogeesh MB" Cc: Subject: Re: GtkObject in gnome-utils/Gnome-Calculator References: <3C4D5E3B.5010904@ng-london.org.uk> <030d01c1b459$59695990$b609720a@m2foe301975> From: Havoc Pennington Date: 13 Feb 2002 11:35:51 -0500 In-Reply-To: <030d01c1b459$59695990$b609720a@m2foe301975> Message-ID: Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Yogeesh MB" writes: > > In gnome-utils/Gnome-calculator has both GTK_OBJECT_CLASS destroy call > :gnome_calc_destroy(GtkObject * gobject), and G_OBJECT_CLASS finalize > :gnome_calc_finalize(GObject * gobject). > GTK_OBJECT_CLASS is deprecated and there is no destroy call in > G_OBJECT_CLASS. I would like to know why the destroy call is still > retained. Isn't finalize a substitute for destroy? > GtkObject and gtk_object_destroy aren't marked deprecated in my copy of GTK. These are still needed in many cases. finalize means free memory; destroy means return the widget to an uninitialized state, e.g. removing any container-child relationships. Havoc From hp@redhat.com Wed Feb 13 11:37:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id A29D618B97 for ; Wed, 13 Feb 2002 11:37:45 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1DGbhU00943; Wed, 13 Feb 2002 11:37:43 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Morten Andersen Cc: gtk-list@gnome.org Subject: Re: How do I change the default language in GTK / GNOME? References: <1013595344.8972.18.camel@whitestar.kontor.rh-data.com> From: Havoc Pennington Date: 13 Feb 2002 11:37:43 -0500 In-Reply-To: <1013595344.8972.18.camel@whitestar.kontor.rh-data.com> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Morten Andersen writes: > Somehow my default language changed from english to polish or something > on almost all of my gnome apps and all GTK apps. > Does anyone know how to change it back to english?? > This is a function of the desktop or operating system, not GTK. Maybe the login screen has an option to choose a language? Havoc From hp@redhat.com Wed Feb 13 11:38:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id C37BA190C6 for ; Wed, 13 Feb 2002 11:38:48 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1DGcjB00948; Wed, 13 Feb 2002 11:38:45 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: Dennis Bjorklund Cc: Subject: Re: scrolling gtktextview References: From: Havoc Pennington Date: 13 Feb 2002 11:38:45 -0500 In-Reply-To: Message-ID: Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dennis Bjorklund writes: > I add lines at the end of the textview and would like it to scroll down to > the bottom so I can see the new lines. But I can't get it to work. I > tried: > > gtk_text_buffer_get_end_iter (buf, &iter); > > gtk_text_view_scroll_to_iter (view, &iter, 0.0, > FALSE, 0.0, 0.0); > > but the does not scroll all the way, it can leave 5-6 lines that are not > visible after scroll. Next attempt is to have a mark in the very end of > the buffer and doing > > gtk_text_view_scroll_mark_onscreen (view, mark); > > but this have similar problems as the first try. It's supposed to work, can you write out a small test program that fails, and file the bug on bugzilla.gnome.org? I will investigate. Havoc From vmail@excite.com Wed Feb 13 14:36:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.10]) by mail.gnome.org (Postfix) with ESMTP id 4188319010 for ; Wed, 13 Feb 2002 14:36:26 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id 74885F661; Wed, 13 Feb 2002 14:36:18 -0500 (EST) To: gtk-list@gnome.org Subject: Removing elements from a gtkTree Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: wdulyea@qualcomm.com Message-Id: <20020213193618.74885F661@xprdmailfe.excite.com> Date: Wed, 13 Feb 2002 14:36:18 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How do remove elements from a gtkTree obj?

tree
|--item
|--subtree
|--subitem

I wish to actually remove/add subitems on the fly, How do I accomplish this?

Thanks in advance,

-W


From seberino@dt092n42.san.rr.com Wed Feb 13 16:28:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 9F7B818232 for ; Wed, 13 Feb 2002 16:28:12 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16b6xG-0001F3-00; Wed, 13 Feb 2002 13:28:42 -0800 Date: Wed, 13 Feb 2002 13:28:42 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: How put text in pixmap? How put vertical (rotate 90 degrees) text? Message-ID: <20020213132842.A4746@spawar.navy.mil> References: <20020131135557.A12603@spawar.navy.mil> <200201312200.RAA18251@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200201312200.RAA18251@renoir.op.net>; from pbd@op.net on Thu, Jan 31, 2002 at 04:57:48PM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul This comment broke my heart for the last 2 weeks. :) But, then I stumbled upon something.... What about gdk_draw_text and gdk_draw_string? Chris On Thu, Jan 31, 2002 at 04:57:48PM -0500, Paul Davis wrote: > >How put text in pixmap, horizontal and vertical text??? > > you have no choice but to draw the text 1 character at a time. XWindow > has no primitives for drawing anything except horizontally arranged > text. > > --p -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Wed Feb 13 16:36:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 31ED31862F for ; Wed, 13 Feb 2002 16:36:07 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16b74w-0001FK-00; Wed, 13 Feb 2002 13:36:38 -0800 Date: Wed, 13 Feb 2002 13:36:38 -0800 From: Chris Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-ID: <20020213133638.B4746@spawar.navy.mil> References: <20020206111905.A566@spawar.navy.mil> <200202061924.OAA15372@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202061924.OAA15372@renoir.op.net>; from pbd@op.net on Wed, Feb 06, 2002 at 02:22:48PM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul I may sometimes give impression I'm smart but looks can be deceiving. :) (Ph.D. in physics not computing) I have ZERO X experience! I looked for NULL explanation about why "= NULL" bad but could not anything. Can you give me a 1-2 sentence explanation? Is it a security risk somehow or something? By the way, someone should tell the GTK+ tutorial author that "= NULL" is bad since it has this in scribble.c and apparently he hasn't learned it either. :) I'm glad I have input by all these great experts on this mailing list. Thanks for everything! Chris On Wed, Feb 06, 2002 at 02:22:48PM -0500, Paul Davis wrote: > >I need to sometimes initialize an object to NULL and get this > >message. How avoid??? > > this is getting too close to generic programming questions for this > list. if you don't understand how to fix this yourself, i worry about > future progress on your software. > > SomeObject *someObject = (SomeObject *) 0; > > you should never use "NULL" in a C++ program. look it up with google > to understand why. > > --p -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From rsteinke@w-link.net Wed Feb 13 16:42:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id C702118764 for ; Wed, 13 Feb 2002 16:42:09 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16b7A8-0002uE-00; Wed, 13 Feb 2002 13:42:00 -0800 Date: Wed, 13 Feb 2002 13:42:00 -0800 From: rsteinke@w-link.net To: seberino@spawar.navy.mil, pbd@op.net Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Cc: gtk-list@gnome.org Message-ID: <3C6ADDA8.nail8M311ICGL@w-link.net> References: <20020206111905.A566@spawar.navy.mil> <200202061924.OAA15372@renoir.op.net> <20020213133638.B4746@spawar.navy.mil> In-Reply-To: <20020213133638.B4746@spawar.navy.mil> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Chris Seberino > > Paul > > I may sometimes give impression I'm smart but looks can > be deceiving. :) (Ph.D. in physics not computing) > I have ZERO X experience! > > I looked for NULL explanation about why "= NULL" bad > but could not anything. Can you give me a 1-2 sentence > explanation? Is it a security risk somehow or something? It's got something to do with the stronger typecasting in C++, relative to C. > By the way, someone should tell the GTK+ tutorial author > that "= NULL" is bad since it has this in scribble.c and > apparently he hasn't learned it either. :) That's because it's C and not C++. NULL is completely appropriate in C. > I'm glad I have input by all these great experts on this mailing list. > > Thanks for everything! > > Chris > > On Wed, Feb 06, 2002 at 02:22:48PM -0500, Paul Davis wrote: > > >I need to sometimes initialize an object to NULL and get this > > >message. How avoid??? > > > > this is getting too close to generic programming questions for this > > list. if you don't understand how to fix this yourself, i worry about > > future progress on your software. > > > > SomeObject *someObject = (SomeObject *) 0; > > > > you should never use "NULL" in a C++ program. look it up with google > > to understand why. > > > > --p From pbd@op.net Wed Feb 13 18:02:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 4680A180F2 for ; Wed, 13 Feb 2002 18:02:02 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-71.phlpa.fast.net [209.92.96.71]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id SAA16775; Wed, 13 Feb 2002 18:01:53 -0500 (EST) Message-Id: <200202132301.SAA16775@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? In-reply-to: Your message of "Wed, 13 Feb 2002 13:36:38 PST." <20020213133638.B4746@spawar.navy.mil> Date: Wed, 13 Feb 2002 17:57:11 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I looked for NULL explanation about why "= NULL" bad >but could not anything. Can you give me a 1-2 sentence >explanation? Is it a security risk somehow or something? no, not a security problem. consider how you'd define NULL. #define NULL ((void *)0) now try to use this: SomeObject *ptr = NULL; because C++ is much stricter about types, the compiler will/may complain that it cannot perform an implicit cast of void * to SomeObject *. So in fact, the only acceptable definitions of NULL are 0 or 0L or 0UL or 0U, with no type casting. Since the definitions in a C header file nearly always include the type cast, and since no type cast is acceptable, using NULL is a bad idea. [ quote from a message i found with google]: the C++ standard guarantees that if you use 0 in a pointer context, it will be converted to whatever that platform uses for the "null pointer", even if it happens not to have a bit pattern of all zeroes. (Section 4.10) Therefore, it's safe to use 0 to mean "the null pointer". so, just stick to 0. --p From pfeiffer@viper.cs.nmsu.edu Wed Feb 13 18:21:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viper.cs.nmsu.edu (viper.cs.nmsu.edu [128.123.64.113]) by mail.gnome.org (Postfix) with ESMTP id 97842184CB for ; Wed, 13 Feb 2002 18:21:20 -0500 (EST) Received: (from pfeiffer@localhost) by viper.cs.nmsu.edu (8.11.6/8.11.6) id g1DNLIj15466; Wed, 13 Feb 2002 16:21:18 -0700 From: Joe Pfeiffer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15466.62702.466412.964873@cs.nmsu.edu> Date: Wed, 13 Feb 2002 16:21:18 -0700 To: Chris Seberino , gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? In-Reply-To: <200202132301.SAA16775@renoir.op.net> References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> X-Mailer: VM 7.00 under Emacs 21.1.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It's because the C standard contains an error (I'm sure somebody out there is going to disagree with me as to whether it's an error or not!), and has defined NULL as an integer instead of as a pointer. While it can be cast to a null pointer, if you have an overloaded function that will accept either a null pointer or an int, it'll call the int version. A good description of the problem can be found at http://groups.google.com/groups?q=null+group:comp.lang.c%2B%2B&hl=en&selm=36ca3f75.517359233%40nntp.ix.netcom.com&rnum=5 You can almost always get away with using NULL, and using it does a better job of conveying what your code is trying to do (IMHO). But when you do run into this subtlty, it will take weeks to find the bug... Using 0 has some remote hope of reminding you... -- Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605 Department of Computer Science FAX -- (505) 646-1002 New Mexico State University http://www.cs.nmsu.edu/~pfeiffer Southwestern NM Regional Science and Engr Fair: http://www.nmsu.edu/~scifair From britten@caris.com Wed Feb 13 18:26:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from caris.universal.ca (universal.ca [198.164.13.1]) by mail.gnome.org (Postfix) with ESMTP id 60C31184CB for ; Wed, 13 Feb 2002 18:26:07 -0500 (EST) Received: from dilbert.uslnet.com (proxy.caris.com [198.164.13.3]) by caris.universal.ca (8.11.0/8.11.0) with SMTP id g1DNQ4R03840 for ; Wed, 13 Feb 2002 19:26:04 -0400 Date: Wed, 13 Feb 2002 19:25:55 -0400 From: Ian Britten To: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-Id: <20020213192555.79184ba5.britten@caris.com> In-Reply-To: <200202132301.SAA16775@renoir.op.net> References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> Organization: USL X-Mailer: Sylpheed version 0.6.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 13 Feb 2002 17:57:11 -0500 Paul Davis wrote: > no, not a security problem. consider how you'd define NULL. > > #define NULL ((void *)0) Although this form is allowed, it is *only* valid for C (not C++), and is not how most compilers define NULL. > now try to use this: > > SomeObject *ptr = NULL; > > because C++ is much stricter about types, the compiler will/may > complain that it cannot perform an implicit cast of void * to > SomeObject *. Correct. It's because of this (questionable) NULL #define in the GTK code that C++ developers have problems using GTK... (I've tried to point this out before, but it doesn't seem like anyone wants to fix the problem... (sigh)) > So in fact, the only acceptable definitions of NULL are > 0 or 0L or 0UL or 0U, with no type casting. Correct. This is how every compiler I've seen defines it. [ Granted, I only have access to 6 distinct compilers, from 6 different vendors.... :-/ ] > Since the definitions in a > C header file nearly always include the type cast, and since no type ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This may have been the case years ago, but any compiler doing that now is pretty rare... > cast is acceptable, using NULL is a bad idea. [ quote from a message > found with google]: > > the C++ standard guarantees that if you use 0 in a pointer context, > it will be converted to whatever that platform uses for the "null > pointer", even if it happens not to have a bit pattern of all > zeroes. (Section 4.10) Therefore, it's safe to use 0 to mean "the > null pointer". > > so, just stick to 0. Using NULL is perfectably acceptable, as long as NULL is correctly defined. It is a notational form that adds clarity to the intent of the code (and is easy to search for!). There is absolutely nothing wrong with using NULL in code. Please review the comp.lang.c FAQ, section 5 http://www.eskimo.com/~scs/C-faq/s5.html Summary: GTK has an poor/incorrect definition of NULL that breaks C++ code. At a minimum, the definition should be fixed. However, the better fix would be to simply remove the definition, and use the one provided by the compiler. Ian From rbultje@ronald.bitfreak.net Wed Feb 13 18:38:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id D101B180F2 for ; Wed, 13 Feb 2002 18:38:41 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1DNTp4K008039 for ; Thu, 14 Feb 2002 00:29:51 +0100 (CET) Subject: highlighted button with image gives warning From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 14 Feb 2002 00:38:39 +0100 Message-Id: <1013643520.3834.36.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm trying to get some things done using gtk2. If I create a button (gtk_button_new()) and I put a GtkImage inside it with gtk_container_add() (Gtkmage was created using gtk_image_new_from_pixbuf()) and I go over the button with my mouse (to click it), I get a warning and the image disappears: lt-gst-record (pid:16438): Gtk-WARNING **: gtkstyle.c:1905:gtk_default_render_icon(): invalid icon size `-1' lt-gst-record (pid:16438): Gtk-CRITICAL **: file gtkstyle.c: line 1790 (gtk_style_render_icon): assertion `pixbuf != NULL' failed When leaving the button with my mouse, the image re-appears. It seems as if I need to specify a separate image for the 'highlight' state or tell it to use the same image for that state, so my question: how do I do that? Or is this a bug? In gtk1.2, this worked automagically. Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From markrubn@pacbell.net Wed Feb 13 20:24:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id AF0D51815C for ; Wed, 13 Feb 2002 20:24:27 -0500 (EST) Received: from pacbell.net ([63.201.208.99]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRI007QO18QUA@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Wed, 13 Feb 2002 17:24:27 -0800 (PST) Date: Wed, 13 Feb 2002 17:24:01 -0800 From: "Mark R. Rubin" Subject: Forcing update of widgets To: GTK mailing list Message-id: <3C6B11B1.1AC9DD52@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: o I am attempting to force GTK to update all widgets in a realtime display application using the following code fragment (which I first read about on this mailing list): while (g_main_iteration(FALSE)) ; o There are two problems. First, some widgets, in some cases, do not update. The example I have is a label which is updated from an overloaded motion_notify_event_impl() method in a class derived from Gtk::DrawingArea. (Yes, this is in GTK--, which may or may not be the problem.) o Second problem is that I have a TCP socket connected to the GTK main loop (again GTK--, using Gtk::Main.input.connect()) and doing the above g_main_iteration() loop exposes me to an unwanted re-entrancy. In the middle of processing a user or TCP input and updating the widgets, I can "signal" back to the same or another handler before finishing the current input. o Is there any other/better way to force an update of widgets? I've tried gdk_flush(), by itself and in addition to g_main_iteration(), without success. -- MARK markrubn@pacbell.net From pbd@op.net Wed Feb 13 20:44:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BC9A71856A for ; Wed, 13 Feb 2002 20:44:46 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-157.phlpa.fast.net [209.92.99.157]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA00718; Wed, 13 Feb 2002 20:44:43 -0500 (EST) Message-Id: <200202140144.UAA00718@renoir.op.net> To: "Mark R. Rubin" Cc: GTK mailing list Subject: Re: Forcing update of widgets In-reply-to: Your message of "Wed, 13 Feb 2002 17:24:01 PST." <3C6B11B1.1AC9DD52@pacbell.net> Date: Wed, 13 Feb 2002 20:40:02 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >o I am attempting to force GTK to update all widgets in a realtime > display application using the following code fragment (which I > first read about on this mailing list): > > while (g_main_iteration(FALSE)) > ; this is the wrong design for "realtime display applications". if you want the GUI to update while other activity is happening, you should be using either idle handlers or threads. idle handlers work if the "other activity" is short lived. threads are necessary for other situations. with threads come some extra complications, as well as better performance. >o Second problem is that I have a TCP socket connected to the GTK > main loop (again GTK--, using Gtk::Main.input.connect()) and doing > the above g_main_iteration() loop exposes me to an unwanted > re-entrancy. In the middle of processing a user or TCP input and > updating the widgets, I can "signal" back to the same or another > handler before finishing the current input. this will go away when you correct your design. >o Is there any other/better way to force an update of widgets? I've > tried gdk_flush(), by itself and in addition to g_main_iteration(), > without success. widget->queue_draw() will mark a widget as needing an expose_event to be synthesized for it. the expose_event will be delivered during the next iteration of the GTK main loop. --p From pbd@op.net Wed Feb 13 20:46:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id B01D918501 for ; Wed, 13 Feb 2002 20:46:07 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-157.phlpa.fast.net [209.92.99.157]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA00853; Wed, 13 Feb 2002 20:46:04 -0500 (EST) Message-Id: <200202140146.UAA00853@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How put text in pixmap? How put vertical (rotate 90 degrees) text? In-reply-to: Your message of "Wed, 13 Feb 2002 13:28:42 PST." <20020213132842.A4746@spawar.navy.mil> Date: Wed, 13 Feb 2002 20:41:24 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Paul > >This comment broke my heart for the last 2 weeks. :) > >But, then I stumbled upon something.... > >What about gdk_draw_text and gdk_draw_string? these draw horizontal text. its valentines day tomorrow (perhaps today, depending on where you are); the heartbreak continues :) --p From markrubn@pacbell.net Wed Feb 13 22:55:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by mail.gnome.org (Postfix) with ESMTP id A47461897B for ; Wed, 13 Feb 2002 22:55:38 -0500 (EST) Received: from pacbell.net ([63.201.208.99]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRI00GWN88P5T@mta6.snfc21.pbi.net> for gtk-list@gnome.org; Wed, 13 Feb 2002 19:55:38 -0800 (PST) Date: Wed, 13 Feb 2002 19:55:11 -0800 From: "Mark R. Rubin" Subject: Re: Forcing update of widgets To: Paul Davis Cc: GTK mailing list Message-id: <3C6B351F.5B64540@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202140144.UAA00718@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > while (g_main_iteration(FALSE)) > > ; > > this is the wrong design for "realtime display applications". if you > want the GUI to update while other activity is happening, you should > be using either idle handlers or threads. idle handlers work if the > "other activity" is short lived. threads are necessary for other > situations. with threads come some extra complications, as well as > better performance. o Thanks, Paul. But I *don't* want "the GUI to update while other activity is happening". I want to call something that will update the widgets all the way down to an XFlush() before returning control to the caller (me), all without accepting any input. o BTW, the application has many independent flows of control (at the process, not Posix thread, level). > widget->queue_draw() will mark a widget as needing an expose_event to > be synthesized for it. the expose_event will be delivered during the > next iteration of the GTK main loop. o widget->queue_draw() sounds good if in fact an expose_event, synthetic or otherwise, is needed in additon to a widget state change to force a real redraw. Re-entering the main loop (and risking asynchonous input) is the problem. o Is there an API-exposed call for just that portion of the GTK main loop that does drawing? I seem to recall that the old XtMainLoop() could be manually coded with a while loop calling a half-dozen lower-level functions. -- MARK markrubn@pacbell.net From knishida@sky.sannet.ne.jp Thu Feb 14 02:31:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from svan18.sannet.ne.jp (svan18.sannet.ne.jp [134.180.49.18]) by mail.gnome.org (Postfix) with ESMTP id 1BC1F1856C for ; Thu, 14 Feb 2002 02:31:33 -0500 (EST) Received: from xp.netlab.jp (eaa1-ppp2138.tokyo.sannet.ne.jp [211.133.188.75]) by svan18.sannet.ne.jp (Postfix) with ESMTP id 3E2322BE69 for ; Thu, 14 Feb 2002 16:31:31 +0900 (JST) Date: Thu, 14 Feb 2002 16:32:58 +0900 Message-ID: From: Keisuke Nishida To: gtk-list@gnome.org Subject: problem with grab_focus User-Agent: Wanderlust/2.6.0 (Twist And Shout) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.1 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: multipart/mixed; boundary="Multipart_Thu_Feb_14_16:32:58_2002-1" Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --Multipart_Thu_Feb_14_16:32:58_2002-1 Content-Type: text/plain; charset=US-ASCII Hi there, I have a problem with using gtk_widget_grab_focus in a focus_out_event hander, using gtk+-1.2.10. The attached program has three GtkEntry's, vertically aligned, and tries to grab focus on entry1 when I leave entry2. If I press key `GDK_Down' in the second entry (i.e., entry2), the default action of GTK+ moves cursor to entry3, while my handler moves cursor to entry1. Thus, two cursors appear simultaneously. How could I have only entry1 focused? Thanks in advance. Keisuke Nishida --Multipart_Thu_Feb_14_16:32:58_2002-1 Content-Type: text/plain; charset=US-ASCII #include guint handler; GtkWidget *entry1; GtkWidget *entry2; GtkWidget *entry3; static void on_focus_out (GtkEntry *entry) { gtk_signal_handler_block (GTK_OBJECT (entry), handler); gtk_widget_grab_focus (entry1); gtk_signal_handler_unblock (GTK_OBJECT (entry), handler); } static GtkWidget * create_window1 () { GtkWidget *window1; GtkWidget *vbox1; entry1 = gtk_entry_new (); entry2 = gtk_entry_new (); entry3 = gtk_entry_new (); handler = gtk_signal_connect (GTK_OBJECT (entry2), "focus_out_event", GTK_SIGNAL_FUNC (on_focus_out), NULL); vbox1 = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry1, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry2, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry3, FALSE, FALSE, 0); window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_add (GTK_CONTAINER (window1), vbox1); return window1; } int main (int argc, char **argv) { gtk_init (&argc, &argv); gtk_widget_show_all (create_window1 ()); gtk_main (); return 0; } --Multipart_Thu_Feb_14_16:32:58_2002-1-- From bursted@iam.uni-bonn.de Thu Feb 14 04:21:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ovid.iam.uni-bonn.de (ovid.iam.uni-bonn.de [131.220.32.59]) by mail.gnome.org (Postfix) with ESMTP id 9CC34181AB for ; Thu, 14 Feb 2002 04:21:48 -0500 (EST) Received: from iam.uni-bonn.de (sisyphos.iam.uni-bonn.de [131.220.223.38]) by ovid.iam.uni-bonn.de (980427.SGI.8.8.8/8.6.9) with ESMTP id KAA10514 for ; Thu, 14 Feb 2002 10:21:40 +0100 (CET) Message-ID: <3C6B819D.D732F54D@iam.uni-bonn.de> Date: Thu, 14 Feb 2002 10:21:33 +0100 From: Carsten Burstedde X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.3 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Null Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, what would be wrong with #define null (0) and using that (Java-style)? Then people got their readibility, the c++ standard is saved, and peace. Carsten (I do c and java, so don't kill me if this is junk.) From eg_hyy@stu.ust.hk Thu Feb 14 05:00:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mx3.ust.hk (mx3.ust.hk [143.89.13.11]) by mail.gnome.org (Postfix) with ESMTP id 534681824F for ; Thu, 14 Feb 2002 05:00:34 -0500 (EST) Received: from webmaild.ust.hk (webmaild.ust.hk [143.89.14.206]) by mx3.ust.hk (8.11.5/8.11.5) with ESMTP id g1EA0V016090; Thu, 14 Feb 2002 18:00:31 +0800 Received: from localhost (localhost [[UNIX: localhost]]) by webmaild.ust.hk (8.9.3/8.9.3) id SAA23820; Thu, 14 Feb 2002 18:00:31 +0800 Message-Id: <200202141000.SAA23820@webmaild.ust.hk> Date: Thu, 14 Feb 2002 18:00:31 +0800 User-Agent: IMHO/0.97.1 (HKUST Webmail 1.0b) MIME-Version: 1.0 To: gtk-list@gnome.org Content-Transfer-Encoding: 8bit X-Originating-IP: [61.15.163.60] Content-Type: text/plain; charset=iso-8859-1 From: Subject: program organization Cc: eg_hyy@stu.ust.hk Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear all, I would like to ask which organization is better. Thx a lot~ Method 1: GtkWidget widget0; //entry A GtkWidget widget1; //entry B GtkWidget widget2; //entry C widget0=lookup_widget(...); widget1=lookup_widget(...); widget2=lookup_widget(...); gtk_entry_set_text(widget0,...); gtk_entry_set_text(widget1,...); gtk_entry_set_text(widget2,...); Method 2: GtkWidget widget; widget=lookup_widget(...); //entry A gtk_..._set(widget,...); widget=lookup_widget(...); //entry B gtk_..._set(widget,...); widget=lookup_widget(...); //entry C gtk_..._set(widget,...); From sven@gimp.org Thu Feb 14 08:49:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id CA03B182C2 for ; Thu, 14 Feb 2002 08:49:48 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16bMGO-0006UG-00; Thu, 14 Feb 2002 14:49:28 +0100 To: Ian Britten Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> <20020213192555.79184ba5.britten@caris.com> From: Sven Neumann Date: 14 Feb 2002 14:49:28 +0100 In-Reply-To: <20020213192555.79184ba5.britten@caris.com> Message-ID: Lines: 34 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, > Summary: > GTK has an poor/incorrect definition of NULL that breaks C++ code. At a > minimum, the definition should be fixed. However, the better fix would be > to simply remove the definition, and use the one provided by the compiler. here's how glib-2.0 defines NULL: /* We include stddef.h to get the system's definition of NULL */ #include #ifndef NULL # ifdef __cplusplus # define NULL (0L) # else /* !__cplusplus */ # define NULL ((void*) 0) # endif /* !__cplusplus */ #endif this looks much better, doesn't it? BTW, glib-1.2 does not redefine NULL neither: #ifndef NULL #define NULL ((void*) 0) #endif so if you run into problems because of this definition, you should probably define NULL before you include glib.h (or even include an appropriate header that defines NULL more correctly). Salut, Sven From mallum@10.am Thu Feb 14 08:50:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost (lan.ipc.co.uk [193.119.160.10]) by mail.gnome.org (Postfix) with ESMTP id C4A06186E6 for ; Thu, 14 Feb 2002 08:50:46 -0500 (EST) Received: from mallum by localhost with local (Exim 3.34 #1 (Debian)) id 16bMGj-0000H1-00; Thu, 14 Feb 2002 13:49:49 +0000 Date: Thu, 14 Feb 2002 13:49:48 +0000 From: mallum To: Sven Neumann Cc: gtk-list@gnome.org Subject: Re: synthetic button press event in GTK1.2 Message-ID: <20020214134948.GE478@10.am> References: <20020212005736.GC486@10.am> <20020212113152.GB529@10.am> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020212113152.GB529@10.am> User-Agent: Mutt/1.3.27i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I figured it out now, XTest to the resuce :) -- mallum on Tue, Feb 12, 2002 at 11:31:52AM +0000, mallum wrote: > Via an emmision hook, Im writing a gtk module that catches 'held down' > button 1 events and on release tranforms them into a button 3 press event. > > This works fine, but the app is now missing a button release event > which is causing problems. Im trying to create this via XSendEvent . > > This is for touchscreen devices running gtk. > > Can suggest a better way of accomplishing this ? > > -- mallum > > > on Tue, Feb 12, 2002 at 02:36:54AM +0100, Sven Neumann wrote: > > Hi, > > > > mallum writes: > > > > > I need to send a 'synthetic' button release event. Im under the > > > impression I can only do this with a call to Xlibs XSendEvent. > > > > do you really need to do that? What are you trying to acomplish? > > > > > > Salut, Sven > > _______________________________________________ > > 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 britten@caris.com Thu Feb 14 09:10:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from caris.universal.ca (universal.ca [198.164.13.1]) by mail.gnome.org (Postfix) with ESMTP id CB82918834 for ; Thu, 14 Feb 2002 09:10:07 -0500 (EST) Received: from dilbert.uslnet.com (proxy.caris.com [198.164.13.3]) by caris.universal.ca (8.11.0/8.11.0) with SMTP id g1EEA5R04001 for ; Thu, 14 Feb 2002 10:10:05 -0400 Date: Thu, 14 Feb 2002 10:10:02 -0400 From: Ian Britten To: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in initialization ??? Message-Id: <20020214101002.66778e05.britten@caris.com> In-Reply-To: References: <20020213133638.B4746@spawar.navy.mil> <200202132301.SAA16775@renoir.op.net> <20020213192555.79184ba5.britten@caris.com> Organization: USL X-Mailer: Sylpheed version 0.6.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On 14 Feb 2002 14:49:28 +0100 Sven Neumann wrote: > > Summary: > > GTK has an poor/incorrect definition of NULL that breaks C++ code. At a > > minimum, the definition should be fixed. However, the better fix would be > > to simply remove the definition, and use the one provided by the compiler. > > here's how glib-2.0 defines NULL: > > /* We include stddef.h to get the system's definition of NULL > */ > #include [ snip ] That looks better! That (critical) #include isn't in v1.2, meaning that (C++) must ensure they #include explicitely themselves before #including any GTK header files (Very tedious and error prone...) [ Sorry, I guess I should have clarified that I was referring to GTK 1.2. I haven't had time to look at 1.3/2.0 yet... ] If that little change could be back-ported to v1.2 (hint, hint!), I think (C++) users might be happier... ;-) (After all, v1.2 is still the defacto, stable, standard version. v2.0 may be coming Real Soon, but I suspect v1.2 will still be around for awhile...) Ian From cosminb@saguaro.ro Thu Feb 14 09:30:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from terminus.dnttm.ro (terminus.dnttm.ro [193.226.98.11]) by mail.gnome.org (Postfix) with ESMTP id 8A51118111 for ; Thu, 14 Feb 2002 09:30:08 -0500 (EST) Received: from main.saguaro.ro (main.saguaro.ro [193.226.88.117]) by terminus.dnttm.ro (8.9.3/8.9.3) with ESMTP id QAA15476 for ; Thu, 14 Feb 2002 16:30:06 +0200 Received: from saguaro.ro (samba.spr [192.168.1.100]) by main.saguaro.ro (8.11.2/8.11.2) with ESMTP id g1EEDEH17913 for ; Thu, 14 Feb 2002 16:13:14 +0200 Received: from saguaro.ro (IDENT:cosmin@cosminb.spr [192.168.1.154]) by saguaro.ro (8.11.2/8.11.2) with ESMTP id g1EEPxW32264 for ; Thu, 14 Feb 2002 16:25:59 +0200 X-RAV-AntiVirus: This e-mail has been scanned for viruses on host: saguaro.ro Message-ID: <3C6BCB26.39E5B75D@saguaro.ro> Date: Thu, 14 Feb 2002 16:35:18 +0200 From: cosminb X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: destroy-event ??? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, I don't know what signal is emited in the following situation. Right-click in the upper-right corner on a X window. A menu appears. There is a destroy option. Selecting this option will emit a "destroy-event" to that window? If yes, I want to catch it(from my gtk app., if posible), but I don't know how. Thanks in advance Cosmin Bonea From John.Cupitt@ng-london.org.uk Thu Feb 14 09:54:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 0D3EC18111 for ; Thu, 14 Feb 2002 09:54:29 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXLYTX>; Thu, 14 Feb 2002 14:54:22 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXLYTW; Thu, 14 Feb 2002 14:54:18 -0000 Message-ID: <3C6BCC53.1020906@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: cosminb@saguaro.ro Cc: gtk-list@gnome.org Subject: Re: destroy-event ??? Date: Thu, 14 Feb 2002 14:40:19 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: cosminb wrote: > Right-click in the upper-right corner on a X window. A menu appears. > There is a destroy option. Selecting this option will emit a > "destroy-event" to that window? If yes, I want to catch it(from my gtk > app., if posible), but I don't know how. Hi, connect to "delete-event" and return TRUE to block the destroy. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From pbd@op.net Thu Feb 14 09:56:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 81C3E186DB for ; Thu, 14 Feb 2002 09:56:04 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-22.phlpa.fast.net [209.92.227.22]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA04261; Thu, 14 Feb 2002 09:55:56 -0500 (EST) Message-Id: <200202141455.JAA04261@renoir.op.net> To: cosminb Cc: gtk-list@gnome.org Subject: Re: destroy-event ??? In-reply-to: Your message of "Thu, 14 Feb 2002 16:35:18 +0200." <3C6BCB26.39E5B75D@saguaro.ro> Date: Thu, 14 Feb 2002 09:51:24 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hi all, > >I don't know what signal is emited in the following situation. > >Right-click in the upper-right corner on a X window. A menu appears. >There is a destroy option. Selecting this option will emit a >"destroy-event" to that window? If yes, I want to catch it(from my gtk >app., if posible), but I don't know how. it will generate a "delete_event" first, which is what actually corresponds to the window manager's "destroy" operation. if that is not handled by a handler that returns TRUE, then the widget in question will more or less immediately be "destroyed" in the GTK+ sense, which involves returning it to an uninitialized state. this is accompanied by a "destroy_event" for the window. --p From Esteban.Quijano@artinsoft.com Thu Feb 14 10:02:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id B6A3518111 for ; Thu, 14 Feb 2002 10:02:35 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id <1L3Q0YHC>; Wed, 13 Feb 2002 17:30:02 -0600 Message-ID: From: Esteban Quijano To: gtk-list@gnome.org Subject: RE: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? Date: Wed, 13 Feb 2002 16:31:30 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It is not true that NULL cannot be used in C++. I don't have to google anything to understand basic things about stricter type casting. I have tons of C++ lines of code running perfectly on Windows and Linux without any trouble. NULL is just a macro you can define as you want in your project: /* Define NULL pointer value */ #ifndef NULL #ifdef __cplusplus #define NULL 0 #else #define NULL ((void *)0) #endif #endif Esteban Quijano QA dept. Artinsoft corp. > -----Original Message----- > From: Chris Seberino [mailto:seberino@spawar.navy.mil] > Sent: Wednesday, February 13, 2002 3:37 PM > To: Paul Davis > Cc: gtk-list@gnome.org > Subject: Re: ?? warning: ANSI C++ forbids implicit conversion > from `void > *' in initialization ??? > > > Paul > > I may sometimes give impression I'm smart but looks can > be deceiving. :) (Ph.D. in physics not computing) > I have ZERO X experience! > > I looked for NULL explanation about why "= NULL" bad > but could not anything. Can you give me a 1-2 sentence > explanation? Is it a security risk somehow or something? > > By the way, someone should tell the GTK+ tutorial author > that "= NULL" is bad since it has this in scribble.c and > apparently he hasn't learned it either. :) > > I'm glad I have input by all these great experts on this mailing list. > > Thanks for everything! > > Chris > > On Wed, Feb 06, 2002 at 02:22:48PM -0500, Paul Davis wrote: > > >I need to sometimes initialize an object to NULL and get this > > >message. How avoid??? > > > > this is getting too close to generic programming questions for this > > list. if you don't understand how to fix this yourself, i > worry about > > future progress on your software. > > > > SomeObject *someObject = (SomeObject *) 0; > > > > you should never use "NULL" in a C++ program. look it up with google > > to understand why. > > > > --p > > -- > ======================================================= > | Dr. Christian Seberino || (619) 553-7940 (office) | > | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | > | 53560 HULL ST || | > | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | > ======================================================= > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From Esteban.Quijano@artinsoft.com Thu Feb 14 10:02:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id BA500189EF for ; Thu, 14 Feb 2002 10:02:36 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id <1L3Q0YJL>; Wed, 13 Feb 2002 19:15:15 -0600 Message-ID: From: Esteban Quijano To: Paul Davis Cc: gtk-list@gnome.org Subject: RE: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? Date: Wed, 13 Feb 2002 18:17:43 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If you see the ANSI ISO/IEC C++ International Standard(14882) at page 699 it says: C.2.2.3 Macro NULL The macro NULL, defined in any of , , , , , , or , is an implementation-defined C++ null pointer constant in this International Standard(18.1). And if you see section 18.1: 4. The macro NULL is an implementation-deined C++ null pointer constant in this International Standard (4.10).180 -> This footnote says: Possible definitions include 0 and OL, but not (void*)0. - I admit I was wrong about "(void *)0". However, the stdio.h microsoft version uses it. It seems that it is left to each compiler (with its .h files) which #define to select. And 4.10 Pointer Convertion says: 1. A null pointer constant is an integral constant expression (5.19) rvalue of integer type that evaluates to zero. A null pointer constant can be converted to a pointer type; the result is the null pointer value of that type and is distinguishable from every other value of pointer to object or pointer to function type. Two null pointer values of the same type shall compare equal. The conversion of a null pointer constant to a pointer to cv-qualified type is a single conversion, and not the sequence of a pointer conversion followed by a qualification conversion (4.4). It is always better to use macros for portability reasons. A single #define line is easier to change than thousands of 0 or 0L in a complex project. You can even #undefine and #define again NULL if needed. Esteban Quijano Artinsoft corp. > -----Original Message----- > From: Paul Davis [mailto:pbd@Op.Net] > Sent: Wednesday, February 13, 2002 4:57 PM > To: Chris Seberino > Cc: gtk-list@gnome.org > Subject: Re: ?? warning: ANSI C++ forbids implicit conversion > from `void > *' in initialization ??? > > > >I looked for NULL explanation about why "= NULL" bad > >but could not anything. Can you give me a 1-2 sentence > >explanation? Is it a security risk somehow or something? > > no, not a security problem. consider how you'd define NULL. > > #define NULL ((void *)0) > > now try to use this: > > SomeObject *ptr = NULL; > > because C++ is much stricter about types, the compiler will/may > complain that it cannot perform an implicit cast of void * to > SomeObject *. So in fact, the only acceptable definitions of NULL are > 0 or 0L or 0UL or 0U, with no type casting. Since the definitions in a > C header file nearly always include the type cast, and since no type > cast is acceptable, using NULL is a bad idea. [ quote from a message i > found with google]: > > the C++ standard guarantees that if you use 0 in a pointer context, > it will be converted to whatever that platform uses for the "null > pointer", even if it happens not to have a bit pattern of all > zeroes. (Section 4.10) Therefore, it's safe to use 0 to mean "the > null pointer". > > so, just stick to 0. > > --p > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From pbd@op.net Thu Feb 14 10:16:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 7B27018111 for ; Thu, 14 Feb 2002 10:16:33 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-22.phlpa.fast.net [209.92.227.22]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id KAA06755; Thu, 14 Feb 2002 10:16:30 -0500 (EST) Message-Id: <200202141516.KAA06755@renoir.op.net> To: Esteban Quijano Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? In-reply-to: Your message of "Wed, 13 Feb 2002 18:17:43 CST." Date: Thu, 14 Feb 2002 10:11:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >It is always better to use macros for portability reasons. A single #define this is nonsense. there has only ever been one meaning of a null pointer. the fact that certain projects have mis-defined it from the perspective of a C++ programmer doesn't change that. assuming that the macro is correctly defined, there is absolutely no difference in any way between writing ptr = NULL; and ptr = 0; if the compiler does not support the standard for null pointer conversion (i.e. an integer value of 0 will converted to a null pointer), there is no possible definition of NULL that will work, so the macro isn't buying you anything. if you happen to be a person who likes to look for "NULL" in code because you think it provides some kind of semantic guidance, feel free to use "NULL". i'm not one of those people. --p From mark@mark.mielke.cc Thu Feb 14 10:26:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mark.mielke.cc (mark.mielke.cc [216.209.85.42]) by mail.gnome.org (Postfix) with ESMTP id D0C2C180E9 for ; Thu, 14 Feb 2002 10:26:20 -0500 (EST) Received: (from mark@localhost) by mark.mielke.cc (8.11.6/linuxconf) id g1EFMOv04787; Thu, 14 Feb 2002 10:22:24 -0500 Date: Thu, 14 Feb 2002 10:22:24 -0500 From: Mark Mielke To: Paul Davis Cc: Esteban Quijano , gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? Message-ID: <20020214102224.A4715@mark.mielke.cc> Mail-Followup-To: Mark Mielke , Paul Davis , Esteban Quijano , gtk-list@gnome.org References: <200202141516.KAA06755@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200202141516.KAA06755@renoir.op.net>; from pbd@Op.Net on Thu, Feb 14, 2002 at 10:11:58AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, Feb 14, 2002 at 10:11:58AM -0500, Paul Davis wrote: > >It is always better to use macros for portability reasons. A single #define > this is nonsense. there has only ever been one meaning of a null > pointer. the fact that certain projects have mis-defined it from the > perspective of a C++ programmer doesn't change that. "There has only ever been one meaning of a null pointer on known sensible systems." Just like, one should be able to assume that "p++" and "--p" should always work, although very strictly one cannot. The following code: char s[100]; char *p = &s[-2]; p[2]; May not actually work on some systems. Why? Because C only guarantees that s[-1] will work. I've never stumbled on one of these machines, but I suspect these limitations may apply to systems without a real OS underneath them, such as the Palm Pilot. The C/C++ standards define NULL such that the onus is left to the implementation to define NULL as something that "works". Therefore, unless you plan on stating that "our tools only work on 'sensible' systems", for your own definition of sensible, "NULL" actually is more portable than "0". (perhaps not by very much at all... but is it really worth fighting over?) mark -- mark@mielke.cc/markm@ncf.ca/markm@nortelnetworks.com __________________________ . . _ ._ . . .__ . . ._. .__ . . . .__ | Neighbourhood Coder |\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ | | | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, Ontario, Canada One ring to rule them all, one ring to find them, one ring to bring them all and in the darkness bind them... http://mark.mielke.cc/ From Valdis.Kletnieks@vt.edu Thu Feb 14 10:52:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 44287193A2 for ; Thu, 14 Feb 2002 10:52:14 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1EFqDVj026110; Thu, 14 Feb 2002 10:52:13 -0500 Message-Id: <200202141552.g1EFqDVj026110@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Mark Mielke Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? In-Reply-To: Your message of "Thu, 14 Feb 2002 10:22:24 EST." <20020214102224.A4715@mark.mielke.cc> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ <200202141516.KAA06755@renoir.op.net> <20020214102224.A4715@mark.mielke.cc> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1869010785P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 14 Feb 2002 10:52:13 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_1869010785P Content-Type: text/plain; charset=us-ascii On Thu, 14 Feb 2002 10:22:24 EST, Mark Mielke said: > Just like, one should be able to assume that "p++" and "--p" should > always work, although very strictly one cannot. The following code: > > char s[100]; > char *p = &s[-2]; > > p[2]; > > May not actually work on some systems. Why? Because C only guarantees that > s[-1] will work. > > I've never stumbled on one of these machines, but I suspect these > limitations may apply to systems without a real OS underneath them, > such as the Palm Pilot. Actually, it's not necessarily "without a real OS". There have existed weird architectures that have strange views on memory access (see the Intel 432, or IBM's S/38-AS/400 series, for example), where memory is referenced in an object-oriented manner enforced by the hardware. On these types of machines, dereferencing p[2] is safe *only* if p is referenced through a pointer that accesses a descriptor that says "yes, this is an array of at least 3 in size". And of course, trying to assign p a value of &s[-2] gets you a SIGSEGV or moral equivalent, because s is a pointer to a descriptor that limits the array to indices 0 through 99. And I believe everybody's favorite CISC system, the DEC VAX, had a BOUNDS instruction that checked if a pointer was within limits - and there's no reason why a compiler couldn't/shouldn't have included a BOUNDS opcode in the computation of &s[-2]. I believe the Intel x86 series has a similar opcode, but I am *NOT* positive of that.... -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_1869010785P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8a90tcC3lWbTT17ARAu7eAJ4sjXxdkdlmP4y9I6K2HLQqD2Kp4QCfRPHW t1iIoi45mqXqgRTtc6OrXxA= =hDxm -----END PGP SIGNATURE----- --==_Exmh_1869010785P-- From pfeiffer@viper.cs.nmsu.edu Thu Feb 14 12:48:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from viper.cs.nmsu.edu (viper.cs.nmsu.edu [128.123.64.113]) by mail.gnome.org (Postfix) with ESMTP id 72697189D1 for ; Thu, 14 Feb 2002 12:48:44 -0500 (EST) Received: (from pfeiffer@localhost) by viper.cs.nmsu.edu (8.11.6/8.11.6) id g1EHmIS18590; Thu, 14 Feb 2002 10:48:18 -0700 From: Joe Pfeiffer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15467.63585.827662.889816@cs.nmsu.edu> Date: Thu, 14 Feb 2002 10:48:17 -0700 To: Carsten Burstedde Cc: gtk-list@gnome.org Subject: Null In-Reply-To: <3C6B819D.D732F54D@iam.uni-bonn.de> References: <3C6B819D.D732F54D@iam.uni-bonn.de> X-Mailer: VM 7.00 under Emacs 21.1.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Carsten Burstedde writes: > > what would be wrong with > #define null (0) > and using that (Java-style)? It's got the same problem as the definition of NULL in the standard (after all, it is the definition of NULL from the standard!). -- Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605 Department of Computer Science FAX -- (505) 646-1002 New Mexico State University http://www.cs.nmsu.edu/~pfeiffer Southwestern NM Regional Science and Engr Fair: http://www.nmsu.edu/~scifair From maldonado@ibiquity.com Thu Feb 14 14:58:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from radioflyer.ibocradio.com (unknown [208.33.57.98]) by mail.gnome.org (Postfix) with ESMTP id EB106180DD for ; Thu, 14 Feb 2002 14:58:16 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message Subject: pixmap "shadow" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1B591.F143D9AE" Date: Thu, 14 Feb 2002 14:58:16 -0500 Message-ID: <6AC325EB1D98F84B986D83F985121C1F16FDB7@radioflyer.ibocradio.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: pixmap "shadow" Thread-Index: AcG1kfE9SsRDGOiNTh6obLAh7goSmw== From: "Lourdes Maldonado" To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1B591.F143D9AE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 Using Glade I insert a pixmap widget into a container (the pixmap widget is not pointing to a file). Then at runtime I create a GdkPixmap with some xpm_data local to the code and use gtk_pixmap_set to set my Glade pixmap widget to the locally created pixmap. =20 static const char * myXpmData[] =3D (data not include in e-mail) =20 GdkPixmap *pixmap; GdkBitmap *mask; GtkStyle *style; =20 style =3D gtk_widget_get_style(myWindow); =20 pixmap =3D gdk_pixmap_create_from_xpm_d(myWindow, &mask, =20 &style->bg[GTK_STATE_NORMAL], (gchar **)myXmpData); =20 gtk_pixmap-set(GTK_PIXMAP(myPixmapWidgetFromGlade), pixmap, mask); =20 The first time the pixmap is displayed it has a shadow (it looks like another pixmap (same image) is behind it and offset to one side). If I cover the pixmap with a window and then remove the window it looks fine. =20 Thanks for any help, =20 Lourdes T. Maldonado ------_=_NextPart_001_01C1B591.F143D9AE Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

Using Glade I insert a pixmap widget into a container = (the pixmap widget is not pointing to a file).  Then at runtime I create a = GdkPixmap with some xpm_data local

to the code and use gtk_pixmap_set to set my Glade = pixmap widget to the locally created pixmap.

 

static const char * myXpmData[] =3D (data not include = in e-mail)

 

GdkPixmap *pixmap;

GdkBitmap *mask;

GtkStyle *style;

 

style =3D = gtk_widget_get_style(myWindow);

 

pixmap =3D gdk_pixmap_create_from_xpm_d(myWindow, = &mask,

         =             &= nbsp;           &n= bsp;              =             &= nbsp;   &style->bg[GTK_STATE_NORMAL],=

         =             &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;     (gchar **)myXmpData);

 

gtk_pixmap-set(GTK_PIXMAP(myPixmapWidgetFromGlade),

         =             &= nbsp;  pixmap,

         =             &= nbsp;  mask);

 

The first time the pixmap is displayed it has a = shadow (it looks like another pixmap (same image) is behind it and offset to one side).  If I cover the pixmap with a window and then remove the = window it looks fine.

 

Thanks for any help,

 

Lourdes T. = Maldonado

=00 ------_=_NextPart_001_01C1B591.F143D9AE-- From pbd@op.net Thu Feb 14 15:36:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id E1D62181A5 for ; Thu, 14 Feb 2002 15:36:49 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-402.phlpa.fast.net [209.92.100.148]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id PAA15289; Thu, 14 Feb 2002 15:36:43 -0500 (EST) Message-Id: <200202142036.PAA15289@renoir.op.net> To: Mark Mielke Cc: Esteban Quijano , gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void * ' in initialization ??? In-reply-to: Your message of "Thu, 14 Feb 2002 10:22:24 EST." <20020214102224.A4715@mark.mielke.cc> Date: Thu, 14 Feb 2002 15:32:14 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >The C/C++ standards define NULL such that the onus is left to the >implementation to define NULL as something that "works". That may be true. However, the C++ standard, such as it is, is quite specific about what it means to assign an integral value of zero to a pointer lvalue, or when testing a pointer value against an integer value of zero. This is precisely why many C++ programmers, myself included, prefer to use 0 rather than NULL. NULL may or may not be the right thing, whereas 0 almost certainly is. >Therefore, unless you plan on stating that "our tools only work on >'sensible' systems", for your own definition of sensible, "NULL" actually >is more portable than "0". (perhaps not by very much at all... Its the other way around. The standards do not pin down a definition of NULL because there is no standard definition that can be guaranteed to work. Thus, using 0 is actually much more portable because its operation/semantics are defined by the standard. Actually, as Joseph pointed out here yesterday, even 0 has problems for cases where there is an overloaded function with both pointer and integer variants. > but is it >really worth fighting over?) No. Just worth getting right. --p From crazycrusoe@yahoo.com Thu Feb 14 17:02:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11505.mail.yahoo.com (web11505.mail.yahoo.com [216.136.172.37]) by mail.gnome.org (Postfix) with SMTP id 51C9018766 for ; Thu, 14 Feb 2002 17:02:24 -0500 (EST) Message-ID: <20020214220223.27386.qmail@web11505.mail.yahoo.com> Received: from [202.180.83.6] by web11505.mail.yahoo.com via HTTP; Thu, 14 Feb 2002 14:02:23 PST Date: Thu, 14 Feb 2002 14:02:23 -0800 (PST) From: Syed Irfan Subject: need help with some queries To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi i need some help understanding some things, i am through to chapter 6 in the gtk tutorial :-) /* my program 5, button.button */ #include //#define INFO /usr/share/doc/gtk+-devel-1.2.10/examples/buttons/info.xpm why cant i define the above and use INFO in the program ? instead of giving the whole path to the file ? gint my_delete_cb(GtkWidget *widget, GdkEvent *event, gpointer data) { g_print("\nyou pressed the %s \n", (char*) data); gtk_main_quit(); return (TRUE); } gint my_clicked_button_cb(GtkWidget *widget, gpointer data) { g_print("\n pressed the %s\n", (char *) data); return (FALSE); } //gint my_leave_button_cb(GtkWidget *widget, GdkEvent *event, gpointer data) //gives output " uhooo this ones good; Ã) " //i mean the strange character "Ã" instead of "pointer moved away from button" ? //bugger, but removing GdkEvent *event from the function declaration //does da trick, dunno why ? any explanation here ? gint my_leave_button_cb(GtkWidget *widget, gpointer data) { g_print("\nuhooo this ones good; %s\n",(char*) data); return (TRUE); } GtkWidget *my_xpm_label_box(GtkWidget *parent, gchar *xpm_filename, gchar *label_text) { GtkWidget *box_1; GtkWidget *label; GtkWidget *pixmapwid; GdkPixmap *pixmap; GdkBitmap *mask; GtkStyle *style; //create box for xpm and label box_1=gtk_hbox_new(FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(box_1), 2); //setting style of the button style = gtk_widget_get_style(parent); //the display of the pixmap pixmap = gdk_pixmap_create_from_xpm(parent->window, &mask, &style->bg[GTK_STATE_NORMAL], xpm_filename); pixmapwid = gtk_pixmap_new(pixmap, mask); //create label for the button label = gtk_label_new(label_text); //packing the pixmap into box gtk_box_pack_start(GTK_BOX(box_1), pixmapwid, FALSE, FALSE, 3); //packing the label into the box gtk_box_pack_start(GTK_BOX(box_1), label, FALSE, FALSE, 3); gtk_widget_show(pixmapwid); gtk_widget_show(label); return (box_1); } int main(int argc, char *argv[]) { //gtk widgets first GtkWidget *window; GtkWidget *button; GtkWidget *box_1; //dont forget to initialize gtk_init(&argc, &argv); //create the window window = gtk_window_new(GTK_WINDOW_TOPLEVEL); //connect the x with close gtk_signal_connect(GTK_OBJECT(window), "delete_event", GTK_SIGNAL_FUNC(my_delete_cb), (gpointer) "x button on the top right corner"); gtk_container_set_border_width(GTK_CONTAINER(window), 20); //what the heck is that realize thingy ? below //whats the diff between gtk_widget_show() and //gtk_widget_realize() ?? gtk_widget_realize(window); // gtk_widget_show(window); // now creating the button button = gtk_button_new(); //connecting the button to an event, basically the button callback gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(my_clicked_button_cb), (gpointer) "cool button"); gtk_signal_connect(GTK_OBJECT(button), "leave", GTK_SIGNAL_FUNC(my_leave_button_cb), (gpointer) "pointer moved away from button"); //the strange thing about, when the mouse pointer clicks the //button, this is the output i get uhooo this ones good; pointer moved away from button pressed the cool button but shouldnt i get only "pressed the cool button" why am i getting the uhooo this ones good as well ? box_1 = my_xpm_label_box(window, "/usr/lib/kde1-compat/share/icons/large/info.xpm", "cool button"); gtk_widget_show(box_1); gtk_container_add(GTK_CONTAINER(button), box_1); gtk_widget_show(button); gtk_container_add(GTK_CONTAINER(window), button); gtk_widget_show(window); gtk_main(); return(0); } thankyou verymuch guys ===== ===================================== CrazyCrusoe Hackerd00d http://members.linuxstart.com/openweb ===================================== __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com From lynn.lin@boeing.com Thu Feb 14 18:25:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from slb-smtpout-01.boeing.com (slb-smtpout-01.boeing.com [12.13.237.21]) by mail.gnome.org (Postfix) with ESMTP id 3855C186BF for ; Thu, 14 Feb 2002 18:25:22 -0500 (EST) Received: from stl-av-02.boeing.com ([192.76.190.7]) by slb-smtpout-01.boeing.com (8.9.2/8.8.5-M2) with ESMTP id PAA07564 for ; Thu, 14 Feb 2002 15:23:31 -0800 (PST) Received: from slb-hub-01.boeing.com (localhost [127.0.0.1]) by stl-av-02.boeing.com (8.9.3/8.9.2/MBS-AV-01) with ESMTP id RAA29281 for ; Thu, 14 Feb 2002 17:25:20 -0600 (CST) Received: from xch-swbh-02.sw.nos.boeing.com (xch-swbh-02.sw.nos.boeing.com [129.172.87.58]) by slb-hub-01.boeing.com (8.11.3/8.11.3/MBS-LDAP-01) with ESMTP id g1ENPIT04857 for ; Thu, 14 Feb 2002 15:25:18 -0800 (PST) Received: by xch-swbh-02.sw.nos.boeing.com with Internet Mail Service (5.5.2650.21) id <169NBMLJ>; Thu, 14 Feb 2002 15:25:18 -0800 Message-ID: From: "Lin, Lynn" To: "'gtk-list@gnome.org'" Subject: gui builder Date: Thu, 14 Feb 2002 15:25:12 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, Does GTK+ has a GUI builder ? If yes, what is the name of it ? Thank you :) Lynn From dreed@capital.edu Thu Feb 14 18:51:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by mail.gnome.org (Postfix) with ESMTP id 113211847B for ; Thu, 14 Feb 2002 18:51:12 -0500 (EST) Received: from localhost.localdomain (dhcp065-024-120-162.columbus.rr.com [65.24.120.162]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id g1ENkDb14143; Thu, 14 Feb 2002 18:46:13 -0500 (EST) Received: (from dreed@localhost) by localhost.localdomain (8.11.6/8.11.6) id g1ENoLn18340; Thu, 14 Feb 2002 18:50:21 -0500 Date: Thu, 14 Feb 2002 18:50:21 -0500 Message-Id: <200202142350.g1ENoLn18340@localhost.localdomain> X-Authentication-Warning: localhost.localdomain: dreed set sender to dreed@capital.edu using -f From: Dave Reed To: lynn.lin@boeing.com Cc: gtk-list@gnome.org In-reply-to: (lynn.lin@boeing.com) Subject: Re: gui builder References: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > From: "Lin, Lynn" > > Hi there, > > Does GTK+ has a GUI builder ? If yes, what is the name of it ? > > Thank you :) > > Lynn Yes, glade. If you're running Linux, you probably already have it. If not, see: http://glade.pn.org Dave From caspar@cbothmer.org Thu Feb 14 18:58:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cbothmer.org (pD95199DF.dip.t-dialin.net [217.81.153.223]) by mail.gnome.org (Postfix) with SMTP id 49786181D2 for ; Thu, 14 Feb 2002 18:58:53 -0500 (EST) Received: (qmail 25263 invoked from network); 14 Feb 2002 23:58:50 -0000 Received: from marvin.cbothmer.org (HELO cbothmer.org) () by trillian.cbothmer.org with SMTP; 14 Feb 2002 23:58:50 -0000 Message-ID: <3C6C4F8B.B4EA2826@cbothmer.org> Date: Fri, 15 Feb 2002 01:00:11 +0100 From: Caspar Bothmer X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: gui builder References: <200202142350.g1ENoLn18340@localhost.localdomain> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dave Reed wrote: > > Yes, glade. > If you're running Linux, you probably already have it. If not, see: > http://glade.pn.org New address: http://glade.gnome.org. You can find it from http://www.gtk.org, topic "Applications". Is a nice tool. Check the tutorial from Jan, 18th. bye caspar From vmail@excite.com Thu Feb 14 20:33:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.9]) by mail.gnome.org (Postfix) with ESMTP id 96A65181F8 for ; Thu, 14 Feb 2002 20:33:18 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id 8EF5B29A19; Thu, 14 Feb 2002 20:33:13 -0500 (EST) To: gtk-list@gnome.org Subject: memory leaks Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Message-Id: <20020215013313.8EF5B29A19@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 20:33:13 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am using a notebook with several pages, each page is packed with n_ widgets, each time I switch between pages I want the container of pages I am switch from and all its children to be destroyed or un referenced if you prefer. Simply destroying the widget parent does not accomplish this as I thought by propagation, oops. In the mean time I watch my application consume more and more memory:(

Any ideas on how to resolve this issue?

-William



From konno@hkd.esc.east.ntt.co.jp Thu Feb 14 21:37:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail3.noc.ntt.co.jp (mail3.noc.ntt.co.jp [210.163.32.58]) by mail.gnome.org (Postfix) with ESMTP id D1B131816C for ; Thu, 14 Feb 2002 21:37:00 -0500 (EST) Received: from vscan2.noc.east.ntt.co.jp (vscan2.noc.east.ntt.co.jp) by mail3.noc.ntt.co.jp (8.9.3/NOC-MAIL3) id LAA04084 for ; Fri, 15 Feb 2002 11:36:58 +0900 (JST) Received: from mail2.noc.east.ntt.co.jp by vscan2.noc.east.ntt.co.jp (3.7W/vscan2_v01) id LAA26081; Fri, 15 Feb 2002 11:36:58 +0900 (JST) Received: from hkd.esc.east.ntt.co.jp by mail2.noc.east.ntt.co.jp (8.9.3/3.7W/mail2_v01) id LAA07925; Fri, 15 Feb 2002 11:36:59 +0900 (JST) Received: by hkd.esc.east.ntt.co.jp (8.8.8/3.6W/99120320) with SMTP id LAA20224; Fri, 15 Feb 2002 11:36:57 +0900 (JST) From: "tadashi konno" To: "gtk-list" Subject: =?iso-2022-jp?B?R1RLGyRCJEc0SkMxJEolPSUxJUMlSCVXJW0lMCVpJWAkcjpuJGobKEI=?= =?iso-2022-jp?B?GyRCJD8kJBsoQg==?= Date: Fri, 15 Feb 2002 11:34:37 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: $B=i$a$F$NEj9F$G$9!#:#Ln$H?=$7$^$9!#(B GTK$B$d(BX$B$r;O$a$?$P$+$j$G!"$h$/J,$+$j$^$;$s!#(B $BA0$K$b!";w$?l9g$O!"$4$a$s$J$5$$!#(B GTK$B$G4JC1$J%=%1%C%H%W%m%0%i%`$r:n$C$F8+$?$N$G$9$,!"(B socket$B$N(Bconnect$B$H(Bgtk_input_add_full$B$N;H$$J}$,$o$+$j$^$;$s!#(B $BAw?.It$He Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 846191816C for ; Thu, 14 Feb 2002 22:14:35 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-31.fast.net [209.92.60.31]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id WAA25803; Thu, 14 Feb 2002 22:14:33 -0500 (EST) Message-Id: <200202150314.WAA25803@renoir.op.net> To: wdulyea1@excite.com Cc: gtk-list@gnome.org Subject: Re: memory leaks In-reply-to: Your message of "Thu, 14 Feb 2002 20:33:13 EST." <20020215013313.8EF5B29A19@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 22:10:09 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > >I am using a notebook with several pages, each page is packed with n_ widgets, > each time I switch between pages I want the container of pages I am switch f >rom and all its children to be destroyed or un referenced if you prefer. then you'll have to do this explicitly by removing it from the notebook, which should reduce its reference count to zero and thus destroy it. just switching pages won't accomplish this. --p From vmail@excite.com Thu Feb 14 23:06:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.5]) by mail.gnome.org (Postfix) with ESMTP id E1CA4188CE for ; Thu, 14 Feb 2002 23:06:40 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id CCE1C3E0E; Thu, 14 Feb 2002 23:06:36 -0500 (EST) To: Paul Davis , Subject: Re: memory leaks Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Message-Id: <20020215040636.CCE1C3E0E@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 23:06:36 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Aahh ...but this is my problem. I should have detailed a little more with the original mail.

The routine that handles switching pages is also getting the widget in the current page prior to switching, once I have the widget I implicitly call gtk_?_destroy(), this should do as stated and destroy the object. However I am still seeing my application grow in size as I continually switch from one notebook page to another.

Any Ideas?

-William


From pbd@op.net Thu Feb 14 23:10:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D9FF0181E9 for ; Thu, 14 Feb 2002 23:10:39 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-31.fast.net [209.92.60.31]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id XAA00771; Thu, 14 Feb 2002 23:10:29 -0500 (EST) Message-Id: <200202150410.XAA00771@renoir.op.net> To: wdulyea1@excite.com Cc: gtk-list@gnome.org Subject: Re: memory leaks In-reply-to: Your message of "Thu, 14 Feb 2002 23:06:36 EST." <20020215040636.CCE1C3E0E@xprdmailfe.excite.com> Date: Thu, 14 Feb 2002 23:06:05 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: just a quick note to point out that whether you know it or not, the email program you are using is sending out copies of your mail in both plain text and HTML formats. increasingly on the net, there are filters being put in place that silently dump HTML-formatted email. some mailing lists will not ever accept such posts. as long as you do this, you are (1) wasting network bandwidth by sending messages that are typically more than twice as long as they could be (2) making it harder for people using traditional email readers to read them (3) risking the chance that people will never see your mail because its filtered before reaching their email inbox. >Aahh ...but this is my problem. I should have detailed a little more with the > original mail.
>
>The routine that handles switching pages is also getting the widget in the cur >rent page prior to switching, once I have the widget I implicitly call gtk_?_d >estroy(), this should do as stated and destroy the object. However I am still > seeing my application grow in size as I continually switch from one notebook >page to another.
>
>Any Ideas?
you cannot just destroy an object that is held by a container and expect the destroy to work. GTK objects are reference counted, and unless you remove it from the container, it will continue to exist until the refcnt drops to zero. --p From kh_naba@yahoo.com Thu Feb 14 23:45:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by mail.gnome.org (Postfix) with SMTP id 1A684186FD for ; Thu, 14 Feb 2002 23:45:35 -0500 (EST) Received: from unknown (HELO ?192.168.1.3?) (61.11.30.46) by smtp.mail.vip.sc5.yahoo.com with SMTP; 15 Feb 2002 04:45:33 -0000 Subject: Anjuta 0.1.9 released! From: Naba Kumar To: anjuta-announce@lists.sourceforge.net Cc: linux-india-help@lists.sourceforge.net, linux-india-general@lists.sourceforge.net, gnome-devel-list@gnome.org, gtk-devel@gnome.org, gnome-list@gnme.org, gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 15 Feb 2002 10:15:50 +0530 Message-Id: <1013748360.1318.4.camel@Dragon> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Announcing the latest stable release of Anjuta, 0.1.9. The Anjuta website can be found at: http://anjuta.sourceforge.net What is Anjuta? Anjuta is a versatile Integrated Development Environment (IDE). It has been written for GTK+/GNOME, and features a number of advanced programming facilities. These include project management, application wizards, an interactive debugger and a powerful source code editor, with source browsing and syntax highlighting. What is new / changed in this release? * rewritten symbol and tag browsing support, * new message manager, * embedded terminal (using zvt), * Project Import Wizard, making it easier to migrate existing projects to Anjuta (experimental), * new look Application Wizard, * libglade project support, * Class Creator plugin, * UI enhancements, * many, many bug fixes. Requirements * libxml, * scrollkeeper, * standard GNU development tools, * gdb (for debugging sessions) * autoconf/automake. Optional tools * gnome-help-browser (or Nautilus), to display the included documentation, * grep, for research in files, * ctags, in order to have class browsing, * indent, for automatic source code indenting, * DevHelp, for context sensitive API browser support (http://devhelp.codefactory.se). Availability * http://prdownloads.sourceforge.net/anjuta/anjuta-0.1.9.tar.gz * http://prdownloads.sourceforge.net/anjuta/anjuta-0.1.9-1.src.rpm * http://prdownloads.sourceforge.net/anjuta/anjuta-0.1.9-1.i386.rpm (.deb and other formats coming soon) Feedback Although much of the development effort is going into the new version of Anjuta, we'd really like to continue to hear your comments on the 0.1.x series - remember that forums, mailing lists, bug reporting and feature request facilities may be found at the Anjuta project page: http://www.sourceforge.net/projects/anjuta -- Regards, -naba Forgive him, for he believes that the customs of his tribe are the laws of nature! -- G.B. Shaw _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From podd@prodigy.net Sun Feb 10 18:43:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pimout3-int.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102]) by mail.gnome.org (Postfix) with ESMTP id 26AD31823C for ; Sun, 10 Feb 2002 18:43:07 -0500 (EST) Received: from default (A020-0842.SKT3.splitrock.net [209.253.233.80]) by pimout3-int.prodigy.net (8.11.0/8.11.0) with SMTP id g1ANh59202946 for ; Sun, 10 Feb 2002 18:43:06 -0500 Message-ID: <000701c1b283$bbbd74a0$50e9fdd1@default> From: "SCOTT D ADAMS" To: Subject: GList Date: Sun, 10 Feb 2002 14:38:58 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01C1B240.AC6D9B80" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0004_01C1B240.AC6D9B80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello all; How can you open a data file and add the contents to a GList and then = show the=20 complete list in a gtk+ listbox? I've been able to do everything except = display the=20 items in a listbox. thanks, jim scurveedog@yahoo.com ------=_NextPart_000_0004_01C1B240.AC6D9B80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello all;
 
How can you open a data file and add the contents to = a GList=20 and then show the
complete list in a gtk+ listbox?  I've been = able to do=20 everything except display the
items in a listbox.
 
thanks,
jim scurveedog@yahoo.com
 
 
 
------=_NextPart_000_0004_01C1B240.AC6D9B80-- From knishida@sky.sannet.ne.jp Thu Feb 14 02:26:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from svan18.sannet.ne.jp (svan18.sannet.ne.jp [134.180.49.18]) by mail.gnome.org (Postfix) with ESMTP id DE6CE1856C for ; Thu, 14 Feb 2002 02:26:38 -0500 (EST) Received: from xp.netlab.jp (eaa1-ppp2138.tokyo.sannet.ne.jp [211.133.188.75]) by svan18.sannet.ne.jp (Postfix) with ESMTP id 0D9C52BE69 for ; Thu, 14 Feb 2002 16:26:37 +0900 (JST) Date: Thu, 14 Feb 2002 16:28:04 +0900 Message-ID: From: Keisuke Nishida To: gtk-list@gnome.org Subject: problem with grab_focus User-Agent: Wanderlust/2.6.0 (Twist And Shout) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.1 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: multipart/mixed; boundary="Multipart_Thu_Feb_14_16:28:04_2002-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --Multipart_Thu_Feb_14_16:28:04_2002-1 Content-Type: text/plain; charset=US-ASCII Hi there, I have a problem with using gtk_widget_grab_focus in a focus_out_event hander, using gtk+-1.2.10. The attached program has three GtkEntry's, vertically aligned, and tries to grab focus on entry1 when I leave entry2. If I press key `GDK_Down' in the second entry (i.e., entry2), the default action of GTK+ moves cursor to entry3, while my handler moves cursor to entry1. Thus, two cursors appear simultaneously. How could I have only entry1 focused? Thanks in advance. Keisuke Nishida --Multipart_Thu_Feb_14_16:28:04_2002-1 Content-Type: text/plain; charset=US-ASCII #include guint handler; GtkWidget *entry1; GtkWidget *entry2; GtkWidget *entry3; static void on_focus_out (GtkEntry *entry) { gtk_signal_handler_block (GTK_OBJECT (entry), handler); gtk_widget_grab_focus (entry1); gtk_signal_handler_unblock (GTK_OBJECT (entry), handler); } static GtkWidget * create_window1 () { GtkWidget *window1; GtkWidget *vbox1; entry1 = gtk_entry_new (); entry2 = gtk_entry_new (); entry3 = gtk_entry_new (); handler = gtk_signal_connect (GTK_OBJECT (entry2), "focus_out_event", GTK_SIGNAL_FUNC (on_focus_out), NULL); vbox1 = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry1, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry2, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox1), entry3, FALSE, FALSE, 0); window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_add (GTK_CONTAINER (window1), vbox1); return window1; } int main (int argc, char **argv) { gtk_init (&argc, &argv); gtk_widget_show_all (create_window1 ()); gtk_main (); return 0; } --Multipart_Thu_Feb_14_16:28:04_2002-1-- From wdulyea@qualcomm.com Thu Feb 14 18:23:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from numenor.qualcomm.com (numenor.qualcomm.com [129.46.51.58]) by mail.gnome.org (Postfix) with ESMTP id BC6FB18272 for ; Thu, 14 Feb 2002 18:23:48 -0500 (EST) Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149]) by numenor.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1ENNWkQ027548 for ; Thu, 14 Feb 2002 15:23:32 -0800 (PST) Received: from wdulyea.qualcomm.com (wdulyea.qualcomm.com [129.46.73.119]) by neophyte.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1ENNUu4012923 for ; Thu, 14 Feb 2002 15:23:31 -0800 (PST) Message-Id: <5.1.0.14.2.20020214151555.02464940@jittlov.qualcomm.com> X-Sender: wdulyea@jittlov.qualcomm.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 14 Feb 2002 15:23:26 -0800 To: gtk-list@gnome.org From: William Dulyea Subject: memory leaks Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I am using a notebook with several pages, each page is backed with n_ widgets, each time I switch between pages I want the container of pages I am switch from and all its children to be destroyed or un referenced if you prefer. Simply destroying the widget parent does not accomplish this as I thought by propagation, oops. In the mean time I watch my application consume more and more memory:( -William From pbd@op.net Fri Feb 15 00:12:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3BA44183C4 for ; Fri, 15 Feb 2002 00:12:26 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-31.fast.net [209.92.60.31]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id AAA06390; Fri, 15 Feb 2002 00:12:21 -0500 (EST) Message-Id: <200202150512.AAA06390@renoir.op.net> To: Keisuke Nishida Cc: gtk-list@gnome.org Subject: Re: problem with grab_focus In-reply-to: Your message of "Thu, 14 Feb 2002 16:28:04 +0900." Date: Fri, 15 Feb 2002 00:07:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I have a problem with using gtk_widget_grab_focus in a >focus_out_event hander, using gtk+-1.2.10. > >The attached program has three GtkEntry's, vertically aligned, >and tries to grab focus on entry1 when I leave entry2. > >If I press key `GDK_Down' in the second entry (i.e., entry2), >the default action of GTK+ moves cursor to entry3, while my >handler moves cursor to entry1. Thus, two cursors appear >simultaneously. > >How could I have only entry1 focused? its a kludge, but you can catch keypress events in entry{1,2,3}, and gtk_signal_emit_stop_by_name() for GDK_{Down,Up,Left,Right} etc. this will block the default (and often silly) GTK focus mechanism from being driven by keystrokes in those widgets. --p From cosminb@saguaro.ro Fri Feb 15 06:03:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from terminus.dnttm.ro (terminus.dnttm.ro [193.226.98.11]) by mail.gnome.org (Postfix) with ESMTP id 1A177180FE for ; Fri, 15 Feb 2002 06:03:07 -0500 (EST) Received: from main.saguaro.ro (main.saguaro.ro [193.226.88.117]) by terminus.dnttm.ro (8.9.3/8.9.3) with ESMTP id NAA30224 for ; Fri, 15 Feb 2002 13:03:05 +0200 Received: from saguaro.ro (samba.spr [192.168.1.100]) by main.saguaro.ro (8.11.2/8.11.2) with ESMTP id g1FAk7H21174 for ; Fri, 15 Feb 2002 12:46:07 +0200 Received: from saguaro.ro (IDENT:cosmin@cosminb.spr [192.168.1.154]) by saguaro.ro (8.11.2/8.11.2) with ESMTP id g1FAwfW17154 for ; Fri, 15 Feb 2002 12:58:41 +0200 X-RAV-AntiVirus: This e-mail has been scanned for viruses on host: saguaro.ro Message-ID: <3C6CEC14.816DE09D@saguaro.ro> Date: Fri, 15 Feb 2002 13:08:04 +0200 From: cosminb X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Re: destroy-event ??? References: <200202141455.JAA04261@renoir.op.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis wrote: > > >Hi all, > > > >I don't know what signal is emited in the following situation. > > > >Right-click in the upper-right corner on a X window. A menu appears. > >There is a destroy option. Selecting this option will emit a > >"destroy-event" to that window? If yes, I want to catch it(from my gtk > >app., if posible), but I don't know how. > > it will generate a "delete_event" first, which is what actually > corresponds to the window manager's "destroy" operation. > > if that is not handled by a handler that returns TRUE, then the widget > in question will more or less immediately be "destroyed" in the GTK+ > sense, which involves returning it to an uninitialized state. this is > accompanied by a "destroy_event" for the window. > > --p Hi, It works for delete option but not for destroy. Here is my code. Am I doing something wrong? void main() { ... AddWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (AddWindow), "AddWindow", AddWindow); gtk_widget_set_usize (AddWindow, 427, 371); gtk_window_set_modal (GTK_WINDOW (AddWindow), TRUE); gtk_window_set_policy (GTK_WINDOW (AddWindow), FALSE, FALSE, FALSE); /* catch the delete event */ gtk_signal_connect(GTK_OBJECT (AddWindow), "delete_event", GTK_SIGNAL_FUNC (DestroyEventHandler), NULL); ... return; } int DestroyEventHandler(GtkWidget * widget, GdkEvent *event, gpointer data) { return TRUE; } Thanks again > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From yogeeshappa.mathighatta@wipro.com Fri Feb 15 06:09:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiproecmx1.wipro.com (wiproecmx1.wipro.com [164.164.31.5]) by mail.gnome.org (Postfix) with ESMTP id 5AFB5180FE for ; Fri, 15 Feb 2002 06:09:16 -0500 (EST) Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [164.164.23.6]) by wiproecmx1.wipro.com (8.11.3/8.11.3) with SMTP id g1FB7YX29564 for ; Fri, 15 Feb 2002 16:37:34 +0530 (IST) Received: from m2foe301975 ([10.114.9.182]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GRKMX000.GPP; Fri, 15 Feb 2002 16:37:48 +0530 Message-ID: <06f701c1b610$bfe8c6c0$b609720a@m2foe301975> Reply-To: "Yogeesh MB" From: "Yogeesh MB" To: , Cc: Subject: Required info on Bug#60132 Date: Fri, 15 Feb 2002 16:35:58 +0530 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8 Content-Type: multipart/alternative; boundary="----=_NextPart_000_06F4_01C1B63E.D91C1B50" ------=_NextPart_000_06F4_01C1B63E.D91C1B50 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I would like to know about Bug# 60132, from where it is originating. under which appication this bug lies.=20 This will help me in fixing this at the earliest. If any one knows about this bug in detail please let me know. thanks in advance, Yogeesh MB ------=_NextPart_000_06F4_01C1B63E.D91C1B50 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
I would like to know about Bug#=20 60132,  from where it is=20 originating.
under which appication this bug lies. =
This will help me in fixing = this at the=20 earliest.
If any one knows about this bug in = detail please=20 let me know.
 
thanks in advance,
 
Yogeesh MB
------=_NextPart_000_06F4_01C1B63E.D91C1B50-- ------=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8 Content-Type: text/plain; name="Wipro_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Wipro_Disclaimer.txt" **************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ******************************************************************** ------=_NextPartTM-000-255be40f-21fb-11d6-a942-00b0d0d06be8-- From inodal@teleline.es Fri Feb 15 07:26:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp4.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id C0EB718153 for ; Fri, 15 Feb 2002 07:26:39 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp4.mail.isp (Netscape Messaging Server 4.15 tsmtp4 Jul 26 2001 13:10:38) with ESMTP id GRKQHM01.D51 for ; Fri, 15 Feb 2002 13:24:58 +0100 Message-ID: <3C6CFE41.9080500@teleline.es> Date: Fri, 15 Feb 2002 12:25:37 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: Update of GtkRadioMenuItems wihtout emitting any signal Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a set of 3D Objects defined in my application, but I only show one of it. Let's call it the CURRENT_GLOBJECT. I can change the CURRENT_GLOBJECT by code or selecting it from a Menu of GtkRadioMenuItems, one GtkRadioMenuItem for each object. When I select a different CURRENT_GLOBJECT I want to update the selected active GtkRadioMenuItem, but without emitting the "activate" signal, so the menuitems callback isn't call. I use a function which returns me the widget I have to activate: GtkWidget *GetMenuItemWidget(GtkWidget* widget,gint num_object) (in my function, "widget" can be any of the GtkRadioMenuItems since they belong all to the same group) How can I activate the widget returned by GtkMenuItemWidget() without emitting the activate signal? may I use something like: gtk_menu_item_activate(GTK_MENU_ITEM(act_widget)); gtk_signal_emit_stop_by_name(GTKOBJECT(act_widget), "activate"); or which is the correct way? Thanks in advance, Ignacio Nodal From coframi.balr001@rd.francetelecom.com Fri Feb 15 07:41:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from p-mail2.rd.francetelecom.com (p-mail2.rd.francetelecom.com [193.49.124.32]) by mail.gnome.org (Postfix) with SMTP id D9D2B18153 for ; Fri, 15 Feb 2002 07:41:11 -0500 (EST) Received: by p-voyageur.rd.francetelecom.fr with Internet Mail Service (5.5.2653.19) id <1M410QY0>; Fri, 15 Feb 2002 13:40:56 +0100 Message-ID: From: zze-coframi balr001 To: 'Havoc Pennington' Cc: "'otaylor@redhat.com'" , gtk-list@gnome.org Subject: Memprof Date: Fri, 15 Feb 2002 13:40:45 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-70b42653-215f-11d6-b1e5-00508b69ab48" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------=_NextPartTM-000-70b42653-215f-11d6-b1e5-00508b69ab48 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1B61D.FCFE8510" ------_=_NextPart_001_01C1B61D.FCFE8510 Content-Type: text/plain Hello, Is there a memprof version using GTK 1.3.X ?? Isabelle -----Message d'origine----- De : Havoc Pennington [mailto:hp@redhat.com] Envoye : vendredi 8 fevrier 2002 17:46 A : Kerber, Ulrich Cc : gtk-list@gnome.org Objet : Re: Memory problems while using a clist "Kerber, Ulrich" writes: > I wrote an app with a clist showing the contents of a log file; the > clist is updated every 60 seconds. Although i do a gtk_clist_clear, > the memory used is increasing with every run, even if no element is > added. After a day of work the amount reaches up to 40 MB! > Does anybody know a solution to this problem? > You just need to debug it. Use a tool such as "memprof" to see where the memory is leaked. Havoc _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list ------_=_NextPart_001_01C1B61D.FCFE8510 Content-Type: text/html Content-Transfer-Encoding: quoted-printable Memprof

Hello,

Is there a memprof version using  GTK 1.3.X = ??

Isabelle



-----Message d'origine-----
De : Havoc Pennington [mailto:hp@redhat.com]
Envoye : vendredi 8 fevrier 2002 17:46
A : Kerber, Ulrich
Cc : gtk-list@gnome.org
Objet : Re: Memory problems while using a = clist



"Kerber, Ulrich" = <Ulrich.Kerber@faidor.de> writes:
> I wrote an app with a clist showing the = contents of a log file; the
> clist is updated every 60 seconds. Although i = do a gtk_clist_clear,
> the memory used is increasing with every run, = even if no element is
> added. After a day of work the amount reaches = up to 40 MB!
> Does anybody know a solution to this = problem?
>

You just need to debug it. Use a tool such as = "memprof" to see where
the memory is leaked.

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

------_=_NextPart_001_01C1B61D.FCFE8510-- ------=_NextPartTM-000-70b42653-215f-11d6-b1e5-00508b69ab48-- From leidola@newcon.de Fri Feb 15 09:04:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 2BE1D184BB for ; Fri, 15 Feb 2002 09:04:53 -0500 (EST) Received: from [213.70.108.88] ([213.70.108.88]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id PAA17776; Fri, 15 Feb 2002 15:04:50 +0100 Subject: Re: gui builder From: Olaf Leidinger To: "Lin, Lynn" , GTK Mailing List In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 15 Feb 2002 15:07:39 +0100 Message-Id: <1013782060.784.3.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 14 Feb 2002 15:25:12 -0800 schrieb Lin, Lynn: > Hi there, > > Does GTK+ has a GUI builder ? If yes, what is the name of it ? > > Thank you :) > > Lynn > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hi Lynn, Glade might be what you're looking for. You can get it from http://glade.gnome.org Ciao, Olaf From otaylor@redhat.com Fri Feb 15 09:14:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 3BDBC1837D for ; Fri, 15 Feb 2002 09:14:30 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 7A87A241BE2; Fri, 15 Feb 2002 09:14:16 -0500 (EST) To: zze-coframi balr001 Cc: "'Havoc Pennington'" , gtk-list@gnome.org Subject: Re: Memprof References: From: Owen Taylor In-Reply-To: zze-coframi balr001's message of "Fri, 15 Feb 2002 13:40:45 +0100" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 12 Message-Id: <20020215141416.7A87A241BE2@fresnel.labs.redhat.com> Date: Fri, 15 Feb 2002 09:14:16 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: zze-coframi balr001 writes: > Hello, > > Is there a memprof version using GTK 1.3.X ?? The version in GNOME CVS (http://cvs.gnome.org/tools/cvs.html) is ported to GTK+-1.3.x. There hasn't been a release yet. Regards, Owen From ramses@computer.org Fri Feb 15 11:31:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id ADC4F1834E; Fri, 15 Feb 2002 11:31:09 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020215163130.VJBD480.sv16@adsl50>; Fri, 15 Feb 2002 11:31:30 -0500 Subject: strange pop up menu behaviour from a clist From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-list@gnome.org, gtk-app-devel-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 15 Feb 2002 11:38:56 -0500 Message-Id: <1013791136.1176.12.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi. I set up the third mouse button as GTK_BUTTON_SELECTS on a clist. I connect "select_row" to a callback that displays a pop up menu when the third mouse button is pressed: void select_row_callback(GtkWidget *widget, gint row, gint column, GdkEventButton *bevent, gpointer menu) { if ( bevent->button == 3 ) { gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, bevent->time); } } if I click the third mouse button on that menu, it works immediately, but if I press the first mouse button, I have to do it twice to activate a menu option. I have to do this to make it work as expected, but it contradicts the purpose of the button parameter on gtk_menu_popup: void select_row_callback(GtkWidget *widget, gint row, gint column, GdkEventButton *bevent, gpointer menu) { if ( bevent->button == 3 ) { gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, bevent->time); } } Is this a bug, a feature, or am I misunderstanding something???? Thanks for your help. From pbd@op.net Fri Feb 15 12:35:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9E6BC18C8E; Fri, 15 Feb 2002 12:35:11 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-188.phlpa.fast.net [209.92.99.188]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA28338; Fri, 15 Feb 2002 12:35:09 -0500 (EST) Message-Id: <200202151735.MAA28338@renoir.op.net> To: Rams s Morales Cc: gtk-list@gnome.org, gtk-app-devel-list@gnome.org Subject: Re: strange pop up menu behaviour from a clist In-reply-to: Your message of "15 Feb 2002 11:38:56 EST." <1013791136.1176.12.camel@adsl50> Date: Fri, 15 Feb 2002 12:30:53 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, > 0, bevent->time); pass in the correct button ID of the button you want to drive the menu. 1 should do it. --p From markrubn@pacbell.net Fri Feb 15 12:58:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id 85A95181A0 for ; Fri, 15 Feb 2002 12:58:28 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRL004555XFM6@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Fri, 15 Feb 2002 09:58:27 -0800 (PST) Date: Fri, 15 Feb 2002 09:57:49 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Ignacio Nodal Cc: GTK-List Message-id: <3C6D4C1D.27A3FAF6@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <3C6CFE41.9080500@teleline.es> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ignacio Nodal writes: > When I select a different CURRENT_GLOBJECT I want to update the selected > active GtkRadioMenuItem, but without emitting the "activate" signal, so > the menuitems callback isn't call. and: > How can I activate the widget returned by GtkMenuItemWidget() without > emitting the activate signal? > > may I use something like: > > gtk_menu_item_activate(GTK_MENU_ITEM(act_widget)); > gtk_signal_emit_stop_by_name(GTKOBJECT(act_widget), "activate"); o I have had the same question for over a year now. I've tried searching the list archives, but never found the right keyword to use. o The problem isn't limited to menus. It happens any time you use the same widget for both input (the user is supplying information to the program) and output (the program is displaying information to the user). o In the "input" case, I obviously want the signal to be emitted. For "output", I don't because the program already knows it's changing the widget's value. o At minimum, the unwanted signal causes unnecessary/redundant computation to take place. At worst, it can cause an infinite loop. Last year I wrote, but never posted, a simple example program to illustrate this. It's my own "hello world" test program for GUI toolkits: A fahrenheit-to-celcius temperature converter. It has two spinputtons, one for F and one for C. The user changes either one, and the other displays the correct matching temperature. For example, when the user inputs a C temperature, a signal is emitted, the program calculates F and displays it in the other spinbutton ... which then emits a signal causing a conversion back to F, and an update of the F spinputton. (In this case, because the conversion is invertible, the F value is the same as what the user inputted, so the F spinbutton doesn't emit a signal. No infinite loop, just redundant calculation.) o My workaround -- for real-world programs, not toy F-to-C converters -- is to set a flag when changing a widget. Then, in the signal handler: if (flag) { flag = FALSE ; return ; } else // really handle the signal o In C and Gtk this gets ugly very fast (global variables). I use C++ and Gtk--, so I wrap (for example) Gtk::Adjustment in my own class which handles the flag internally. It's still pretty ugly. o Someone (Havoc??) must know the right solution to this problem. -- MARK markrubn@pacbell.net From hp@redhat.com Fri Feb 15 14:24:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.labs.redhat.com (nat-pool-meridian.redhat.com [12.107.208.200]) by mail.gnome.org (Postfix) with ESMTP id 8838818153 for ; Fri, 15 Feb 2002 14:24:27 -0500 (EST) Received: (from hp@localhost) by icon.labs.redhat.com (8.11.6/8.11.6) id g1FJOKp17164; Fri, 15 Feb 2002 14:24:20 -0500 X-Authentication-Warning: icon.labs.redhat.com: hp set sender to hp@redhat.com using -f To: "Mark R. Rubin" Cc: Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal References: <3C6CFE41.9080500@teleline.es> <3C6D4C1D.27A3FAF6@pacbell.net> From: Havoc Pennington Date: 15 Feb 2002 14:24:20 -0500 In-Reply-To: <3C6D4C1D.27A3FAF6@pacbell.net> Message-ID: Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Mark R. Rubin" writes: > o Someone (Havoc??) must know the right solution to this problem. > It depends on the situation. Some approaches are: - gtk_signal_handler_block (g_signal_handlers_block, and by_func variants) - don't do anything in the callback if the value hasn't changed: if (current_state == gtk_toggle_button_get_active (toggle)) return; - fill in the default state of controls before you connect the callbacks to them You can also use a global flag or a flag specific to a class/object, but I don't like that approach much personally. Most signals indicate that the state of an object has changed, not that it has changed due to some specific cause (e.g. user input). This is the right thing IMO for reasons of conceptual cleanliness; there would be lots of subtle tricky bugs otherwise. In any case it's too late to change this aspect of GTK. Havoc From vmail@excite.com Fri Feb 15 15:57:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from xprdmailfe.excite.com (unknown [63.236.75.8]) by mail.gnome.org (Postfix) with ESMTP id 34AE7180E4 for ; Fri, 15 Feb 2002 15:57:40 -0500 (EST) Received: by xprdmailfe.excite.com (Postfix, from userid 110) id 8412E109EB9; Fri, 15 Feb 2002 15:57:35 -0500 (EST) To: gtk-list@gnome.org Subject: memory leaks (continued) Reply-To: wdulyea1@excite.com From: "" MIME-Version: 1.0 X-Sender: wdulyea1@excite.com X-Mailer: PHP Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: wdulyea@qualcomm.com Message-Id: <20020215205735.8412E109EB9@xprdmailfe.excite.com> Date: Fri, 15 Feb 2002 15:57:35 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: An expansion to an earlier mail I sent... In this code snippet below I can observ that removing(destroying) container widgets does not have the desired effect. Please comment:>

Code snippet...........................................
cur_page = gtk_notebook_get_current_page( notebook );
fprintf( stderr, "on_notebook_switch_page,
switching from:%i to:%i\n", cur_page, page_n );

child = gtk_container_children(
GTK_CONTAINER(notebookpage[cur_page].widget));
while( child ) {
GtkWidget *widget;

widget = GTK_WIDGET(child->data);
gtk_container_remove(
GTK_CONTAINER(notebookpages[cur_page].widget),widget );

fprintf( stderr, "on_notebook_switch_page,
destroy widget:%p", widget);
gtk_widget_destroy( widget );

if( widget )
fprintf( stderr, " widget still referenced:%p\n", widget);
else
fprintf( stderr, "\n" );

child = child->next;
}
create_page_item( notebook, page_n );


example page item created..................................
case HDWR_CONF:
page_item = create_hardware_config();
gtk_container_add(GTK_CONTAINER(notebookpages[page_n].widget),
page_item);


To further enlighten, the widget returded by this routine as with all others does have reference count of at least 1 and sig connect is set for destroy_event on the top-level widget or this one returned.


From seberino@dt092n42.san.rr.com Fri Feb 15 16:10:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 9D758180E4 for ; Fri, 15 Feb 2002 16:10:05 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16bpdA-0003TA-00 for gtk-list@gnome.org; Fri, 15 Feb 2002 13:10:56 -0800 Date: Fri, 15 Feb 2002 13:10:55 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: What means "callback function" and "signal handler" - are they DIFFERENT? Message-ID: <20020215131055.A13335@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I know that signals are tied to functions. These are called "signal handlers" I believe. Is this also called a "callback function" or does that mean something else? Callback seems like a strange name since nothing is being called back to anywhere. chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From Valdis.Kletnieks@vt.edu Fri Feb 15 16:16:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 63CD6180E4 for ; Fri, 15 Feb 2002 16:16:17 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1FLGEVj024456; Fri, 15 Feb 2002 16:16:15 -0500 Message-Id: <200202152116.g1FLGEVj024456@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What means "callback function" and "signal handler" - are they DIFFERENT? In-Reply-To: Your message of "Fri, 15 Feb 2002 13:10:55 PST." <20020215131055.A13335@spawar.navy.mil> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-1993187116P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 15 Feb 2002 16:16:14 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-1993187116P Content-Type: text/plain; charset=us-ascii On Fri, 15 Feb 2002 13:10:55 PST, Chris Seberino said: > Callback seems like a strange name since > nothing is being called back to anywhere. It makes more sense if you think of it like this: 1) Registering your callback is like calling your boss on the phone and saying "Give me a call back if the package from Smith Inc shows up". 2) When the package shows up, you get a call back..... -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_-1993187116P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8bXqecC3lWbTT17ARAmkQAJwMfYsm4oLCo6gyWoxdCLbh6ohLvQCbB6/Z Goxw1r4BLUS1aQx3lVa7pyA= =W6HR -----END PGP SIGNATURE----- --==_Exmh_-1993187116P-- From seberino@dt092n42.san.rr.com Fri Feb 15 16:16:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 040DF180E4 for ; Fri, 15 Feb 2002 16:16:48 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16bpjd-0003UA-00 for gtk-list@gnome.org; Fri, 15 Feb 2002 13:17:37 -0800 Date: Fri, 15 Feb 2002 13:17:32 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing Message-ID: <20020215131731.B13335@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: pthread_t thread; pthread_create(&thread, NULL, (void*) &doSimulation, NULL); Help! I trying to assign a function to a thread in my amateur PThread calls above. Without (void*) before function name I get an error and WITH (void*) I get following warning: warning: ANSI C++ forbids implicit conversion from `void *' in argument passing This would all be harmless except I believe newer GTK+ or something in my Linux distro upgrade causes BOTH (with and without (void*)) to return an error!!! NEITHER WORKS!! Is there someway to fix this to avoid errors and warnings?? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Fri Feb 15 16:27:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 9525A1876C for ; Fri, 15 Feb 2002 16:27:24 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-228.fast.net [209.92.60.228]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA23968; Fri, 15 Feb 2002 16:27:18 -0500 (EST) Message-Id: <200202152127.QAA23968@renoir.op.net> To: wdulyea1@excite.com Cc: gtk-list@gnome.org, wdulyea@qualcomm.com Subject: Re: memory leaks (continued) In-reply-to: Your message of "Fri, 15 Feb 2002 15:57:35 EST." <20020215205735.8412E109EB9@xprdmailfe.excite.com> Date: Fri, 15 Feb 2002 16:23:05 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: generic note------- just a quick note to point out that whether you know it or not, the email program you are using is sending out copies of your mail in both plain text and HTML formats. increasingly on the net, there are filters being put in place that silently dump HTML-formatted email. some mailing lists will not ever accept such posts. as long as you do this, you are (1) wasting network bandwidth by sending messages that are typically more than twice as long as they could be (2) making it harder for people using traditional email readers to read them (3) risking the chance that people will never see your mail because its filtered before reaching their email inbox. specific note-------- i cannot even bear to look at your email. if it was plain text, i would have tried to read the code and come up with an answer. --p From pbd@op.net Fri Feb 15 16:30:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BC86E1890D for ; Fri, 15 Feb 2002 16:30:15 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-228.fast.net [209.92.60.228]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA24306; Fri, 15 Feb 2002 16:30:11 -0500 (EST) Message-Id: <200202152130.QAA24306@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing In-reply-to: Your message of "Fri, 15 Feb 2002 13:17:32 PST." <20020215131731.B13335@spawar.navy.mil> Date: Fri, 15 Feb 2002 16:25:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > > pthread_t thread; > > pthread_create(&thread, NULL, (void*) &doSimulation, NULL); the correct declaration for a thread function is: void *the_function_name (void *); if your function is not declared like that, you will need to cast it: pthread_create (&thread, NULL, (void *()(void*)) the_function, NULL); but its generally a bad idea to be calling functions which have the wrong prototype. in ANSI C and C++, you do NOT need to dereference the name of a function object to use it as a pointer: pthread_create(&thread, NULL, doSimulation, NULL); --p From pbd@op.net Fri Feb 15 16:34:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 73F5818A10 for ; Fri, 15 Feb 2002 16:34:36 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-228.fast.net [209.92.60.228]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id QAA24778; Fri, 15 Feb 2002 16:34:33 -0500 (EST) Message-Id: <200202152134.QAA24778@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: What means "callback function" and "signal handler" - are they DIFFERENT? In-reply-to: Your message of "Fri, 15 Feb 2002 13:10:55 PST." <20020215131055.A13335@spawar.navy.mil> Date: Fri, 15 Feb 2002 16:30:20 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I know that signals are tied to functions. >These are called "signal handlers" I believe. > >Is this also called a "callback function" or >does that mean something else? > >Callback seems like a strange name since >nothing is being called back to anywhere. "callback" is a somewhat older term that comes from the idea of registering a function (by passing the address of the function) with some object/system; later, when certain conditions arise, the object/system will "call you back" by calling the function you registered, passing (variously) its own arguments and/or any that you supplied when registering it. GTK+ signal handlers are just one example of a callback system; because the GTK+ design adds some additional semantics to the simplest model of a callback system, and for other reasons, they decided to call it something else. BTW, if you're working in C++, I don't know why you're not using gtkmm instead of straight GTK+. its a thin wrapper that provides a much more C++-style idiom for programming in, plus it comes with one of the most awesome and useful callback systems ever written (libsigc++) that uses the power of C++'s template programming to make things possible that have always been (and continue to be) an annoyance in C. --p From sven@gimp.org Fri Feb 15 16:45:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E6B03D.dip.t-dialin.net [217.230.176.61]) by mail.gnome.org (Postfix) with ESMTP id 9B44518CCD for ; Fri, 15 Feb 2002 16:45:45 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16bqAX-00060E-00; Fri, 15 Feb 2002 22:45:25 +0100 To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing References: <20020215131731.B13335@spawar.navy.mil> From: Sven Neumann Date: 15 Feb 2002 22:45:24 +0100 In-Reply-To: <20020215131731.B13335@spawar.navy.mil> Message-ID: Lines: 32 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Chris Seberino writes: > pthread_t thread; > > pthread_create(&thread, NULL, (void*) &doSimulation, NULL); > > Help! I trying to assign a function to a thread in my amateur > PThread calls above. Without (void*) before function name I get > an error and WITH (void*) I get following warning: > > warning: ANSI C++ forbids implicit conversion from `void *' in argument passing > > This would all be harmless except I believe newer GTK+ > or something in my Linux distro upgrade causes BOTH > (with and without (void*)) to return an error!!! > > NEITHER WORKS!! > > Is there someway to fix this to avoid errors and warnings?? yes, make doSimulation a void * function that takes a void * parameter: static void * doSimulation (void *data); or the equivalent glib-style static gpointer doSimulation (gpointer data); Salut, Sven From markrubn@pacbell.net Fri Feb 15 18:31:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by mail.gnome.org (Postfix) with ESMTP id 980EF18C58 for ; Fri, 15 Feb 2002 18:31:17 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRL00MUDLC3C4@mta7.pltn13.pbi.net> for gtk-list@gnome.org; Fri, 15 Feb 2002 15:31:16 -0800 (PST) Date: Fri, 15 Feb 2002 15:30:35 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Havoc Pennington Cc: Ignacio Nodal , GTK-List Message-id: <3C6D9A1B.3DEACEF9@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <3C6CFE41.9080500@teleline.es> <3C6D4C1D.27A3FAF6@pacbell.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc Pennington writes: > It depends on the situation. Some approaches are: > > - gtk_signal_handler_block (g_signal_handlers_block, and by_func variants) > - don't do anything in the callback if the value hasn't changed: > if (current_state == gtk_toggle_button_get_active (toggle)) > return; > - fill in the default state of controls before you connect the > callbacks to them > > You can also use a global flag or a flag specific to a class/object, > but I don't like that approach much personally. o I don't like it much, either. (That's why I wrote "it's [still] pretty ugly".) o Thanks for weighing in on this. I didn't know about gtk_signal_handler_block(), etc., and will look into them. Unfortunately, a quick check seems to say they're not exposed in GTK-- (gtkmm), which is what I mostly use. o I need to test the performance of various solutions. Amongst: 1) Set a flag, change the widget, let the signal happen, test the flag. 2) Check current state in callback, do nothing if unchanged. (Requires maintaining a separate copy of the widget state -- isn't the XXX_get_YYY() or the adjustment value already changed by the time you're in the callback?) 3) gtk_signal_handler_block(), change the widget, gtk_signal_handler_unblock() 4) disconnect the signal, change the widget, re-connect the signal my guess is that #1 or #2 are still the most efficient. I do have cases where performance is important. Example: CAD program where user can set the current object's position by inputting x,y in spinbuttons, but can also drag the object around in its drawing area while the spinbuttons display x,y. > Most signals indicate that the state of an object has changed, not > that it has changed due to some specific cause (e.g. user input). > This is the right thing IMO for reasons of conceptual cleanliness; > there would be lots of subtle tricky bugs otherwise. In any case it's > too late to change this aspect of GTK. o I agree on conceptual cleanliness and that it's "too late" (would break huge number of programs). I do wonder what it would take to add a widget specific (and/or global-affect-all-widgets) command to optionally change the behavior to "emit signal only on user input". Default stays the way it is now; no programs break. Someday I'll look through the source and see. o I also have trouble believing that Ignacio Nodal and myself are the only ones who've ever been bitten by this. Screen real estate is always precious, and re-using a widget for input and output always helps (and is easier on the user than "click this togglebutton to change from "input values" to "display values" mode). -- MARK markrubn@pacbell.net From pbd@op.net Fri Feb 15 19:52:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 4BE0B1823C for ; Fri, 15 Feb 2002 19:52:53 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-219.fast.net [209.92.60.219]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id TAA13523; Fri, 15 Feb 2002 19:52:13 -0500 (EST) Message-Id: <200202160052.TAA13523@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Fri, 15 Feb 2002 15:30:35 PST." <3C6D9A1B.3DEACEF9@pacbell.net> Date: Fri, 15 Feb 2002 19:48:02 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >o I also have trouble believing that Ignacio Nodal and myself are the > only ones who've ever been bitten by this. Screen real estate is > always precious, and re-using a widget for input and output always > helps (and is easier on the user than "click this togglebutton to > change from "input values" to "display values" mode). you're not the only ones; i've discussed this issue several times on this list in the past. however, if you're really doing Model-View-Controller style programming, which is highly desirable and it sounds as if you are, then Havoc's suggestion of: handle_widget_state_change () { if (widget->representation_of_object_state() != object->state()) widget->set_state (object->state()); } is the *only* correct route to take here. in my C++ code, i tend to use a void * (aka gpointer) as an extra arg to all functions that change the state of my objects ("models"), an arg i call "src". when the objects emit signals as a result of the change, they include the "src" argument. as a result, widgets ("views" and/or "controllers") can do things like: handle_widget_state_change (void *src) { if (src == this) { /* ignore */ return; } .... } this lets a widget set the state of its underlying object (when acting as a controller), supplying "itself" as the src pointer, and thus ignore any notifications from the object when they are sent following the object's state change. however ... despite the fact that i found this to be a rather elegant solution, i think that there are hardly any places in my code where i make this check, and that number is going down all the time. the explicit comparison of widget state and object state now dominates my code, and it generally feels "right". your suggestion for "emit only on user input" will break proper MVC programming as soon as there are non-X-based methods of changing object or widget state. most of my programs accept MIDI input, for example, that can be used to change object states, and i expect my widgets to follow those changes. unless you provide a way to say "change this GtkAdjustment as if i were a user" and "change this GtkAdjustment as if i were not a user", which is deeply cumbersome, somewhere down the line, there has to be a call to "change this GtkAdjustment", and that *must* emit a signal that can be caught. anything less will, as Havoc intimated, and as i now emphasize, break a good MVC design in many subtle and not so subtle ways. --p From hunchback@netcabo.pt Fri Feb 15 20:30:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id CB05A18106 for ; Fri, 15 Feb 2002 20:30:16 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 01:27:02 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 01:26:52 +0000 Content-Class: urn:content-classes:message From: To: Subject: Signal when window is shown Date: Sat, 16 Feb 2002 01:26:51 -0000 Message-ID: <0c2b01c1b689$02f37910$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2iQLx3to8GCJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 01:27:02.0667 (UTC) FILETIME=[0958BDB0:01C1B689] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, does anyone know what signal is triggered when a window appears? Afonso From pbd@op.net Fri Feb 15 20:43:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 7C2BE1815F for ; Fri, 15 Feb 2002 20:43:07 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-219.fast.net [209.92.60.219]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA17501; Fri, 15 Feb 2002 20:43:04 -0500 (EST) Message-Id: <200202160143.UAA17501@renoir.op.net> To: hunchback@netcabo.pt Cc: gtk-list@gnome.org Subject: Re: Signal when window is shown In-reply-to: Your message of "Sat, 16 Feb 2002 01:26:51 GMT." <0c2b01c1b689$02f37910$0814a8c0@netcabo.net> Date: Fri, 15 Feb 2002 20:38:53 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >does anyone know what signal is triggered when a window appears? realize show map the first one is only emitted when the window is first shown; the second is emitted for any call to gtk_widget_show() on the window; the third is called any time the window has been unmapped (e.g. minimized or the WM switched workspaces) and its now displayed again. --p From iain@ximian.com Fri Feb 15 20:52:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from peabody.ximian.com (peabody.ximian.com [141.154.95.10]) by mail.gnome.org (Postfix) with ESMTP id C7B5D1823B for ; Fri, 15 Feb 2002 20:52:24 -0500 (EST) Received: (qmail 7143 invoked from network); 16 Feb 2002 01:52:24 -0000 Received: from peabody.ximian.com (HELO localhost.localdomain) (141.154.95.10) by peabody.ximian.com with SMTP; 16 Feb 2002 01:52:24 -0000 Subject: Re: memory leaks (continued) From: iain To: wdulyea1@excite.com Cc: gtk-list@gnome.org, wdulyea@qualcomm.com In-Reply-To: <20020215205735.8412E109EB9@xprdmailfe.excite.com> References: <20020215205735.8412E109EB9@xprdmailfe.excite.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Ximian, Inc X-Mailer: Evolution/1.1.0.99 (Preview Release) Date: 16 Feb 2002 02:53:25 +0000 Message-Id: <1013828006.2185.0.camel@discomachinegun.prettypeople.org> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Fri, 2002-02-15 at 20:57, wdulyea1@excite.com wrote: An expansion to an earlier mail I sent... In this code snippet below I can observ that removing(destroying) container widgets does not have the desired effect. Please comment:> What specific reason do you need to delete the widgets on a page when the page is changed? iain -- "All men of conscience or prudence ply to windward, to maintain their wars to be defensive." -- Roger Williams From hunchback@netcabo.pt Fri Feb 15 21:00:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id D6CDA1879F for ; Fri, 15 Feb 2002 21:00:30 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 01:57:12 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 01:57:01 +0000 Content-Class: urn:content-classes:message From: To: "Paul Davis" Cc: Subject: RE: Signal when window is shown Date: Sat, 16 Feb 2002 01:57:01 -0000 Message-ID: <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2jTmq3to+YCJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 01:57:12.0550 (UTC) FILETIME=[401EF860:01C1B68D] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >realize i tried it but it never happens! >show i tried it but nothing happened again... >map i tried the map_event and it worked, but not on the first time.. i have a drawing area and i want to draw somethings on it when the = window appears, but nothing is working! the only one that entered the = signal handler was the map_event, but the first time it entered the = signal handler it didn't paint, only on the second time. From pbd@op.net Fri Feb 15 21:03:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 4023C18D24 for ; Fri, 15 Feb 2002 21:03:58 -0500 (EST) Received: from someip.ppp.op.net (maxtnt01-sdf-219.fast.net [209.92.60.219]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id VAA19158; Fri, 15 Feb 2002 21:03:55 -0500 (EST) Message-Id: <200202160203.VAA19158@renoir.op.net> To: hunchback@netcabo.pt Cc: gtk-list@gnome.org Subject: Re: Signal when window is shown In-reply-to: Your message of "Sat, 16 Feb 2002 01:57:01 GMT." <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> Date: Fri, 15 Feb 2002 20:59:44 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >>realize > >i tried it but it never happens! > >>show > >i tried it but nothing happened again... > >>map > >i tried the map_event and it worked, but not on the first time.. > >i have a drawing area and i want to draw somethings on it when the window appe >ars, but nothing is working! the only one that entered the signal handler was >the map_event, but the first time it entered the signal handler it didn't pain >t, only on the second time. you must be making a mistake at a different level. realize is always emitted for every widget with a GdkWindow (e.g. a GtkWindow) - nothing can be drawn unless the widget is realized, and being realized emits that signal. are you sure you connected to the correct signals at the correct time? --p From rsteinke@w-link.net Fri Feb 15 21:09:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id F064E18759 for ; Fri, 15 Feb 2002 21:09:19 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16buHu-0008PS-00; Fri, 15 Feb 2002 18:09:18 -0800 Date: Fri, 15 Feb 2002 18:09:18 -0800 From: rsteinke@w-link.net To: hunchback@netcabo.pt, pbd@Op.Net Subject: Re: Signal when window is shown Cc: gtk-list@gnome.org Message-ID: <3C6DBF4E.nailOUA11K7IM@w-link.net> References: <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> In-Reply-To: <0e6b01c1b68d$39aa2360$0814a8c0@netcabo.net> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: > > >realize > > i tried it but it never happens! > > >show > > i tried it but nothing happened again... > > >map > > i tried the map_event and it worked, but not on the first time.. > > i have a drawing area and i want to draw somethings on it when the > window appears, but nothing is working! the only one that entered > the signal handler was the map_event, but the first time it > entered the signal handler it didn't paint, only on the second time. You need to do your drawing in the expose handler. All drawing comes after the window has been mapped to the screen. Ron Steinke From hunchback@netcabo.pt Fri Feb 15 21:19:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 0657118D2C for ; Fri, 15 Feb 2002 21:19:03 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 02:15:49 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 02:15:38 +0000 Content-Class: urn:content-classes:message From: To: Cc: Subject: RE: Signal when window is shown Date: Sat, 16 Feb 2002 02:15:38 -0000 Message-ID: <0f9201c1b68f$d35fbd10$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2j9Nd3to/niJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 02:15:49.0599 (UTC) FILETIME=[D9EF1EF0:01C1B68F] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >You need to do your drawing in the expose handler. All drawing comes = after >the window has been mapped to the screen. when i tried the expose_event the program occurs segmentation fault when = it tries to paint... From hunchback@netcabo.pt Fri Feb 15 21:24:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id CAF2418D4A for ; Fri, 15 Feb 2002 21:24:02 -0500 (EST) Received: from netcabo.pt ([212.113.161.138]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sat, 16 Feb 2002 02:20:49 +0000 Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Sat, 16 Feb 2002 02:20:38 +0000 Content-Class: urn:content-classes:message From: To: Cc: Subject: RE: Signal when window is shown Date: Sat, 16 Feb 2002 02:20:38 -0000 Message-ID: <0fd601c1b690$86112160$0814a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG2kIYR3to/1yJwEdaKXQBQi1oaxA== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-OriginalArrivalTime: 16 Feb 2002 02:20:49.0267 (UTC) FILETIME=[8C8CD430:01C1B690] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >You need to do your drawing in the expose handler. All drawing comes = after >the window has been mapped to the screen. >when i tried the expose_event the program occurs segmentation fault = when it tries >to paint... ups.. sorry, my mistake, it doesn't crash anymore, but it stell doesn't = paint... the window is all grey like if it was a new window with nothing = in... Afonso From rsteinke@w-link.net Fri Feb 15 21:27:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id A98BE18D87 for ; Fri, 15 Feb 2002 21:27:38 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16buZd-0008TS-00; Fri, 15 Feb 2002 18:27:37 -0800 Date: Fri, 15 Feb 2002 18:27:37 -0800 From: rsteinke@w-link.net To: hunchback@netcabo.pt Subject: Re: Signal when window is shown Cc: gtk-list@gnome.org Message-ID: <3C6DC399.nailP4K1548Z3@w-link.net> References: <0f9201c1b68f$d35fbd10$0814a8c0@netcabo.net> In-Reply-To: <0f9201c1b68f$d35fbd10$0814a8c0@netcabo.net> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: hunchback@netcabo.pt > > >You need to do your drawing in the expose handler. All drawing comes after > >the window has been mapped to the screen. > > when i tried the expose_event the program occurs segmentation fault > when it tries to paint... That's probably an error with your code. Try commenting out everything except for the "return" statement at the end of the function, and it shouldn't seg fault. (Of course, it won't draw either). Then go back and add your code a piece at a time until you find the error. Ron Steinke P.S. Please try to stick line breaks in your messages every 60-70 characters. From scherfa@web.de Sat Feb 16 04:44:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id F367F18137 for ; Sat, 16 Feb 2002 04:44:40 -0500 (EST) Received: from [143.93.58.13] (helo=rmpc11.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.25 #15) id 16c1OL-0001Ti-00 for gtk-list@gnome.org; Sat, 16 Feb 2002 10:44:26 +0100 Subject: GIOChannel + GtkTreeModel length From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 16 Feb 2002 10:43:33 +0100 Message-Id: <1013852614.1080.4.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, i want to transfer some printing datas via a giochannel to the lpr system command. Today i'm doing that via pipes and closed stdout ... How could i do that via the giochannel support ? Any hints ? 2. Is there a method for getting the number of lines from a GtkTreeModel like the clist->rows element in gtk1.2 ?? Thats because i want to get the number of lines before catching all row datas via gtk_tree_model_iter_next(GTK_TREE_MODEL(p_obj->main_list),&iter) So how could i get the number of rows before ?? Thanks Andreas -- Andreas Scherf ICQ: 52910964 scherfa@web.de From leidola@newcon.de Sat Feb 16 05:36:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 7354A1819E for ; Sat, 16 Feb 2002 05:36:35 -0500 (EST) Received: from [213.70.108.66] ([213.70.108.66]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id LAA09228 for ; Sat, 16 Feb 2002 11:36:36 +0100 Subject: Re: GIOChannel + GtkTreeModel length From: Olaf Leidinger To: GTK Mailing List Content-Type: multipart/mixed; boundary="=-s+xrUELm2124OVdCIE+9" X-Mailer: Evolution/0.12 (Preview Release) Date: 16 Feb 2002 11:39:26 +0100 Message-Id: <1013855967.880.50.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-s+xrUELm2124OVdCIE+9 Content-Type: text/plain Content-Transfer-Encoding: 7bit --=-s+xrUELm2124OVdCIE+9 Content-Disposition: inline Content-Description: Weitergeleitete Nachricht - Re: GIOChannel + GtkTreeModel length Content-Type: message/rfc822 Subject: Re: GIOChannel + GtkTreeModel length From: Olaf Leidinger To: Andreas Scherf In-Reply-To: <1013852614.1080.4.camel@xerxes> References: <1013852614.1080.4.camel@xerxes> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 16 Feb 2002 11:37:41 +0100 Message-Id: <1013855861.880.48.camel@attic> Mime-Version: 1.0 X-Evolution-Account: leidola@newcon.de X-Evolution-Source: X-Evolution: 00000063-0010 Am 16 Feb 2002 10:43:33 +0100 schrieb Andreas Scherf: > Hello, > i want to transfer some printing datas via a giochannel to the lpr > system command. Today i'm doing that via pipes and closed stdout ... > How could i do that via the giochannel support ? Any hints ? > 2. Is there a method for getting the number of lines from a GtkTreeModel > like the clist->rows element in gtk1.2 ?? Thats because i want to get > the number of lines before catching all row datas via > gtk_tree_model_iter_next(GTK_TREE_MODEL(p_obj->main_list),&iter) > So how could i get the number of rows before ?? > > Thanks > Andreas > -- > Andreas Scherf > ICQ: 52910964 > scherfa@web.de > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > 1. GIOChannel You can run lpr using something like this bRunning = g_spawn_async_with_pipes (NULL, /* workingdir*/ gargv, /* arguments*/ NULL, /* enviroment*/ G_SPAWN_SEARCH_PATH | /* options */ G_SPAWN_LEAVE_DESCRIPTORS_OPEN, NULL, /* creationfunc*/ NULL, /* daten */ &pid, /* pid */ &in_desc, /* stdin*/ &out_desc, /* stdo*/ &err_desc, /* stderr*/ NULL); /* error*/ Your gargv sould be something like gchar *gargv[2] = {"lpr", NULL}; or similar. You can also use the g_spawn_sync_with_pipes function. It depends on what you need. Now you can create the io_channels. if (in_desc) { io_in = g_io_channel_unix_new (in_desc); event_id1 = g_io_add_watch (io_in, G_IO_OUT, write_func, data); event_id2 = g_io_add_watch (io_in, G_IO_HUP, hup_func, data); } These watches are callbacks for the io_channels. You don't have to createe them. Again, it depends on what you need. But keep one thing in mind. When you use g_io_add_watch you have to remove this watch from the main event loop (or however it is called) again using the g_source_remove function. Otherwise there will be some problems when you close the channel again. That's why you have to store the event_ids somewhere. You might create a structure or an array where you save them and pass it to the hup_func as data. Oh yes, some variables you might need gboolean brunning = FALSE; GIOChannel *io_in = NULL; gint pid = 0, in_desc = 0, out_desc = 0, /*don't know whether you need them*/ err_desc = 0; /*don't know whether you need them*/ 2. Tree Don't know, sorry *g* Ciao Olaf --=-s+xrUELm2124OVdCIE+9-- From inodal@teleline.es Sat Feb 16 06:09:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp3.ldap.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 4F25718324 for ; Sat, 16 Feb 2002 06:09:25 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp3.ldap.isp (Netscape Messaging Server 4.15 tsmtp3 Jul 26 2001 13:10:38) with ESMTP id GRMHMT02.547 for ; Sat, 16 Feb 2002 12:08:53 +0100 Message-ID: <3C6E3DE7.8090404@teleline.es> Date: Sat, 16 Feb 2002 11:09:27 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: Dialog Window Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Sometime ago someone told how to make a "dialog window" to get the control of the application.. I mean the dialog window being the only one to have the focus until it's closed/hided... I just can't find that mail anymore.. could anyone remind me how to do this? :) Thanks, Ignacio From npravin@servihoo.com Sat Feb 16 08:29:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servihoo.com (mail.servihoo.com [202.123.2.125]) by mail.gnome.org (Postfix) with ESMTP id 3AE0018173 for ; Sat, 16 Feb 2002 08:29:34 -0500 (EST) Received: from [202.123.10.104] (account ) by servihoo.com (CommuniGate Pro WebUser 3.3) with HTTP id 2806414 for ; Sat, 16 Feb 2002 17:26:56 +0400 From: "Pravin Nowbuth" Subject: compiling rpc and gtk To: X-Mailer: CommuniGate Pro Web Mailer v.3.3 Date: Sat, 16 Feb 2002 17:26:56 +0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi guys, Could anyone tell me how to compile a gtk C program making use of RPC. In fact, I'm using RPC in a client-server based application. I've an interface file named "file.x", and obtained the follwing files file_client.c file_server.c and so on. The client makes RPC calls to the server I'm thinking of providing a GUI to the client. therfore, i have added gtk codes to the client file. But the problem is how to compile the client file. Will it work? can I provide a GUI using gtk at all !! -------------------------------------------------- Get your free email address from Servihoo.com! http://www.servihoo.com The Portal of Mauritius From pbd@op.net Sat Feb 16 09:16:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BA6E1181C5 for ; Sat, 16 Feb 2002 09:16:22 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-149.phlpa.fast.net [209.92.99.149]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA03714; Sat, 16 Feb 2002 09:16:20 -0500 (EST) Message-Id: <200202161416.JAA03714@renoir.op.net> To: Ignacio Nodal Cc: GTK-List Subject: Re: Dialog Window In-reply-to: Your message of "Sat, 16 Feb 2002 11:09:27 GMT." <3C6E3DE7.8090404@teleline.es> Date: Sat, 16 Feb 2002 09:12:16 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Sometime ago someone told how to make a "dialog window" to get the >control of the application.. gtk_window_set_modal From inodal@teleline.es Sat Feb 16 11:11:44 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp2.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 7B6AC18A83 for ; Sat, 16 Feb 2002 11:11:43 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp2.mail.isp (Netscape Messaging Server 4.15 tsmtp2 Jul 26 2001 13:10:38) with ESMTP id GRMVMF00.LED for ; Sat, 16 Feb 2002 17:11:03 +0100 Message-ID: <3C6E84C5.1050706@teleline.es> Date: Sat, 16 Feb 2002 16:11:49 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 Cc: GTK-List Subject: Re: Dialog Window References: <200202161416.JAA03714@renoir.op.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis wrote: >>Sometime ago someone told how to make a "dialog window" to get the >>control of the application.. >> > > gtk_window_set_modal Mmmm, I didn't explain myself very good... My program has a main window with a GtkGLArea waiting impatiently for events to occur on it... Then I have a window (I call it file_name_window) to select the file I want to load into my GtkGLArea.. This window has just a GtkEntry, an "OK" and a "CANCEL" button, and a "BROWSE" button that being clicked opens a GtkFileSelection Window. When the file is selected (in the GtkFileSelection) it updates my file_name_window's entry. If I use gtk_window_set_modal() I cannot interact with the GtkFileSelection Window... What I want to avoid is my GtkGLArea catchin' events while I select a file. I thought it would have to do with gtk_window_set_transitent_for, but this function just keeps my "file_name_window" on top of the main window, which continues receiving events.. How should I proceed? Thanks again.. From inimss@yahoo.com Sat Feb 16 12:00:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ekm.asianetonline.net (unknown [202.88.231.2]) by mail.gnome.org (Postfix) with ESMTP id 0709118C6C for ; Sat, 16 Feb 2002 12:00:06 -0500 (EST) Received: from dino ([202.88.225.117]) by ekm.asianetonline.net (Netscape Messaging Server 4.15) with SMTP id GRMWB000.770; Sat, 16 Feb 2002 11:25:48 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: Paul Davis , Ignacio Nodal Subject: Re: Dialog Window Date: Sat, 16 Feb 2002 21:51:10 +0530 X-Mailer: KMail [version 1.2] Cc: GTK-List References: <200202161416.JAA03714@renoir.op.net> In-Reply-To: <200202161416.JAA03714@renoir.op.net> MIME-Version: 1.0 Message-Id: <02021621511000.16869@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi But it doesn't make the dialog window to stay on top of the parent window. I agree that it has the full input focus, but we can click on the parent window, even when the dialog window is visible. How can we fix that too? Will gtk_window_set_transient_for help? Thanks Dino CK On Saturday 16 February 2002 19:42, Paul Davis wrote: > >Sometime ago someone told how to make a "dialog window" to get the > >control of the application.. > > gtk_window_set_modal > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From inodal@teleline.es Sat Feb 16 12:09:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp8.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id AE95718C23 for ; Sat, 16 Feb 2002 12:09:23 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp8.mail.isp (Netscape Messaging Server 4.15 tsmtp8 Jul 26 2001 13:10:38) with ESMTP id GRMYAJ01.LPN; Sat, 16 Feb 2002 18:08:43 +0100 Message-ID: <3C6E9249.2070508@teleline.es> Date: Sat, 16 Feb 2002 17:09:29 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: Dino Cherian K Cc: GTK-List Subject: Re: Dialog Window References: <200202161416.JAA03714@renoir.op.net> <02021621511000.16869@dino> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes, I think gtk_window_set_transient_for is what you are looking for... In addition to gtk_window_set_modal your dialog window will stay on top and have the main control... The pity is, what I'm looking for is something a bit different... :( (already sent in a diferent mail) Ciao Dino Cherian K wrote: > Hi > > But it doesn't make the dialog window to stay on top of the parent window. I > agree that it has the full input focus, but we can click on the parent > window, even when the dialog window is visible. > > How can we fix that too? Will gtk_window_set_transient_for help? > > Thanks > Dino CK > > On Saturday 16 February 2002 19:42, Paul Davis wrote: > >> >Sometime ago someone told how to make a "dialog window" to get the >> >control of the application.. >> >> gtk_window_set_modal From azra_chauhdary@yahoo.com Sat Feb 16 13:59:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14801.mail.yahoo.com (web14801.mail.yahoo.com [216.136.224.217]) by mail.gnome.org (Postfix) with SMTP id BB08818221 for ; Sat, 16 Feb 2002 13:59:25 -0500 (EST) Message-ID: <20020216185924.69106.qmail@web14801.mail.yahoo.com> Received: from [202.179.146.4] by web14801.mail.yahoo.com via HTTP; Sat, 16 Feb 2002 10:59:24 PST Date: Sat, 16 Feb 2002 10:59:24 -0800 (PST) From: azra yasin Subject: how to open terminal To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: wat is the command to open ther command line terminal from gtk program __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From pbd@op.net Sat Feb 16 14:12:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id BC4401829F for ; Sat, 16 Feb 2002 14:12:42 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-149.phlpa.fast.net [209.92.99.149]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA22481; Sat, 16 Feb 2002 14:12:39 -0500 (EST) Message-Id: <200202161912.OAA22481@renoir.op.net> To: azra yasin Cc: gtk-list@gnome.org Subject: Re: how to open terminal In-reply-to: Your message of "Sat, 16 Feb 2002 10:59:24 PST." <20020216185924.69106.qmail@web14801.mail.yahoo.com> Date: Sat, 16 Feb 2002 14:08:38 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >wat is the command to open ther command line terminal >from gtk program there is no such command. there is no single program that is a command line terminal. "xterm", "rxvt", "eterm" are just 3 of the possibilities. you should probably read up on the fork(2), exec(2) and/or system(3) calls. this has nothing to do with GTK, so i suggest you find a general unix programming mailing list or forum to ask your question. --p From markrubn@pacbell.net Sat Feb 16 14:31:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by mail.gnome.org (Postfix) with ESMTP id B85C018D9F for ; Sat, 16 Feb 2002 14:31:59 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRN00JW14X5WN@mta6.snfc21.pbi.net> for gtk-list@gnome.org; Sat, 16 Feb 2002 11:31:54 -0800 (PST) Date: Sat, 16 Feb 2002 11:31:08 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Paul Davis Cc: Havoc Pennington , Ignacio Nodal , GTK-List Message-id: <3C6EB37C.91043A41@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202160052.TAA13523@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > you're not the only ones; i've discussed this issue several times on > this list in the past. o Thanks for your analyses (below). As I said originally, I've searched the archives for this, but never found the right keywords. Could you provide some "Subject:" lines? Searching for your name doesn't help -- you post too much to the lists. (This is a compliment, not a complaint.) > however, if you're really doing > Model-View-Controller style programming, which is highly desirable and > it sounds as if you are, then Havoc's suggestion of: > > handle_widget_state_change () { > if (widget->representation_of_object_state() != object->state()) > widget->set_state (object->state()); > } > > is the *only* correct route to take here. o I (possibly mis-) read Havoc's: > if (current_state == gtk_toggle_button_get_active (toggle)) > return; a little differently. If his "current_state" is your "object->state()" (which makes more sense than my interpretation of "widget->previous_state()"), and if "handle_widget_state_change()" is a GTK signal-handler/callback, I would think it should be: handle_widget_state_change () { if (widget->representation_of_object_state() != object->state()) object->set_state (widget->state()); } in order to break the feedback loop that causes me problems: 1) object ("Model") state changes 2) object changes widget X ("View") state 3) widget X is also a "Controller", thus emits a signal which is caught by a signal handler which changes object's state 4) loop back to 1) > in my C++ code, i tend to use a void * (aka gpointer) as an extra arg > to all functions that change the state of my objects ("models"), an > arg i call "src". when the objects emit signals as a result of the > change, they include the "src" argument. as a result, widgets ("views" > and/or "controllers") can do things like: > > handle_widget_state_change (void *src) { > if (src == this) { > /* ignore */ > return; > } > .... > } > > this lets a widget set the state of its underlying object (when acting > as a controller), supplying "itself" as the src pointer, and thus > ignore any notifications from the object when they are sent following > the object's state change. o Is the "this" in the above code fragment the object (Model) or the widget (View/Controller)? If object/Model, I don't understand because mine don't emit signals (widgets/Controllers emit signals; objects/Models do things like gtk_toggle_button_set_active()). If "this" is the widget/Controller, when "src==this" is exactly when the action should take place. -- MARK markrubn@pacbell.net From pbd@op.net Sat Feb 16 14:58:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D437818109 for ; Sat, 16 Feb 2002 14:58:42 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-38.phlpa.fast.net [209.92.99.38]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA25474; Sat, 16 Feb 2002 14:56:41 -0500 (EST) Message-Id: <200202161956.OAA25474@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Sat, 16 Feb 2002 11:31:08 PST." <3C6EB37C.91043A41@pacbell.net> Date: Sat, 16 Feb 2002 14:52:41 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: one other comment. its worth being very careful to make sure that the Model does not emit "my state changed" signals just because "set_state()" was called upon it. i.e. actually check to make sure that the new state really is different from the old before emitting the changed signal. this may seem obvious to you - it wasn't to me. --p From pbd@op.net Sat Feb 16 15:03:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id AB2CD1858C for ; Sat, 16 Feb 2002 15:03:12 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-38.phlpa.fast.net [209.92.99.38]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA25307; Sat, 16 Feb 2002 14:52:32 -0500 (EST) Message-Id: <200202161952.OAA25307@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Sat, 16 Feb 2002 11:31:08 PST." <3C6EB37C.91043A41@pacbell.net> Date: Sat, 16 Feb 2002 14:48:32 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > searched the archives for this, but never found the right > keywords. Could you provide some "Subject:" lines? Searching for try "MVC" in the body, since i usually use that acronym when discussing this. > a little differently. If his "current_state" is your > "object->state()" (which makes more sense than my interpretation of > "widget->previous_state()"), and if "handle_widget_state_change()" > is a GTK signal-handler/callback, I would think it should be: > > handle_widget_state_change () { > if (widget->representation_of_object_state() != object->state()) > object->set_state (widget->state()); > } yes, thats right. i wasn't being careful enough as i tuped that in. sorry about that. >> handle_widget_state_change (void *src) { >> if (src == this) { >> /* ignore */ >> return; >> } >> .... >> } >> >> this lets a widget set the state of its underlying object (when acting >> as a controller), supplying "itself" as the src pointer, and thus >> ignore any notifications from the object when they are sent following >> the object's state change. > >o Is the "this" in the above code fragment the object (Model) or the > widget (View/Controller)? If object/Model, I don't understand > because mine don't emit signals (widgets/Controllers emit signals; > objects/Models do things like gtk_toggle_button_set_active()). If > "this" is the widget/Controller, when "src==this" is exactly when > the action should take place. sorry. i work in C++ and i use libsigc++ which offers me a superb system for writing MVC programs. the "this" i used above refers to the thing "on whose behalf" a member function is beind called. its an "implicit" argument in all C++ member functions.my objects all attempt to remain anonymous and ignorant of who has registered an interest in their state changes, which libsigc++ makes *phenomenally* easy to do. so, suppose we have a true MVC system that includes: Controller::do_something_to_model (Model *model) { model->set_state (foo, this); } this causes "object" to emits its "StateChanged" signal. Now, suppose that we have a view hooked up to the signal, with a handler: View::handle_model_state_change (void *src) { if (src == this) { /* we initiated the state change in the model, so presumably our visual appearance is up- to-date. relax. */ return; } ... something else changed the model's state ... ... make our appearance reflect the model's state ... } now, as you have noted, its common to use a single widget as both a "controller" and a "view". in that case, you'd have ControllerView::do_something_to_model (Model *model) { model->set_state (foo, this); ... change visual appearance if appropriate ... } this would presumably be called because of some GUI event (e.g. a button click). We will still have: ControllerView::handle_model_state_change (void *src) { } but this time, we will find out that the "src" of the change is ourselves. Presumably, our appearance is already correct (we responded to that in do_something_to_model(), so we can just return. Does this make this style any clearer? As I say, I've found that I've managed to avoid this by comparing model state to view state, but its still useful occasionally. There are other ways of tackling what ControllerView::do_something_to_model() does - its worth reading up on MVC programming and/or "Design Patterns" to get a handle on some of them. --p From pbd@op.net Sat Feb 16 15:16:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from op.net (maxtnt05-38.phlpa.fast.net [209.92.99.38]) by mail.gnome.org (Postfix) with ESMTP id 0E6B418250 for ; Sat, 16 Feb 2002 15:16:42 -0500 (EST) Received: (from pbd@localhost) by op.net (8.10.1/8.10.1) id g1GKCfV07425; Sat, 16 Feb 2002 15:12:41 -0500 Date: Sat, 16 Feb 2002 15:12:41 -0500 Message-Id: <200202162012.g1GKCfV07425@op.net> From: Paul Davis To: gtk-list@gnome.org Subject: can someone remove this chinese spammer? Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: i'm not clear on where else to send this - its admin related, but gtk-list-request doesn't seem right. most times i write to gtk-list, i get the message shown below. could someone arrange to remove what is subscribed at sina.com that is generating this? --p Received: from mail.op.net by localhost with POP3 (fetchmail-5.1.0) for pbd@localhost (single-drop); Sat, 16 Feb 2002 15:08:19 -0500 (EST) Received: from sina.com ([202.106.187.189]) by renoir.op.net (o1/$Revision: 1.18 $) with SMTP id PAA25933 for ; Sat, 16 Feb 2002 15:04:30 -0500 (EST ) Received: (qmail 16372 invoked by uid 99); 16 Feb 2002 20:11:17 -0000 Date: 16 Feb 2002 20:11:17 -0000 Message-ID: <20020216201117.16371.qmail@sina.com> From: gtk-list@gnome.org To: pbd@op.net Subject: gtk-list@gnome.orgµÄ×Ô¶¯»ØÐÅ ÒÑÊÕµ½£¬ÇëÄúÄÍÐĵȺò»ØÒô¡£ heface =================================================================== Ãâ·Ñµç×ÓÓÊÏä http://home.sina.com.cn From markrubn@pacbell.net Sat Feb 16 17:52:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id 48C32181A1 for ; Sat, 16 Feb 2002 17:52:48 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRN00AVGE7YXS@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Sat, 16 Feb 2002 14:52:47 -0800 (PST) Date: Sat, 16 Feb 2002 14:52:00 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Paul Davis Cc: Havoc Pennington , Ignacio Nodal , GTK-List Message-id: <3C6EE290.E0C54F64@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202161952.OAA25307@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > try "MVC" in the body, since i usually use that acronym when > discussing this. o 84 hits. I'll read them. Thanks. > > handle_widget_state_change () { > > if (widget->representation_of_object_state() != object->state()) > > object->set_state (widget->state()); > > } > > yes, thats right. i wasn't being careful enough as i tuped that > in. sorry about that. o No problem. Glad I'm not (totally) crazy. o This is obviously one of the workable solutions. The two relatively minor things I don't like about it are: 1) object->state() is an additional requirement on the Model object's public interface. Conceptually, what business does a View widget have knowing about the Model? It should just be told what to display. 2) Potential mismatch between Model object's internal state and View widget's represention of same. Example: Model keeps double values, GtkAdjustment uses gfloats. Or: Model keeps HTML/RTF/internationalized text, GtkText uses GtkText(??), some HTML widget uses HTML, so Model has to export multiple types of state (or maybe multiple overloads of operator!=()). > >> handle_widget_state_change (void *src) { > >> if (src == this) { > >> /* ignore */ > >> return; > >> } > >> .... > >> } > >> > ... > >o Is the "this" in the above code fragment the object (Model) or the > > widget (View/Controller)? If object/Model, I don't understand > > because mine don't emit signals (widgets/Controllers emit signals; > > objects/Models do things like gtk_toggle_button_set_active()). If > > "this" is the widget/Controller, when "src==this" is exactly when > > the action should take place. > > sorry. i work in C++ and i use libsigc++ which offers me a superb > system for writing MVC programs. the "this" i used above refers to the > thing "on whose behalf" a member function is beind called. its an > "implicit" argument in all C++ member functions. o I also use gtk++(gtkmm) and libsigc++. I think some of the nomenclature confusion here is because we're all translating back and forth between C/GTK and C++/GTK--. o In C++ terms, my question was really "is the above handle_widget_state_change() a method of the object/Model class, or of the widget/View/Controller class"? o In any case, I'm going to switch to the nomenclature you're using below. > my objects all attempt > to remain anonymous and ignorant of who has registered an interest in > their state changes, which libsigc++ makes *phenomenally* easy to > do. so, suppose we have a true MVC system that includes: > > Controller::do_something_to_model (Model *model) > { > model->set_state (foo, this); > } > > this causes "object" to emits its "StateChanged" signal. o Is "object" the Controller, or the Model? o Bigger question: Do you use libsigc++ signals for *all* your MVC communication (both Controller-to-Model and Model-to-View)? o I don't. I use it for Controller-to-Model: Model::Model() : _state1(false) { _togglebutton1 .toggled .connect(bind(slot(*this, &Model::button1_toggled), &_togglebutton1)) ; } Model::button1_toggled( const Gtk::ToggleButton *togglebutton) { _state1 = togglebutton->get_active() ; } o But for Model-to-View I just directly call the gtkmm methods: Model::some_method() { _state1 = some_computation() ; _togglebutton1.set_active(_state1) ; } o I don't write my own methods for Views and Controllers -- they're just gtkmm widgets, used as-is. I don't derive from them and extend/override (except for Gtk::DrawingArea). o So my Model objects never emit signals (they just receive them) and my View/Controller objects never receive signals (just emit). If yours go "both ways" it would explain my confusion over your (otherwise clear) descriptions. o I'm going to table further questions pending an understanding of this, and a review of the list archives and the Gang Of Four book. -- MARK markrubn@pacbell.net From pbd@op.net Sat Feb 16 18:02:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 28A3C1829B for ; Sat, 16 Feb 2002 18:02:13 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-163.phlpa.fast.net [209.92.96.163]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id SAA07624; Sat, 16 Feb 2002 18:00:12 -0500 (EST) Message-Id: <200202162300.SAA07624@renoir.op.net> To: "Mark R. Rubin" Cc: Havoc Pennington , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal In-reply-to: Your message of "Sat, 16 Feb 2002 14:52:00 PST." <3C6EE290.E0C54F64@pacbell.net> Date: Sat, 16 Feb 2002 17:56:14 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > 1) object->state() is an additional requirement on the Model > object's public interface. Conceptually, what business does a > View widget have knowing about the Model? It should just be > told what to display. well, it has to have access to whatever parts of the state are required to display the state. > 2) Potential mismatch between Model object's internal state and > View widget's represention of same. Example: Model keeps > double values, GtkAdjustment uses gfloats. Or: Model keeps > HTML/RTF/internationalized text, GtkText uses GtkText(??), some > HTML widget uses HTML, so Model has to export multiple types of > state (or maybe multiple overloads of operator!=()). this can certainly become a problem. >> Controller::do_something_to_model (Model *model) >> { >> model->set_state (foo, this); >> } >> >> this causes "object" to emits its "StateChanged" signal. > >o Is "object" the Controller, or the Model? its the Model. >o Bigger question: Do you use libsigc++ signals for *all* your MVC > communication (both Controller-to-Model and Model-to-View)? yes, for everything. >o But for Model-to-View I just directly call the gtkmm methods: > > Model::some_method() > { > _state1 = some_computation() ; > _togglebutton1.set_active(_state1) ; > } that breaks the anonymity principle. a Model should have *zero* knowledge of the View or Controllers. if you don't do this, you cannot have multiple Views, for example, and you can't reimplement the View without reimplementing the Model. having the Model drive the View directly is not really MVC, and in my experience, not very good OOP either. >o I don't write my own methods for Views and Controllers -- they're > just gtkmm widgets, used as-is. I don't derive from them and > extend/override (except for Gtk::DrawingArea). I generally find that I have to connect to to button press/release and keypress signals and so forth, but i rarely override them. the main hack i have to do is to call gtk_signal_emit_stop_by_name() because a button press on a widget drives a change of visual appearance in the widget that cannot happen until the Model state change actually takes place (and it may never take place for reasons that the Controller doesn't know about). --p From markrubn@pacbell.net Sat Feb 16 19:53:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by mail.gnome.org (Postfix) with ESMTP id 5D1B8188F7 for ; Sat, 16 Feb 2002 19:53:49 -0500 (EST) Received: from pacbell.net ([63.201.211.177]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GRN00AJDJTOXR@mta5.snfc21.pbi.net> for gtk-list@gnome.org; Sat, 16 Feb 2002 16:53:48 -0800 (PST) Date: Sat, 16 Feb 2002 16:53:01 -0800 From: "Mark R. Rubin" Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal To: Paul Davis Cc: Havoc Pennington , Ignacio Nodal , GTK-List Message-id: <3C6EFEED.46F2F542@pacbell.net> Organization: None to speak of MIME-version: 1.0 X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.13 i686) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <200202162300.SAA07624@renoir.op.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > > 1) object->state() is an additional requirement on the Model > > object's public interface. Conceptually, what business does a > > View widget have knowing about the Model? It should just be > > told what to display. > > well, it has to have access to whatever parts of the state are > required to display the state. o Or, in my case, not. I have a Model which knows about and tells a View what to display. (I think) you have a View which knows about a Model and queries it for a value. Either way there's a binding. o From http://www.ootips.org/mvc-pattern.html (which I found via an archived thread of yours from over a year ago): > The model, viewport and controller are intimately related and in > constant contact. Therefore, they must reference each other. o The discussion goes on about the strongly- and weakly-typed knowledge the classes have of each other. See below. > >o But for Model-to-View I just directly call the gtkmm methods: > > > > Model::some_method() > > { > > _state1 = some_computation() ; > > _togglebutton1.set_active(_state1) ; > > } > > that breaks the anonymity principle. a Model should have *zero* > knowledge of the View or Controllers. if you don't do this, you cannot > have multiple Views, Model::some_method() { _state1 = some_computation() ; _togglebutton1.set_active(_state1) ; _reverse_togglebutton2.set_active(!_state1) ; } > for example, and you can't reimplement the View > without reimplementing the Model. having the Model drive the View > directly is not really MVC, and in my experience, not very good OOP either. o Nomenclature, nomenclature. I thought a Gtk::ToggleButton was a View (also a Controller). My "Model::some_method()" above is really called "Gui::some_method()", so maybe what I've been calling Model is really a (composite) View. o If not -- if Views are solely gtkmm widgets, not some class which contains them as member objects -- and: > >o Bigger question: Do you use libsigc++ signals for *all* your MVC > > communication (both Controller-to-Model and Model-to-View)? > > yes, for everything. o And: > I generally find that I have to connect to to button press/release > and keypress signals and so forth, but i rarely override them. o Then how do you change a togglebutton other than using Gtk::ToggleButton::set_active()? o From "ootips": > By contrast, the viewport knows > exactly what kind of model it observes. o How could a (stock, compiled-into-a-library, non-derived-from) Gtk::ToggleButton know anything about your Model? -- MARK markrubn@pacbell.net From Alain.Valleton@bigfoot.com Sun Feb 17 06:16:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto1.wanadoo.fr (smtp-out-1.wanadoo.fr [193.252.19.188]) by mail.gnome.org (Postfix) with ESMTP id BD56B180DE for ; Sun, 17 Feb 2002 06:16:01 -0500 (EST) Received: from mel-rta2.wanadoo.fr (193.252.19.152) by mel-rto1.wanadoo.fr; 17 Feb 2002 12:16:00 +0100 Received: from bigfoot.com (80.11.136.16) by mel-rta2.wanadoo.fr; 17 Feb 2002 12:15:40 +0100 Message-ID: <3C6F9117.3080006@bigfoot.com> Date: Sun, 17 Feb 2002 12:16:39 +0100 From: Alain VALLETON User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: fr-fr, en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Static libraries using glib-config Content-Type: multipart/mixed; boundary="------------020908050805050305000603" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. --------------020908050805050305000603 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hello, I have a simple suggestion for the (much talented ;o) developers of glib. (gtk+ developers may also be interested) By default, both static and dynamic libraries are built during glib installation: this is fine for me. At work, we want to link statically an application against glib. So I tried to use the elegant way to do that, that is to use "glib-config". But with "glib-config", there is no way to get the static libraries instead of the dynamic libraries (option "--libs"). So I suggest the little patch attached to this post, that add an option "--staticlibs" to "glib-config" in order to get something like "/usr/local/lib/libglib.a" instead of "-L/usr/local/lib -lglib". This problem had already been noticed back in 1998, but seemingly never addressed: http://mail.gnome.org/archives/gtk-list/1998-November/msg00701.html Have a nice day. --------------020908050805050305000603 Content-Type: text/plain; name="patch_glib-1.2.10_static" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch_glib-1.2.10_static" --- glib-1.2.10.old/glib-config.in Sat Oct 28 06:35:30 2000 +++ glib-1.2.10/glib-config.in Thu Feb 14 10:27:41 2002 @@ -12,7 +12,7 @@ [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] - [--libs] + [--[static]libs] [--cflags] Libraries: glib @@ -61,6 +61,9 @@ --libs) echo_libs=yes ;; + --staticlibs) + echo_staticlibs=yes + ;; glib) lib_glib=yes ;; @@ -105,4 +108,20 @@ libsa="$libsa @G_MODULE_LIBS@" fi echo -L@libdir@ $libsp $libsa +fi +if test "$echo_staticlibs" = "yes"; then + libsp="" + libsa="" + if test "$lib_glib" = "yes"; then + libsp="@libdir@/libglib.a" + fi + if test "$lib_gthread" = "yes"; then + libsp="@libdir@/libgthread.a $libsp" + libsa="$libsa -lpthread" + fi + if test "$lib_gmodule" = "yes"; then + libsp="@libdir@/libgmodule.a $libsp" + libsa="$libsa @G_MODULE_LIBS@" + fi + echo $libsp $libsa fi --------------020908050805050305000603-- From inodal@teleline.es Sun Feb 17 08:35:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp10.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 773D6180DC for ; Sun, 17 Feb 2002 08:35:01 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp10.mail.isp (Netscape Messaging Server 4.15 tsmtp10 Jul 26 2001 13:10:38) with ESMTP id GROJ1701.G6L for ; Sun, 17 Feb 2002 14:34:19 +0100 Message-ID: <3C6FB18A.40305@teleline.es> Date: Sun, 17 Feb 2002 13:35:06 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: GTK+ problems using functions I used in Motif before Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm experimenting some problems with events on my GtkGlArea. The problem occurs when I pressed my mouse button and released it very fast, moving the mouse around ONLY THE FIRST TIME. This made me think about initilization problems, but it doesn't seem to be the point. Let's see: -First of all, I have a UpdateRotation() function which uses the initial mouse position (button pressed) and the current mouse position (get by motion or released) to update my objetct in the scene. -I have one callback for the "button_press_event" where I get the initial mouse position and my initial rotation matrix. -Another one for the "motion_notify_event" where I call UpdateRotation() and update my rotation matrix in function of the initial rotation matrix get from the previous callback. -And the last one for "button_released_event" where I only call UpdateRotation. The problem is: when I press and relase the button to fast moving the mouse from it's initial position, I don't understand why, but the function which returns me my rotation matrix, sends me a matrix full of zeros (the first time, it should return the identity matrix). This doesn't happen if I don't move the mouse around. It doesn't happen neither if I repeat the same operation after rotating the object correctly for the first time... If I "g_print" the rotation matrix when I paint the scene at the beginning of my application, it seems to be ok (identity matrix). But if I "g_print" it again in my "button_press_event" callback, it seems to be full of zeros (when using the mouse as mentined above). I have solve the problem calling the function which get the initial rotation matrix in my InitGL() function, which I used at the beginning of my program... but I don't really understand why didn't it work before.. In fact.. I'm using the same functions I used in Motif before, and they worked pretty fine with Motif. What it's happening? Does it have something to do with GTK+ or am I just getting more and more crazy? Thanks in advance, Ignacio Nodal From hunchback@netcabo.pt Sun Feb 17 17:53:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 2923A181A7 for ; Sun, 17 Feb 2002 17:53:57 -0500 (EST) Received: from a213-22-1-192.netcabo.pt ([213.22.1.192]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sun, 17 Feb 2002 22:50:39 +0000 Subject: Signals... From: Nuno Afonso To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 17 Feb 2002 22:53:59 +0000 Message-Id: <1013986440.2814.9.camel@a213-22-1-192> Mime-Version: 1.0 X-OriginalArrivalTime: 17 Feb 2002 22:50:39.0830 (UTC) FILETIME=[8590EF60:01C1B805] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, i have a button that is connected to a function called restartApp(GtkWidget *widget, Tabuleiro *tabuleiro) . (Tabuleiro is a static cast of a drawing area). When the button is clicked the restartApp is called and executes the following line tabuleiro->paint(); the function paint() has the following content: void Tabuleiro::paint(){ gdk_draw_rectangle(this->window, this->style->white_gc, true, 0, 0, 100, 100); ... } when i click the button i get segmentation fault when it tries to do the gdk_draw_rectangle. It gets in Tabuleiro::paint(), but it doesn't do the gdk_draw_rectangle. Does anyone know what is the problem with this signal? i use Tabuleiro::paint on other ocasions and it works... Afonso From inimss@yahoo.com Mon Feb 18 01:35:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ekm.asianetonline.net (unknown [202.88.231.2]) by mail.gnome.org (Postfix) with ESMTP id 3B0E11812E for ; Mon, 18 Feb 2002 01:35:22 -0500 (EST) Received: from dino ([202.88.224.172]) by ekm.asianetonline.net (Netscape Messaging Server 4.15) with SMTP id GRPUIA00.IAD; Mon, 18 Feb 2002 01:39:46 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: Ignacio Nodal Subject: Re: Dialog Window Date: Mon, 18 Feb 2002 00:51:38 +0530 X-Mailer: KMail [version 1.2] Cc: GTK-List References: <200202161416.JAA03714@renoir.op.net> <02021621511000.16869@dino> <3C6E9249.2070508@teleline.es> In-Reply-To: <3C6E9249.2070508@teleline.es> MIME-Version: 1.0 Message-Id: <02021800513800.03021@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I didnt tried this out but I have a doubt regarding modal windows. In an application with more than one window having modality are present at a moment, for example window1 is the main window, window2 is created as a modal child window of window1, window3 is created as a modal child window of window2. In such a situation will it be necessary to reset the modality of window2, in order to work with window3. I know that this is not the right thread to discuss it further, but please help me. Thanks Dino CK On Saturday 16 February 2002 22:39, Ignacio Nodal wrote: > Yes, I think gtk_window_set_transient_for is what you are looking for... > > In addition to gtk_window_set_modal your dialog window will stay on top > and have the main control... > > The pity is, what I'm looking for is something a bit different... :( > (already sent in a diferent mail) > > Ciao > > Dino Cherian K wrote: > > Hi > > > > But it doesn't make the dialog window to stay on top of the parent > > window. I agree that it has the full input focus, but we can click on > > the parent window, even when the dialog window is visible. > > > > How can we fix that too? Will gtk_window_set_transient_for help? > > > > Thanks > > Dino CK > > > > On Saturday 16 February 2002 19:42, Paul Davis wrote: > >> >Sometime ago someone told how to make a "dialog window" to get the > >> >control of the application.. > >> > >> gtk_window_set_modal From bent@vsnl.net Mon Feb 18 03:25:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail01.vsnl.net (mail01.vsnl.net [203.197.12.4]) by mail.gnome.org (Postfix) with ESMTP id AAF88180F0 for ; Mon, 18 Feb 2002 03:25:51 -0500 (EST) Received: from vsnl.net ([203.197.82.202]) by mail01.vsnl.net (Netscape Messaging Server 4.15) with ESMTP id GRPZF002.E2V for ; Mon, 18 Feb 2002 13:55:48 +0530 Message-ID: <3C70C226.D09468B6@vsnl.net> Date: Mon, 18 Feb 2002 14:28:14 +0530 From: Javed X-Mailer: Mozilla 4.79 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: problem while configuring Content-Type: multipart/alternative; boundary="------------AAAAB76659545C0074B6613E" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --------------AAAAB76659545C0074B6613E Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hi, I'm unable to configure the gtk+1.2.0 as it gives an error saying: checking host system type...configure:error:cannot guess host type;you must specify one How can I solve this problem? thanks, Javed --------------AAAAB76659545C0074B6613E Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit hi,
I'm unable to configure the gtk+1.2.0 as it gives an error saying:
checking host system type...configure:error:cannot guess host type;you must specify one

How can I solve this problem?

thanks,

Javed --------------AAAAB76659545C0074B6613E-- From sven@gimp.org Mon Feb 18 05:56:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9E6BB15.dip.t-dialin.net [217.230.187.21]) by mail.gnome.org (Postfix) with ESMTP id 16879180EA for ; Mon, 18 Feb 2002 05:56:45 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16clSy-0005Jo-00; Mon, 18 Feb 2002 11:56:16 +0100 To: Javed Cc: gtk-list@gnome.org Subject: Re: problem while configuring References: <3C70C226.D09468B6@vsnl.net> From: Sven Neumann Date: 18 Feb 2002 11:56:15 +0100 In-Reply-To: <3C70C226.D09468B6@vsnl.net> Message-ID: Lines: 17 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Javed writes: > I'm unable to configure the gtk+1.2.0 as it gives an error saying: > checking host system type...configure:error:cannot guess host type;you > must specify one > > How can I solve this problem? first of all: update to glib-1.2.10 and gtk+-1.2.10. If you still have problems to compile those, get back here. But please give us a little bit more information about your system (OS, CPU, compiler) next time. Salut, Sven From jean-christophe.berthon@cgey.com Mon Feb 18 06:19:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from door.cgey.com (rpapar2.cgey.com [194.3.224.26]) by mail.gnome.org (Postfix) with ESMTP id D49E318204 for ; Mon, 18 Feb 2002 06:19:04 -0500 (EST) Received: from prenoms.capgemini.fr (sdcnt1.cgey.com [194.2.91.200]) by door.cgey.com (8.12.1/8.12.1) with ESMTP id g1IBIxvo029965; Mon, 18 Feb 2002 12:18:59 +0100 (MET) Received: from prenoms.capgemini.fr (localhost [127.0.0.1]) by prenoms.capgemini.fr (8.9.3/8.9.3) with ESMTP id MAA04906; Mon, 18 Feb 2002 12:18:58 +0100 (MET) Received: from spatio1 ([10.67.211.175]) by prenoms.capgemini.fr (8.9.3/8.9.3) with SMTP id MAA04786; Mon, 18 Feb 2002 12:18:56 +0100 (MET) Message-ID: <00b001c1b86d$cb9d1520$afd3430a@sudouest.capgemini.fr> From: "Jean-Christophe Berthon" To: "Javed" , "Gtk List" References: <3C70C226.D09468B6@vsnl.net> Subject: Re: problem while configuring Date: Mon, 18 Feb 2002 12:17:01 +0100 Organization: Cap Gemini -- Ernst & Young MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00AD_01C1B876.2B6B7980" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_00AD_01C1B876.2B6B7980 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, Maybe I can help you, but I'm really new to the worl of automake and = autoconf. But I had this problem with the automake I build when porting = the package under another system : I build my package under Linux and = was testing it under Solaris. As I didn't know what was the file config.guess and ltconfig (that's the = files which are used to guess the host type, so your problem), I just = run in this problem. So to fixed it, I would advise you to copy the 'ltmain.sh', 'ltconfig', = 'config.guess' and 'config.sub' files, that you can found in = /usr/share/libtool (or maybe /usr/local/share/libtool depending on where = you installed libtool), in the installation directory of gtk and to run = again ./configure. For me it solved the problem... Sorry for my english, if I'm not clear enough write me back, I'll try to = make myself more understandable Best regards, --- Jean-Christophe Berthon Cap Gemini -- Ernst & Young France Skill IS -- Image Quality Email: Jean-Christophe.Berthon@cgey.com Tel: (+33) 561 31 6671 ----- Original Message -----=20 From: Javed=20 To: gtk-list@gnome.org=20 Sent: Monday, February 18, 2002 9:58 AM Subject: problem while configuring hi,=20 I'm unable to configure the gtk+1.2.0 as it gives an error saying:=20 checking host system type...configure:error:cannot guess host type;you = must specify one=20 How can I solve this problem?=20 thanks,=20 Javed=20 ------=_NextPart_000_00AD_01C1B876.2B6B7980 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello,
 
Maybe I can help you, but I'm really new to the worl = of=20 automake and autoconf. But I had this problem with the automake I build = when=20 porting the package under another system : I build my package under = Linux and=20 was testing it under Solaris.
As I didn't know what was the file config.guess and = ltconfig=20 (that's the files which are used to guess the host type, so your = problem), I=20 just run in this problem.
So to fixed it, I would advise you to copy the = 'ltmain.sh',=20 'ltconfig', 'config.guess' and 'config.sub' files, that you can = found in=20 /usr/share/libtool (or maybe /usr/local/share/libtool depending on where = you=20 installed libtool), in the installation directory of gtk and to run = again=20 ./configure.
For me it solved the problem...
 
Sorry for my english, if I'm not clear enough write = me back,=20 I'll try to make myself more understandable
 
Best regards,
---
Jean-Christophe Berthon
 
Cap Gemini -- Ernst & Young
France
Skill IS -- Image=20 Quality
Email: Jean-Christophe.Berthon@= cgey.com
Tel:=20 (+33) 561 31 6671
 
 
----- Original Message -----
From:=20 Javed =
Sent: Monday, February 18, 2002 = 9:58=20 AM
Subject: problem while = configuring

hi,
I'm unable to configure the gtk+1.2.0 as it = gives an=20 error saying:
checking host=20 system type...configure:error:cannot guess host type;you must specify=20 one
=20

How can I solve this=20 problem?=20

thanks,=20

Javed=20

------=_NextPart_000_00AD_01C1B876.2B6B7980-- From hp@redhat.com Mon Feb 18 08:13:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (unknown [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 879C018339 for ; Mon, 18 Feb 2002 08:13:52 -0500 (EST) Received: (from Unknown UID 2379@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1IDDdf09622; Mon, 18 Feb 2002 08:13:39 -0500 X-Authentication-Warning: icon.devel.redhat.com: Unknown UID 2379 set sender to hp@redhat.com using -f To: "Mark R. Rubin" Cc: Paul Davis , Ignacio Nodal , GTK-List Subject: Re: Update of GtkRadioMenuItems wihtout emitting any signal References: <200202160052.TAA13523@renoir.op.net> <3C6EB37C.91043A41@pacbell.net> From: Havoc Pennington Date: 18 Feb 2002 08:13:37 -0500 In-Reply-To: <3C6EB37C.91043A41@pacbell.net> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Mark R. Rubin" writes: > o I (possibly mis-) read Havoc's: > > > if (current_state == gtk_toggle_button_get_active (toggle)) > > return; > FWIW I think I did mean what Paul said, i.e. current_state is the state of the object the toggle button affects. Havoc From otaylor@redhat.com Mon Feb 18 10:23:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (unknown [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id DEBC518F56; Mon, 18 Feb 2002 10:23:41 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 62D13241BE2; Mon, 18 Feb 2002 10:23:41 -0500 (EST) To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-list@gnome.org Subject: New release of GTK+ libraries (1.3.14) Reply-To: gtk-devel-list@gnome.org, gtk-list@gnome.org From: Owen Taylor User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 155 Message-Id: <20020218152341.62D13241BE2@fresnel.labs.redhat.com> Date: Mon, 18 Feb 2002 10:23:41 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: New releases of the development versions of GTK+ and associated libraries (GLib, Pango, Atk) are available at: ftp://ftp.gtk.org/pub/gtk/v1.3/ The JPEG/PNG/TIFF libraries and pkg-config 0.8 are needed to compile this release. These are available at: ftp://ftp.gtk.org/pub/gtk/v1.3/dependencies/ (pkg-config latest canonical upstream location is at http://www.freedesktop.org/software/pkgconfig/ - note that it has moved from sourceforge. But gtk.org mirrors the 0.8 version you need to build GTK 1.3.10) You will also need "libiconv" on systems with C libraries that lack the iconv() function: http://www.gnu.org/software/libiconv/ And the libintl library from the GNU "gettext" package if your C library doesn't have gettext() functionality: http://www.gnu.org/software/gettext/ Overview of Changes in GLib 1.3.14: =================================== * Register value transformations for gint64, guint64 [Andy Wingo] * Build with large-file support [Sven Neumann, Owen Taylor] * Fix handling of hostnames in URI's [Darin Adler] * Main loop bug fixes [Havoc Pennington, Owen] * Doc fixes and improvements [Manish Singh, Tim Janik] * Support ' as attribute delimiters in GMarkup [Matthias Clasen] * Win32 fixes [Hans Breuer, Tor Lillqvist] * Threading bug and build fixes [Sebastian Wilhelmi, Miroslaw Dobrzanski-Neumann] * Miscellaneous bug fixes Other contributors: Matthias Clasen, Mitch Natterer, James Henstridge Overview of Changes in Pango 0.25 ================================= * Win32 fixes [Tor Lillqvist, Hans Breuer] * Cleanup of [Darin Adler] * Bug and build fixes [Anders Carlsson, Sven Neumann, Havoc Pennington, Morten Welinder] Overview of Changes in GTK+ 1.3.14 ================================== * Keyboard focus improvements [Owen Taylor] * Code cleanup [Matthias Clasen, Manish Singh, Darin Adler] * Fix accidentally exported variables [Mark McLoughlin] * GtkTreeView fixes [Jonathan Blandford, Kristian Rietveld, John Harper, Darin] * Default to yellow tooltips [Owen] * RC file fixes for reloading, priorities [Owen, Matthias] * GtkMenu behavior improvements and bug fixes [Owen, Arnaud Charlet] * GtkTextView fixes [Havoc Pennington, Daniel Elstner, Dennis Bjorklund] * Improve keynav for paned widgets, tooltips, spin buttons, notebooks, scrolled windows [Soeren Sandmann, Padraig, Owen] * Add Emacs/Default key themes [Owen] * Win32 fixes [Hans Breuer, Tor Lillqvist] * Ethiopic input methods [Daniel Yacob] * Opaque paned window resizing [Soeren] * Tweak table expansion behavior [Tim Janik] * Fix GtkCalendar focus drawing [Bill Haneman] * Allow themeable cursor thickness [Bill] * Start of fixing of tutorial for GTK+-2.0 [Matthias] * Add a ::adjust-bounds signal to GtkRange to allow spreadsheat style scrollbars. [Jody Goldberg] (*) * Add the ability to turn on multiple selection for GtkFileSel [Manish] (*) * Bug fixes Other contributors: Jacob Berkman, Padraig O'Briain, Anders Carlsson, Johan Dahlin, Richard Hult, Stefan Kost, Alex Larsson, Thomas Leonard, Paolo Maggi, Alexey Malyshev, Federico Mena Quintero, Skip Montaro, Sven Neumann, Havoc Pennington, Laszlo Peter, Christian Rose, Joe Shaw, Kevin Vandersloot, Morten Welinder, Peter Williams Library Descriptions ==================== GLib 1.3.14 (http://www.gtk.org) GLib is the low-level core library that forms the basis of 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. Pango 0.25 (http://www.pango.org) Pango is a library for layout and rendering of text, with an emphasis on internationalization. It forms the core of text and font handling for GTK+-2.0. Atk 0.12 (http://developer.gnome.org/projects/gap) The ATK library provides a set of interfaces for accessibility. By supporting the ATK interfaces, an application or toolkit can be used such as tools such as screen readers, magnifiers, and alternative input devices. [ The Atk-0.12 release was made independently and is mentioned here for completeness ] GTK+ 1.3.14 (http://www.gtk.org) GTK+ is a widget toolkit for X and other windowing systems. It is used in such projects as the GIMP and GNOME. Notes ===== This release is meant for people working on ports of applications to the upcoming GTK+-2.0 release of GTK+. While these libraries have been in extensive use for several months, there are considerable numbers of known bugs that still need to be fixed, and presumably more that have not yet been found. This release is incompatible with GTK+ and GLib 1.2.x. Software that has not been explicitly ported will not compile with this version. Do not send bug reports about such compilation problems to either us or maintainers of software that uses GLib and GTK+ 1.2.x; The currently supported version of GLib and GTK+ is version 1.2.10. If you install these libraries, do NOT replace your current GLib and GTK+ packages with them; these libraries are designed so they can be installed in parallel with a GTK+ install without affecting it. The API is frozen at this point. No additional API changes are anticipated before GTK+-2.0 is released. A couple of small API additions were found to be necessary between GTK+-1.3.13 and GTK+-1.3.14; these are marked with (*) in the above list. These additions will not cause compatibility problems with existing programs. Binary interfaces for these libraries are not yet frozen; applications built against these libraries will need to be rebuilt when the final GTK+-2.0.0 is released. Comments should be sent to: GLib, GTK+: gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list Pango: gtk-i18n-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-i18n-list ATK: gnome-accessibility-list@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list Bug reports should be filed in the GNOME bug tracker at: http://bugzilla.gnome.org From db@zigo.dhs.org Mon Feb 18 12:17:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cosmo.zigo.dhs.org (as2-4-3.an.g.bonet.se [194.236.34.191]) by mail.gnome.org (Postfix) with ESMTP id A00F5181D5 for ; Mon, 18 Feb 2002 12:17:25 -0500 (EST) Received: from localhost (db@localhost) by cosmo.zigo.dhs.org (8.11.6/8.11.6) with ESMTP id g1IHHJ206581 for ; Mon, 18 Feb 2002 18:17:19 +0100 X-Authentication-Warning: cosmo.zigo.dhs.org: db owned process doing -bs Date: Mon, 18 Feb 2002 18:17:19 +0100 (CET) From: Dennis Bjorklund To: Subject: grab focus Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a notebookpage with a entrybox in it. When I change to that page I want the entry to get focus so I can write directly. Where is an appropriate place to do this? I've tried "map" on the entry and "select-page" on the notebook. But it does not seem to be the right places. -- /Dennis From jeremy@chaos.org.uk Mon Feb 18 14:25:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ganglion.demon.co.uk (ganglion.demon.co.uk [212.228.142.92]) by mail.gnome.org (Postfix) with ESMTP id D3582180F8 for ; Mon, 18 Feb 2002 14:25:44 -0500 (EST) Received: from chaos.org.uk (jeremy@localhost) by ganglion.demon.co.uk (8.11.6/8.11.6) with ESMTP id g1IJHRE17743; Mon, 18 Feb 2002 19:17:27 GMT Message-Id: <200202181917.g1IJHRE17743@ganglion.demon.co.uk> X-Authentication-Warning: ganglion.demon.co.uk: jeremy owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Javed Cc: gtk-list@gnome.org, jeremy@ganglion.demon.co.uk Subject: Re: problem while configuring In-Reply-To: Message from Javed of "Mon, 18 Feb 2002 14:28:14 +0530." <3C70C226.D09468B6@vsnl.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 18 Feb 2002 19:17:27 +0000 From: Jeremy Henty Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Javed writes: > I'm unable to configure the gtk+1.2.0 as it gives an error saying: > checking host system type...configure:error:cannot guess host type;you > must specify one Possibly a red herring, but IIRC I got something like this when my system had no "cc" command. Once I linked cc -> gcc everything went OK. (This presumes you're on some kind of Unix, of course.) I'm a little hazy on the details, but I am sure I did *not* get a useful "cc does not work on your system" sort of message: it was something much more obscure that required some investigation to get at the real problem. Regards, Jeremy Henty From setton@act-europe.fr Fri Feb 15 06:23:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (grenoble.act-europe.fr [212.157.227.138]) by mail.gnome.org (Postfix) with ESMTP id C24AA18BC8 for ; Fri, 15 Feb 2002 06:23:36 -0500 (EST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id g1FBM0x02444; Fri, 15 Feb 2002 12:22:00 +0100 Subject: Re: Required info on Bug#60132 From: Nicolas Setton To: Yogeesh MB Cc: gtk-bugs@gtk.org, gtk-list@gnome.org In-Reply-To: <06f701c1b610$bfe8c6c0$b609720a@m2foe301975> References: <06f701c1b610$bfe8c6c0$b609720a@m2foe301975> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.0.99+cvs.2001.12.13.08.57 (Preview Release) Date: 15 Feb 2002 12:22:00 +0100 Message-Id: <1013772120.2158.0.camel@localhost.localdomain> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I originally spotted this bug when developping a widget using GtkAda. But it can be reproduced with any C program. What other details would you like to know ? Nico, for the GtkAda team. On Fri, 2002-02-15 at 12:05, Yogeesh MB wrote: > Hi, > I would like to know about Bug# 60132, from where it is originating. > under which appication this bug lies. > This will help me in fixing this at the earliest. > If any one knows about this bug in detail please let me know. > > thanks in advance, > > Yogeesh MB > ---- > > **************************Disclaimer************************************ > > > > Information contained in this E-MAIL being proprietary to Wipro Limited > is 'privileged' and 'confidential' and intended for use only by the > individual or entity to which it is addressed. You are notified that any > use, copying or dissemination of the information contained in the E-MAIL > in any manner whatsoever is strictly prohibited. > > > > ******************************************************************** From michael@cs.millersville.edu Fri Feb 15 16:31:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.millersville.edu (unknown [166.66.64.14]) by mail.gnome.org (Postfix) with ESMTP id F35A91890D for ; Fri, 15 Feb 2002 16:31:02 -0500 (EST) Received: from cs.millersville.edu (localhost.0.0.127.in-addr.arpa [127.0.0.1] (may be forged)) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1FLV2IQ021527; Fri, 15 Feb 2002 16:31:02 -0500 Received: from localhost (michael@localhost) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1FLV2A2021523; Fri, 15 Feb 2002 16:31:02 -0500 Date: Fri, 15 Feb 2002 16:31:02 -0500 (EST) From: Michael Mitton To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: ?? warning: ANSI C++ forbids implicit conversion from `void *' in argument passing In-Reply-To: <20020215131731.B13335@spawar.navy.mil> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: The & in front of your function name is the problem. Try { pthread_t thread; pthread_create(&thread, NULL, (void *) doSimulation, NULL); } if you declare doSimulation as a void * (ie void *doSimulation(...)) you can even drop the type cast. -Michael On Fri, 15 Feb 2002, Chris Seberino wrote: > > pthread_t thread; > > pthread_create(&thread, NULL, (void*) &doSimulation, NULL); > > Help! I trying to assign a function to a thread in my amateur > PThread calls above. Without (void*) before function name I get > an error and WITH (void*) I get following warning: > > warning: ANSI C++ forbids implicit conversion from `void *' in argument passing > > This would all be harmless except I believe newer GTK+ > or something in my Linux distro upgrade causes BOTH > (with and without (void*)) to return an error!!! > > NEITHER WORKS!! > > Is there someway to fix this to avoid errors and warnings?? > > Chris > > -- > ======================================================= > | Dr. Christian Seberino || (619) 553-7940 (office) | > | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | > | 53560 HULL ST || | > | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | > ======================================================= > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From wdulyea@qualcomm.com Fri Feb 15 17:56:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from numenor.qualcomm.com (numenor.qualcomm.com [129.46.51.58]) by mail.gnome.org (Postfix) with ESMTP id 5E0B11816B for ; Fri, 15 Feb 2002 17:56:32 -0500 (EST) Received: from crowley.qualcomm.com (crowley.qualcomm.com [129.46.61.151]) by numenor.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1FMuNkQ013304; Fri, 15 Feb 2002 14:56:23 -0800 (PST) Received: from wdulyea.qualcomm.com (wdulyea.qualcomm.com [129.46.73.119]) by crowley.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1FMuL2F017424; Fri, 15 Feb 2002 14:56:22 -0800 (PST) Message-Id: <5.1.0.14.2.20020215144559.0249f618@jittlov.qualcomm.com> X-Sender: wdulyea@jittlov.qualcomm.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 15 Feb 2002 14:56:17 -0800 To: gtk-list@gnome.org From: William Dulyea Subject: memory leak (continuation) Cc: wdulyea1@excite.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: An expansion to an earlier mail I sent... In this code snippet below I can observ that removing(destroying) container widgets does not have the desired effect. Please comment:> Code snippet........................................... cur_page = gtk_notebook_get_current_page( notebook ); fprintf( stderr, "on_notebook_switch_page,switching from:%i to:%i\n", cur_page, page_n ); child = gtk_container_children(GTK_CONTAINER(notebookpage[cur_page].widget)); while( child ) { GtkWidget *widget; widget = GTK_WIDGET(child->data); gtk_container_remove( GTK_CONTAINER(notebookpages[cur_page].widget),widget ); fprintf( stderr, "on_notebook_switch_page,destroy widget:%p", widget); gtk_widget_destroy( widget ); if( widget ) fprintf( stderr, " widget still referenced:%p\n", widget); else fprintf( stderr, "\n" ); child = child->next; } create_page_item( notebook, page_n ); example page item created.................................. case HDWR_CONF: page_item = create_hardware_config(); gtk_container_add(GTK_CONTAINER(notebookpages[page_n].widget),page_item); To further enlighten, the widget returned by (create_hardware_config) routine, as with all others, does have reference count of at least 1 and (signal_connect) is set for destroy_event on the top-level widget or this widget. William P. Dulyea _______________ Phone: 651-5206 Office: L-423 From wdulyea@qualcomm.com Fri Feb 15 21:19:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ithilien.qualcomm.com (ithilien.qualcomm.com [129.46.51.59]) by mail.gnome.org (Postfix) with ESMTP id 17E1218D2C for ; Fri, 15 Feb 2002 21:19:19 -0500 (EST) Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149]) by ithilien.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1G2JCrP020482; Fri, 15 Feb 2002 18:19:12 -0800 (PST) Received: from wdulyea.qualcomm.com (wdulyea.qualcomm.com [129.46.73.119]) by neophyte.qualcomm.com (8.12.1/8.12.1/1.0) with ESMTP id g1G2JAu4025173; Fri, 15 Feb 2002 18:19:10 -0800 (PST) Message-Id: <5.1.0.14.2.20020215180207.024a3288@jittlov.qualcomm.com> X-Sender: wdulyea@jittlov.qualcomm.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 15 Feb 2002 18:19:05 -0800 To: iain From: William Dulyea Subject: Re: memory leaks (continued) Cc: gtk-list@gnome.org In-Reply-To: <1013828006.2185.0.camel@discomachinegun.prettypeople.org> References: <20020215205735.8412E109EB9@xprdmailfe.excite.com> <20020215205735.8412E109EB9@xprdmailfe.excite.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello iain, For the simple reason that the data contained therein is dynamic. Going from one page to another and changing any settings effects what and how information is displayed on any other page. I'm sure I could setup and event handler for this, but it would be very complicated and would possibly interfere with settings as I change them, and because I'm lazy. So in order to deal with this situation my design had to destroy and recreate moving from one page to another. Actually ...for this particular problem I found out what I was doing wrong! Or because I am not intimate enough with the design of GTK+ and since documentation is not that good, I did not realize that I should not manually set the reference count for each widget every time it is created unless I have a good reason to do so. This apparently keeps the object from cleaning itself out if this count is not down to zero, possibly a design inheritance from OOP smart pointers. Once I removed my calls to gtk_widget_ref(), destroying them actually makes them go away:) Now I'm happy -William At 02:53 AM 2/16/2002 +0000, you wrote: >On Fri, 2002-02-15 at 20:57, wdulyea1@excite.com wrote: An expansion to >an earlier mail I sent... In this code snippet below I can observ that >removing(destroying) container widgets does not have the desired effect. >Please comment:> > >What specific reason do you need to delete the widgets on a page when >the page is changed? > >iain >-- >"All men of conscience or prudence ply to windward, to maintain their >wars to be defensive." -- Roger Williams From s_lekha@mailcity.com Sat Feb 16 03:43:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailcity.com (fes-qout.whowhere.com [209.185.123.96]) by mail.gnome.org (Postfix) with SMTP id 21CC618138 for ; Sat, 16 Feb 2002 03:43:47 -0500 (EST) Received: from Unknown/Local ([?.?.?.?]) by mailcity.com; Sat Feb 16 00:43:34 2002 To: gtk-list@gnome.org Date: Sat, 16 Feb 2002 00:43:34 -0800 From: "srilekha c shekar" Message-ID: Mime-Version: 1.0 X-Sent-Mail: off Reply-To: s_lekha@lycos.com X-Mailer: MailCity Service X-Priority: 3 Subject: Problem with Pop up messages X-Sender-Ip: 202.144.29.115 Organization: Lycos Mail (http://mail.lycos.com:80) Content-Type: text/plain; charset=us-ascii Content-Language: en Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Everybody, I've got this problem wherein i've created a gtk window and i'm trying to pop up a message dialog after a particular interval of time using a thread.The message pops up ONLY after i press a key or move a mouse over the window.why does this happen? I'm facing the same problem in the application i'm working on.I would be pleased if anybody could help me to find a solution to this problem. Regards, srilekha Check out Cupid School where you will learn from Matchmaker's best and brightest. Good Luck! http://ecard.matchmaker.com/cupid0202/cupid0202.html From Nuno.Afonso@bigfoot.com Sun Feb 17 17:42:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 753E7181A7 for ; Sun, 17 Feb 2002 17:42:21 -0500 (EST) Received: from a213-22-1-192.netcabo.pt ([213.22.1.192]) by smtp.netcabo.pt with Microsoft SMTPSVC(5.0.2195.4617); Sun, 17 Feb 2002 22:38:57 +0000 Subject: Signals... From: Nuno Afonso To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 17 Feb 2002 22:42:18 +0000 Message-Id: <1013985738.2813.7.camel@a213-22-1-192> Mime-Version: 1.0 X-OriginalArrivalTime: 17 Feb 2002 22:38:58.0077 (UTC) FILETIME=[E349ECD0:01C1B803] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, i have a button that is connected to a function called restartApp(GtkWidget *widget, Tabuleiro *tabuleiro) . (Tabuleiro is a static cast of a drawing area). When the button is clicked the restartApp is called and executes the following line tabuleiro->paint(); the function paint() has the following content: void Tabuleiro::paint(){ gdk_draw_rectangle(this->window, this->style->white_gc, true, 0, 0, 100, 100); ... } when i click the button i get segmentation fault when it tries to do the gdk_draw_rectangle. It gets in Tabuleiro::paint(), but it doesn't do the gdk_draw_rectangle. Does anyone know what is the problem with this signal? i use Tabuleiro::paint on other ocasions and it works... Afonso From sven@gimp.org Mon Feb 18 15:44:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id E00FA1830D for ; Mon, 18 Feb 2002 15:44:52 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16cueW-0001ad-00; Mon, 18 Feb 2002 21:44:48 +0100 To: William Dulyea Cc: gtk-list@gnome.org, wdulyea1@excite.com Subject: Re: memory leak (continuation) References: <5.1.0.14.2.20020215144559.0249f618@jittlov.qualcomm.com> From: Sven Neumann Date: 18 Feb 2002 21:44:48 +0100 In-Reply-To: <5.1.0.14.2.20020215144559.0249f618@jittlov.qualcomm.com> Message-ID: Lines: 60 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, William Dulyea writes: > An expansion to an earlier mail I sent... In this code snippet below I > can observ that removing(destroying) container widgets does not have > the desired effect. Please comment:> > > Code snippet........................................... > cur_page = gtk_notebook_get_current_page( notebook ); > fprintf( stderr, "on_notebook_switch_page,switching from:%i to:%i\n", > cur_page, page_n ); > > child = gtk_container_children(GTK_CONTAINER(notebookpage[cur_page].widget)); > while( child ) { > GtkWidget *widget; > > widget = GTK_WIDGET(child->data); > gtk_container_remove( > GTK_CONTAINER(notebookpages[cur_page].widget),widget ); whoahh, this is cruel, you are removing the widget from the container while iterating over the list of container children. > > fprintf( stderr, "on_notebook_switch_page,destroy widget:%p", widget); > gtk_widget_destroy( widget ); > if( widget ) > fprintf( stderr, " widget still referenced:%p\n", widget); > else > fprintf( stderr, "\n" ); what are you tring to proof here? You called gtk_widget_destroy() on the widget. What makes you think the widget pointer gets nullified? gtk_widget_destroy() does not even know the location of the memory you use to hold a pointer on the widget. How should it nullify it? Your pointer will keep its value, it only points to invalid memory now. You could of course set up a signal handler to nullify the pointer on widget destruction: gtk_signal_connect_data (GTK_WIDGET (widget), "destroy", GTK_SIGNAL_FUNC (g_nullify_pointer), &widget); Hmm, g_nullify_pointer is glib-2.0, but I think you can imagine what it does. To make things worse, you now dereference the child you have removed above. With a little luck this works since GList structures are allocated from a pool and won't be freed. Perhaps that's the memleak you observe (I didn't check your previous mails)? > child = child->next; > } > create_page_item( notebook, page_n ); Salut, Sven From sven@gimp.org Mon Feb 18 15:52:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id BAABF185E6 for ; Mon, 18 Feb 2002 15:52:54 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16cum6-0001bA-00; Mon, 18 Feb 2002 21:52:38 +0100 To: Nuno Afonso Cc: gtk-list@gnome.org Subject: Re: Signals... References: <1013985738.2813.7.camel@a213-22-1-192> From: Sven Neumann Date: 18 Feb 2002 21:52:38 +0100 In-Reply-To: <1013985738.2813.7.camel@a213-22-1-192> Message-ID: Lines: 38 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Nuno Afonso writes: > i have a button that is connected to a function called > restartApp(GtkWidget *widget, Tabuleiro *tabuleiro) . > > (Tabuleiro is a static cast of a drawing area). > > When the button is clicked the restartApp is called > and executes the following line > > tabuleiro->paint(); > > the function paint() has the following content: > void Tabuleiro::paint(){ > gdk_draw_rectangle(this->window, this->style->white_gc, true, 0, 0, > 100, 100); > > ... > } > > when i click the button i get segmentation fault when it tries to do the > gdk_draw_rectangle. It gets in Tabuleiro::paint(), but it doesn't do the > gdk_draw_rectangle. Have you checked that your widget is realized when paint gets called? this->window is NULL until the widget is realized. Try to add if (!GTK_WIDGET_DRAWABLE (widget)) return; at the beginning of paint() to assure that the drawing code is only executed if the widget is drawable. Salut, Sven From bent@vsnl.net Mon Feb 18 23:32:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail02.vsnl.net (mail02.vsnl.net [203.197.12.5]) by mail.gnome.org (Postfix) with ESMTP id 56E24180EA for ; Mon, 18 Feb 2002 23:32:49 -0500 (EST) Received: from vsnl.net ([203.197.82.162]) by mail02.vsnl.net (Netscape Messaging Server 4.15) with ESMTP id GRRJAL02.VYZ for ; Tue, 19 Feb 2002 10:02:46 +0530 Message-ID: <3C71DD15.F9A01CAE@vsnl.net> Date: Tue, 19 Feb 2002 10:35:25 +0530 From: Javed X-Mailer: Mozilla 4.79 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: new problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi, i tried to configure using your instuctions & the host problem is solved...but now I've got a new error, something like configure: error: C compiler cannot create executables. After which I tried compiling a C program, and it did not execute. I'm working with a RedHat Linux 7.0 OS and have Cyrix 233 Mhz CPU. Please help! Regards, Javed From dchiod@inwind.it Tue Feb 19 01:46:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailweb5.inwind.it (mailweb5.inwind.it [212.141.54.115]) by mail.gnome.org (Postfix) with ESMTP id 7AC7118136 for ; Tue, 19 Feb 2002 01:46:02 -0500 (EST) Received: from inwind.it (127.0.0.1) by mailweb5.inwind.it (5.5.053) id 3C5BAB13000163EF for gtk-list@gnome.org; Tue, 19 Feb 2002 07:45:53 +0100 Date: Tue, 19 Feb 2002 08:45:53 +0200 Message-Id: Subject: variable newbie problem MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable From: "dchiod@inwind.it" To: gtk-list@gnome.org X-XaM3-API-Version: 1.1.9.1.36 X-SenderIP: 217.56.227.2 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, someone can help me? I have a global variable used to store a filename got from a gtk_file_selection; now, when the gtk_file_selection object is destroyed, the memory allocated to the variable is corrupted, changing its value. This only in Linux, it behaves correctly in win32 (mingw 32 gcc). Thanks for any idea. Davide. From maa@sparc.spb.su Tue Feb 19 06:32:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from guardian.sparc.spb.su (guardian.sparc.spb.su [195.19.226.186]) by mail.gnome.org (Postfix) with ESMTP id AAE3A181D6 for ; Tue, 19 Feb 2002 06:32:46 -0500 (EST) Received: from guard.sparc.spb.su (guard.sparc.spb.su [195.19.226.98]) by guardian.sparc.spb.su (8.11.3/8.11.3) with ESMTP id g1JBjPl02103 for ; Tue, 19 Feb 2002 14:45:25 +0300 (MSK) Received: from mail.sparc.spb.su (mail.sparc.spb.su [192.168.205.210]) by guard.sparc.spb.su (8.11.4/8.10.1) with ESMTP id g1JBWeu06053 for ; Tue, 19 Feb 2002 14:32:40 +0300 (MSK) Received: from london.sparc.spb.su (london.sparc.spb.su [192.168.205.229]) by mail.sparc.spb.su (8.11.4/8.11.1) with ESMTP id g1JBWOI37354 for ; Tue, 19 Feb 2002 14:32:25 +0300 (MSK) (envelope-from maa@sparc.spb.su) Date: Tue, 19 Feb 2002 14:37:16 +0300 From: "Aleksey A. Malyshev" X-Mailer: The Bat! (v1.53d) Reply-To: "Aleksey A. Malyshev" X-Priority: 3 (Normal) Message-ID: <16993091808.20020219143716@sparc.spb.su> To: gtk-list@gnome.org Subject: gtk_im_context_get_preedit_string () MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a question. Docs for gtk_im_context_get_preedit_string () says: "Retrieve the current preedit string for the input context, and a list of attributes to apply to the string." but if you look sources you can see: gtk_im_context_real_get_preedit_string (GtkIMContext *context, gchar **str, PangoAttrList **attrs, gint *cursor_pos) //---------------- { if (str) *str = g_strdup (""); if (attrs) *attrs = pango_attr_list_new (); if (cursor_pos) *cursor_pos = 0; } //---------------- And str always equal "". What for this function needed? -- SY, Alek mailto:maa@sparc.spb.su From John.Cupitt@ng-london.org.uk Tue Feb 19 06:39:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 9611618F23 for ; Tue, 19 Feb 2002 06:39:19 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXL9G3>; Tue, 19 Feb 2002 11:39:18 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXL9GN; Tue, 19 Feb 2002 11:39:15 -0000 Message-ID: <3C723614.3020800@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: dchiod@inwind.it Cc: gtk-list@gnome.org Subject: Re: variable newbie problem Date: Tue, 19 Feb 2002 11:25:08 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: dchiod@inwind.it wrote: > I have a global variable used to store a filename got from a gtk_file_selection; > now, when the gtk_file_selection object is destroyed, the memory allocated to the variable > is corrupted, changing its value. Hi, the gtk_file_selection gives you a pointer to its internal data for the filename. If you want to keep the filename after you've destroyed the widget, you need to take a copy with g_strdup(). John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From otaylor@redhat.com Tue Feb 19 07:22:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (unknown [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 15AFB181D6 for ; Tue, 19 Feb 2002 07:22:02 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 52EE3241BE2; Tue, 19 Feb 2002 07:22:01 -0500 (EST) To: "Aleksey A. Malyshev" Cc: gtk-list@gnome.org Subject: Re: gtk_im_context_get_preedit_string () References: <16993091808.20020219143716@sparc.spb.su> From: Owen Taylor In-Reply-To: "Aleksey A. Malyshev"'s message of "Tue, 19 Feb 2002 14:37:16 +0300" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 36 Message-Id: <20020219122201.52EE3241BE2@fresnel.labs.redhat.com> Date: Tue, 19 Feb 2002 07:22:01 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Aleksey A. Malyshev" writes: > Hi, > > I have a question. > Docs for gtk_im_context_get_preedit_string () says: > "Retrieve the current preedit string for the input context, > and a list of attributes to apply to the string." > but if you look sources you can see: > > gtk_im_context_real_get_preedit_string (GtkIMContext *context, > gchar **str, > PangoAttrList **attrs, > gint *cursor_pos) > //---------------- > { > if (str) > *str = g_strdup (""); > if (attrs) > *attrs = pango_attr_list_new (); > if (cursor_pos) > *cursor_pos = 0; > } > //---------------- > > And str always equal "". > > What for this function needed? You are looking at the fallback implementation. It needs to be overriden (look at, for instance, gtkimcontextxim.c) to be useful. Regards, Owen From pvosta@unionbio-eu.com Tue Feb 19 08:01:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 57C4718367 for ; Tue, 19 Feb 2002 08:01:20 -0500 (EST) Received: (qmail 4788 invoked from network); 19 Feb 2002 12:57:43 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 19 Feb 2002 12:57:43 -0000 Message-ID: <3C724C65.3DBA2A42@unionbio-eu.com> Date: Tue, 19 Feb 2002 14:00:21 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: signal_connect depreciated ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I apologize for this newbie question, but I have just started studying GTK and I want to try to compile the simple "helloworld.c" example on the gtk.org website http://www.gtk.org/tutorial/ch-gettingstarted.html#SEC-HELLOWORLD I saved the source code into a C-file and tried to compile it as indicated. However I got the following error message: helloworld.c: In function `main': helloworld.c:55: warning: implicit declaration of function `signal_connect' helloworld.c:79: warning: implicit declaration of function `g_signal_connect_swapped' I read somewhere that "g_signal_connect" is depreciated, but I have no clue what should be replacing it ? Best regards, Peter -- Dr. Peter Van Osta Union Biometrica N.V./S.A. European Scientific Operations Cipalstraat 3 B-2440 Geel Belgium tel.: +32 (0)14 570 619 fax.: +32 (0)14 570 621 From sven@gimp.org Tue Feb 19 08:18:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id E30E0182AA for ; Tue, 19 Feb 2002 08:18:28 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16dAA2-0007jK-00; Tue, 19 Feb 2002 14:18:22 +0100 To: pvosta@unionbio-eu.com Cc: gtk-list@gnome.org Subject: Re: signal_connect depreciated ? References: <3C724C65.3DBA2A42@unionbio-eu.com> From: Sven Neumann Date: 19 Feb 2002 14:18:21 +0100 In-Reply-To: <3C724C65.3DBA2A42@unionbio-eu.com> Message-ID: Lines: 45 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Peter Van Osta writes: > I apologize for this newbie question, but I have just started studying > GTK and I want to try to compile the simple "helloworld.c" example on > the gtk.org website > > http://www.gtk.org/tutorial/ch-gettingstarted.html#SEC-HELLOWORLD > > I saved the source code into a C-file and tried to compile it as > indicated. However I got the following error message: > > helloworld.c: In function `main': > helloworld.c:55: warning: implicit declaration of function > `signal_connect' > helloworld.c:79: warning: implicit declaration of function > `g_signal_connect_swapped' you are most probably following a GTK+-2.0 tutorial and link against GTK+-1.2. Actually the tutorial is in a strange state. It mixes GTK+-2.0 and GTK+-1.2 API: g_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (destroy), NULL); that should be (for GTK+-2.0): g_signal_connect (G_OBJECT (window), "destroy", G_CALLBACK (destroy), NULL); IIRC, the tutorial is not fully converted to the new API yet and I don't think the tutorial found on the web-site is supposed to be the new one yet. > I read somewhere that "g_signal_connect" is depreciated, but I have no > clue what should be replacing it ? g_signal_connect() and friends is the new GObject signal API. The deprecated functions are gtk_signal_connect() and friends. Salut, Sven From jeremy@chaos.org.uk Tue Feb 19 14:08:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ganglion.demon.co.uk (ganglion.demon.co.uk [212.228.142.92]) by mail.gnome.org (Postfix) with ESMTP id 9EE1C18154 for ; Tue, 19 Feb 2002 14:08:37 -0500 (EST) Received: from chaos.org.uk (jeremy@localhost) by ganglion.demon.co.uk (8.11.6/8.11.6) with ESMTP id g1JJ0Ph27279 for ; Tue, 19 Feb 2002 19:00:26 GMT Message-Id: <200202191900.g1JJ0Ph27279@ganglion.demon.co.uk> X-Authentication-Warning: ganglion.demon.co.uk: jeremy owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: Re: new problem In-Reply-To: Message from Javed of "Tue, 19 Feb 2002 10:35:25 +0530." <3C71DD15.F9A01CAE@vsnl.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 19 Feb 2002 19:00:23 +0000 From: Jeremy Henty Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Javed writes: > configure: error: C compiler cannot create executables. > After which I tried compiling a C program, and it did not > execute. What were the error messages? It's hard to offer useful help without the details. Regards, Jeremy Henty -- Here's the secret that every successful software company is based on: You can domesticate programmers the way beekeepers tame bees. You can't exactly communicate with them, but you can get them to swarm in one place and when they're not looking, you can carry off the honey. -- Orson Scott Card, http://carolyn.org/osc.html From inodal@teleline.es Tue Feb 19 14:15:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp2.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 4FB4F18196 for ; Tue, 19 Feb 2002 14:15:45 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp2.mail.isp (Netscape Messaging Server 4.15 tsmtp2 Jul 26 2001 13:10:38) with ESMTP id GRSO6401.RUA for ; Tue, 19 Feb 2002 20:15:40 +0100 Message-ID: <3C72A469.8090807@teleline.es> Date: Tue, 19 Feb 2002 19:15:53 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: which child of my box is the one currently "activate"? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I've a class (written in C++) whith a GtkGLArea and several callbacks connected to button_press_event, button_release_event, etc... I call it GGLSurf. Now I want to use this class in another one to insert two GtkGLArea widgets in my Application. This new class is not a subclass of GGLSurf, it only has GGLSurf* as members of it. I've created an horizontal box and pack the to widgets in it. I also have several dialog windows to change values in the scene (lights, camera, fog, etc). The problem comes when I try to use the dialogs windows for both GtkGLAreas. _GGLSurfs is an array pointing to all my objects of the GGLSurf class, in this case just two: GGLSurf* _GGLSurfs[MAX_GGLSURFS]; guint _current_gglsurf; guint _num_gglsurfs; And all the elements in these windows are relative to _gglsurf, which is declared as: #define _gglsurf _GGLSurfs[_current_gglsurf] The problem is I don't know how to update "_current_gglsurf" since the callbacks for button_press_event, etc. are all in GGLSurf.hpp. How can I updat my "_current_gglsurf" from outside this class? Is there any way to ask, for example, which one of the childs inserted in the box is "activate"?? Thanks From seberino@dt092n42.san.rr.com Tue Feb 19 16:32:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 3106318DDD for ; Tue, 19 Feb 2002 16:32:35 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16dHsJ-0000CW-00 for gtk-list@gnome.org; Tue, 19 Feb 2002 13:32:35 -0800 Date: Tue, 19 Feb 2002 13:32:35 -0800 From: Chris Seberino To: gtk-list@gnome.org Subject: Linux->Win32 GTK+ porting question Message-ID: <20020219133235.A772@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yes I know Cygwin rules and VMWare rules. Both would allow painless running of Linux GTK+ code on Windoze. I want to make an executable that ANYONE can run on Windoze without having to install anything like Cygwin or VMWARE. Has anyone taken the painful path of using the Win32 GTK+ libraries and getting even toy GTK+ code to generate a working .exe file?? I'm stuck on this and could use some help. I did the RTFM thing already but there are lots of gotchas and it would be really be nice to find someone who got this working successfully. Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From cooperdl@worldnet.att.net Tue Feb 19 22:46:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by mail.gnome.org (Postfix) with ESMTP id 9CE6D180E3 for ; Tue, 19 Feb 2002 22:46:45 -0500 (EST) Received: from athlon ([209.195.176.164]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020220034645.FBJE11818.mtiwmhc22.worldnet.att.net@athlon> for ; Wed, 20 Feb 2002 03:46:45 +0000 From: "David L. Cooper II" To: Subject: RE: Linux->Win32 GTK+ porting question Date: Tue, 19 Feb 2002 22:46:57 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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) In-Reply-To: <20020219133235.A772@spawar.navy.mil> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Chris, Yes, I've been down that road. I'm actually happy to say that I was able to take an application that I developed using Glade and recompile it to run natively on Windows. Check out: http://www.gimp.org/~tml/gimp/win32//new-downloads.html for more information on the libraries for windows. Regards, David -----Original Message----- From: gtk-list-admin@gnome.org [mailto:gtk-list-admin@gnome.org]On Behalf Of Chris Seberino Sent: Tuesday, February 19, 2002 4:33 PM To: gtk-list@gnome.org Subject: Linux->Win32 GTK+ porting question Yes I know Cygwin rules and VMWare rules. Both would allow painless running of Linux GTK+ code on Windoze. I want to make an executable that ANYONE can run on Windoze without having to install anything like Cygwin or VMWARE. Has anyone taken the painful path of using the Win32 GTK+ libraries and getting even toy GTK+ code to generate a working .exe file?? I'm stuck on this and could use some help. I did the RTFM thing already but there are lots of gotchas and it would be really be nice to find someone who got this working successfully. Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From blue_pion@hotmail.com Wed Feb 20 02:48:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f50.pav1.hotmail.com [64.4.31.50]) by mail.gnome.org (Postfix) with ESMTP id 7ECE9181E9 for ; Wed, 20 Feb 2002 02:48:54 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 19 Feb 2002 23:48:53 -0800 Received: from 137.132.3.9 by pv1fd.pav1.hotmail.msn.com with HTTP; Wed, 20 Feb 2002 07:48:52 GMT X-Originating-IP: [137.132.3.9] From: "Ricky Foo" To: gtk-list@gnome.org Subject: Gtk drawing Date: Wed, 20 Feb 2002 07:48:52 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 20 Feb 2002 07:48:53.0608 (UTC) FILETIME=[0AFBE680:01C1B9E3] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Question about gtk_drawing_area. I created this dialog window with 3 drawing areas inside. However, no matter how I tried, I couldn't get the graphics to appear. There is nothing wrong with my callback. I have already cross-checked it. Does GTK+ forbid multiple drawing areas within 1 window? Where could the problem be? Ricky _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From seberino@dt092n42.san.rr.com Wed Feb 20 03:50:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id B3452181CF for ; Wed, 20 Feb 2002 03:50:52 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16dSSn-0000c8-00; Wed, 20 Feb 2002 00:50:57 -0800 Date: Wed, 20 Feb 2002 00:50:57 -0800 From: Chris Seberino To: gtk-list@gnome.org Cc: pbd@Op.Net Subject: How access pixmap info like width&height? (1st arg of configure/expose callback nice...) Message-ID: <20020220005057.A2332@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Configure and Expose events will use a callback with the first argument being a widget that has nice info about pixmap to be redrawn like width, height, style & "window". How can I access this widget on my own??? Or, how can I get at this info for a pixmap some other way??? Thanks, Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pvosta@unionbio-eu.com Wed Feb 20 04:24:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 13A91183C4 for ; Wed, 20 Feb 2002 04:24:26 -0500 (EST) Received: (qmail 7136 invoked from network); 20 Feb 2002 09:20:46 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 20 Feb 2002 09:20:46 -0000 Message-ID: <3C736B0B.BF995AC1@unionbio-eu.com> Date: Wed, 20 Feb 2002 10:23:23 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: upgrading GTK1.2 to GTK2.0 and displaying images Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am currently running a RedHat 7.2 system with GTK1.2 installed. How do I upgrade from GTK1.2 to GTK2.0 without breaking the system ? I am using GNOME for my desktop and I do not want to crash the system by changing libraries the system might depend on. When compiling a GTK-based program I use "gtk-config --cflags --libs", I suppose I have to redirect the settings of gtk-config to the updated GTK2.0 if I want to use GTK2.0 instead of GTK1.2 ? I intend to use the GTK for "modernising" an imaging system, where do I find information/examples of how to "send" image data (bitmaps) to a GTK-window. Although the focus in my application is on automated image acquisition and analysis, I now and then wan to display an image on the screen. The focus of my work is to "extract" numerical data out of images, not displaying them or interactive work. For an example of what I intend to "modernise", you can have a look at my persoanl website: http://ourworld.compuserve.com/homepages/pvosta/cvwww.htm Best regards and lots of thanks in advance, Peter -------------------- Dr. Peter Van Osta Union Biometrica N.V./S.A. European Scientific Operations Cipalstraat 3 B-2440 Geel Belgium tel.: +32 (0)14 570 619 fax.: +32 (0)14 570 621 From sven@gimp.org Wed Feb 20 04:58:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 0D936181DA for ; Wed, 20 Feb 2002 04:58:41 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16dTWJ-00032V-00; Wed, 20 Feb 2002 10:58:39 +0100 To: pvosta@unionbio-eu.com Cc: GTK-list Subject: Re: upgrading GTK1.2 to GTK2.0 and displaying images References: <3C736B0B.BF995AC1@unionbio-eu.com> From: Sven Neumann Date: 20 Feb 2002 10:58:39 +0100 In-Reply-To: <3C736B0B.BF995AC1@unionbio-eu.com> Message-ID: Lines: 20 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Peter Van Osta writes: > I am currently running a RedHat 7.2 system with GTK1.2 installed. How do > I upgrade from GTK1.2 to GTK2.0 without breaking the system ? I am using > GNOME for my desktop and I do not want to crash the system by changing > libraries the system might depend on. no too old versions of gtk+-1.2 live peacefully with gtk+-2.0 on the same system or even in the same prefix. > When compiling a GTK-based program I use "gtk-config --cflags --libs", I > suppose I have to redirect the settings of gtk-config to the updated > GTK2.0 if I want to use GTK2.0 instead of GTK1.2 ? pkg-config --cflags --libs gtk+-2.0 Salut, Sven From John.Cupitt@ng-london.org.uk Wed Feb 20 06:25:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 9619918198 for ; Wed, 20 Feb 2002 06:25:34 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXL099>; Wed, 20 Feb 2002 11:25:33 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXL098; Wed, 20 Feb 2002 11:25:31 -0000 Message-ID: <3C73845B.40902@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: blue_pion@hotmail.com Cc: gtk-list@gnome.org Subject: Re: Gtk drawing Date: Wed, 20 Feb 2002 11:11:23 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ricky Foo wrote: > Question about gtk_drawing_area. I created this dialog window with 3 > drawing areas inside. However, no matter how I tried, I couldn't get the > graphics to appear. There is nothing wrong with my callback. I have > already cross-checked it. > > Does GTK+ forbid multiple drawing areas within 1 window? Where could the > problem be? No, this should be fine. I'm afraid there's probably a problem in your code somewhere. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From castor.fou@wanadoo.fr Wed Feb 20 06:30:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto2.wanadoo.fr (smtp-out-2.wanadoo.fr [193.252.19.254]) by mail.gnome.org (Postfix) with ESMTP id 2DCF21819F for ; Wed, 20 Feb 2002 06:30:56 -0500 (EST) Received: from mel-rta1.wanadoo.fr (193.252.19.150) by mel-rto2.wanadoo.fr; 20 Feb 2002 12:30:55 +0100 Received: from pentium (193.249.83.45) by mel-rta1.wanadoo.fr; 20 Feb 2002 12:30:43 +0100 Message-ID: <003501c1ba02$095a5360$2d53f9c1@pentium> From: "Castor Fou" To: Subject: [GTK help] Date: Wed, 20 Feb 2002 12:30:43 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0032_01C1BA0A.6A0730E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0032_01C1BA0A.6A0730E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi! How I can superpose two GtkText in the same window (in a notebook for = example)? In a background, a gtktext where you can't modify the text and = in the foreground, a gtktext where you can modify the text. Result, you = have the background and the foreground in the same window with the = superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------=_NextPart_000_0032_01C1BA0A.6A0730E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi!
How I can superpose two GtkText in the = same window=20 (in a notebook for example)? In a background, a gtktext where you can't = modify=20 the text and in the foreground, a gtktext where you can modify the text. = Result,=20 you have the background and the foreground in the same window with = the=20 superposed texts.
Thanks,
 
Excuse me for my 'english' but I don't = speak it=20 very well.
------=_NextPart_000_0032_01C1BA0A.6A0730E0-- From bruces@mail.petech.ac.za Wed Feb 20 06:36:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ed.petech.ac.za (smtpgate.petech.ac.za [196.21.192.4]) by mail.gnome.org (Postfix) with ESMTP id A6C2418853 for ; Wed, 20 Feb 2002 06:36:06 -0500 (EST) Received: from what (what.petech.ac.za [10.11.2.27]) by ed.petech.ac.za (8.9.3/8.8.7) with SMTP id NAA22670 for ; Wed, 20 Feb 2002 13:36:00 +0200 Message-ID: <00e701c1ba03$d00a78e0$1b020b0a@petech.ac.za> From: "Bruce A. Smith" To: References: <003501c1ba02$095a5360$2d53f9c1@pentium> Subject: Re: [GTK help] Date: Wed, 20 Feb 2002 13:43:27 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00E4_01C1BA14.9371B720" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_00E4_01C1BA14.9371B720 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Nope, can't be done. ----- Original Message -----=20 From: Castor Fou=20 To: gtk-list@gnome.org=20 Sent: Wednesday, February 20, 2002 1:30 PM Subject: [GTK help] Hi! How I can superpose two GtkText in the same window (in a notebook for = example)? In a background, a gtktext where you can't modify the text and = in the foreground, a gtktext where you can modify the text. Result, you = have the background and the foreground in the same window with the = superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------=_NextPart_000_00E4_01C1BA14.9371B720 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Nope, can't be done.
 
----- Original Message -----
From:=20 Castor=20 Fou
Sent: Wednesday, February 20, = 2002 1:30=20 PM
Subject: [GTK help]

Hi!
How I can superpose two GtkText in = the same=20 window (in a notebook for example)? In a background, a gtktext where = you can't=20 modify the text and in the foreground, a gtktext where you can modify = the=20 text. Result, you have the background and the foreground in the = same=20 window with the superposed texts.
Thanks,
 
Excuse me for my 'english' but I = don't speak it=20 very well.
------=_NextPart_000_00E4_01C1BA14.9371B720-- From inimss@yahoo.com Wed Feb 20 08:02:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ekm.asianetonline.net (unknown [202.88.231.2]) by mail.gnome.org (Postfix) with ESMTP id 2B5D11814F; Wed, 20 Feb 2002 08:02:02 -0500 (EST) Received: from dino ([202.88.224.172]) by ekm.asianetonline.net (Netscape Messaging Server 4.15) with SMTP id GRTZK100.I4I; Wed, 20 Feb 2002 07:19:13 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: [INIMSS] Problem with CList, may be a bug in GTK+. Date: Tue, 19 Feb 2002 06:10:13 +0530 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02021906101300.01257@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi In my application I had a CList with the selection mode set to Browse (Glade term, hope you will understand). When I tried to add a row using gtk_clist_append the application crashed (segmentation fault). Then I changed the selection mode to Single and the application worked fine. Why is this happening? Is it my fault or the fault of the GTK? Thanks Dino From inodal@teleline.es Wed Feb 20 08:23:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from tsmtp7.mail.isp (unknown [195.235.113.141]) by mail.gnome.org (Postfix) with ESMTP id 8160E1814B for ; Wed, 20 Feb 2002 08:23:06 -0500 (EST) Received: from teleline.es ([213.97.141.171]) by tsmtp7.mail.isp (Netscape Messaging Server 4.15 tsmtp7 Jul 26 2001 13:10:38) with ESMTP id GRU2IH01.NKM for ; Wed, 20 Feb 2002 14:23:05 +0100 Message-ID: <3C73A33C.2020504@teleline.es> Date: Wed, 20 Feb 2002 13:23:08 +0000 From: Ignacio Nodal User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: es-es, en-us MIME-Version: 1.0 To: GTK-List Subject: g_strdup() Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm using the g_strdup() function provided by glib, which is suppose to duplicate a string, to update a file name string stored in a gchar* from a GtkEntry. In fact, it's a member of a my class, so I pass it in the constructor: ParameterFile::ParameterFile(GtkWidget* parent, gchar* param) { _file_name = param; _File_entry = 0; //It's created later _value_changed = 0; .... } I've connected the "activate" signal of the GtkEntry used show/enter the file name. In my callback I call a member function Update(): ParameterFile::Update() { gchar *ch; ch = g_strdup(gtk_entry_get_text(GTK_ENTRY(_File_entry))); _value_changed = (strcmp(_file_name, ch) != 0); if (_value_changed) { if (_file_name != 0) g_free(_file_name); _file_name = g_strdup(ch); } } If I call g_print("post-g_strdup %s\n",_filename); it shows me the correct value. If I call it in my main.cpp the value passed to the constructor, where the strign should be stored, points whereever it my be, but not where I want.. In my main.cpp, just testing, I use: gchar* _wrl_name = g_strdup("default.wrl"); ParameterFile* entry_param = new ParameterFile(parent, _wrl_name); [...] And a button that prints _wrl_name if clicked. What's going wrong? Can I pass _wrl_name to my constructor or do I have to pass gchar**? Thanks.. Someday I'll beat pointers... From John.Cupitt@ng-london.org.uk Wed Feb 20 09:21:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 4507A181A9 for ; Wed, 20 Feb 2002 09:21:39 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMA3G>; Wed, 20 Feb 2002 14:21:38 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMA3F; Wed, 20 Feb 2002 14:21:31 -0000 Message-ID: <3C73AD9B.9000500@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: inodal@teleline.es Cc: gtk-list@gnome.org Subject: Re: g_strdup() Date: Wed, 20 Feb 2002 14:07:23 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Ignacio, you need to be more careful about where you strdup, and you need to look at entry_param->_file_name, not at _wrl_name. The rule is that each instance of ParameterFile must own the pointer to the _file_name string. So: strdup() when you set _file_name, free when you unset, and absolutely NO free/strdup anywhere else. I have a couple of macros I use to make this safer: #define STRFREE( S ) \ { if( S ) { g_free( S ); (S) = 0; } } #define STRSET( S, V ) \ { STRFREE( S ); if( V ) { (S) = g_strdup( V ); } } so your functions become: > ParameterFile::ParameterFile(GtkWidget* parent, gchar* param) > { > > _file_name = 0; > STRSET( _file_name, param ); > _File_entry = 0; //It's created later > > _value_changed = 0; > .... > > } > ParameterFile::Update() > { > gchar *ch; > > ch = gtk_entry_get_text(GTK_ENTRY(_File_entry)); > > _value_changed = (strcmp(_file_name, ch) != 0); > > if (_value_changed) > STRSET( _file_name, ch ); > > } and in main.cpp: > gchar *_wrl_name = "default.wrl"; > ParameterFile* entry_param = new ParameterFile(parent, _wrl_name); You also need to make sure you have STRFREE( _file_name ) in your destructor for ParameterFile. Finally, in your button callback, don't print _wrl_name ... that will always be the start value. Instead, print entry_param->_file_name John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From Esteban.Quijano@artinsoft.com Wed Feb 20 10:29:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id 9188518AF8 for ; Wed, 20 Feb 2002 10:29:16 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id ; Wed, 20 Feb 2002 10:21:45 -0600 Message-ID: From: Esteban Quijano To: Castor Fou Cc: gtk-list@gnome.org Subject: RE: [GTK help] Date: Wed, 20 Feb 2002 09:23:04 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1BA22.7DEE2CE0" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C1BA22.7DEE2CE0 Content-Type: text/plain; charset="iso-8859-1" Let's see. As I understand you want a gtktext over a bigger gtktext, both in the same window, don't you? You can do that with a GtkFixed widget. You can position widgets at fixed coordinates, no matter if one widget is in front of another one. Esteban Quijano V. Artinsoft corp -----Original Message----- From: Castor Fou [mailto:castor.fou@wanadoo.fr] Sent: Wednesday, February 20, 2002 5:31 AM To: gtk-list@gnome.org Subject: [GTK help] Hi! How I can superpose two GtkText in the same window (in a notebook for example)? In a background, a gtktext where you can't modify the text and in the foreground, a gtktext where you can modify the text. Result, you have the background and the foreground in the same window with the superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------_=_NextPart_001_01C1BA22.7DEE2CE0 Content-Type: text/html; charset="iso-8859-1"
Let's see. As I understand you want a gtktext over a bigger gtktext, both in the same window, don't you?
You can do that with a GtkFixed widget. You can position widgets at fixed coordinates, no matter if one widget is in front of another one.
 
Esteban Quijano V.
Artinsoft corp
-----Original Message-----
From: Castor Fou [mailto:castor.fou@wanadoo.fr]
Sent: Wednesday, February 20, 2002 5:31 AM
To: gtk-list@gnome.org
Subject: [GTK help]

Hi!
How I can superpose two GtkText in the same window (in a notebook for example)? In a background, a gtktext where you can't modify the text and in the foreground, a gtktext where you can modify the text. Result, you have the background and the foreground in the same window with the superposed texts.
Thanks,
 
Excuse me for my 'english' but I don't speak it very well.
------_=_NextPart_001_01C1BA22.7DEE2CE0-- From jimmycllin@hotmail.com Wed Feb 20 11:39:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (oe64.law11.hotmail.com [64.4.16.199]) by mail.gnome.org (Postfix) with ESMTP id D89231814C for ; Wed, 20 Feb 2002 11:39:55 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 20 Feb 2002 08:39:55 -0800 X-Originating-IP: [61.10.172.12] From: "Jimmy Lin" To: Subject: When will GTK+2.0 be released? Date: Thu, 21 Feb 2002 00:41:35 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0061_01C1BA70.83EC4ED0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 20 Feb 2002 16:39:55.0176 (UTC) FILETIME=[39F55A80:01C1BA2D] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0061_01C1BA70.83EC4ED0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Hello, I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and GTK+2.0 = is incompatible. So should I learn GTK+2.0 is much better now? Please = give me some advices. Thanks!!! Jimmy ------=_NextPart_000_0061_01C1BA70.83EC4ED0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Hello,
 
I'm a new comer of GTK+, I noticed that the api = of GTK+1.2=20 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much=20 better now? Please give me some advices. = Thanks!!!
 
Jimmy
------=_NextPart_000_0061_01C1BA70.83EC4ED0-- From josebagar@euskalnet.net Wed Feb 20 16:45:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from eui3smtp.euskaltel.es (eui3smtp.euskaltel.es [212.55.8.58]) by mail.gnome.org (Postfix) with ESMTP id A8005181DD for ; Wed, 20 Feb 2002 16:45:36 -0500 (EST) Received: from localhost ([193.153.232.47]) by eui3smtp.euskaltel.es (Netscape Messaging Server 4.15) with ESMTP id GRUPRJ02.SEP for ; Wed, 20 Feb 2002 22:45:19 +0100 Content-Type: text/plain; charset="us-ascii" From: Joseba Garcia Etxebarria To: gtk-list@gnome.org Subject: gtk on win32 Date: Wed, 20 Feb 2002 22:44:47 +0100 X-Mailer: KMail [version 1.3.9] MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200202202244.47712.josebagar@euskalnet.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, maybe you have discussed this many times before, but the thing is that i = got a=20 project in linux that uses gtk that i want to port to windows (either MSV= C5=20 or cygwin) i'm quite newby to this kind of things, so i don't know where = to=20 start from. I've been to gimp.org/win32 but it seems quite confusing to m= e in=20 relation to porting my own applications to win32 (although it's a great p= age=20 for other purposes, like geting gimp :-) So, where should i start from? i think it would be of a great help if any= one=20 could send me a "standard" win32+gtk project with only the headers and=20 libraries linked to it, i don't thinks i physically need this headers and= =20 libraries emailed to me as i have already downloaded them from the gimp p= age. thanks a lot in advance, joseba PD: my code compiles cleanly in linux From castor.fou@wanadoo.fr Wed Feb 20 17:27:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto1.wanadoo.fr (smtp-out-1.wanadoo.fr [193.252.19.188]) by mail.gnome.org (Postfix) with ESMTP id 7B9871889A for ; Wed, 20 Feb 2002 17:27:00 -0500 (EST) Received: from mel-rta2.wanadoo.fr (193.252.19.152) by mel-rto1.wanadoo.fr; 20 Feb 2002 23:26:58 +0100 Received: from pentium (193.248.63.221) by mel-rta2.wanadoo.fr; 20 Feb 2002 23:26:48 +0100 Message-ID: <001d01c1ba5d$b0116760$dd3ff8c1@pentium> From: "Castor Fou" To: References: Subject: [GTK help] Date: Wed, 20 Feb 2002 23:25:20 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0014_01C1BA65.DD288CD0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0014_01C1BA65.DD288CD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks for the tips. But, my foreground must be diaphanously because the text on the = background must be visible. I think I'm not clear. I have a notebook. In the notebook, I add a GtKFixed with two GtkText = which coordonates must be the same. The first GtkText include, for = example, a head, the legs, the armes, the foot and two hands. The second = include the body. It is possible to see the body completely ? With a = second text's foreground diaphanously ? I hope that you understand me, Thanks, C@stor ------=_NextPart_000_0014_01C1BA65.DD288CD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Thanks for the tips.
But, my foreground must be diaphanously because the text on the background must be = visible. I think=20 I'm not clear.
I have a notebook. In the notebook, I = add a=20 GtKFixed with two GtkText which coordonates must be the same. = The=20 first GtkText include, for example, a head, the legs, the armes, the=20 foot and two hands. The second include the body. It is = possible to see=20 the body completely ? With a second text's foreground diaphanously=20 ?
I hope that you understand = me,
Thanks,
 
------=_NextPart_000_0014_01C1BA65.DD288CD0-- From cooperdl@worldnet.att.net Wed Feb 20 17:53:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by mail.gnome.org (Postfix) with ESMTP id 5ECFC18201 for ; Wed, 20 Feb 2002 17:53:25 -0500 (EST) Received: from athlon ([209.195.176.164]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020220225324.DMK5745.mtiwmhc22.worldnet.att.net@athlon>; Wed, 20 Feb 2002 22:53:24 +0000 From: "David L. Cooper II" To: "Joseba Garcia Etxebarria" , Subject: RE: gtk on win32 Date: Wed, 20 Feb 2002 17:53:39 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" 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) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <200202202244.47712.josebagar@euskalnet.net> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Check out: http://www.gimp.org/~tml/gimp/win32//new-downloads.html for more information on the libraries for windows. Regards, David -----Original Message----- From: gtk-list-admin@gnome.org [mailto:gtk-list-admin@gnome.org]On Behalf Of Joseba Garcia Etxebarria Sent: Wednesday, February 20, 2002 4:45 PM To: gtk-list@gnome.org Subject: gtk on win32 Hi, maybe you have discussed this many times before, but the thing is that i got a project in linux that uses gtk that i want to port to windows (either MSVC5 or cygwin) i'm quite newby to this kind of things, so i don't know where to start from. I've been to gimp.org/win32 but it seems quite confusing to me in relation to porting my own applications to win32 (although it's a great page for other purposes, like geting gimp :-) So, where should i start from? i think it would be of a great help if anyone could send me a "standard" win32+gtk project with only the headers and libraries linked to it, i don't thinks i physically need this headers and libraries emailed to me as i have already downloaded them from the gimp page. thanks a lot in advance, joseba PD: my code compiles cleanly in linux _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From cooperdl@worldnet.att.net Wed Feb 20 17:59:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mtiwmhc22.worldnet.att.net (mtiwmhc22.worldnet.att.net [204.127.131.47]) by mail.gnome.org (Postfix) with ESMTP id 7677018201 for ; Wed, 20 Feb 2002 17:59:20 -0500 (EST) Received: from athlon ([209.195.176.164]) by mtiwmhc22.worldnet.att.net (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020220225920.DRU5745.mtiwmhc22.worldnet.att.net@athlon>; Wed, 20 Feb 2002 22:59:20 +0000 From: "David L. Cooper II" To: "Jimmy Lin" , Subject: RE: When will GTK+2.0 be released? Date: Wed, 20 Feb 2002 17:59:35 -0500 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0016_01C1BA38.5B047C00" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0016_01C1BA38.5B047C00 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit Check the mailing list archive at: http://mail.gnome.org/archives/gtk-devel-list/2002-February/thread.html David -----Original Message----- From: gtk-list-admin@gnome.org [mailto:gtk-list-admin@gnome.org]On Behalf Of Jimmy Lin Sent: Wednesday, February 20, 2002 11:42 AM To: gtk-list@gnome.org Subject: When will GTK+2.0 be released? Hello, I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much better now? Please give me some advices. Thanks!!! Jimmy ------=_NextPart_000_0016_01C1BA38.5B047C00 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Check=20 the mailing list archive at:
http://mail.gnome.org/archives/gtk-devel-list/2002-February/threa= d.html
 
David
-----Original Message-----
From: = gtk-list-admin@gnome.org=20 [mailto:gtk-list-admin@gnome.org]On Behalf Of Jimmy = Lin
Sent:=20 Wednesday, February 20, 2002 11:42 AM
To:=20 gtk-list@gnome.org
Subject: When will GTK+2.0 be=20 released?

Hello,
 
I'm a new comer of GTK+, I noticed that the = api of=20 GTK+1.2 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much = better now? Please give me some advices. = Thanks!!!
 
Jimmy
------=_NextPart_000_0016_01C1BA38.5B047C00-- From cpollock@vvm.com Wed Feb 20 18:25:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ns.vvm.com (ns.vvm.com [66.196.0.1]) by mail.gnome.org (Postfix) with ESMTP id C8E3618201 for ; Wed, 20 Feb 2002 18:25:24 -0500 (EST) Received: from there (ka02-66.vvm.com [66.196.2.66]) by ns.vvm.com (8.12.1/8.12.1) with SMTP id g1KNPNVh005874 for ; Wed, 20 Feb 2002 17:25:23 -0600 Message-Id: <200202202325.g1KNPNVh005874@ns.vvm.com> Content-Type: text/plain; charset="iso-8859-1" From: Chris Pollock Reply-To: cpollock@vvm.com To: gtk-list@gnome.org Subject: gtk config Date: Wed, 20 Feb 2002 17:30:07 -0600 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Linux newbie here. I'm trying to install a program named BookBase. During the installation I get 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: error: Cannot find GTK: Is gtk-config in path? As far as I know GTK was installed when I installed Mandrake. I'm running Mandrake 8.1 Any help for this lost newbie would be appreciated. Chris From rbultje@ronald.bitfreak.net Wed Feb 20 18:29:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id 0160D18201 for ; Wed, 20 Feb 2002 18:29:53 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1KNKH4K025870 for ; Thu, 21 Feb 2002 00:20:17 +0100 (CET) Subject: move-event From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 21 Feb 2002 00:29:51 +0100 Message-Id: <1014247791.20045.134.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi there, is there an event which is triggered by moving windows? expose_event only gets called on a full repaint, I basically need to do some work whenever the drawing area is being increased/decreased in size or is being moved, either relative to the parent window or relative to the desktop root window. I thought configure_event would be my lucky guess, but that doesn't seem to get triggered at all. I use Gtk-1.3.13. Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From Esteban.Quijano@artinsoft.com Wed Feb 20 19:48:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aismxmail01.artinsoft.com (unknown [200.47.179.6]) by mail.gnome.org (Postfix) with ESMTP id D2D96186B0 for ; Wed, 20 Feb 2002 19:48:44 -0500 (EST) Received: by AISMXMAIL01 with Internet Mail Service (5.5.2653.19) id ; Wed, 20 Feb 2002 19:25:28 -0600 Message-ID: From: Esteban Quijano To: 'Ronald Bultje' Cc: "'gtk-list@gnome.org'" Subject: RE: move-event Date: Wed, 20 Feb 2002 18:28:02 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: gtk_signal_connect(GTK_OBJECT(window), "configure_event", GTK_SIGNAL_FUNC(msg_window_setposition), data); gbool msg_window_setposition(GtkWidget *widget, GdkEventConfigure *event, gpointer user_data) { /* Do whatever you want with event->x and event->y */ return TRUE; } The configure_event can also catch resizing. Esteban Quijano Vincenzi Artinsoft corp. -----Original Message----- From: Ronald Bultje [mailto:rbultje@ronald.bitfreak.net] Sent: Wednesday, February 20, 2002 5:30 PM To: gtk-list@gnome.org Subject: move-event Hi there, is there an event which is triggered by moving windows? expose_event only gets called on a full repaint, I basically need to do some work whenever the drawing area is being increased/decreased in size or is being moved, either relative to the parent window or relative to the desktop root window. I thought configure_event would be my lucky guess, but that doesn't seem to get triggered at all. I use Gtk-1.3.13. Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From rtriay@avantel.net Thu Feb 21 01:22:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h004.c003.snv.cp.net [209.228.32.218]) by mail.gnome.org (Postfix) with SMTP id 5623418D6F for ; Thu, 21 Feb 2002 01:22:02 -0500 (EST) Received: (cpmta 3237 invoked from network); 20 Feb 2002 22:21:57 -0800 Received: from 148.240.116.19 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.218) with SMTP; 20 Feb 2002 22:21:57 -0800 X-Sent: 21 Feb 2002 06:21:57 GMT Received: from triay.net [10.0.0.2] by Proxy+; Thu, 21 Feb 2002 00:20:31 -0600 for Subject: inheritance From: Ramon Alberto Triay Espinosa To: gtk-list@gnome.org Content-Type: text/plain X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 00:27:44 -0500 Mime-Version: 1.0 Message-Id: <20020221062202.5623418D6F@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: simple question: does all the 'children' widgets inherit all the functions of the 'parent' widget? I mean, does all functions that apply to a widget, apply to their children too? thanx rtriay :) From hp@redhat.com Thu Feb 21 01:29:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id B019C18FA8 for ; Thu, 21 Feb 2002 01:29:07 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1L6T6v10508; Thu, 21 Feb 2002 01:29:06 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: move-event References: <1014247791.20045.134.camel@tux> From: Havoc Pennington Date: 21 Feb 2002 01:29:06 -0500 In-Reply-To: <1014247791.20045.134.camel@tux> Message-ID: Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > > is there an event which is triggered by moving windows? expose_event > only gets called on a full repaint, I basically need to do some work > whenever the drawing area is being increased/decreased in size or is > being moved, either relative to the parent window or relative to the > desktop root window. configure_event will come on a drawing area when it's moved relative to its parent, or resized. For relative to the root, you need configure_event on the toplevel GtkWindow. Havoc From rsteinke@w-link.net Thu Feb 21 01:43:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 3D3A8183B9 for ; Thu, 21 Feb 2002 01:43:20 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dmwj-00006J-00; Wed, 20 Feb 2002 22:43:13 -0800 Date: Wed, 20 Feb 2002 22:43:13 -0800 From: rsteinke@w-link.net To: rtriay@avantel.net, gtk-list@gnome.org Subject: Re: inheritance Message-ID: <3C749701.nailAA1IL9PT@w-link.net> References: <20020221062202.5623418D6F@mail.gnome.org> In-Reply-To: <20020221062202.5623418D6F@mail.gnome.org> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > From: Ramon Alberto Triay Espinosa > > simple question: > does all the 'children' widgets inherit all the functions of the > 'parent' widget? > I mean, does all functions that apply to a widget, apply to their > children too? > > thanx > rtriay > :) Yep. All you need to do is cast them using the appropriate macros (e.g., to use the gtk_widget_foo() function, cast your descended widget pointer to a GtkWidget* using the macro GTK_WIDGET()). Ron Steinke From jyothi@ncoretech.com Thu Feb 21 01:58:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gateway.ncoretech.com (unknown [164.164.42.6]) by mail.gnome.org (Postfix) with ESMTP id D248318282 for ; Thu, 21 Feb 2002 01:58:13 -0500 (EST) Received: from ncoretech.com (IDENT:root@mail.ncoretech.com [192.168.1.3]) by gateway.ncoretech.com (8.10.0/8.10.0) with ESMTP id g1L6w5U18028 for ; Thu, 21 Feb 2002 12:28:05 +0530 Received: (from root@localhost) by ncoretech.com (8.10.0/8.10.0) id g1L6w5p32074 for gtk-list@gnome.org.VIRCHECK; Thu, 21 Feb 2002 12:28:05 +0530 Received: from ncoretech.com (ws164.ncoretech.com [192.168.1.164]) by ncoretech.com (8.10.0/8.10.0) with ESMTP id g1L6w4U31985 for ; Thu, 21 Feb 2002 12:28:04 +0530 Message-ID: <3C749A68.FEB69057@ncoretech.com> Date: Thu, 21 Feb 2002 12:27:44 +0530 From: Jyothi X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How to center the text Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses on Thu Feb 21 12:28:04 IST 2002 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have drawn a rectangle using gdk_draw_rectangle. I am using gdk_draw_string to write a char into that rectangle. But every time I am manually centering the char inside the rectangle , I mean by adjusting x an y position of char. It is not accurately centered. Is there any function or way by which I can center the char inside a drawn rectangle. Thanks in Advance, Jyothi. From rtriay@avantel.net Thu Feb 21 01:59:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h000.c003.snv.cp.net [209.228.32.214]) by mail.gnome.org (Postfix) with SMTP id 9037C18D23 for ; Thu, 21 Feb 2002 01:59:13 -0500 (EST) Received: (cpmta 9949 invoked from network); 20 Feb 2002 22:59:09 -0800 Received: from 148.240.116.19 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.214) with SMTP; 20 Feb 2002 22:59:09 -0800 X-Sent: 21 Feb 2002 06:59:09 GMT Received: from triay.net [10.0.0.2] by Proxy+; Thu, 21 Feb 2002 00:53:05 -0600 for multiple recipients Subject: Re: inheritance From: Ramon Alberto Triay Espinosa To: rsteinke@w-link.net, gtk-list@gnome.org In-Reply-To: <3C749701.nailAA1IL9PT@w-link.net> References: <20020221062202.5623418D6F@mail.gnome.org> <3C749701.nailAA1IL9PT@w-link.net> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 01:00:17 -0500 Mime-Version: 1.0 Message-Id: <20020221065913.9037C18D23@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: El 20 Feb 2002 22:43:13 -0800, rsteinke@w-link.net escribió: > > From: Ramon Alberto Triay Espinosa > > > > simple question: > > does all the 'children' widgets inherit all the functions of the > > 'parent' widget? > > I mean, does all functions that apply to a widget, apply to their > > children too? > > > > thanx > > rtriay > > :) > > Yep. All you need to do is cast them using the appropriate macros > (e.g., to use the gtk_widget_foo() function, cast your descended widget > pointer to a GtkWidget* using the macro GTK_WIDGET()). > > Ron Steinke > THANX RON! that's all i needed to know SALUDOS!! rtriay :) From mano@pluto.linux.it Thu Feb 21 03:08:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailrelay1.inwind.it (mailrelay1.inwind.it [212.141.54.101]) by mail.gnome.org (Postfix) with ESMTP id 096E11811A for ; Thu, 21 Feb 2002 03:08:58 -0500 (EST) Received: from pluto.linux.it (62.98.86.101) by mailrelay1.inwind.it (5.5.053) id 3C727DC70010AC5C for gtk-list@gnome.org; Thu, 21 Feb 2002 09:08:56 +0100 Message-ID: <3C74A9C8.1090607@pluto.linux.it> Date: Thu, 21 Feb 2002 09:03:20 +0100 From: Germano Rizzo User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020208 X-Accept-Language: it, en, en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Gtk+2-style auto* scripts Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! just for sake of exploring, I've begun to develop a program in GTK+ 2.0. Now, I'd like to get it packaged properly, so I really need all the automake/autoconf stuff... in the other programs I made, it was easy to find another similar program, just... eeeh... "quote" ;) that kind of stuff from there, and then modify the scripts for my own purposes. The matter is, I don't know of any simple program that uses GTK2, for now. Could you address me, please? Or just advice me to a good documentation that can explain how to make myself such scripts, and/or which differences are there (if any) with the GTK-1.2-style ones? Thanks in advance, and compliments for the really good work you're doing with GTK2, Mano :) PS: I'd like something less complex than GIMP 1.3.x... -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Germano Rizzo - mano@pluto.linux.it ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Pluto FSUG member - www.pluto.linux.it Linux Registered User #120637 PGP/GPG Public Key at http://gnomermind.sf.net/pubkey.txt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ An rud is annamh is iontach ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From mano@pluto.linux.it Thu Feb 21 03:08:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailrelay1.inwind.it (mailrelay1.inwind.it [212.141.54.101]) by mail.gnome.org (Postfix) with ESMTP id C088C1811A for ; Thu, 21 Feb 2002 03:08:58 -0500 (EST) Received: from pluto.linux.it (62.98.86.101) by mailrelay1.inwind.it (5.5.053) id 3C727DC70010AC66 for gtk-list@gnome.org; Thu, 21 Feb 2002 09:08:58 +0100 Message-ID: <3C74AB03.4000900@pluto.linux.it> Date: Thu, 21 Feb 2002 09:08:35 +0100 From: Germano Rizzo User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020208 X-Accept-Language: it, en, en-us MIME-Version: 1.0 To: Mailing List GTK+ Subject: Saving the whole GTKTextBuffer state Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi! I think this question is really stupid, but... isn't there a way to get *all* the text displayed in a GtkTextBuffer? I mean, the text plus all the tags, attributes, pixmaps... just like a word processor would have? I'm using a textbuffer, and I'm going to implement a way to save it all; but I've a strong feeling of "reinventing the wheel", doing that... would it be simpler, more standard and more "portable" between different apps to implement such a facility? Thanks, Mano :) -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Germano Rizzo - mano@pluto.linux.it ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Pluto FSUG member - www.pluto.linux.it Linux Registered User #120637 PGP/GPG Public Key at http://gnomermind.sf.net/pubkey.txt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ An rud is annamh is iontach ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From seberino@dt092n42.san.rr.com Thu Feb 21 05:28:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F39A41811A for ; Thu, 21 Feb 2002 05:28:47 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16dqT7-00015o-00 for gtk-list@gnome.org; Thu, 21 Feb 2002 02:28:53 -0800 Date: Thu, 21 Feb 2002 02:28:53 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: ??? passing `gint (*)()' as argument 1 of `gtk_idle_add(gint (*)(void *), void *)' Message-ID: <20020221022853.A4177@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I want to add function with this interface to argument list of gtk_idle_add: gint drawPlots(); But when I do this: gtk_idle_add(drawPlots, NULL); I get this at compile time: passing `gint (*)()' as argument 1 of `gtk_idle_add(gint (*)(void *), void *)' Any ideas? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From rbultje@ronald.bitfreak.net Thu Feb 21 06:06:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id 1392E1811A for ; Thu, 21 Feb 2002 06:06:27 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1LAum4K029518; Thu, 21 Feb 2002 11:56:48 +0100 (CET) Subject: Re: ??? passing `gint (*)()' as argument 1 of `gtk_idle_add(gint (*)(void *), void *)' From: Ronald Bultje To: Christian Seberino Cc: gtk-list@gnome.org In-Reply-To: <20020221022853.A4177@spawar.navy.mil> References: <20020221022853.A4177@spawar.navy.mil> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 21 Feb 2002 12:06:25 +0100 Message-Id: <1014289585.20045.138.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, 2002-02-21 at 11:28, Christian Seberino wrote: > gint drawPlots(); [...] > gtk_idle_add(drawPlots, NULL); Make that "gint drawPlots(gpointer data)", where data is the pointer you give as second argument in the gtk_idle_add() function (in your case: NULL). Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From gbabusia@ulb.ac.be Thu Feb 21 07:14:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from guppy.vub.ac.be (guppy.vub.ac.be [134.184.129.2]) by mail.gnome.org (Postfix) with ESMTP id C2D481915D for ; Thu, 21 Feb 2002 07:14:25 -0500 (EST) Received: from mach.vub.ac.be (mach.vub.ac.be [134.184.129.3]) by guppy.vub.ac.be (8.9.1b+Sun/3.17.1.ap (guppy)) id NAA19631; Thu, 21 Feb 2002 13:13:38 +0100 (MET) for Received: from resu1.ulb.ac.be (resu1.ulb.ac.be [164.15.59.200]) by mach.vub.ac.be (8.9.3/3.13.3.ap (mach)) id NAA09269; Thu, 21 Feb 2002 13:14:23 +0100 (MET) for gtk-list@gnome.org Date: Thu, 21 Feb 2002 13:14:23 +0100 (MET) Message-Id: <200202211214.NAA09269@mach.vub.ac.be> From: Gregory Babusiaux To: gtk-list@gnome.org Subject: problems creating windows X-Mailer: Webmail ULB v2.1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi i got a problem in an application i'm trying to develop. I've created a new window (the main window) with the command window=gtk_window_new(GTK_WINDOW_TOPLEVEL); by pressing on a button , i'd like to create a child window. So that in the callback function i 'd like to create the child window. But i don't know to create the child window window=gtk_window_new(GTK_WINDOW_CHILDLEVEL) doesn't work!! Can anyone help me??? thanks a lot for reading greg, brussels, belgium From flavio@maqplas.com.br Thu Feb 21 09:49:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from destroyer.ns1.com.br (destroyer.ns1.com.br [200.185.44.18]) by mail.gnome.org (Postfix) with ESMTP id E3F70185A4 for ; Thu, 21 Feb 2002 09:49:38 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by destroyer.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1LEnWC5042195; Thu, 21 Feb 2002 11:49:33 -0300 (BRT) Subject: Re: problems creating windows From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Gregory Babusiaux Cc: gtk-list@gnome.org In-Reply-To: <200202211214.NAA09269@mach.vub.ac.be> References: <200202211214.NAA09269@mach.vub.ac.be> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 21 Feb 2002 11:51:28 -0300 Message-Id: <1014303090.1147.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: You should use GTK_WINDOW_TOPLEVEL, GTK_WINDOW_POPUP or GTK_WINDOW_DIALOG Success Flavio Alberto > > window=gtk_window_new(GTK_WINDOW_TOPLEVEL); > > by pressing on a button , i'd like to create a child window. So that in the callback function i 'd like to create the child window. But i don't know to create the child window > > window=gtk_window_new(GTK_WINDOW_CHILDLEVEL) doesn't work!! > From bugcreator@gmx.de Thu Feb 21 10:26:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id 640801845A for ; Thu, 21 Feb 2002 10:26:09 -0500 (EST) Received: (qmail 25109 invoked by uid 0); 21 Feb 2002 15:26:07 -0000 Received: from dialin-145-254-090-159.arcor-ip.net (HELO there) (145.254.90.159) by mail.gmx.net (mp001-rz3) with SMTP; 21 Feb 2002 15:26:07 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Dominic =?iso-8859-1?q?Sacr=E9?= To: gtk-list@gnome.org Subject: Creating a font based on the GTK default font Date: Thu, 21 Feb 2002 16:25:02 +0100 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020221152609.640801845A@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm looking for a way to get the GTK default font - i.e. the font which is normally used for all GTK widgets - and to create a new font based on that. For example, I want to use the same font for a widget, but bold and/or italic, or the same font at a different size. How can I do that? I guess I need to get the font's desciption (how?!), and then modify that string somehow, but maybe there's a better and easier way? Thanks in advance, Dominic From pbd@op.net Thu Feb 21 11:30:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 573EB1921C for ; Thu, 21 Feb 2002 11:30:14 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-502.phlpa.fast.net [209.92.97.248]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA01280; Thu, 21 Feb 2002 11:30:09 -0500 (EST) Message-Id: <200202211630.LAA01280@renoir.op.net> To: Chris Seberino Cc: gtk-list@gnome.org Subject: Re: How access pixmap info like width&height? (1st arg of configure/expose callback nice...) In-reply-to: Your message of "Wed, 20 Feb 2002 00:50:57 PST." <20020220005057.A2332@spawar.navy.mil> Date: Thu, 21 Feb 2002 06:29:44 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Configure and Expose events will use a callback with >the first argument being a widget that has nice >info about pixmap to be redrawn like width, height, >style & "window". > >How can I access this widget on my own??? >Or, how can I get at this >info for a pixmap some other way??? its the widget that *is* the pixmap. that is, if you did: GtkWidget *pixmap = gtk_pixmap_new (...); and then connected to configure_event and expose_event on that pixmap, the widget passed as the first argument is precisely that widget. you can use it yourself anywhere else, except that its allocation (width, height), style and window may not be set until certain events have occured. --p From leidola@newcon.de Thu Feb 21 11:32:53 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id 746B318B47 for ; Thu, 21 Feb 2002 11:32:52 -0500 (EST) Received: from [213.70.108.86] ([213.70.108.86]) by mail-1.newcon.de (8.9.3/8.9.3) with ESMTP id RAA03664; Thu, 21 Feb 2002 17:32:55 +0100 Subject: Re: Gtk+2-style auto* scripts From: Olaf Leidinger To: Germano Rizzo , GTK Mailing List In-Reply-To: <3C74A9C8.1090607@pluto.linux.it> References: <3C74A9C8.1090607@pluto.linux.it> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.12 (Preview Release) Date: 21 Feb 2002 17:35:48 +0100 Message-Id: <1014309355.1319.4.camel@attic> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 21 Feb 2002 09:03:20 +0100 schrieb Germano Rizzo: > Hi! > just for sake of exploring, I've begun to develop a program in GTK+ 2.0. > Now, I'd like to get it packaged properly, so I really need all the > automake/autoconf stuff... in the other programs I made, it was easy to > find another similar program, just... eeeh... "quote" ;) that kind of > stuff from there, and then modify the scripts for my own purposes. The > matter is, I don't know of any simple program that uses GTK2, for now. > Could you address me, please? Or just advice me to a good documentation > that can explain how to make myself such scripts, and/or which > differences are there (if any) with the GTK-1.2-style ones? > Thanks in advance, and compliments for the really good work you're doing > with GTK2, > Mano :) > > PS: I'd like something less complex than GIMP 1.3.x... > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Germano Rizzo - mano@pluto.linux.it > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Pluto FSUG member - www.pluto.linux.it > Linux Registered User #120637 > PGP/GPG Public Key at > http://gnomermind.sf.net/pubkey.txt > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > An rud is annamh is iontach > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > Hi! Try http://developer.gnome.org/dotplan/porting Ciao, Olaf From hp@redhat.com Thu Feb 21 12:29:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 4ABC118AC5 for ; Thu, 21 Feb 2002 12:29:17 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LHTF110866; Thu, 21 Feb 2002 12:29:15 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Dominic =?iso-8859-1?q?Sacr=E9?= Cc: gtk-list@gnome.org Subject: Re: Creating a font based on the GTK default font References: <20020221152609.640801845A@mail.gnome.org> From: Havoc Pennington Date: 21 Feb 2002 12:29:15 -0500 In-Reply-To: <20020221152609.640801845A@mail.gnome.org> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dominic Sacr=E9 writes: >=20 > I'm looking for a way to get the GTK default font - i.e. the font which i= s=20 > normally used for all GTK widgets - and to create a new font based on=20 > that. For example, I want to use the same font for a widget, but bold=20 > and/or italic, or the same font at a different size. How can I do that? > In GTK 1.2 it's a huge nightmare, but the "eel" library has example code. In GTK 2 you'd usually just gtk_widget_modify_font() using a font desc that only has the attribute you want to change set; e.g. just set the weight, but don't set the font family or anything. In GTK 2 you can also use markup labels (see docs on gtk_label_set_markup()= ). =20 Havoc From jeff@nmt.edu Thu Feb 21 12:59:26 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id E9EC918B7E for ; Thu, 21 Feb 2002 12:59:25 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LHxPL0016590 for ; Thu, 21 Feb 2002 10:59:25 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LHxPl6001456 for ; Thu, 21 Feb 2002 10:59:25 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 10:59:25 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: gtk-list@gnome.org Subject: Interesting suid problem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a situation where I am using GTK as a frontend for a databse we have. Everything is fine except for the fact that I want to keep the database password secure. I do not want to store it in the program for obvious reasons so I thought I would save it in an external file and have the program read it on startup. The only decent way that I know of to do this have a special user which can read the file and have the program setuid to run as that user. However, gtk doesn't like being run setuid. I looked at the setuid page because it says: "You must create a helper program instead. For further details, see: http://www.gtk.org/setuid.html" However, the only mention on this page of a helper program would require me to practically rewrite my entire application which is unacceptable. The only information my application receives is from the database and the password file. I don't like setuid applications as much as the next person, but I need to be able to secure the password file while being able to use and write this application in a feasible manner. If anyone else has a suggestion for solving my problem, please let me know (as long as it's not rediculous like the solution on the suid page. Otherwise, is there a way to work around this warning? Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff From castor.fou@wanadoo.fr Thu Feb 21 13:10:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto3.wanadoo.fr (smtp-out-3.wanadoo.fr [193.252.19.233]) by mail.gnome.org (Postfix) with ESMTP id CEBB818176 for ; Thu, 21 Feb 2002 13:10:54 -0500 (EST) Received: from mel-rta2.wanadoo.fr (193.252.19.152) by mel-rto3.wanadoo.fr; 21 Feb 2002 19:10:52 +0100 Received: from pentium (193.250.221.32) by mel-rta2.wanadoo.fr; 21 Feb 2002 19:10:40 +0100 Message-ID: <001401c1bb03$11f61340$20ddfac1@pentium> From: "Castor Fou" To: Subject: GTK Background Date: Thu, 21 Feb 2002 19:10:28 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000B_01C1BB0B.6CBE9BF0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C1BB0B.6CBE9BF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, For my application, I need a transparent background for a GtkText (not a = white background). It is possible? And how can I do this if it is = possible ? ------=_NextPart_000_000B_01C1BB0B.6CBE9BF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
For my application, I need a = transparent background=20 for a GtkText (not a white background). It is possible? And how can I do = this if=20 it is possible ?
------=_NextPart_000_000B_01C1BB0B.6CBE9BF0-- From sven@gimp.org Thu Feb 21 13:11:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9587785.dip.t-dialin.net [217.88.119.133]) by mail.gnome.org (Postfix) with ESMTP id 9D21A18786 for ; Thu, 21 Feb 2002 13:11:27 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16dxga-0000Jx-00; Thu, 21 Feb 2002 19:11:16 +0100 To: Jeff Shipman - SysProg Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem References: From: Sven Neumann Date: 21 Feb 2002 19:11:16 +0100 In-Reply-To: Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Jeff Shipman - SysProg writes: > I have a situation where I am using GTK as > a frontend for a databse we have. Everything > is fine except for the fact that I want to > keep the database password secure. I do > not want to store it in the program for > obvious reasons so I thought I would save > it in an external file and have the program > read it on startup. The only decent way that > I know of to do this have a special user > which can read the file and have the program > setuid to run as that user. However, gtk > doesn't like being run setuid. If you make your GTK+ app run setuid you can as well make the passwd file readable by everyone. How about making the file readable by members of a special group and add authorized users to that group ? Salut, Sven From jeff@nmt.edu Thu Feb 21 13:14:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id 3E100180FF for ; Thu, 21 Feb 2002 13:14:54 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LIEqL0023912; Thu, 21 Feb 2002 11:14:52 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LIEpSG001529; Thu, 21 Feb 2002 11:14:52 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 11:14:51 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: Sven Neumann Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Because we have 1500+ users which are added every semester and EVERYONE needs to be able to read it. There are three different levels of access which are determined upon startup by which group you are in (nothing special, worker, or manager). The access is software enforced and what we want is to make it so normal users cannot read the password file. If they could, they'd be able to just login to the DB and issue commands, viewing information about other users which they should not be able to view. Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff On 21 Feb 2002, Sven Neumann wrote: } Hi, } } Jeff Shipman - SysProg writes: } } > I have a situation where I am using GTK as } > a frontend for a databse we have. Everything } > is fine except for the fact that I want to } > keep the database password secure. I do } > not want to store it in the program for } > obvious reasons so I thought I would save } > it in an external file and have the program } > read it on startup. The only decent way that } > I know of to do this have a special user } > which can read the file and have the program } > setuid to run as that user. However, gtk } > doesn't like being run setuid. } } If you make your GTK+ app run setuid you can as well make the passwd } file readable by everyone. How about making the file readable by } members of a special group and add authorized users to that group ? } } } Salut, Sven } From rsteinke@w-link.net Thu Feb 21 13:23:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id C6636180FF for ; Thu, 21 Feb 2002 13:23:40 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dxsZ-00066F-00; Thu, 21 Feb 2002 10:23:39 -0800 Date: Thu, 21 Feb 2002 10:23:39 -0800 From: rsteinke@w-link.net To: jeff@nmt.edu, sven@gimp.org Subject: Re: Interesting suid problem Cc: gtk-list@gnome.org Message-ID: <3C753B2B.nailI311WSZ5F@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Jeff Shipman - SysProg > > Because we have 1500+ users which are added > every semester and EVERYONE needs to be able > to read it. There are three different levels > of access which are determined upon startup > by which group you are in (nothing special, > worker, or manager). The access is software > enforced and what we want is to make it so > normal users cannot read the password file. > If they could, they'd be able to just login > to the DB and issue commands, viewing information > about other users which they should not > be able to view. > > Jeff Shipman E-Mail: jeff@nmt.edu > Systems Programmer Phone: (505) 835-5748 > NMIMT Computer Center http://www.nmt.edu/~jeff Can't you make the database itself able to enforce user access to certain databases? I think Postgresql can do this. > On 21 Feb 2002, Sven Neumann wrote: > > } Hi, > } > } Jeff Shipman - SysProg writes: > } > } > I have a situation where I am using GTK as > } > a frontend for a databse we have. Everything > } > is fine except for the fact that I want to > } > keep the database password secure. I do > } > not want to store it in the program for > } > obvious reasons so I thought I would save > } > it in an external file and have the program > } > read it on startup. The only decent way that > } > I know of to do this have a special user > } > which can read the file and have the program > } > setuid to run as that user. However, gtk > } > doesn't like being run setuid. > } > } If you make your GTK+ app run setuid you can as well make the passwd > } file readable by everyone. How about making the file readable by > } members of a special group and add authorized users to that group ? > } > } > } Salut, Sven > } From jeff@nmt.edu Thu Feb 21 13:25:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id C200E18D62 for ; Thu, 21 Feb 2002 13:25:54 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LIPrL0027062; Thu, 21 Feb 2002 11:25:53 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LIPrnw001588; Thu, 21 Feb 2002 11:25:53 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 11:25:53 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: rsteinke@w-link.net Cc: sven@gimp.org, Subject: Re: Interesting suid problem In-Reply-To: <3C753B2B.nailI311WSZ5F@w-link.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm using Oracle and some columns of some tables should be viewable to some users while other columns of the same table are viewable. I would have to write out a billion different queries, different ones for each access level to do this. Kinda infeasible, IMO espcially since our queries may change often depending on new features we add to the software. Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: } } Can't you make the database itself able to enforce user access } to certain databases? I think Postgresql can do this. From rsteinke@w-link.net Thu Feb 21 13:33:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id D300418338 for ; Thu, 21 Feb 2002 13:33:49 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dy2O-00067Q-00; Thu, 21 Feb 2002 10:33:48 -0800 Date: Thu, 21 Feb 2002 10:33:48 -0800 From: rsteinke@w-link.net To: jeff@nmt.edu Subject: Re: Interesting suid problem Cc: sven@gimp.org, gtk-list@gnome.org Message-ID: <3C753D8C.nailI551BDQ9C@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Jeff Shipman - SysProg > > I'm using Oracle and some columns of some > tables should be viewable to some users while > other columns of the same table are viewable. > I would have to write out a billion different > queries, different ones for each access > level to do this. Kinda infeasible, IMO espcially > since our queries may change often depending > on new features we add to the software. > > Jeff Shipman E-Mail: jeff@nmt.edu > Systems Programmer Phone: (505) 835-5748 > NMIMT Computer Center http://www.nmt.edu/~jeff > > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: > } > } Can't you make the database itself able to enforce user access > } to certain databases? I think Postgresql can do this. That's what shell scripts are for. Ron Steinke From jeff@nmt.edu Thu Feb 21 13:34:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailhost.nmt.edu (mailhost.nmt.edu [129.138.4.52]) by mail.gnome.org (Postfix) with ESMTP id 13E56190D9 for ; Thu, 21 Feb 2002 13:34:58 -0500 (EST) Received: from reznor.tcct.nmt.edu (root@reznor.tcct.nmt.edu [129.138.3.157]) by mailhost.nmt.edu (8.12.2/8.12.2) with ESMTP id g1LIYvL0029268; Thu, 21 Feb 2002 11:34:57 -0700 Received: from localhost (jeff@localhost) by reznor.tcct.nmt.edu (8.12.1/8.12.1) with ESMTP id g1LIYumE001636; Thu, 21 Feb 2002 11:34:57 -0700 X-Authentication-Warning: reznor.tcct.nmt.edu: jeff owned process doing -bs Date: Thu, 21 Feb 2002 11:34:56 -0700 (MST) From: Jeff Shipman - SysProg X-X-Sender: jeff@reznor.tcct.nmt.edu To: rsteinke@w-link.net Cc: sven@gimp.org, Subject: Re: Interesting suid problem In-Reply-To: <3C753D8C.nailI551BDQ9C@w-link.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Care to elaborate? Jeff Shipman E-Mail: jeff@nmt.edu Systems Programmer Phone: (505) 835-5748 NMIMT Computer Center http://www.nmt.edu/~jeff On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: } From: Jeff Shipman - SysProg } > } > I'm using Oracle and some columns of some } > tables should be viewable to some users while } > other columns of the same table are viewable. } > I would have to write out a billion different } > queries, different ones for each access } > level to do this. Kinda infeasible, IMO espcially } > since our queries may change often depending } > on new features we add to the software. } > } > Jeff Shipman E-Mail: jeff@nmt.edu } > Systems Programmer Phone: (505) 835-5748 } > NMIMT Computer Center http://www.nmt.edu/~jeff } > } > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: } > } } > } Can't you make the database itself able to enforce user access } > } to certain databases? I think Postgresql can do this. } } That's what shell scripts are for. } } Ron Steinke } From rsteinke@w-link.net Thu Feb 21 13:45:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 3BF6018A93 for ; Thu, 21 Feb 2002 13:45:43 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16dyDu-00069g-00; Thu, 21 Feb 2002 10:45:42 -0800 Date: Thu, 21 Feb 2002 10:45:41 -0800 From: rsteinke@w-link.net To: jeff@nmt.edu Subject: Re: Interesting suid problem Cc: sven@gimp.org, gtk-list@gnome.org Message-ID: <3C754055.nailI7M1HNNAG@w-link.net> References: In-Reply-To: User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Jeff Shipman - SysProg > > Care to elaborate? > > Jeff Shipman E-Mail: jeff@nmt.edu > Systems Programmer Phone: (505) 835-5748 > NMIMT Computer Center http://www.nmt.edu/~jeff > > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: > > } From: Jeff Shipman - SysProg > } > > } > I'm using Oracle and some columns of some > } > tables should be viewable to some users while > } > other columns of the same table are viewable. > } > I would have to write out a billion different > } > queries, different ones for each access > } > level to do this. Kinda infeasible, IMO espcially > } > since our queries may change often depending > } > on new features we add to the software. > } > > } > Jeff Shipman E-Mail: jeff@nmt.edu > } > Systems Programmer Phone: (505) 835-5748 > } > NMIMT Computer Center http://www.nmt.edu/~jeff > } > > } > On Thu, 21 Feb 2002 rsteinke@w-link.net wrote: > } > } > } > } Can't you make the database itself able to enforce user access > } > } to certain databases? I think Postgresql can do this. > } > } That's what shell scripts are for. > } > } Ron Steinke > } I'm assuming oracle has some command line interface/way to send batch commands or something. Write a shell script for each set of permissions (I'm assuming that, while you have many, many users, there are only about three or four access levels) that is passed a user name and writes to stdout the sql commands necessary to create that user with the appropriate permissions. Then, write a shell script that loop through the list of users you've been given, calls the appropriate permission-generating shell script, and pipes the output to oracle. This will require maintainance of the shell scripts as you update your database version/requirements, but not more so than you would need ysing any other means of enforcing this. You can also write little update scripts to change the permissions of users from one level to another in mid-stream, if that's necessary. This method is also probably more secure than having a separate password file, as it reduces the possible number of points of failure. All pretty standard sysadmin stuff. Ron Steinke From hp@redhat.com Thu Feb 21 14:33:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 5DB3718A7E for ; Thu, 21 Feb 2002 14:33:37 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LJXZ710894; Thu, 21 Feb 2002 14:33:35 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Jeff Shipman - SysProg Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem References: From: Havoc Pennington Date: 21 Feb 2002 14:33:35 -0500 In-Reply-To: Message-ID: Lines: 56 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Jeff Shipman - SysProg writes: > I have a situation where I am using GTK as > a frontend for a databse we have. Everything > is fine except for the fact that I want to > keep the database password secure. I do > not want to store it in the program for > obvious reasons so I thought I would save > it in an external file and have the program > read it on startup. The only decent way that > I know of to do this have a special user > which can read the file and have the program > setuid to run as that user. However, gtk > doesn't like being run setuid. I don't see why the helper program would be that hard - especially with GTK 2 and the g_spawn_* family of functions. You have a small helper app, it spits the database password to a pipe, your app reads the password from the pipe. Should be maybe 500 lines of code. It's a good thing GTK doesn't let you do what you want, because the result would be a giant security hole. The limitation here is not imposed by GTK; it's imposed by security concerns. If you don't care about security, then chmod 666 your file. If you do care about security, you can't make a GUI application setuid. End of story. There is nothing GTK can do about it - other than have the safety check to keep you from doing the wrong thing. > However, the only mention on this page of > a helper program would require me to practically > rewrite my entire application which is > unacceptable. Well, the fact that you don't have time to fix a bug, doesn't mean that the bug goes away. You either have to fix the app, or have it be a giant security hole. There isn't a magic solution. > Otherwise, is there a way to work around this warning? Sure, you can hack your local copy of GTK to contain a giant security hole... it's a trivial patch to gtkmain.c. But it's easier (and equivalent from a security standpoint) to chmod 666 the files you want to access. The warning is amazingly enough there for a reason. ;-) The warning is a symptom, not the underlying problem. The underlying problem is the security hole inherent in the application's design. Removing the warning about the security hole doesn't mean the security hole is now gone... Havoc From bl_nero@o2.pl Thu Feb 21 16:03:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rekin.go2.pl (rekin4.go2.pl [212.126.20.8]) by mail.gnome.org (Postfix) with ESMTP id 0A862180F4 for ; Thu, 21 Feb 2002 16:03:25 -0500 (EST) Received: from s (pb75.piotrkow.cvx.ppp.tpnet.pl [213.77.225.75]) by rekin.go2.pl (Mailer_v2.01) with SMTP id 78C786EE9F for ; Thu, 21 Feb 2002 22:03:01 +0100 (CET) Message-ID: <000701c1bb1b$255c4680$4be14dd5@s> From: "Bartosz \"Neron\" Leper" To: "GTK-list" Subject: GTK and non-monospace fonts Date: Thu, 21 Feb 2002 19:25:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello there, I'm new here and I'm from Poland, so I'm sorry for my weak English. But I'll try to explain what's on my mind. I'm using Mandrake Linux and I've experienced some problems with displaying GTK widgets: all applications I have that are written using GTK are calculating word length incorrectly, which causes labels unreadable in some cases. It happens when I use non-monospace fonts (in Poland we say: proportional fonts). Nearly each word is displayed correctly, but every space between words is somehow "strange": sometimes it's normal, somtimes it's illogically wide (when the word consists of narrow letters, like 'iiii', and sometimes even "space" means "backspace" (when the word consists of many wide letters, like 'WWWWW'). I think it's because GTK (or GDK?) counts word width as if it was written in monospace font (like Courier)! Simmilar thing happens in edit boxes (sorry for that Win32 terminology), and it's even worse: when I try to put caret into box using mouse, I click between two letters, but the actual point of inserting text appears to be somewhere else - it's also sounted using monospace font width! I am running GTK version 1.2.8-6mdk, but I don't know if it really matters, because nearly all applications I have are pre-compiled. Please help me, because it's really annoying! I don't know if I refer to appropriate mailing list; if you know some other places to find some info, please mail me. Thanks in anvance, Nero -- ------====[Bartosz "Neron" Leper]====------ mailto:bl_nero@o2.pl | IRC: #warsztat www.nerosite.prv.pl | www.programex.prv.pl ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From v.j.arkesteijn@utwente.nl Thu Feb 21 16:28:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ken (inbel240061.inbel.utwente.nl [130.89.240.61]) by mail.gnome.org (Postfix) with ESMTP id 0AFD3191E6 for ; Thu, 21 Feb 2002 16:28:08 -0500 (EST) Received: by ken (Postfix, from userid 1000) id CD45F19E5; Thu, 21 Feb 2002 22:30:55 +0100 (CET) Date: Thu, 21 Feb 2002 22:30:54 +0100 From: Vincent Arkesteijn To: gtk-list@gnome.org Subject: Re: Interesting suid problem Message-ID: <20020221223053.A6053@ken> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jeff@nmt.edu on Thu, Feb 21, 2002 at 10:59:25AM -0700 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, On Thu, Feb 21, 2002 at 10:59:25AM -0700, Jeff Shipman - SysProg wrote: > Everything > is fine except for the fact that I want to > keep the database password secure. I do > not want to store it in the program for > obvious reasons Why? Just put the password in the program, and give your users execute permission, but no read permission on the program. It may not be too elegant, and it's a bit clumsy when you want to change the password, but it's the simplest solution. Regards, Vincent. From Valdis.Kletnieks@vt.edu Thu Feb 21 16:39:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id CEE2F18DC8 for ; Thu, 21 Feb 2002 16:39:48 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1LLdlVj032087; Thu, 21 Feb 2002 16:39:47 -0500 Message-Id: <200202212139.g1LLdlVj032087@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Vincent Arkesteijn Cc: gtk-list@gnome.org Subject: Re: Interesting suid problem In-Reply-To: Your message of "Thu, 21 Feb 2002 22:30:54 +0100." <20020221223053.A6053@ken> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ <20020221223053.A6053@ken> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1644264643P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 21 Feb 2002 16:39:47 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_1644264643P Content-Type: text/plain; charset=us-ascii On Thu, 21 Feb 2002 22:30:54 +0100, Vincent Arkesteijn said: > Why? Just put the password in the program, and give your users > execute permission, but no read permission on the program. It > may not be too elegant, and it's a bit clumsy when you want to > change the password, but it's the simplest solution. Still vulnerable to attack via gdb/dbx or ptrace(), but that's a question of whether your threat model includes somebody both that determined and skilled... -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_1644264643P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8dWkjcC3lWbTT17ARAiqDAJ9wv8Ksi6m/yuvMqGMJYz+ME2z0pgCfYJ+N IJO+WswuWgKZbxpDb1WIXJo= =qAM+ -----END PGP SIGNATURE----- --==_Exmh_1644264643P-- From hp@redhat.com Thu Feb 21 16:53:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 6DF1A182AF for ; Thu, 21 Feb 2002 16:53:23 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LLrGh10939; Thu, 21 Feb 2002 16:53:16 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Bartosz \"Neron\" Leper" Cc: "GTK-list" Subject: Re: GTK and non-monospace fonts References: <000701c1bb1b$255c4680$4be14dd5@s> From: Havoc Pennington Date: 21 Feb 2002 16:53:16 -0500 In-Reply-To: <000701c1bb1b$255c4680$4be14dd5@s> Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Bartosz \"Neron\" Leper" writes: > I'm using Mandrake Linux and I've experienced some problems with displaying > GTK widgets: all applications I have that are written using GTK are > calculating word length incorrectly, which causes labels unreadable in some > cases. This doesn't happen for most people; it's probably a bug in some specific aspect of your setup - either the old GTK version, the X server, the font you're using, or the like. Havoc From bugcreator@gmx.de Thu Feb 21 16:57:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mail.gnome.org (Postfix) with SMTP id 186C419275 for ; Thu, 21 Feb 2002 16:57:46 -0500 (EST) Received: (qmail 25147 invoked by uid 0); 21 Feb 2002 21:57:44 -0000 Received: from a1f63.pppool.de (HELO there) (213.6.31.99) by mail.gmx.net (mp009-rz3) with SMTP; 21 Feb 2002 21:57:44 -0000 Content-Type: text/plain; charset="iso-8859-1" From: Dominic =?iso-8859-1?q?Sacr=E9?= To: Havoc Pennington Subject: Re: Creating a font based on the GTK default font Date: Thu, 21 Feb 2002 22:56:08 +0100 X-Mailer: KMail [version 1.3.1] References: <20020221152609.640801845A@mail.gnome.org> In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: gtk-list@gnome.org Message-Id: <20020221215746.186C419275@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thursday 21 February 2002 18:29, Havoc Pennington wrote: > Dominic Sacré writes: > > I'm looking for a way to get the GTK default font - i.e. the font > > which is normally used for all GTK widgets - and to create a new font > > based on that. For example, I want to use the same font for a widget, > > but bold and/or italic, or the same font at a different size. How can > > I do that? > > In GTK 1.2 it's a huge nightmare, but the "eel" library has example > code. Hmm, a nightmare, indeed... But is there no reasonable way to get at least the name (logical font description) of the default font? > In GTK 2 you'd usually just gtk_widget_modify_font() using a font desc > that only has the attribute you want to change set; e.g. just set the > weight, but don't set the font family or anything. > > In GTK 2 you can also use markup labels (see docs on > gtk_label_set_markup()). Sounds great... I should really consider porting my code to GTK2 soon... Thanks, Dominic From seberino@dt092n42.san.rr.com Thu Feb 21 16:58:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 877211927C for ; Thu, 21 Feb 2002 16:58:16 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16e1EE-000081-00; Thu, 21 Feb 2002 13:58:14 -0800 Date: Thu, 21 Feb 2002 13:58:14 -0800 From: Christian Seberino To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: How access pixmap info like width&height? (1st arg of configure/expose callback nice...) Message-ID: <20020221135814.A457@spawar.navy.mil> References: <20020220005057.A2332@spawar.navy.mil> <200202211630.LAA01280@renoir.op.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202211630.LAA01280@renoir.op.net>; from pbd@op.net on Thu, Feb 21, 2002 at 06:29:44AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I did some experimentation and printed out the "drawingarea" pointer that pixmap rests on. This first argument turned out to be the same address as the drawingarea rather than the pixmap. I wrote some code that assumed this was true and it worked. Are you sure pixmap is the first arg? Maybe it is in some situations but not others? Chris On Thu, Feb 21, 2002 at 06:29:44AM -0500, Paul Davis wrote: > >Configure and Expose events will use a callback with > >the first argument being a widget that has nice > >info about pixmap to be redrawn like width, height, > >style & "window". > > > >How can I access this widget on my own??? > >Or, how can I get at this > >info for a pixmap some other way??? > > its the widget that *is* the pixmap. that is, if you did: > > GtkWidget *pixmap = gtk_pixmap_new (...); > > and then connected to configure_event and expose_event on that pixmap, > the widget passed as the first argument is precisely that widget. > > you can use it yourself anywhere else, except that its allocation > (width, height), style and window may not be set until certain events > have occured. > > --p -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From hp@redhat.com Thu Feb 21 17:17:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id B7595180E8 for ; Thu, 21 Feb 2002 17:17:45 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1LMHiC26415; Thu, 21 Feb 2002 17:17:44 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Dominic =?iso-8859-1?q?Sacr=E9?= Cc: gtk-list@gnome.org Subject: Re: Creating a font based on the GTK default font References: <20020221152609.640801845A@mail.gnome.org> <20020221215746.186C419275@mail.gnome.org> From: Havoc Pennington Date: 21 Feb 2002 17:17:43 -0500 In-Reply-To: <20020221215746.186C419275@mail.gnome.org> Message-ID: Lines: 9 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dominic Sacr=E9 writes:=20 > Hmm, a nightmare, indeed... But is there no reasonable way to get at least > the name (logical font description) of the default font? Not really... you have to use GdkFontPrivate I think. Eel does it somehow or other. Havoc From scherfa@web.de Thu Feb 21 18:59:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp01.web.de [194.45.170.210]) by mail.gnome.org (Postfix) with ESMTP id 1CDE0180D9 for ; Thu, 21 Feb 2002 18:59:21 -0500 (EST) Received: from [143.93.58.49] (helo=rmpc47.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.28 #21) id 16e37P-0000tx-00 for gtk-list@gnome.org; Fri, 22 Feb 2002 00:59:20 +0100 Subject: GtkTreeModel Rows ???? From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 22 Feb 2002 00:58:09 +0100 Message-Id: <1014335890.7997.3.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, i want to know how do i get the number of rows that are inside a GtkTreeModel. The depth of my model is always 1 so im using it instead of a gtkclist. Ok i could count the row number via gtk_tree_model_iter_next but i think thats not a clear way to go. So how could i get the number of rows that are stored inside my gtktreemodel ? Thanks for hints.. Andreas -- Andreas Scherf ICQ: 52910964 scherfa@web.de From rtriay@avantel.net Thu Feb 21 22:50:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from c003.snv.cp.net (c003-h004.c003.snv.cp.net [209.228.32.218]) by mail.gnome.org (Postfix) with SMTP id 46B1618118 for ; Thu, 21 Feb 2002 22:50:15 -0500 (EST) Received: (cpmta 5744 invoked from network); 21 Feb 2002 19:50:11 -0800 Received: from 148.240.116.43 (HELO proxyplus.universe) by smtp.avantel.net (209.228.32.218) with SMTP; 21 Feb 2002 19:50:11 -0800 X-Sent: 22 Feb 2002 03:50:11 GMT Received: from triay.net [10.0.0.2] by Proxy+; Thu, 21 Feb 2002 21:47:14 -0600 for Subject: Re: gtk config From: Ramon Alberto Triay Espinosa To: gtk-list@gnome.org Content-Type: multipart/mixed; boundary="=-Am5+mOsrxaf0NmTBZcru" X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 21:54:30 -0500 Mime-Version: 1.0 Message-Id: <20020222035015.46B1618118@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-Am5+mOsrxaf0NmTBZcru Content-Type: text/plain ops! I answered this one , but didn't reply to the group... my solution was kind of old school, and Chris made it with RPM's, i hope someone else's find this helpful. OK SALUDOS!!! rtriay :) --=-Am5+mOsrxaf0NmTBZcru Content-Disposition: inline Content-Description: Reenviado mensaje - Re: gtk config Content-Type: message/rfc822 Subject: Re: gtk config From: Ramon Alberto Triay Espinosa To: cpollock@vvm.com In-Reply-To: <200202202325.g1KNPNVh005874@ns.vvm.com> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution (0.9 - Preview Release) Date: 21 Feb 2002 00:18:34 -0500 Mime-Version: 1.0 X-Evolution: 00000001-0010 O.K. so you're suppoused to have the version of GTK that comes with the default instalation of Mandrake 8.1, so what you have to do is exactly what the message says: check the content of the '.bashrc' file in your home path (/home/rtriay in my case) with any text editor and check if the path to the file 'gtk-config' is in the PATH environment variable (a line that looks exactly like the MSDOS one PATH=::...: , how to know where this 'gtk-config' file is? well issue the comand "find / -name 'gtk-config' -depth" (without the double quotation marks), and read the output (that means 'find the file gtk-config begining ftom the root directory and all the subdirectories down), you have to be root or belong to its group to have access to the main system directories where i'm sure gtk-config is located. Finally, when you get the path add the following lines to your '.bashrc' file: PATH=$PATH: EXPORT PATH That's it! now you can try again to install your BookBase. Maybe you'll get another error message similar to this one but asking for the location on glib-config, just follow the same steps described above but for this file. Oh! I forgot to tell, as you see i assumed that you're using the bourne again shell (bash), default to all users in Mandrake. This actions will enable the use of gtk-config/glib-config ONLY to the user whose '.bashrc' file is being changed, if you want to make this path available to all users, append the same changes in '/etc/profile' file, again you'll need to be root or belong to its group to do this. GOOD LUCK!!!! SALUDOS!!! rtriay :) El 20 Feb 2002 17:30:07 -0600, Chris Pollock escribió: > Linux newbie here. I'm trying to install a program named BookBase. During > the installation I get 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: error: Cannot find GTK: Is gtk-config in path? > > As far as I know GTK was installed when I installed Mandrake. I'm running > Mandrake 8.1 Any help for this lost newbie would be appreciated. > > Chris > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > --=-Am5+mOsrxaf0NmTBZcru-- From hvv@hippo.ru Fri Feb 22 02:43:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [195.218.232.218]) by mail.gnome.org (Postfix) with ESMTP id 6D5E618206 for ; Fri, 22 Feb 2002 02:43:53 -0500 (EST) Date: Fri, 22 Feb 2002 12:40:45 +0400 (SAMT) From: Vlad Harchev X-Sender: hvv@localhost.localdomain To: "Bartosz \"Neron\" Leper" Cc: GTK-list Subject: Re: GTK and non-monospace fonts In-Reply-To: <000701c1bb1b$255c4680$4be14dd5@s> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Thu, 21 Feb 2002, Bartosz "Neron" Leper wrote: Hi, That was a bug in gdk fixed personally by me - the standard gtk-1.2.10 already contains the fix - so please upgrade your gtk to version 1.2.10. Best regards, -Vlad > Hello there, > > I'm new here and I'm from Poland, so I'm sorry for my weak English. But I'll > try to explain what's on my mind. > > I'm using Mandrake Linux and I've experienced some problems with displaying > GTK widgets: all applications I have that are written using GTK are > calculating word length incorrectly, which causes labels unreadable in some > cases. > > It happens when I use non-monospace fonts (in Poland we say: proportional > fonts). Nearly each word is displayed correctly, but every space between > words is somehow "strange": sometimes it's normal, somtimes it's illogically > wide (when the word consists of narrow letters, like 'iiii', and sometimes > even "space" means "backspace" (when the word consists of many wide letters, > like 'WWWWW'). I think it's because GTK (or GDK?) counts word width as if it > was written in monospace font (like Courier)! > > Simmilar thing happens in edit boxes (sorry for that Win32 terminology), and > it's even worse: when I try to put caret into box using mouse, I click > between two letters, but the actual point of inserting text appears to be > somewhere else - it's also sounted using monospace font width! > > I am running GTK version 1.2.8-6mdk, but I don't know if it really matters, > because nearly all applications I have are pre-compiled. > > Please help me, because it's really annoying! I don't know if I refer to > appropriate mailing list; if you know some other places to find some info, > please mail me. > > Thanks in anvance, > Nero > > -- > ------====[Bartosz "Neron" Leper]====------ > mailto:bl_nero@o2.pl | IRC: #warsztat > www.nerosite.prv.pl | www.programex.prv.pl > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From shaffei@softhome.net Fri Feb 22 04:23:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from waltz.SoftHome.net (unknown [66.54.152.30]) by mail.gnome.org (Postfix) with SMTP id B576718239 for ; Fri, 22 Feb 2002 04:23:50 -0500 (EST) Received: (qmail 6106 invoked by uid 417); 22 Feb 2002 09:23:50 -0000 Message-ID: <20020222092350.6105.qmail@softhome.net> From: shaffei@softhome.net To: gtk-list@gnome.org Subject: How to remove glib 1.2.9 from my system? Date: Fri, 22 Feb 2002 09:23:50 GMT Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Sender: shaffei@softhome.net Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I've installed glib-1.2.9 on my linux box and I didn't know that glib-1.2.10. When I "./configure" many programs it say that I have to delete the older version. Can you help me removing the 1.2.9? Thank you for your help. Yours, Ibrahim El-Shafei From pvosta@unionbio-eu.com Fri Feb 22 08:38:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 0D5D118981 for ; Fri, 22 Feb 2002 08:38:36 -0500 (EST) Received: (qmail 13960 invoked from network); 22 Feb 2002 13:34:50 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 22 Feb 2002 13:34:50 -0000 Message-ID: <3C764994.376E68C1@unionbio-eu.com> Date: Fri, 22 Feb 2002 14:37:24 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: g_signal_connect_swapped Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am studying the "helloworld.c" example on the gtk.org website, but as the examples are already a mixture of GTK1.2 and GTK2.0, things do not compile as it should. "g_signal_connect_swapped" doesn't compile. eg.: g_signal_connect_swapped (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (gtk_widget_destroy), GTK_OBJECT (window)); Is there still a manual somewhere that describes the GTK1.2 version of GTK ? It seems as if I stepped into GTK in the middle of a transition, and this causes some confusion. Also I will probably still use GTK1.2 for a while as I cannot take the risk of instability of the new GTK2.0 version which will probably be the case in the beginning. Best regards, Peter From hp@redhat.com Fri Feb 22 10:54:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id C6382189D6 for ; Fri, 22 Feb 2002 10:54:00 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1MFrX323242; Fri, 22 Feb 2002 10:53:33 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: pvosta@unionbio-eu.com Cc: GTK-list Subject: Re: g_signal_connect_swapped References: <3C764994.376E68C1@unionbio-eu.com> From: Havoc Pennington Date: 22 Feb 2002 10:53:32 -0500 In-Reply-To: <3C764994.376E68C1@unionbio-eu.com> Message-ID: Lines: 9 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Peter Van Osta writes: > Is there still a manual somewhere that describes the GTK1.2 version of > GTK ? If you download the GTK 1.2 tarballs (gtk+-1.2.x.tar.gz) there's a copy of the 1.2 tutorial in there. Havoc From pbd@op.net Fri Feb 22 11:23:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 8DA3918D82 for ; Fri, 22 Feb 2002 11:23:32 -0500 (EST) Received: from op.net (maxtnt02-141.phlpa.fast.net [209.92.227.141]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA18328 for ; Fri, 22 Feb 2002 11:23:31 -0500 (EST) Received: (from pbd@localhost) by op.net (8.10.1/8.10.1) id g1MGLsh17460; Fri, 22 Feb 2002 11:21:54 -0500 Date: Fri, 22 Feb 2002 11:21:54 -0500 Message-Id: <200202221621.g1MGLsh17460@op.net> From: Paul Davis To: gtk-list@gnome.org Subject: interesting thread issue at exit() Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: GDK registers an exit function to be called on normal process termination. This function will be called from whatever thread calls exit(2). However, the function is not thread safe, and if the thread calling exit(2) is not the "main GUI thread", many nasty things can happen. This is not fixed in GTK+ 1.3/2.0, at least not as of a month or two ago. Do you folks consider this a genuine bug, or a design constraint? --p From hp@redhat.com Fri Feb 22 12:10:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 31D09191B6 for ; Fri, 22 Feb 2002 12:10:19 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1MHA8B12607; Fri, 22 Feb 2002 12:10:08 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Paul Davis Cc: gtk-list@gnome.org Subject: Re: interesting thread issue at exit() References: <200202221621.g1MGLsh17460@op.net> From: Havoc Pennington Date: 22 Feb 2002 12:10:08 -0500 In-Reply-To: <200202221621.g1MGLsh17460@op.net> Message-ID: Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Paul Davis writes: > GDK registers an exit function to be called on normal process > termination. This function will be called from whatever thread calls > exit(2). However, the function is not thread safe, and if the thread > calling exit(2) is not the "main GUI thread", many nasty things can > happen. > > This is not fixed in GTK+ 1.3/2.0, at least not as of a month or two > ago. Do you folks consider this a genuine bug, or a design constraint? > Fri Feb 1 08:57:38 2002 Owen Taylor * gtk/gtkmain.c (gtk_exit_func): Remove this useless atexit handler. (existance pointed out by Stefan Kost) 2001-02-19 Havoc Pennington * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it (gdk_init_check): no atexit func atexit functions are completely evil - the intent is to have none. Havoc From scherfa@web.de Fri Feb 22 13:21:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id C82D218AFE for ; Fri, 22 Feb 2002 13:21:37 -0500 (EST) Received: from [143.93.58.42] (helo=rmpc40.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.28 #21) id 16eKK8-00031H-00 for gtk-list@gnome.org; Fri, 22 Feb 2002 19:21:36 +0100 Subject: GtkTreeModel patch ... From: Andreas Scherf To: Gtk Liste Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 22 Feb 2002 19:20:17 +0100 Message-Id: <1014402020.10567.3.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello ,i have written a small patch to get the rows from the GtkTreeModel: ---- gint gtk_tree_model_get_n_rows (GtkTreeModel *model) { gint rows=0; GtkTreeIter iter; if (gtk_tree_model_get_flags (GTK_TREE_MODEL(model))!=GTK_TREE_MODEL_LIST_ONLY) return -1; gtk_tree_model_get_iter_root (GTK_TREE_MODEL(model), &iter); do { rows++; }while ( gtk_tree_model_iter_next(GTK_TREE_MODEL(model),&iter) ); return rows; } ---- So i want to get the rows from a GtkTreeModel (i wanna use it as gtkclist ..) But if i test with gtk_tree_model_get_flags if it was a list .. i didn`t get what i expected there did i misunderstood gtk_tree_model flags ??? Thanks -- Andreas Scherf ICQ: 52910964 scherfa@web.de From MBOWMAN@arinc.com Fri Feb 22 18:22:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from exanpcn4.arinc.com (outmail2.arinc.com [144.243.4.70]) by mail.gnome.org (Postfix) with ESMTP id CBE8E18BBD for ; Fri, 22 Feb 2002 18:22:16 -0500 (EST) Received: from exanpcn1.arinc.com (unverified) by exanpcn4.arinc.com (Content Technologies SMTPRS 4.1.5) with ESMTP id for ; Fri, 22 Feb 2002 18:23:33 -0500 Received: by exanpcn1.arinc.com with Internet Mail Service (5.5.2653.19) id ; Fri, 22 Feb 2002 18:22:30 -0500 Message-ID: <05A70E173104D511A5840002A55C37EE1C478B@exanpmb2.arinc.com> From: "Bowman, Michael W. (MBOWMAN)" To: "'gtk-list@gnome.org'" Subject: How do I find out an object's type using the GTK+ (1.2) type syst em? Date: Fri, 22 Feb 2002 18:22:28 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have a situation like the following: void setParms(GtkOpenmapProj* proj, ...) { ... class->normalize_latitude(proj, ...); } GtkOpenmapProj is a base class that has multiple sub-types. Each of the subtypes may override the normalize_latitude method of the GtkOpenmapProj class. However, I don't know which of the subtypes is passed into my function, just that its some sub-type of GtkOpenmapProj. How do I find which type identifier to feed to gtk_type_class() so that I can obtain the class struct for the proper sub-type (and use the proper normalize_latitude function)? How does GTK+ handle polymorphism? Thanks for any help. By the way, I'm assuming use of the GTK+ 1.2 version of the type system. I understand that the system may change some with 2.0, but I'm trying to learn the "simpler" system first. It also helps that a book is available for the earlier system (GGAD). --------------------------------- Michael Bowman mbowman@arinc.com (410) 266-4876 From kasonhuang@kinposh.com.cn Fri Feb 22 20:02:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id D3DF8188C4 for ; Fri, 22 Feb 2002 20:02:12 -0500 (EST) Subject: About the focus move in table? MIME-Version: 1.0 Content-Type: multipart/related; boundary="----_=_NextPart_001_01C1BC05.93F9C4C4"; type="text/html" Date: Sat, 23 Feb 2002 09:01:08 +0800 content-class: urn:content-classes:message x-mimeole: Produced By Microsoft Exchange V6.0.5762.3 Message-ID: <92CD479384374A439EFA0077E7C50F822476B1@kes01.kinposh.com.cn> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: About the focus move in table? Thread-Index: AcG8BZGUSrsvSSg0Eda2ugCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1BC05.93F9C4C4 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable About the focus move in table?

hi guys:
anyone could tell = how to change the focus in three tables(there is a lot of buttons in = each table) with keyboard.
and I find = that  the buttons focus in one table couldn't be changed = smoothly.for example,when you press left key on keyboard,you expect the = focus will move to the left button,however the focus maybe move to the a = button on the bottom of the table.

a table's layout like = following picture:(24 buttons in one table)

3D"ole0.bmp"

when focus in 14 = button,i press down key on keyboard.i expect the focus will move to the = 20 button,the result is the focus moves to the15 button or other = button,not 20 button.the same thing is happen to the 18,20 button.do = anyone knows how to handle with the problem? or how to control the focus = in a table?

Thanks in = advance!
kason



------_=_NextPart_001_01C1BC05.93F9C4C4 Content-Type: image/bmp; name="ole0.bmp" Content-Transfer-Encoding: base64 Content-Description: ole0.bmp Content-Location: No%20AttachName Qk2KLAAAAAAAAD4AAAAoAAAAyQEAAL0AAAABAAEAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAA AP///wD///////////////////////////////////////////////////////////////////// //////+AAAD///////////////////////////////////////////////////////////////// //////////+AAAD///////////////////////////////////////////////////////////// //////////////+AAAD///////////////////////////////////////////////////////// //////////////////+AAAD///////////////////////////////////////////////////// //////////////////////+AAAD///////////////////////////////////////////////// //////////////////////////+AAAD///////////////////////////////////////////// //////////////////////////////+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/+AAAD//f//////v////////f////////////////// +///////////////////////////////////9/+AAAD//f//////v////3///f////////8D//// ////+//////////////n////////////////////9/+AAAD//f//////v////x///f/////3///8 ////////+//////////////3////////////////////9/+AAAD//f//////vwAAP4Af/f/////w AH/+////////+/////////4AD//7////////////////////9/+AAAD//f//////v7//v+///f// ///8///+////////+/////////4////5////////////////////9/+AAAD//fgAHz//v8////f/ /f//////H//+////////+/////////+P///9////////////////////9/+AAAD//f3//7//v+H/ //f//f//////4//9////////+//////////w///8AH//////////////////9/+AAAD//f5//7// v/4///f//f///////H/5////////+//////////+P/4C/5//////////////////9/+AAAD//f8P /9//v/+//+f//f///////7wH////////+///////////n/3/P///////////////////9/+AAAD/ /f/x/9//v/+//+///f///////7+f////////+///////////3/3/v///////////////////9/+A AAD//f/8/8//v/+//+///f///////7/n////////+///////////3/3/3/////////////////// 9/+AAAD//f/+/+//v/+/+E///f///////7/3////////+///////////3/3/z/////////////// ////9/+AAAD//f//f/f/v/+//z///f///////7/3////////+///////////3/7/7/////////// ////////9/+AAAD//f//f/f/v/+//////f///////X/v////////+///////////v/7/9/////// ////////////9/+AAAD//f//f/f/v/9//////f///////P+f////////+//////////+f/7/9/// ////////////////9/+AAAD//f//f/f/v/B//////f////////w/////////+//////////5//9/ ////////////////////9/+AAAD//fwAf/f/v////////f//////////////////+/////////// //9/////////////////////9/+AAAD//f//////v////////f//////////////////+/////// //////9/////////////////////9/+AAAD//f//////v////////f//////////////////+/// ////////////////////////////////9/+AAAD//f//////v////////f////////////////// +///////////////////////////////////9/+AAAD//f//////v////////f////////////// ////+///////////////////////////////////9/+AAAD//f//////v////////f////////// ////////+///////////////////////////////////9/+AAAD//f//////v////////f////// ////////////+///////////////////////////////////9/+AAAD//f//////v////////f// ////////////////+///////////////////////////////////9/+AAAD//f//////v/////// /f//////////////////+///////////////////////////////////9/+AAAD//f//////v/// /////f//////////////////+///////////////////////////////////9/+AAAD//f////// v////////f//////////////////+///////////////////////////////////9/+AAAD//f// ////v////////f//////////////////+///////////////////////////////////9/+AAAD/ /f//////v////////f//////////////////+///////////////////////////////////9/+A AAD//f//////v////////f//////////////////+/////////////////////////////////// 9/+AAAD//f//////v////////f//////////////////+/////////////////////////////// ////9/+AAAD//f//////v////////f//////////////////+/////////////////////////// ////////9/+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAB/+AAAD//f//////v////////f////////f/////////+////////9////////// ////////////////9/+AAAD//f//////v////////f////////f/////////+////////9////// ////////////////////9/+AAAD//f//////v////////f////////f////+P///+////////9// ////////////////////////9/+AAAD//f//////v////////f///8////f//3/+wf//+/////P/ /9//////////////////////////9/+AAAD//f//////v////////f///+////f//3/+/v//+//3 //v//9//////////v///////////////9/+AAAD//f//////v////////f///+////f//7/+/v// +//3//v//9//////4f4AP///////////////9/+AAAD//f//////v///8H///f////f///f//7/+ /v//+//3//3//9//////4AD/////////////////9/+AAAD//f//////v///77///f////f///f/ /9/+/v//+//7//7//9///////9////gD////////////9/+AAAD//f//////v///39///f/n//v/ //f//9//PP//+//7//7//9///////8///+f8////////////9/+AAAD//f//////v///P9///f/7 //v///f//+//jf//+//7//7//9////////P//+/+////////////9/+AAAD//f//////v/f/f9// /f/7//3///f//+//4f//+//9//7//9////////3//+//f///////////9/+AAAD//f//////v/f/ f9///f/7//3///f//+//8///+//9//9//9////////7//+//f///////////9/+AAAD//e//5/// v/P/fz///f/9//7///f///f/6f//+//9//9//9////////7//+//f///////////9/+AAAD//e// iP//v/3/YP///f/9//7///f///f/3f//+//+//9//9////////5//+//v///////////9/+AAAD/ /e//P3//v/3/f////f/9//7///f///f/vf//+//+//+//9////////9//+//v///////////9/+A AAD//ff//3//v/7/f////f/+//9///f///f+ff//+///f/+//9////////9///f/v/////////// 9/+AAAD//ff//3//v/7/v////f/+//+///f///f+/f//+///f4A//9////////9///H/f/////// ////9/+AAAD//fv//3//v/7/n////f/+//+///f///f+////+///f7+//9////////9///X/f/// ////////9/+AAAD//fv//n//v/9/z////f/+///f//f///v+f///+///f3+//9////////9///3+ ////////////9/+AAAD//f3//v//v/9/8////f/+///f//f///v/gP//+///f3/v/9////////9/ //z9////////////9/+AAAD//f3/4P//v/9//f///f/+//gf//f///v/////+////3/v/9////// //9///57////////////9/+AAAD//f3/n9//v/+//P///f/+/4f///f///v/////+////3/3/9// //////9///8H////////////9/+AAAD//f7/3h//v/+//v///f/+/n////f///v/////+////3/3 /9////////9/////////////////9/+AAAD//f7/wf//v/+//////f/+//////f///v/////+/// /5/3/9////////9/////////////////9/+AAAD//f9/7///v/+//////f/+//////f///v///// +////+AH/9////////7/////////////////9/+AAAD//f9/9///v/+//////f////////f///// ////+////////9///////+D/////////////////9/+AAAD//f9/9///v////////f////////f/ ////////+////////9//////////////////////////9/+AAAD//f//////v////////f////// //f/////////+////////9//////////////////////////9/+AAAD//f//////v////////f// //////f/////////+////////9//////////////////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9//////////////////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9//////////////////////////9/+AAAD//f////// v////////f////////f/////////+////////9//////////////////////////9/+AAAD//f// ////v////////f////////f/////////+////////9//////////////////////////9/+AAAD/ /f//////v////////f////////f/////////+////////9//////////////////////////9/+A AAD//f//////v////////f////////f/////////+////////9////////////////////////// 9/+AAAD//f//////v////////f////////f/////////+////////9////////////////////// ////9/+AAAD//f//////v////////f////////f/////////+////////9////////////////// ////////9/+AAAD//f//////v////////f////////f/////////+////////9////////////// ////////////9/+AAAD//f//////v////////f////////f/////////+////////9////////// ////////////////9/+AAAD//f//////v////////f////////f/////////+////////9////// ////////////////////9/+AAAD//f//////v////////f////////f/////////+////////9// ////////////////////////9/+AAAD//f//////v////////f////////f/////////+/////// /9//////////////////////////9/+AAAD//f//////v////////f////////f/////////+/// /////9//////////////////////////9/+AAAD//f//////v////////f////////f///////// +////////9//////////////////////////9/+AAAD//f//////v////////f////////f///// ////+////////9//////////////////////////9/+AAAD//f//////v////////f////////f/ ////////+////////9//////////////////////////9/+AAAD//f//////v////////f////// //f/////////+////////9//////////////////////////9/+AAAD//f//////v////////f// //////f/////////+////////9//////////////////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9//////////////////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9//////////////////////////9/+AAAD//f////// v////////f////////f/////////+////////9//////////////////////////9/+AAAD//f// ////v////////f////////f/////////+////////9//////////////////////////9/+AAAD/ /AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/+A AAD//f//////v////////f////////f/////////+////////9////////////3///////////// 9/+AAAD//f//////v////////f////////f/////////+//////j/9////////////3///////// ////9/+AAAD//f//////v///n////f////////f/////////+/////AP/9////////////3///// ////////9/+AAAD//f//4f//v///3////f////////f/////////+////Af//9/////v//////3/ ////////////9/+AAAD//f//7n//v///3////f////////f/////////+//+/P///9/////v//// //3//////v//////9/+AAAD//f//75//v///3////f/3/8B///f/////////+//+fv///9/////v //////3///3//3//////9/+AAAD//f//79//v///3////f/7/98///f/////f///+///fn///9// ///v//////3///3//3//////9/+AAAD//f//79//v///7////f/7/9+f//f/////v///+///f3// /9/////v//P///3///3//z//////9/+AAAD//f//79//v///7////f/7/9/f//f/////v///+/// v4///9/////v//AA//3///7//7//////9/+AAAD//f//79//v///7////f/7/9/f//f///P/v/// +///3/A//9/////v///+P/3///7//7//////9/+AAAD//f//79//v///7////f/9/9/f//f///v/ 3///+///3//f/9/////3////v/3///7//9//////9/+AAAD//f//59//v///9////f/9/9/f//f/ //v/3///+///3//f/9/////3////3/3///7/v9/f////9/+AAAD//f//99//v///9////f/+/9/f //f///3/3///+///7//f/9/////3////3/3///9/gAAf////9/+AAAD//f//89//v///+////f/+ /+/f//f///3/7///+///7//f/9/////3////3/3///9/3+f/////9/+AAAD//f//+Z//v///+/// /f//f+/f//f///7/7///+///9//f/9/////3////3/3///+/z/f/////9/+AAAD//f///H//v/// +f///f//v+/f//f///7/7///+///9//f/9/////3////3/3///+/7/P/////9/+AAAD//f//+P// v////f///f//v/ff//f///7/9///+///9/+f/9/////3////3/3///+/5/3/////9/+AAAD//f// 5v//v///8P///f//v/ff//f///7/9///+///+/8//9/////3////n/3////f9/z/////9/+AAAD/ /f//33//v///73///f//v/uf//f///9/9///+///+/5//9/////3//8AP/3////v+/7/////9/+A AAD//f//vz//v///7z///f//3/2///f///9/9///+///+/n//9/////3/+D///3////v+f7///// 9/+AAAD//f//f7//v///7////f//3/9///f///9/9///+///+/P//9/////3//P///3////3/f// ////9/+AAAD//f/+/7//v///77///f//3/7///f///9/9///+///+////9/////3//w///3////3 /v//////9/+AAAD//f/+/7//v///77///f//3/////f///9/9///+////////9/////3///P//3/ ///3/n//////9/+AAAD//f/+/7//v///79///f//3/////f///9/////+////////9/////3///z //3////3/7//////9/+AAAD//f/+/7//v///79///f//3/////f/////////+////////9/////3 /v/7//3//////7//////9/+AAAD//f/+/z//v///79///f//3/////f/////////+////////9// ///3/j/7//3/////////////9/+AAAD//f/+/3//v///99///f////////f/////////+/////// /9///////8AH//3/////////////9/+AAAD//f/+fv//v///9+///f////////f/////////+/// /////9////////////3/////////////9/+AAAD//f//fv//v///++///f////////f///////// +////////9////////////3/////////////9/+AAAD//f//AP//v///+Y///f////////f///// ////+////////9////////////3/////////////9/+AAAD//f//////v////D///f////////f/ ////////+////////9////////////3/////////////9/+AAAD//f//////v////////f////// //f/////////+////////9////////////3/////////////9/+AAAD//f//////v////////f// //////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9////////////3/////////////9/+AAAD//f////// v////////f////////f/////////+////////9////////////3/////////////9/+AAAD//f// ////v////////f////////f/////////+////////9////////////3/////////////9/+AAAD/ /f//////v////////f////////f/////////+////////9////////////3/////////////9/+A AAD//f//////v////////f////////f/////////+////////9////////////3///////////// 9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///////// ////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///// ////////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3/ ////////////9/+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAB/+AAAD//f//////v////////f////////f/////////+////////9////// //////3/////////////9/+AAAD//f//////v////////f////////f/////////+////////9// //////////3/////////////9/+AAAD//f//////v////////f////////f/////////+/////// /9/////4AH////3/////////////9/+AAAD//f//////v////////f////////f/////////+/// /////9/////3/7////3/////////////9/+AAAD//f//////v////+B//f////////f///P///// +///wP///9/////3/7////3/////f///////9/+AAAD//f//////v///AB///f////////f///n/ ////+///nw///9/////3/9////3/////v///////9/+AAAD//f//z///v//8/////f/9//////f/ //3/////+///P+///9/////3/9////3/////v///////9/+AAAD//f//7///v//j/////f/8AP// //f///z/////+////+///9/////3/9////3/////3///////9/+AAAD//f//7///v//z/////f// /wH///f///5/////+////+///9/////3/D////3/////3///////9/+AAAD//f//7///v//9//// /f////7///f///9/////+////+///9/////zw/////3/////z///////9/+AAAD//f//7///v//+ f////f////7///f///+/////+////8///9/////wP/////3/////7///////9/+AAAD//f//7/// v///g////f////z///f////f////+////7///9/////3//////3/////9///////9/+AAAD//f// 7///v////H///f////3///f/8//v////+////z///9/////3//////3/////+///////9/+AAAD/ /f//7///v////5///f////v///f/+AAAP///+////H///9/////3//////3/////+///////9/+A AAD//f//7///v////9///f////P///f//f/3z///+///4////9/////3//////3//////f////// 9/+AAAD//f//7///v////9///f///8////f//v/7////+///7////9/////3//////3//////f// ////9/+AAAD//f//7///v////x///f///j////f//n/5////+///8AP//9/////3//////3///// /v//////9/+AAAD//f//7///v///+P///f//4f////f//z/9////+///8////9/////7//////3/ /////z//////9/+AAAD//f//7///v///h////f/+H/////f//4/+////+///+////9/////7//// //3//////5//////9/+AAAD//f//7///v///P////f//4H////f//+/+////+///+////9/////9 //////3//////+f/////9/+AAAD//f//7///v////////f///4////f///P+f///+///+f///9// ///+//////3///////j/////9/+AAAD//f//7///v////////f///+////f///n/f///+////f// /9/////+f/////3///////8/////9/+AAAD//f//7///v////////f///+////f///7/f///+/// /f///9//////n/////3////////P////9/+AAAD//f//7///v////////f///+////f///5///// +////f///9//////7/////3/////wAAP////9/+AAAD//f//7///v////////f///x////f///+/ ////+////////9//////7/////3/////////////9/+AAAD//f//7///v////////f/8AP////f/ //+/////+////////9////////////3/////////////9/+AAAD//f//////v////////f////// //f/////////+////////9////////////3/////////////9/+AAAD//f//////v////////f// //////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/////// /f////////f/////////+////////9////////////3/////////////9/+AAAD//f//////v/// /////f////////f/////////+////////9////////////3/////////////9/+AAAD//f////// v////////f////////f/////////+////////9////////////3/////////////9/+AAAD//f// ////v////////f////////f/////////+////////9////////////3/////////////9/+AAAD/ /f//////v////////f////////f/////////+////////9////////////3/////////////9/+A AAD//f//////v////////f////////f/////////+////////9////////////3///////////// 9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///////// ////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3///// ////////9/+AAAD//f//////v////////f////////f/////////+////////9////////////3/ ////////////9/+AAAD//f//////v////////f////////f/////////+////////9////////// //3/////////////9/+AAAD//f//////v////////f////////f/////////+////////9////// //////3/////////////9/+AAAD//f//////v////////f////////f/////////+////////9// //////////3/////////////9/+AAAD//f//////v////////f////////f/////////+/////// /9////////////3/////////////9/+AAAD//f//////v////////f////////f/////////+/// /////9////////////3/////////////9/+AAAD//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/+AAAD///////////////////////////////// //////////////////////////////////////////+AAAD///////////////////////////// //////////////////////////////////////////////+AAAD///////////////////////// //////////////////////////////////////////////////+AAAD///////////////////// //////////////////////////////////////////////////////+AAAD///////////////// //////////////////////////////////////////////////////////+AAAD///////////// //////////////////////////////////////////////////////////////+AAAD///////// //////////////////////////////////////////////////////////////////+AAAD///// //////////////////////////////////////////////////////////////////////+AAAD/ //////////////////////////////////////////////////////////////////////////+A AAA= ------_=_NextPart_001_01C1BC05.93F9C4C4-- From superylam@netscape.net Fri Feb 22 20:12:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imo-r08.mx.aol.com (imo-r08.mx.aol.com [152.163.225.104]) by mail.gnome.org (Postfix) with ESMTP id A701818D43 for ; Fri, 22 Feb 2002 20:12:47 -0500 (EST) Received: from superylam@netscape.net by imo-r08.mx.aol.com (mail_out_v32.5.) id h.13a.138afd9 (16232) for ; Fri, 22 Feb 2002 20:12:40 -0500 (EST) Received: from netscape.net (pcd331066.netvigator.com [203.218.121.66]) by air-in02.mx.aol.com (v83.35) with ESMTP id MAILININ28-0222201240; Fri, 22 Feb 2002 20:12:40 -0500 Message-ID: <3C77A283.30609@netscape.net> Date: Sat, 23 Feb 2002 09:09:07 -0500 From: Lam Yick Yan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk->deviceid How to use? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I have just devleoped a X input driver for my small graphic tablet. And it is working.... Now I have cursor that will move according to mouse OR graphic tablet. Now I want to develope a gtk application that will ONLY respond the event from my graphic tablet. I have a callback function in my GTK application, motion_notify_event and I have compared the event content of my mouse and my graphic tablet and they look the same (the deviceid content etc). and I have no way to distuguish whether the event is from the mouse or from the graphic tablet. What did I do wrong in my driver? can please have a look at http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether I did wrong in the device driver? Yick Hong Kong china From hp@redhat.com Fri Feb 22 23:40:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 49C4A182B1 for ; Fri, 22 Feb 2002 23:40:43 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1N4eg531923; Fri, 22 Feb 2002 23:40:42 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Bowman, Michael W. (MBOWMAN)" Cc: "'gtk-list@gnome.org'" Subject: Re: How do I find out an object's type using the GTK+ (1.2) type syst em? References: <05A70E173104D511A5840002A55C37EE1C478B@exanpmb2.arinc.com> From: Havoc Pennington Date: 22 Feb 2002 23:40:41 -0500 In-Reply-To: <05A70E173104D511A5840002A55C37EE1C478B@exanpmb2.arinc.com> Message-ID: Lines: 38 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Bowman, Michael W. \(MBOWMAN\)" writes: > I have a situation like the following: > > void > setParms(GtkOpenmapProj* proj, ...) { > ... > class->normalize_latitude(proj, ...); > } > > GtkOpenmapProj is a base class that has multiple sub-types. Each of the > subtypes may > override the normalize_latitude method of the GtkOpenmapProj class. However, > I don't > know which of the subtypes is passed into my function, just that its some > sub-type of > GtkOpenmapProj. How do I find which type identifier to feed to > gtk_type_class() so > that I can obtain the class struct for the proper sub-type (and use the > proper > normalize_latitude function)? How does GTK+ handle polymorphism? Just look at any example in GTK itself. You should not need the subtype's class, just GtkOpenmapProjClass, which contains the normalize_latitude function. The whole point of virtual functions is you don't have to know the type of the object, isn't it? Usually people write a wrapper function: void gtk_openmap_proj_normalize_latitude (GtkOpenmapProj *proj) { GTK_OPENMAP_PROJ_GET_CLASS (proj)->normalize_latitude (proj); } Havoc From rbultje@ronald.bitfreak.net Sat Feb 23 07:49:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id 46D3F180D8 for ; Sat, 23 Feb 2002 07:49:47 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1NCds4K029012 for ; Sat, 23 Feb 2002 13:39:54 +0100 (CET) Subject: bug/missing feature in gtk2 From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 23 Feb 2002 13:49:45 +0100 Message-Id: <1014468585.18710.0.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I'm not sure whether to call this a bug or a missing feature... First of all, gtk-1.3.14 fixed the bug where my picture disappeared if I highlighted the button to which it was attached, thanks! Now, I've noticed something else that might be wrong. I have the following code: menu = gtk_menu_new(); for (i=0;iaudio_recsrc, menu); gtk_widget_show_all(menu); prefs->audio_recsrc is a GtkOptionMenu. The problem is that hat images *do* appear in the menu if it pops up, but not in the GtkOptionMenu itself with the selected item. I hope the following two screenshots can make clear what I mean: http://ronald.bitfreak.net/images/icon-problem-1.png http://ronald.bitfreak.net/images/icon-problem-2.png In the second one, you'll notice that the icon is not being shown in front of the selected item, while in the popup-menu itself, the icons are being shown. I'm not sure whether to call this a bug or a missing feature. Should I report this somewhere? Secondly (this is very offtopic), I'm getting my icons from the 'tigert' collection (http://primates.ximian.com/~tigert/new_stock_project/). According to that page, these icons are supposed to be part of gtk's stock icon collection, however, I can't find the media-rec, media-pause and media-stop icons as stock icons in Gtk. Are they supposed to be in some other package than Gtk? Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From sven@gimp.org Sat Feb 23 08:47:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD95871C7.dip.t-dialin.net [217.88.113.199]) by mail.gnome.org (Postfix) with ESMTP id AACDF18EE6 for ; Sat, 23 Feb 2002 08:47:39 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16ecWU-0002tx-00; Sat, 23 Feb 2002 14:47:34 +0100 To: Lam Yick Yan Cc: gtk-list@gnome.org Subject: Re: gtk->deviceid How to use? References: <3C77A283.30609@netscape.net> From: Sven Neumann Date: 23 Feb 2002 14:47:34 +0100 In-Reply-To: <3C77A283.30609@netscape.net> Message-ID: Lines: 20 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Lam Yick Yan writes: > I have just devleoped a X input driver for my small graphic tablet. > And it is working.... Now I have cursor that will move according to > mouse OR graphic tablet. > > Now I want to develope a gtk application that will ONLY respond > the event from my graphic tablet. I have a callback function in my GTK > application, motion_notify_event and I have compared the event content > of my mouse and my graphic tablet and they look the same (the deviceid > content etc). and I have no way to distuguish whether the event is from the > mouse or from the graphic tablet. one thing you should check before you start to debug your driver is whether GTK+ was compiled with xinput support (configure --with-xinput=xfree). Salut, Sven From otaylor@redhat.com Sat Feb 23 09:36:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 85889180D8 for ; Sat, 23 Feb 2002 09:36:50 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id C161B241BE2; Sat, 23 Feb 2002 09:36:49 -0500 (EST) To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: bug/missing feature in gtk2 References: <1014468585.18710.0.camel@tux> From: Owen Taylor In-Reply-To: Ronald Bultje's message of "23 Feb 2002 13:49:45 +0100" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 35 Message-Id: <20020223143649.C161B241BE2@fresnel.labs.redhat.com> Date: Sat, 23 Feb 2002 09:36:49 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > prefs->audio_recsrc is a GtkOptionMenu. The problem is that hat images > *do* appear in the menu if it pops up, but not in the GtkOptionMenu > itself with the selected item. I hope the following two screenshots can > make clear what I mean: > http://ronald.bitfreak.net/images/icon-problem-1.png > http://ronald.bitfreak.net/images/icon-problem-2.png > In the second one, you'll notice that the icon is not being shown in > front of the selected item, while in the popup-menu itself, the icons > are being shown. I'm not sure whether to call this a bug or a missing > feature. Should I report this somewhere? I'd say it's a "known limitation" rather than either a bug or missing feature. I doubt we'll fix it in the context of GtkOpttionMenu, but if you want to file a bug report on the issue on bugzilla.gnome.org that will remind us to look at the issue of Icon/Text combination items for the new combo/option menu widget that is scheduled to be done for GTK+-2.2. > Secondly (this is very offtopic), I'm getting my icons from the 'tigert' > collection (http://primates.ximian.com/~tigert/new_stock_project/). > According to that page, these icons are supposed to be part of gtk's > stock icon collection, however, I can't find the media-rec, media-pause > and media-stop icons as stock icons in Gtk. Are they supposed to be in > some other package than Gtk? These icons weren't there when we finalized the set of stock icons for GTK+-2.0; they'll most likely be added for 2.2. You can package them with your application and register them as stock icons yourself, (with stock id's like myprogr-media-rec) and then when GTK+-2.2 switch to using the official version. Regards, Owen From otaylor@redhat.com Sat Feb 23 09:39:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 540BB18EC4 for ; Sat, 23 Feb 2002 09:39:48 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id 121B5241BE2; Sat, 23 Feb 2002 09:39:47 -0500 (EST) To: Valdis.Kletnieks@vt.edu Cc: Vincent Arkesteijn , gtk-list@gnome.org Subject: Re: Interesting suid problem References: <20020221223053.A6053@ken> <200202212139.g1LLdlVj032087@foo-bar-baz.cc.vt.edu> From: Owen Taylor In-Reply-To: Valdis.Kletnieks@vt.edu's message of "Thu, 21 Feb 2002 16:39:47 -0500" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 18 Message-Id: <20020223143947.121B5241BE2@fresnel.labs.redhat.com> Date: Sat, 23 Feb 2002 09:39:47 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Valdis.Kletnieks@vt.edu writes: > On Thu, 21 Feb 2002 22:30:54 +0100, Vincent Arkesteijn said: > > > Why? Just put the password in the program, and give your users > > execute permission, but no read permission on the program. It > > may not be too elegant, and it's a bit clumsy when you want to > > change the password, but it's the simplest solution. > > Still vulnerable to attack via gdb/dbx or ptrace(), but that's a > question of whether your threat model includes somebody both that > determined and skilled... You can't gdb/ptrace a non-readable executable on most operating systems. Regards, Owen From rbultje@ronald.bitfreak.net Sat Feb 23 11:04:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id A4C1D18108 for ; Sat, 23 Feb 2002 11:04:11 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1NFsI4K004660 for ; Sat, 23 Feb 2002 16:54:18 +0100 (CET) Subject: Re: bug/missing feature in gtk2 From: Ronald Bultje To: gtk-list@gnome.org In-Reply-To: <20020223143649.C161B241BE2@fresnel.labs.redhat.com> References: <1014468585.18710.0.camel@tux> <20020223143649.C161B241BE2@fresnel.labs.redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 23 Feb 2002 17:04:10 +0100 Message-Id: <1014480250.18709.5.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, 2002-02-23 at 15:36, Owen Taylor wrote: > I'd say it's a "known limitation" rather than either a bug or missing feature. > I doubt we'll fix it in the context of GtkOpttionMenu, but if you > want to file a bug report on the issue on bugzilla.gnome.org that will > remind us to look at the issue of Icon/Text combination items for the > new combo/option menu widget that is scheduled to be done for GTK+-2.2. I filed it on bugzilla, hope it'll be fixed one day. But if I understand you correctly, there's little chance that it'll be "fixed" for Gtk+-2.0? For the archives then, here's code I use as a workaround (got this idea while looking in the sourcecode of GtkImageMenuItem): static GtkWidget * gtk_menu_item_with_image (const gchar *labeltxt, const gchar **pixmap) { GtkWidget *hbox, *menuitem, *label, *image; menuitem = gtk_menu_item_new(); hbox = gtk_hbox_new(FALSE, 5); image = gtk_image_new_from_pixbuf(gdk_pixbuf_new_from_xpm_data(pixmap)); gtk_box_pack_start(GTK_BOX(hbox), image, FALSE, FALSE, 0); gtk_widget_show(image); label = gtk_label_new(labeltxt); gtk_misc_set_alignment(GTK_MISC(label), 0.0, GTK_MISC(label)->yalign); gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0); gtk_widget_show(label); gtk_container_add(GTK_CONTAINER(menuitem), hbox); gtk_widget_show(hbox); return menuitem; } and then for the menus: [..] menu = gtk_menu_new(); pixmap = (const gchar**) audio_src_volume_xpm; for (i=0;iaudio_recsrc, menu); gtk_widget_show_all(menu); [..] Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From otaylor@redhat.com Sat Feb 23 11:20:55 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 8CAFC18F32 for ; Sat, 23 Feb 2002 11:20:55 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id D65CD241BE2; Sat, 23 Feb 2002 11:20:54 -0500 (EST) To: Ronald Bultje Cc: gtk-list@gnome.org Subject: Re: bug/missing feature in gtk2 References: <1014468585.18710.0.camel@tux> <20020223143649.C161B241BE2@fresnel.labs.redhat.com> <1014480250.18709.5.camel@tux> From: Owen Taylor In-Reply-To: Ronald Bultje's message of "23 Feb 2002 17:04:10 +0100" User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 24 Message-Id: <20020223162054.D65CD241BE2@fresnel.labs.redhat.com> Date: Sat, 23 Feb 2002 11:20:54 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ronald Bultje writes: > On Sat, 2002-02-23 at 15:36, Owen Taylor wrote: > > I'd say it's a "known limitation" rather than either a bug or missing feature. > > I doubt we'll fix it in the context of GtkOpttionMenu, but if you > > want to file a bug report on the issue on bugzilla.gnome.org that will > > remind us to look at the issue of Icon/Text combination items for the > > new combo/option menu widget that is scheduled to be done for GTK+-2.2. > > I filed it on bugzilla, hope it'll be fixed one day. But if I understand > you correctly, there's little chance that it'll be "fixed" for Gtk+-2.0? To change GtkImageMenuitem to make the image/label pair, instead of the label GTK_BIN(item)->child would be an API change and we are completely API frozen at this point. So, it's "just the way it works" (we could hack GtkOptionMenu to do something special for GtkImageMenuItem... but it would a reasonable amount of ugly code.) Regards, Owen From bl_nero@o2.pl Sat Feb 23 16:59:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rekin.go2.pl (rekin4.go2.pl [212.126.20.8]) by mail.gnome.org (Postfix) with ESMTP id 8EB1B180D8 for ; Sat, 23 Feb 2002 16:59:41 -0500 (EST) Received: from s (pa34.piotrkow.cvx.ppp.tpnet.pl [213.77.224.34]) by rekin.go2.pl (Mailer_v2.01) with SMTP id C79B76EFB3; Sat, 23 Feb 2002 22:59:37 +0100 (CET) Message-ID: <001201c1bcb5$60c043c0$22e04dd5@s> From: "Bartosz \"Neron\" Leper" To: "Vlad Harchev" Cc: "GTK-list" References: Subject: Re: GTK and non-monospace fonts Date: Sat, 23 Feb 2002 22:58:29 +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 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Hi, > > That was a bug in gdk fixed personally by me - the standard gtk-1.2.10 > already contains the fix - so please upgrade your gtk to version 1.2.10. > > Best regards, > -Vlad Thanks a lot. That was quite easy. I have downloaded and installed version 1.2.10 and my own programs are now OK. But is there any chance to "patch" my pre-compiled applications somehow without recompiling all of them? I have no sources and no time to download them all. Thanks again, Nero -- ------====[Bartosz "Neron" Leper]====------ mailto:bl_nero@o2.pl | IRC: #warsztat www.nerosite.prv.pl | www.programex.prv.pl ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From johnnyb@localhost.localdomain Sat Feb 23 19:58:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by mail.gnome.org (Postfix) with ESMTP id 1AD4B180D8 for ; Sat, 23 Feb 2002 19:58:36 -0500 (EST) Received: (from johnnyb@localhost) by localhost.localdomain (8.11.6/8.11.6) id g1O0xZt32057 for gtk-list@gnome.org; Sat, 23 Feb 2002 19:59:35 -0500 Date: Sat, 23 Feb 2002 19:59:35 -0500 From: "Johnny B ." To: gtk-list@gnome.org Subject: linking problem Message-ID: <20020223195935.C31813@tasha.vonbek.dhs.org> Reply-To: "Johnny B ." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Greetings all! Ive installed glib and gtk from source, run ldconfig and so on and I think everything is installed ok (pertinent data below), yet I'm getting a few errors when linking and app: /tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' /tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' /tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' Assuming that I have everything installed ok and that this is just a silly user error, which include or library covers these? I've grepped like crazy in /usr/lib and /usr/include ... gtk/glib is setup as such: [johnnyb@tasha lib]$ gtk-config --cflags --libs -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -I/usr/X11R6/include -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm Is there a file I should be including? I'm trying to build the classic helloworld.c in section 2.1 of the tutorial. I can build it if I use the massive Makefile provided with the samples, but I'm trying to make my own makefile to see what is required for the build. There's just too much gtk info on the internet to search effectively for this, but Ill keep trying. Thanks - JB +--------------------------------- | John Bleichert | syborg@stny.rr.com | http://vonbek.dhs.org/latest.jpg From hp@redhat.com Sat Feb 23 20:13:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 7D96F180D8 for ; Sat, 23 Feb 2002 20:13:22 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1O1DL832259; Sat, 23 Feb 2002 20:13:21 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Johnny B ." Cc: gtk-list@gnome.org Subject: Re: linking problem References: <20020223195935.C31813@tasha.vonbek.dhs.org> From: Havoc Pennington Date: 23 Feb 2002 20:13:21 -0500 In-Reply-To: <20020223195935.C31813@tasha.vonbek.dhs.org> Message-ID: Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Johnny B ." writes: > > Ive installed glib and gtk from source, run ldconfig and so on and I > think everything is installed ok (pertinent data below), yet I'm > getting a few errors when linking and app: > > /tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' > /tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' > /tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' > Turn on warnings for your compiler, then eliminate all warnings like "function G_CALLBACK has not been declared" Havoc From hp@redhat.com Sat Feb 23 20:13:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 2FC52180D8 for ; Sat, 23 Feb 2002 20:13:42 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1O1DfA32263; Sat, 23 Feb 2002 20:13:41 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Johnny B ." Cc: gtk-list@gnome.org Subject: Re: linking problem References: <20020223195935.C31813@tasha.vonbek.dhs.org> From: Havoc Pennington Date: 23 Feb 2002 20:13:41 -0500 In-Reply-To: <20020223195935.C31813@tasha.vonbek.dhs.org> Message-ID: Lines: 6 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, (The way you eliminate the warnings is to include gtk/gtk.h) Havoc From superylam@netscape.net Sat Feb 23 20:31:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imo-r06.mx.aol.com (imo-r06.mx.aol.com [152.163.225.102]) by mail.gnome.org (Postfix) with ESMTP id 5AFFD180D8 for ; Sat, 23 Feb 2002 20:31:22 -0500 (EST) Received: from superylam@netscape.net by imo-r06.mx.aol.com (mail_out_v32.5.) id h.19.30351f3 (16233) for ; Sat, 23 Feb 2002 20:31:19 -0500 (EST) Received: from netscape.net (pcd331236.netvigator.com [203.218.121.236]) by air-in02.mx.aol.com (v83.35) with ESMTP id MAILININ29-0223203118; Sat, 23 Feb 2002 20:31:18 -0500 Message-ID: <3C78F85E.6010307@netscape.net> Date: Sun, 24 Feb 2002 09:27:42 -0500 From: Lam Yick Yan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: How gtk distinguish event from differnt input device? References: <3C77A283.30609@netscape.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I have asked similar question before but may be the subject is not very attractive, I ask again, using a different subject. Suppose I have 3 input devices, one PS/2 and one COM port and one USB mouse. Now I am writing a GTK application with a drawing area, and I have a callback event handler to handle motion_notify_event. Is it possible to distinguish from which device the motion event is triggered? In the gint motion_notify(GtkWidget *widget, GdkEvent *event), I have study throught every field in the event structure, and I cannot find a way to tell from which device the event is generated, can some one please instruct me how to do so? An example or a pointer to webpage will be greatly appreciated. Yick Lam Hong Kong, Chna From otaylor@redhat.com Sun Feb 24 01:58:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fresnel.labs.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id A2CC0180EA; Sun, 24 Feb 2002 01:58:19 -0500 (EST) Received: by fresnel.labs.redhat.com (Postfix, from userid 2181) id C5086241BE2; Sun, 24 Feb 2002 01:58:18 -0500 (EST) To: gnome-announce-list@gnome.org, gtk-devel-list@gnome.org, gtk-app-devel-list@gnome.org, gtk-list@gnome.org Reply-To: gtk-devel-list@gnome.org Subject: New release of GTK+ libraries (1.3.15). Please test! From: Owen Taylor User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 155 Message-Id: <20020224065818.C5086241BE2@fresnel.labs.redhat.com> Date: Sun, 24 Feb 2002 01:58:18 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: A new release of GTK+ and associated libraries (GLib, Pango, Atk) is now available at: ftp://ftp.gtk.org/pub/gtk/v1.3/ This is the last scheduled pre-release before GTK+-2.0, so we'd really appreciate it if people developing with GTK+ would try compiling and using these libraries so we catch problems before we release. Bugs should be reported to http://bugzilla.gnome.org. The relevant products are gtk+, glib, pango, and atk. We'd also appreciate reports of successful compilation, especially on less common platforms; please send such reports to gtkdev@gnome.org. Information on platform, operating system (and distribution for Linux), operating system version, and compiler is useful. The JPEG/PNG/TIFF libraries, and pkg-config 0.8 or newer are needed to compile this release. These are available at: ftp://ftp.gtk.org/pub/gtk/v1.3/dependencies/ (The canonical upstream location for pkg-config is http://www.freedesktop.org/software/pkgconfig/. But gtk.org mirrors the 0.11 version you need to build GTK+) You will also need "libiconv" on systems with C libraries that lack the iconv() function: http://www.gnu.org/software/libiconv/ And the libintl library from the GNU "gettext" package if your C library doesn't have gettext() functionality: http://www.gnu.org/software/gettext/ Overview of Changes in GLib 1.3.15: =================================== * Speed up marshalers by using private access to GValue [Anders Carlsson, Tim Janik] * Reduce GValue to 2 elements [Tim] * Add G_DEBUG environment variable, G_DEBUG=fatal_warnings [Matthias Clasen] * Fixes for AIX compilation [Miroslaw Dobrzanski-Neumann] * Add padding to various structures [Owen Taylor, Tim] * Win32 fixes [Tor Lillquist] Other contributors: Daniel Elstner, James Henstridge, Ryan Lovett, Morten Welinder, Overview of Changes in Pango 0.26 ================================= * Fixes for AIX compilation [Miroslaw Dobrzanski-Neumann] * Fix zero-width characters being displayed [Sven Neumann] * Add some padding to class structures [Owen Taylor] Overview of Changes in Atk 0.13 ================================= * Add padding to class structures for future expansion [Padraig O'Briain] * Add include guards to atk.h [Morten Welinder] * Change argument of atk_component_get_layer(),atk_component_get_mdi_zorder() to be AtkComponent instead of AtkObject [Padraig] * Cleanups [Padraig] Overview of Changes in GTK+ 1.3.15 ================================== * New stock and improved icon images [Tuomas Kuosomann, Jakub Steiner, Anders Carlsson] * Widget drawing improvements for check and radio buttons, spinbuttons [Soeren Sandmann] * Clean up module search path algorithm, use GTK_PATH [Owen Taylor] * Add GtkSetting for font name. [Richard Hestilow] * Much improved key matching code, accelerators work independent of group [Owen] * Make mnemonics work for embedded GtkPlug widgets [Owen] * Keynav improvements for GtkTreeView [Kristian Rietveld] * Fix gtk_tree_view_scroll_to_cell() [Jonathan Blandford] * Rename gtk_tree_view_get_iter_root() and gtk_tree_path_new_root() to gtk_tree_view_get_iter_first() and gtk_tree_path_new_first(), add compatibility macros. * GtkTreeView bug fixes [Kristian, Anders, Damon Chaplin] * GtkTextView bug fixes [Havoc Pennington] * Pad class structures for future binary compatibility [Owen] * Tutorial improvements [Sven Neumann, Matthias Clasen] * Fixes for MULTIPLE selection target [Gregory Merchan, Owen] * Fix problems with initial widget size [Owen] * AIX compilation fixes [Miroslaw Dobrzanski-Neumann] * Win32 fixes [Hans Breuer, Tor Lillqvist] * Miscellaneous bug fixes Other contributors: David L. Cooper, Eric Fischer, Jody Goldberg, Satajyit Kanungo, Thomas Leonard, Mark Patton, Manish Singh, Nicolas Setton Library Descriptions ==================== GLib 1.3.15 (http://www.gtk.org) GLib is the low-level core library that forms the basis of 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. Pango 0.26 (http://www.pango.org) Pango is a library for layout and rendering of text, with an emphasis on internationalization. It forms the core of text and font handling for GTK+-2.0. Atk 0.13 (http://developer.gnome.org/projects/gap) The ATK library provides a set of interfaces for accessibility. By supporting the ATK interfaces, an application or toolkit can be used such as tools such as screen readers, magnifiers, and alternative input devices. GTK+ 1.3.15 (http://www.gtk.org) GTK+ is a widget toolkit for X and other windowing systems. It is used in such projects as the GIMP and GNOME. Notes ===== This release is incompatible with GTK+ and GLib 1.2.x. Software that has not been explicitly ported will not compile with this version. Do not send bug reports about such compilation problems to either us or maintainers of software that uses GLib and GTK+ 1.2.x; The currently supported version of GLib and GTK+ is version 1.2.10. If you install these libraries, do NOT replace your current GLib and GTK+ packages with them; these libraries are designed so they can be installed in parallel with a GTK+ install without affecting it. The API is frozen at this point. No additional API changes are anticipated before GTK+-2.0 is released. Binary interfaces for these libraries are not yet frozen; applications built against these libraries will need to be rebuilt when the final GTK+-2.0.0 is released. Comments should be sent to: GLib, GTK+: gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list Pango: gtk-i18n-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-i18n-list ATK: gnome-accessibility-list@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list From ehml@pacific.net.sg Tue Feb 19 11:04:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from spade.pacific.net.sg (spade.pacific.net.sg [203.120.90.71]) by mail.gnome.org (Postfix) with ESMTP id B8E0B189C3 for ; Tue, 19 Feb 2002 11:04:25 -0500 (EST) Received: from smtp1.pacific.net.sg (smtp1.pacific.net.sg [203.120.90.70]) by spade.pacific.net.sg with ESMTP id g1JG4Np02015 for ; Wed, 20 Feb 2002 00:04:23 +0800 Received: from pacific.net.sg (ppp235.dyn91.pacific.net.sg [210.24.91.235]) by smtp1.pacific.net.sg with ESMTP id g1JG4Kt03787 for ; Wed, 20 Feb 2002 00:04:21 +0800 Message-ID: <3C7277C4.7394E50F@pacific.net.sg> Date: Wed, 20 Feb 2002 00:05:24 +0800 From: ehml X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Scrolled window unable to handle huge list ( > 1700 entries) in it References: <3C36FA81.24BEA795@pacific.net.sg> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I need advice on putting huge list in a scrolled window. I notice that when I have more than 1700 (exact number is around 167+) entries in a list (or tree), and the list is in a scrolled window, it will not be displayed correctly. Anyone know limitation on the number of entry (or height) a scrolled window can support, and is there a known way to workaround this? Thanks. Regards, Eng Han From Romain.Parmantier@wanadoo.fr Tue Feb 19 19:18:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto2.wanadoo.fr (smtp-out-2.wanadoo.fr [193.252.19.254]) by mail.gnome.org (Postfix) with ESMTP id B4B1418649 for ; Tue, 19 Feb 2002 19:18:23 -0500 (EST) Received: from mel-rta4.wanadoo.fr (193.252.19.58) by mel-rto2.wanadoo.fr; 20 Feb 2002 01:18:22 +0100 Received: from pentium (193.250.93.194) by mel-rta4.wanadoo.fr; 20 Feb 2002 01:18:05 +0100 Message-ID: <010d01c1b9a4$12de05c0$c25dfac1@pentium> From: "Romain" To: Subject: [GTK help] Date: Wed, 20 Feb 2002 01:18:07 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_010A_01C1B9AC.74020F10" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_010A_01C1B9AC.74020F10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi! How I can superpose two GtkText in the same window (in a notebook for = example)? In a background, a gtktext where you can't modify the text and = in the foreground, a gtktext where you can modify the text. Result, you = have the background and the foreground in the same window with the = superposed texts. Thanks, C@stor Excuse me for my 'english' but I don't speak it very well. ------=_NextPart_000_010A_01C1B9AC.74020F10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi!
How I can superpose two GtkText in the = same window=20 (in a notebook for example)? In a background, a gtktext where you can't = modify=20 the text and in the foreground, a gtktext where you can modify the text. = Result,=20 you have the background and the foreground in the same window with = the=20 superposed texts.
Thanks,
 
Excuse me for my 'english' but I don't = speak it=20 very well.
------=_NextPart_000_010A_01C1B9AC.74020F10-- From jimmycllin@hotmail.com Wed Feb 20 11:24:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (oe21.law11.hotmail.com [64.4.16.125]) by mail.gnome.org (Postfix) with ESMTP id 39D4A1814C for ; Wed, 20 Feb 2002 11:24:17 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 20 Feb 2002 08:24:16 -0800 X-Originating-IP: [61.10.172.12] From: "Jimmy Lin" To: Subject: When will GTK+2.0 be released? Date: Thu, 21 Feb 2002 00:25:54 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C1BA6E.52CC1580" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 20 Feb 2002 16:24:16.0399 (UTC) FILETIME=[0A6759F0:01C1BA2B] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C1BA6E.52CC1580 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Hello, I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and GTK+2.0 = is incompatible. So should I learn GTK+2.0 is much better now? Please = give me some advices. Thanks!!! Jimmy ------=_NextPart_000_0007_01C1BA6E.52CC1580 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Hello,
 
I'm a new comer of GTK+, I noticed that the api = of GTK+1.2=20 and GTK+2.0 is incompatible. So should I learn GTK+2.0 is much=20 better now? Please give me some advices. = Thanks!!!
 
Jimmy
------=_NextPart_000_0007_01C1BA6E.52CC1580-- From falconer@falconer.best.vwh.net Thu Feb 21 16:46:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id D229419273 for ; Thu, 21 Feb 2002 16:46:05 -0500 (EST) Received: (qmail 70778 invoked by uid 25889); 21 Feb 2002 21:46:04 -0000 Date: 21 Feb 2002 21:46:04 -0000 Message-ID: <20020221214604.70777.qmail@falconer.best.vwh.net> From: falconer@falconer.best.vwh.net To: gtk-list@gnome.org Subject: Gtk feature requests Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all; I just saw that gtk 2 is coming out soon. It's probably too late for 2.0, but could I get folks to consider the following features for a future release? These comments stem from frustrations I encountered while developing under gtk. Most of these could be considered bug reports rather than changes to the API. * Toolkit should recognize traditional "-g WxH+X+Y" commandline arguments. * It would be very handy to be able to somehow specify the width of a TextEntry widget in terms of displayed characters instead of pixels. I just want the option of creating a text entry that displays 10 characters, or whatever. Currently, I use a utility function which I wrote which converts en-spaces to pixels, but it can't account for the widget's internal margins, etc. * Scrollbars and scales desperately need a way for callbacks to differentiate a scroll-in-progress from a scroll-completed type event. I would suggest a "value-done" signal to supplement the "value" event. (Example: a cad program that takes a long time to rebuild the display. I want to scroll it without rebuilding while the user manipulates the scroll bar, and then do the rebuild when the user releases the mouse.) * It would be nice to add a scale factor option to sliders and scrollbars so that a large mouse motion results in a small change in slider position (very useful feature when dealing with very small sliders. See http://www.efalk.org/Widgets/#slider for an example of one I wrote for the X intrinsics many years ago. * It would be nice for TextEntry widgets to have signals which indicate that the widget has received/lost keyboard focus. This is especially important when losing focus, as this is a good time for the application to validate and/or reformat the input. * It would be nice to have an option for TextEntry widgets to select their contents when gaining focus (although this could be done manually given a focus-received signal.) * I found the toolkit's habit of highlighting the widget under the cursor rather than highlighting the widget with keyboard focus to be confusing. * It would be a nice feature to add "focus follows mouse" to the keyboard focus mechanism. That is, moving the mouse from widget to widget would change the focus without needing to click on the new widget. The tab keys would still change the focus as before. (I implemented this in my XawM toolkit, see http://www.efalk.org/Widgets/#xawm) * Buttons should provide visual feedback when activated from keyboard (i.e. button-pressed on key down, button-released on key up.) * It would be nice to be able to expand/collapse tree widgets with the +/- keys. * It would be nice if I could use my own select loop with gtk; something like: gtkfd = gtk_get_connection_id() ; : select(nfds, &readfds, ...)) : if( FD_ISSET(gtkfd, &readfds) ) { while( GtkPeekEvent() ) GtkDispatchEvent() ; } -ed falk From Matthias.Clasen@poet.de Fri Feb 22 10:13:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.poet.de (unknown [195.243.100.246]) by mail.gnome.org (Postfix) with ESMTP id 82A05182E0 for ; Fri, 22 Feb 2002 10:13:48 -0500 (EST) Received: from POONS.poet.de ([192.168.11.9]) by mail.poet.de with Microsoft SMTPSVC(5.0.2195.2966); Fri, 22 Feb 2002 16:02:49 +0100 To: gtk-list@gnome.org Cc: amundson@gtk.org Subject: Re: g_signal_connect_swapped X-Mailer: Lotus Notes Release 5.0.4 June 8, 2000 Message-ID: From: "Matthias Clasen" Date: Fri, 22 Feb 2002 16:11:23 +0100 X-MIMETrack: Serialize by Router on hamburg/server/Poet(Release 5.0.8 |June 18, 2001) at 22.02.2002 16:11:05, Serialize complete at 22.02.2002 16:11:05 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-OriginalArrivalTime: 22 Feb 2002 15:02:49.0156 (UTC) FILETIME=[FE34C040:01C1BBB1] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: The tutorial and examples in CVS head should be pure GTK+ 2.0. The title even expresses this ("GTK+ 2.0 tutorial") - it is a bit unfortunate that the online version at www.gtk.org/tutorial tracks CVS head. Maybe Shawn Amundson (cc'ed) can be convinced to set things up so that the GTK+ 1.2 version of the tutorial is available as well (there is already a parallel setup for the reference manuals). Until that happens, you can try ftp://ftp.gtk.org/pub/gtk/tutorial/db-gtk-tutorial.20000721.tar.gz, which is admittedly fairly old. Matthias From ehml@pacific.net.sg Fri Feb 22 10:50:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from scythe.pacific.net.sg (scythe.pacific.net.sg [203.120.90.37]) by mail.gnome.org (Postfix) with ESMTP id 5EAC6189D6 for ; Fri, 22 Feb 2002 10:50:35 -0500 (EST) Received: from smtp1.pacific.net.sg (smtp1.pacific.net.sg [203.120.90.70]) by scythe.pacific.net.sg with ESMTP id g1MFoXn27457 for ; Fri, 22 Feb 2002 23:50:33 +0800 Received: from pacific.net.sg (ppp200.dyn89.pacific.net.sg [210.24.89.200]) by smtp1.pacific.net.sg with ESMTP id g1MFoWt24846 for ; Fri, 22 Feb 2002 23:50:32 +0800 Message-ID: <3C76690A.E46C047A@pacific.net.sg> Date: Fri, 22 Feb 2002 23:51:38 +0800 From: ehml X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: key input get grab by other widget References: <3C36FA81.24BEA795@pacific.net.sg> <3C7277C4.7394E50F@pacific.net.sg> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I run into another "I do not know how to do" difficulty, and need advice. My application has a drawing-area, menu, and a frame with check-button in it. In the drawing-area, I assign "key press event" to it. It work find for key like "a" and "b", but does not work for arrow key. Once I press a arrow key, the "check button" grab that input, and subsequently, all key is grab by the "check button". The same will happen if I point at the menu-bar and click in a empty space following by pressing a key. What I need is: If the pointer is in the drawing-area, drawing-area should grab all key event. Is this possible, or there is any good workaround? Thanks. Regards, Eng Han PS: As gtk-list@gnome.org is a private email, is there a public news-group for me to seek advice? Thanks. From haem@netvigator.com Fri Feb 22 12:19:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imsmq05.netvigator.com (imsmq05.netvigator.com [208.167.231.41]) by mail.gnome.org (Postfix) with SMTP id E8078191AE for ; Fri, 22 Feb 2002 12:19:04 -0500 (EST) Received: (qmail 11385 invoked from network); 22 Feb 2002 17:19:02 -0000 Received: from pcd331066.netvigator.com (HELO netvigator.com) (203.218.121.66) by imsmq05.netvigator.com with SMTP; 22 Feb 2002 17:19:02 -0000 Message-ID: <3C773384.9070104@netvigator.com> Date: Sat, 23 Feb 2002 01:15:32 -0500 From: Lam Yick Yan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk->deviceid How to use? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Dear Sir, I have just devleoped a X input driver for my small graphic tablet. And it is working.... Now I have cursor that will move according to mouse OR graphic tablet. Now I want to develope a gtk application that will ONLY respond the event from my graphic tablet. I have a callback function in my GTK application, motion_notify_event and I have compared the event content of my mouse and my graphic tablet and they look the same (the deviceid content etc). and I have no way to distuguish whether the event is from the mouse or from the graphic tablet. What did I do wrong in my driver? can please have a look at http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether I did wrong in the device driver? Yick Hong Kong china From csingla@nc.rr.com Fri Feb 22 16:50:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from Mail6.nc.rr.com (fe6.southeast.rr.com [24.93.67.53]) by mail.gnome.org (Postfix) with ESMTP id AE0A71931A for ; Fri, 22 Feb 2002 16:50:52 -0500 (EST) Received: from nc.rr.com ([66.57.252.230]) by Mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Fri, 22 Feb 2002 16:50:46 -0500 Message-ID: <3C76BD1F.70702@nc.rr.com> Date: Fri, 22 Feb 2002 16:50:23 -0500 From: Oliver Singla Reply-To: oliver_singla@yahoo.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Trouble to compile atk-0.12 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, On my RH7.2 box, I have trouble to compile atk-0.12. After I have ran .configure, here is what I get when I do a make: [omsingla@oliver atk-0.12]$ make Making all in atk make[1]: Entering directory `/home/omsingla/gtk/1.3/atk-0.12/atk' case ..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal in \ .*) glib_genmarshal=`pwd`/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal ;; \ *) glib_genmarshal=..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal ;; \ esac; \ $glib_genmarshal --prefix=atk_marshal ./atkmarshal.list --body >> xgen-gmc \ && (cmp -s xgen-gmc ./atkmarshal.c || cp xgen-gmc ./atkmarshal.c) \ && rm -f xgen-gmc xgen-gmc~ \ && echo timestamp > stamp-atkmarshal.c /bin/sh: /home/omsingla/gtk/1.3/atk-0.12/atk/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal: No such file or directory make[1]: *** [stamp-atkmarshal.c] Error 127 make[1]: Leaving directory `/home/omsingla/gtk/1.3/atk-0.12/atk' make: *** [all-recursive] Error 1 [omsingla@oliver atk-0.12]$ Any idea ? TIA, Olivier Singla From soppers3@cti.ecp.fr Fri Feb 22 18:28:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from manoul.cti.ecp.fr (manoul.cti.ecp.fr [138.195.33.28]) by mail.gnome.org (Postfix) with ESMTP id 6CE4418A19 for ; Fri, 22 Feb 2002 18:28:02 -0500 (EST) Received: from caracal2.cti.ecp.fr (caracal2.cti.ecp.fr [138.195.33.40]) by manoul.cti.ecp.fr (Postfix) with SMTP id 825FB1EF1E for ; Sat, 23 Feb 2002 00:28:01 +0100 (CET) Received: from soppera.via.ecp.fr (soppera.via.ecp.fr [138.195.141.103]) by caracal2.cti.ecp.fr (Postfix) with ESMTP id 3B74D15A70 for ; Sat, 23 Feb 2002 00:28:33 +0100 (MET) Subject: Will GTKGlArea be included in GTK+ one day From: Stephane SOPPERA Reply-To: soppers3@cti.ecp.fr To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.13 (Preview Release) Date: 23 Feb 2002 00:27:45 +0100 Message-Id: <1014420468.6631.16.camel@soppera> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I was wondering if the GTK GlArea widget will be one day included in GTK+? Is it planned? -- Stephane SOPPERA http://stephane.soppera.free.fr From Romain.Parmantier@wanadoo.fr Thu Feb 21 12:25:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto3.wanadoo.fr (smtp-out-3.wanadoo.fr [193.252.19.233]) by mail.gnome.org (Postfix) with ESMTP id C067618AC5 for ; Thu, 21 Feb 2002 12:25:06 -0500 (EST) Received: from mel-rta9.wanadoo.fr (193.252.19.69) by mel-rto3.wanadoo.fr; 21 Feb 2002 18:25:05 +0100 Received: from pentium (193.250.93.90) by mel-rta9.wanadoo.fr; 21 Feb 2002 18:24:48 +0100 Message-ID: <001401c1bafc$a8c19b70$5a5dfac1@pentium> From: "Romain" To: Subject: GTK Background Date: Thu, 21 Feb 2002 18:24:40 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0011_01C1BB05.06FBF250" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C1BB05.06FBF250 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, For my application, I need a transparent background for a GtkText (not a = white background). It is possible? And how can I do this if it is = possible ? ------=_NextPart_000_0011_01C1BB05.06FBF250 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
For my application, I need a = transparent background=20 for a GtkText (not a white background). It is possible? And how can I do = this if=20 it is possible ?
------=_NextPart_000_0011_01C1BB05.06FBF250-- From hvv@hippo.ru Sun Feb 24 03:06:15 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [195.218.232.214]) by mail.gnome.org (Postfix) with ESMTP id B4AD418136 for ; Sun, 24 Feb 2002 03:06:13 -0500 (EST) Date: Sun, 24 Feb 2002 13:09:32 +0400 (SAMT) From: Vlad Harchev X-Sender: hvv@localhost.localdomain To: "Bartosz \"Neron\" Leper" Cc: GTK-list Subject: Re: GTK and non-monospace fonts In-Reply-To: <001201c1bcb5$60c043c0$22e04dd5@s> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Sat, 23 Feb 2002, Bartosz "Neron" Leper wrote: Hi, > > Hi, > > > > That was a bug in gdk fixed personally by me - the standard gtk-1.2.10 > > already contains the fix - so please upgrade your gtk to version 1.2.10. > > > > Best regards, > > -Vlad > > Thanks a lot. That was quite easy. I have downloaded and installed version > 1.2.10 and my own programs are now OK. But is there any chance to "patch" my > pre-compiled applications somehow without recompiling all of them? I have no > sources and no time to download them all. No, you don't have to recompile all applications that use gtk in order to get fixed behaviour - because they don't include gtk's code, they just link dynamically with gtk. All you have to do is to install updated gtk package to the standard locations where all programs expect it (it seems that just downloading and installing RPM with gtk-1.2.10 from Mandrake distribiution should be a solution). Best regards, -Vlad From aditya_gilra@yahoo.com Sun Feb 24 04:16:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14702.mail.yahoo.com (web14702.mail.yahoo.com [216.136.224.119]) by mail.gnome.org (Postfix) with SMTP id AB46F18136 for ; Sun, 24 Feb 2002 04:16:04 -0500 (EST) Message-ID: <20020224091604.934.qmail@web14702.mail.yahoo.com> Received: from [61.0.108.240] by web14702.mail.yahoo.com via HTTP; Sun, 24 Feb 2002 01:16:04 PST Date: Sun, 24 Feb 2002 01:16:04 -0800 (PST) From: Aditya Gilra Subject: Opentype Indic? To: gtk-list@gnome.org In-Reply-To: <20020224070921.9C5EF18FE9@mail.gnome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ||Shriharih|| God-Remembrance All. I noticed that Eric Mader's Indic Opentype patches are not mentioned in changes to pango for 1.3.15 . I hope they'll be considered for 2.0 . Or are they in already? It'll be a big help to be able to use good-quality Opentype fonts for Hindi - two are already available freely. - Aditya Gilra. __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From leidola@newcon.de Sun Feb 24 07:32:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-1.newcon.de (unknown [213.70.108.9]) by mail.gnome.org (Postfix) with ESMTP id EA9F61823D for ; Sun, 24 Feb 2002 07:32:00 -0500 (EST) Received: from attic ([213.70.108.83]) by mail-1.newcon.de (8.9.3/8.9.3) with SMTP id NAA15034; Sun, 24 Feb 2002 13:31:56 +0100 From: Olaf Leidinger To: "Johnny B ." Cc: gtk-list@gnome.org Date: Sun, 24 Feb 2002 13:35:02 +0100 X-Priority: 3 (Normal) In-Reply-To: <20020223195935.C31813@tasha.vonbek.dhs.org> Message-Id: <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic> Subject: Re: linking problem MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Mailer: Opera 6.0 build 1010 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am 24.02.2002 01:59:35, schrieb "Johnny B ." : [...] >/tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' >/tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' >/tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' [...] > >[johnnyb@tasha lib]$ gtk-config --cflags --libs >-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 >-I/usr/local/lib/glib/include -I/usr/X11R6/include >-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule >-lglib -ldl -lXext -lX11 -lm You link against gtk+-1.2, don't you? But as far as I know the missing things (g_signal_connect, G_OBJECT ans so) are part of gtk+-2.0 (or more exactly glib-2.0). Are you really sure that your installation is correct. This seems like a mixture of gtk+-1.2 and gtk+-2.0. Use the -v option when compiling to see exactly what is included and what linked to your application. Ciao Olaf From pbd@op.net Sun Feb 24 08:05:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 238191823D for ; Sun, 24 Feb 2002 08:05:12 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-82.phlpa.fast.net [209.92.99.82]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id IAA16035; Sun, 24 Feb 2002 08:04:59 -0500 (EST) Message-Id: <200202241304.IAA16035@renoir.op.net> To: ehml Cc: gtk-list@gnome.org Subject: Re: key input get grab by other widget In-reply-to: Your message of "Fri, 22 Feb 2002 23:51:38 +0800." <3C76690A.E46C047A@pacific.net.sg> Date: Sun, 24 Feb 2002 08:03:48 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >My application has a drawing-area, menu, and a frame with check-button in it. > >In the drawing-area, I assign "key press event" to it. It work find for key >like "a" and "b", but does not work for arrow key. Once I press a arrow key, >the "check button" grab that input, and subsequently, all key is grab by the >"check button". The same will happen if I point at the menu-bar and click in a >empty space following by pressing a key. What I need is: > >If the pointer is in the drawing-area, drawing-area should grab all key event. the arrow buttons, tab key and enter key are all considered "special" by GTK+, and are used (by default) to move the keyboard focus around between widgets. there is no way to turn off this behaviour in a global sense, but it can be handled on a per-widget basis. if you have a widget that needs to be able use any of these keys as a "normal" key, you need to connect to the widgets "key_press_event" signal with a handler that does something like this: gint key_press_handler (GtkWidget *widget, GdkEventKey *event, gpointer data) { int stop_emission = FALSE; switch (event->keyval){ case GDK_Up: case GDK_Down: case GDK_Left: case GDK_Right: stop_emission = TRUE; break; default: break; } if (stop_emission) { /* don't let the rest of GTK+ see this key */ gtk_signal_stop_emit_by_name (GTK_OBJECT(widget), "key_press_event"); } .... rest of your conventional key handling ... return TRUE; } --p From pbd@op.net Sun Feb 24 08:20:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D5E8F181D6 for ; Sun, 24 Feb 2002 08:20:37 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-82.phlpa.fast.net [209.92.99.82]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id IAA17161; Sun, 24 Feb 2002 08:20:34 -0500 (EST) Message-Id: <200202241320.IAA17161@renoir.op.net> To: falconer@falconer.best.vwh.net Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests In-reply-to: Your message of "21 Feb 2002 21:46:04 GMT." <20020221214604.70777.qmail@falconer.best.vwh.net> Date: Sun, 24 Feb 2002 08:19:23 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > arguments. which window is that for? think about it. > * Scrollbars and scales desperately need a way for callbacks to > differentiate a scroll-in-progress from a scroll-completed type > event. I would suggest a "value-done" signal to supplement > the "value" event. (Example: a cad program that takes a long > time to rebuild the display. I want to scroll it without > rebuilding while the user manipulates the scroll bar, and then > do the rebuild when the user releases the mouse.) this would be very valuable. XForms has a nice model, where you can specify the behaviour on a per-widget basis: report value when changed, report value when motion pauses (but before mouse release), report value every N msecs, report value when mouse is released). adding "value_change_complete" or "value_done" or whatever would allow widgets to support some or all of these models. > * It would be nice to add a scale factor option to sliders and > scrollbars so that a large mouse motion results in a small > change in slider position (very useful feature when dealing > with very small sliders. See you can write this yourself. my DAW application "ardour" has non-linear logarithmically scaled sliders. i've also written GTK+ widgets that have distance-log-scaled motion scaling, wherein mouse motion a long way from the widget (e.g. click-drag-right-now-drag-up-and-down) causes less change in the adjustment value than similar motion close to the widget. > * It would be nice for TextEntry widgets to have signals which > indicate that the widget has received/lost keyboard focus. focus_in_event focus_out_event > * I found the toolkit's habit of highlighting the widget under the > cursor rather than highlighting the widget with keyboard focus > to be confusing. catch enter_notify_event and leave_notify_event and stop the emission. this will prevent prelighting. i wish there was a way to turn off prelighting on a global basis, but it appears to contradict the desire of GTK+'s designers for a consistent GUI experience. > * It would be nice to be able to expand/collapse tree widgets with > the +/- keys. you can write this yourself. catch the key_press_event signal and handle it. > * It would be nice if I could use my own select loop with gtk; > something like: > > gtkfd = gtk_get_connection_id() ; > : > select(nfds, &readfds, ...)) > : > if( FD_ISSET(gtkfd, &readfds) ) > { > while( GtkPeekEvent() ) > GtkDispatchEvent() ; > } GTK uses glib, and its inner loop is a bit more complex than this. What you can do is to add your own fd's to its inner loop. There have been several posts here in the last month about this, and many in the archives, as well as information in the tutorial and reference docs. see gtk_input_add() and its more generic cousins g_source_add(). in the current "pending release" version of glib, the inner loop has been restructured to allow some decomposition into something like you describe, but i don't think it was with the idea of moving the outer while() into your code. glib's handling of what it terms "sources" is much more generic than select() would necessarily allow for (though under a POSIX system, select() is more or less all we have, since other types of signalling systems like semaphores can't be waited for with select). --p From johnnyb@zappa.vonbek.dhs.org Sun Feb 24 08:55:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from zappa.vonbek.dhs.org (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by mail.gnome.org (Postfix) with ESMTP id A081D18363 for ; Sun, 24 Feb 2002 08:55:46 -0500 (EST) Received: (from johnnyb@localhost) by zappa.vonbek.dhs.org (8.11.6/8.11.6) id g1ODumi02309 for gtk-list@gnome.org; Sun, 24 Feb 2002 08:56:48 -0500 Date: Sun, 24 Feb 2002 08:56:48 -0500 From: "Johnny B ." To: gtk-list@gnome.org Subject: Re: linking problem Message-ID: <20020224085648.A2282@zappa.vonbek.dhs.org> Reply-To: "Johnny B ." References: <20020223195935.C31813@tasha.vonbek.dhs.org> <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic>; from leidola@newcon.de on Sun, Feb 24, 2002 at 01:35:02PM +0100 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Olaf and Havoc, Thanks for the info. I am indeed working with gtk-1.2 and I was unaware that the tutorial code on the gtk web site is for gtk-2.0! Sorry to eat your bandwidth like that! I don't see gtk-2.0 anywhere for download so I'll assume it's not released yet. I'll work through the tutorial that came with the 1.2 source. I'm trying to port a terminal app to gtk, with the hopes that it may run on Linux, AIX and probably win32, so I'll stick with gtk-1.2. Or should I seek out 2.0 ? Can't find it anywhere... Anyways, thanks for helping me sort this out! JB On Sun, Feb 24, 2002 at 01:35:02PM +0100, Olaf Leidinger wrote: > Am 24.02.2002 01:59:35, schrieb "Johnny B ." : > > [...] > >/tmp/ccOr5DPh.o(.text+0x80): undefined reference to `G_CALLBACK' > >/tmp/ccOr5DPh.o(.text+0x93): undefined reference to `G_OBJECT' > >/tmp/ccOr5DPh.o(.text+0x9e): undefined reference to `g_signal_connect' > > [...] > > > >[johnnyb@tasha lib]$ gtk-config --cflags --libs > >-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 > >-I/usr/local/lib/glib/include -I/usr/X11R6/include > >-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule > >-lglib -ldl -lXext -lX11 -lm > > You link against gtk+-1.2, don't you? But as far as I know the missing things (g_signal_connect, G_OBJECT ans so) are part of gtk+-2.0 (or more exactly glib-2.0). Are > you really sure that your installation is correct. This seems like a mixture of gtk+-1.2 and gtk+-2.0. > > Use the -v option when compiling to see exactly what is included and what linked to your application. > > Ciao > > Olaf > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list +--------------------------------- | John Bleichert | syborg@stny.rr.com | http://vonbek.dhs.org/latest.jpg From rsteinke@w-link.net Sun Feb 24 12:51:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id 32634189DC for ; Sun, 24 Feb 2002 12:51:38 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16f2o7-0002QQ-00; Sun, 24 Feb 2002 09:51:31 -0800 Date: Sun, 24 Feb 2002 09:51:31 -0800 From: rsteinke@w-link.net To: haem@netvigator.com, gtk-list@gnome.org Subject: Re: gtk->deviceid How to use? Message-ID: <3C792823.nail7191IMBE5@w-link.net> References: <3C773384.9070104@netvigator.com> In-Reply-To: <3C773384.9070104@netvigator.com> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Lam Yick Yan > > Dear Sir, > > I have just devleoped a X input driver for my small graphic tablet. > And it is working.... Now I have cursor that will move according to > mouse OR graphic tablet. > > Now I want to develope a gtk application that will ONLY respond > the event from my graphic tablet. I have a callback function in my GTK > application, motion_notify_event and I have compared the event content > of my mouse and my graphic tablet and they look the same (the deviceid > content etc). and I have no way to distuguish whether the event is from the > mouse or from the graphic tablet. > > What did I do wrong in my driver? can please have a look at > http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether > I did wrong in the device driver? You should (I think), in principle, be able to distinguish them using the GdkInputSource (GDK_SOURCE_MOUSE vs GDK_SOURCE_PEN). If the tablet isn't giving events as GDK_SOURCE_PEN, look at the gdk source code and see how gdk determines this information from the XEvent, and make sure your driver is giving the proper information to X. Ron Steinke P.S. This is _way_ out of my area of expertise, someone please correct me if I'm wrong. From hp@redhat.com Sun Feb 24 17:18:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 3E72E181A5 for ; Sun, 24 Feb 2002 17:18:46 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMIgM09833; Sun, 24 Feb 2002 17:18:42 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Jimmy Lin" Cc: Subject: Re: When will GTK+2.0 be released? References: From: Havoc Pennington Date: 24 Feb 2002 17:18:42 -0500 In-Reply-To: Message-ID: Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Jimmy Lin" writes: > > I'm a new comer of GTK+, I noticed that the api of GTK+1.2 and > GTK+2.0 is incompatible. So should I learn GTK+2.0 is much better > now? Please give me some advices. Thanks!!! > Yes, I would start with 2.0. Havoc From hp@redhat.com Sun Feb 24 17:41:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 62F81181A5 for ; Sun, 24 Feb 2002 17:41:36 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMfZa09838; Sun, 24 Feb 2002 17:41:35 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: falconer@falconer.best.vwh.net Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests References: <20020221214604.70777.qmail@falconer.best.vwh.net> From: Havoc Pennington Date: 24 Feb 2002 17:41:35 -0500 In-Reply-To: <20020221214604.70777.qmail@falconer.best.vwh.net> Message-ID: Lines: 112 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: falconer@falconer.best.vwh.net writes: > Hi all; I just saw that gtk 2 is coming out soon. It's probably > too late for 2.0, but could I get folks to consider the following > features for a future release? These comments stem from frustrations > I encountered while developing under gtk. > > Most of these could be considered bug reports rather than changes > to the API. Both features and bug reports should go in bugzilla - http://bugzilla.gnome.org, otherwise they typically get lost. If you put the report in bugzilla you also get the nice advantage that you will be able to monitor patches and discussion relating to the feature and add your own comments, and you'll be notified when the fix goes in. Certainly a number of these comments would be useful in bugzilla. > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > arguments. gtk_window_parse_geometry(). Toolkit can't do more than that for you, as Paul points out. > * It would be very handy to be able to somehow specify the > width of a TextEntry widget in terms of displayed characters > instead of pixels. gtk_entry_set_width_chars() > * Scrollbars and scales desperately need a way for callbacks to > differentiate a scroll-in-progress from a scroll-completed type > event. I would suggest a "value-done" signal to supplement > the "value" event. (Example: a cad program that takes a long > time to rebuild the display. I want to scroll it without > rebuilding while the user manipulates the scroll bar, and then > do the rebuild when the user releases the mouse.) gtk_range_set_update_policy() is the intended feature here, though it doesn't handle the case you mention. > * It would be nice to add a scale factor option to sliders and > scrollbars so that a large mouse motion results in a small > change in slider position (very useful feature when dealing > with very small sliders. See > > http://www.efalk.org/Widgets/#slider > > for an example of one I wrote for the X intrinsics many years > ago. Wouldn't it make more sense for the slider to autocompute the scale factor depending on its size and range and step increment? > * It would be nice for TextEntry widgets to have signals which > indicate that the widget has received/lost keyboard focus. > This is especially important when losing focus, as this is > a good time for the application to validate and/or reformat > the input. There are focus_in_event and focus_out_event signals that do this as Paul pointed out. > * It would be nice to have an option for TextEntry widgets to > select their contents when gaining focus (although this could > be done manually given a focus-received signal.) GtkEntry does this by default now - now the usual request is to have an option to disable it. ;-) We may have made it a user option, I don't remember. > * I found the toolkit's habit of highlighting the widget under the > cursor rather than highlighting the widget with keyboard focus > to be confusing. I don't think it's "rather than", there are two separate kinds of indication - focus outline and prelight. This is in some sense entirely a function of the theme (a theme can disable or modify how either thing is displayed). > * It would be a nice feature to add "focus follows mouse" to the > keyboard focus mechanism. That is, moving the mouse from widget > to widget would change the focus without needing to click on > the new widget. The tab keys would still change the focus as > before. (I implemented this in my XawM toolkit, see > http://www.efalk.org/Widgets/#xawm) Hrm, I think you'll find little enthusiasm for that... no modern toolkit does this. > * Buttons should provide visual feedback when activated from keyboard > (i.e. button-pressed on key down, button-released on key up.) GTK 2 has this feature. > * It would be nice to be able to expand/collapse tree widgets with > the +/- keys. I believe GtkTreeView in GTK 2 has this feature. If not it has some other keybinding for it. > * It would be nice if I could use my own select loop with gtk; > something like: > GLib 2 is set up to allow integration with other main loops, though again Paul is right - it's a bit more complex than you were hoping. ;-) GTK has more "event sources" than just the X event queue. Havoc From hp@redhat.com Sun Feb 24 17:43:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id EF23F1878D for ; Sun, 24 Feb 2002 17:43:26 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMhOM09842; Sun, 24 Feb 2002 17:43:24 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: soppers3@cti.ecp.fr Cc: gtk-list@gnome.org Subject: Re: Will GTKGlArea be included in GTK+ one day References: <1014420468.6631.16.camel@soppera> From: Havoc Pennington Date: 24 Feb 2002 17:43:24 -0500 In-Reply-To: <1014420468.6631.16.camel@soppera> Message-ID: Lines: 15 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Stephane SOPPERA writes: > I was wondering if the GTK GlArea widget will be one day included in > GTK+? > Is it planned? > It's been discussed but I wouldn't say plans have been made. You might want to be sure there's a bug about this in bugzilla, and contact the GtkGLArea maintainer and ask him/her to add their opinion to the bug and maybe get on the CC list for the bug. Havoc From hp@redhat.com Sun Feb 24 17:45:09 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 426B018A9C for ; Sun, 24 Feb 2002 17:45:09 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1OMj8Y09846; Sun, 24 Feb 2002 17:45:08 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Johnny B ." Cc: gtk-list@gnome.org Subject: Re: linking problem References: <20020223195935.C31813@tasha.vonbek.dhs.org> <4WJFIGD8WRDB3Y8D0ZYHDURWHGOKZU.3c78ddf6@attic> <20020224085648.A2282@zappa.vonbek.dhs.org> From: Havoc Pennington Date: 24 Feb 2002 17:45:08 -0500 In-Reply-To: <20020224085648.A2282@zappa.vonbek.dhs.org> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Johnny B ." writes: > > Thanks for the info. I am indeed working with gtk-1.2 and I was > unaware that the tutorial code on the gtk web site is for gtk-2.0! > Sorry to eat your bandwidth like that! I don't see gtk-2.0 anywhere > for download so I'll assume it's not released yet. > > I'll work through the tutorial that came with the 1.2 source. I'm > trying to port a terminal app to gtk, with the hopes that it may run > on Linux, AIX and probably win32, so I'll stick with gtk-1.2. Or > should I seek out 2.0 ? Can't find it anywhere... > I'd suggest using 2.0 at this point. 2.0 isn't actually released as a final stable release; so it's called 1.3.15 still, rather than 2.0. But it will be called 2.0.0 very soon. (Planned in a week or so.) Havoc From weigelt@metux.de Sun Feb 24 23:00:11 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from annwfn.erfurt.thur.de (annwfn.erfurt.thur.de [194.122.210.1]) by mail.gnome.org (Postfix) with ESMTP id 988A41838F for ; Sun, 24 Feb 2002 23:00:09 -0500 (EST) Received: from annwfn.erfurt.thur.de (localhost [127.0.0.1]) by annwfn.erfurt.thur.de (8.12.0/8.12.0) with ESMTP id g1P408eY007631 for ; Mon, 25 Feb 2002 05:00:08 +0100 Received: (from uucp@localhost) by annwfn.erfurt.thur.de (8.12.0/8.12.0/Submit) with UUCP id g1P407wQ007630 for gtk-list@gnome.org; Mon, 25 Feb 2002 05:00:07 +0100 Received: from metux.de (localhost [127.0.0.1]) by metux.de (8.11.3/8.11.4) with ESMTP id g1P3tmm31790; Mon, 25 Feb 2002 04:55:48 +0100 Message-ID: <3C79B5C4.F1FA3AF5@metux.de> Date: Mon, 25 Feb 2002 04:55:48 +0100 From: Enrico Weigelt Reply-To: weigelt@metux.de Organization: meTUX IT services X-Mailer: Mozilla 4.76 [de] (X11; U; Linux 2.4.9 i686) X-Accept-Language: de, en MIME-Version: 1.0 To: GTK Mailing List Subject: garbage collection (long) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi folks, some month ago, i already asked for an gc implementation in GTK, but got almost no response, so i'd like to warm up the topic now. for those who are not familar with GC, some short explaination: * an garbage collector is responsible for freeing memory chunks which are not used (referenced) any longer, so it's no longer the job of the developer. * if properly implemented, the GC removes most errors situations with bad pointers, since once an pointer was initialized it will (theoretically) never point to unallocated memory. * especially when working with complex graphs (an normal GTK application already has them, even when hidden behind the ADTs), it makes code smaller, easier to understand, and much more stable. * many modern languages (i.e. oberon, java, perl, php) use GCs, but there are also GC-based memory allocators for C or C++. * in general there are two common methods for GCs. a) reference counting the GC manages an reference counter for each chunk. this counter is increased evry time the chunk gets referenced (pointer assignment) and will be decreased when the reference is removed. this method quite is easy to implement (in C with macros or in C++ by overloading pointer operations), is unproblematic in multithreaded enviroments, but can leave some trash when using ring graphs. b) conservative GC here the GC runs from time to time over the whole heap, follows pointers and marks all chunks it can reach as used. unmarked chunks can be considered as unreachable=unused and are collected/freed. an conservative GC needs to know (or guess) where pointers lay around in the chunks to follow them. the Hans-Boehm-GC is able to do this even without knowing the type infos. an disatwantage can be seen in conjunction MT-realtime-applications, since the mark phase (when walking through the heap), all threads have to stopped, but this should not be an problem if you're not really hanging on microseconds ... if someone's interested, i'll do the most of the work with implementing an GC (Hans-Boehm-GC) in glib/gtk, but i need some help with testing the build stuff (i wont touch this spooky automake) ... ~-n -- Enrico Weigelt == meTUX IT services software development, IT service, internet security solutions www: http://www.metux.de/ phone: +49 36207 519931 email: contact@metux.de cellphone: +49 174 7066481 From hp@redhat.com Mon Feb 25 00:20:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 4472C181E6 for ; Mon, 25 Feb 2002 00:20:46 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1P5Kek09925; Mon, 25 Feb 2002 00:20:40 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: weigelt@metux.de Cc: GTK Mailing List Subject: Re: garbage collection (long) References: <3C79B5C4.F1FA3AF5@metux.de> From: Havoc Pennington Date: 25 Feb 2002 00:20:40 -0500 In-Reply-To: <3C79B5C4.F1FA3AF5@metux.de> Message-ID: Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Enrico Weigelt writes: > > if someone's interested, i'll do the most of the work with implementing > an GC (Hans-Boehm-GC) in glib/gtk, but i need some help with testing the > build stuff (i wont touch this spooky automake) ... > I already did this a while ago, it's in CVS as "libggc" - I'm not sure it still works with latest GTK but fixing it should be easy. It just drops in the Boehm GC as the GLib memory allocator. It isn't all that useful though, because running the destroy/finalize methods for GObject/GtkWidget will still be controlled by the reference count instead of the GC, so you still need to hold references to everything to keep objects from being rendered useless. To make this useful GTK would have to be reworked internally to rely on it, which won't happen anytime soon. Havoc From dchiod@inwind.it Mon Feb 25 01:25:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailweb8.inwind.it (unknown [212.141.54.118]) by mail.gnome.org (Postfix) with ESMTP id DFB0B185A0 for ; Mon, 25 Feb 2002 01:25:38 -0500 (EST) Received: from inwind.it (127.0.0.1) by mailweb8.inwind.it (5.5.053) id 3C5BADD500010228 for gtk-list@gnome.org; Mon, 25 Feb 2002 07:27:44 +0100 Date: Mon, 25 Feb 2002 07:27:44 +0100 Message-Id: Subject: accessing widget property (newbie) MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable From: "Davide Chiodi" To: gtk-list@gnome.org X-XaM3-API-Version: 1.1.9.1.39.1.2 X-SenderIP: 217.56.227.2 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want change text in a label from another window( a window that isn't its parent);now, I tried GList and other stuff with the gtk_container but i'm not able to find the correct way; now i change the property making the label global and it is ok, but i think there's a more elegant way to get the goal. Thanks to anyone. Davide. From david@jopasana.com Mon Feb 25 02:32:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from jopasana.com (unknown [128.121.218.64]) by mail.gnome.org (Postfix) with ESMTP id CC49E18337 for ; Mon, 25 Feb 2002 02:32:24 -0500 (EST) Received: from [203.197.90.72] ([203.197.90.72]) by jopasana.com (8.11.6) id g1P7WM308772; Mon, 25 Feb 2002 00:32:23 -0700 (MST) Message-ID: <015701c1bdce$ddb60210$aa0ba8c0@djj> From: "David Joseph" To: Received: from no.name.available by [203.197.90.72] via smtpd (for [128.121.218.64]) with SMTP; 25 Jan 2002 07:44:57 UT Subject: Problems in attaching GtkScrolledWindow to GtkList Date: Mon, 25 Feb 2002 13:04:29 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0154_01C1BDFC.F5BC4850" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0154_01C1BDFC.F5BC4850 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi I am doing a project that involves the use of GtkList. I am trying to attach scroll bars to the lists but am not very = successful. I then tried to do a simple program to see where I was going wrong ..... = The program ran .. but I got this error on the console Gtk-CRITICAL **: file gtkscrolledwindow.c: line 951 = (gtk_scrolled_window_add_with_viewport): assertion `child->parent =3D=3D = NULL' failed. Any Idea what is going wrong here? Thanks in advance David The code is as follows: /////////////////////////////////////////////////////////////////////////= ///////////////////////// GtkWidget * create_window1 (void) { GtkWidget *window1; GtkWidget *fixed1; GtkWidget *list2; GList *list_items =3D NULL; gint count; gchar buff[3]; GtkWidget *scrolled_window =3D NULL; window1 =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (window1), "window1", window1); gtk_window_set_title (GTK_WINDOW (window1), "window1"); fixed1 =3D gtk_fixed_new (); gtk_widget_ref (fixed1); gtk_object_set_data_full (GTK_OBJECT (window1), "fixed1", fixed1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (fixed1); gtk_container_add (GTK_CONTAINER (window1), fixed1); list2 =3D gtk_list_new (); gtk_widget_ref (list2); gtk_object_set_data_full (GTK_OBJECT (window1), "list2", list2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (list2); gtk_fixed_put (GTK_FIXED (fixed1), list2, 40, 16); gtk_widget_set_uposition (list2, 40, 16); gtk_widget_set_usize (list2, 104, 136); for(count =3D 0; count <10 ; count++) { sprintf(buff, "%d", count); list_items =3D g_list_prepend(list_items, = gtk_list_item_new_with_label(buff)); } g_print("\nafter scrolled window4\n"); gtk_list_append_items(GTK_LIST(list2), list_items); g_print("\nafter scrolled window5\n"); gtk_widget_show_all(list2); =20 scrolled_window =3D gtk_scrolled_window_new(NULL,NULL); if(scrolled_window =3D=3D NULL) g_print("\nscroll =3D NULL\n"); gtk_widget_set_usize(scrolled_window, 200,200); = gtk_scrolled_window_add_with_viewport(GTK_CONTAINER(scrolled_window),list= 2); = gtk_container_set_focus_hadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_hadjustment GTK_SCROLLED_WINDOW(scrolled_window))); = gtk_container_set_focus_vadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_vadjustment(GTK_SCROLLED_WINDOW(scrolled_window))); g_print("\nafter scrolled window3\n"); =20 return window1; } /////////////////////////////////////////////////////////////////////////= ///////////////////////// ------=_NextPart_000_0154_01C1BDFC.F5BC4850 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi
I am doing a project that involves the = use of=20 GtkList.
I am trying to attach scroll bars = to the lists=20 but am not very successful.
I then tried to do a simple program to = see where I=20 was going wrong ..... The program ran .. but I got this error on the=20 console
 
Gtk-CRITICAL **: file = gtkscrolledwindow.c:=20 line 951 (gtk_scrolled_window_add_with_viewport): assertion = `child->parent =3D=3D=20 NULL' failed.
 
Any Idea what is going wrong = here?
 
Thanks in advance
David
 
The code is as follows:
////////////////////////////////////////////////////////////////= //////////////////////////////////
GtkWidget * create_window1 = (void)
{
 =20 GtkWidget *window1;
  GtkWidget *fixed1;
  GtkWidget=20 *list2;
  GList   *list_items =3D NULL;
  = gint   count;
  = gchar   buff[3];
=20   GtkWidget *scrolled_window =3D NULL;
 
  window1 =3D gtk_window_new=20 (GTK_WINDOW_TOPLEVEL);
  gtk_object_set_data (GTK_OBJECT = (window1),=20 "window1", window1);
  gtk_window_set_title (GTK_WINDOW = (window1),=20 "window1");
 
  fixed1 =3D gtk_fixed_new = ();
 =20 gtk_widget_ref (fixed1);
  gtk_object_set_data_full (GTK_OBJECT=20 (window1), "fixed1",=20 fixed1,
          &n= bsp;           &nb= sp;    =20 (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show=20 (fixed1);
  gtk_container_add (GTK_CONTAINER (window1),=20 fixed1);
 
  list2 =3D gtk_list_new = ();
 =20 gtk_widget_ref (list2);
  gtk_object_set_data_full (GTK_OBJECT=20 (window1), "list2",=20 list2,
          &nb= sp;           &nbs= p;    =20 (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show=20 (list2);
  gtk_fixed_put (GTK_FIXED (fixed1), list2, 40, = 16);
 =20 gtk_widget_set_uposition (list2, 40, 16);
  gtk_widget_set_usize = (list2,=20 104, 136);
 
  for(count =3D 0; count <10 ;=20 count++)
 {
  sprintf(buff, "%d",=20 count);
  list_items =3D g_list_prepend(list_items,=20 gtk_list_item_new_with_label(buff));
 }
  g_print("\= nafter=20 scrolled window4\n");
 gtk_list_append_items(GTK_LIST(list2),=20 list_items);
 g_print("\nafter scrolled=20 window5\n");
 gtk_widget_show_all(list2);
 
 scrolled_window =3D=20 gtk_scrolled_window_new(NULL,NULL);
 if(scrolled_window =3D=3D=20 NULL)
  g_print("\nscroll =3D NULL\n");
 gtk_widget_set_usize(scrolled_window,=20 200,200);
 gtk_scrolled_window_add_with_viewport(GTK_CONTAINER(scroll= ed_window),list2);
 gtk_container_set_focus_hadjustment(GTK_CONTAINER(list2),g= tk_scrolled_window_get_hadjustment=20 GTK_SCROLLED_WINDOW(scrolled_window)));

 gtk_container_set_fo= cus_vadjustment(GTK_CONTAINER(list2),gtk_scrolled_window_get_vadjustment(= GTK_SCROLLED_WINDOW(scrolled_window)));
 g_print("\nafter=20 scrolled window3\n");
 
  return = window1;
}
 
////////////////////////////////////////////////////////////////= //////////////////////////////////
------=_NextPart_000_0154_01C1BDFC.F5BC4850-- From Padraig.Obriain@Sun.COM Mon Feb 25 04:06:43 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34]) by mail.gnome.org (Postfix) with ESMTP id 0065E18100 for ; Mon, 25 Feb 2002 04:06:42 -0500 (EST) Received: from dub-mail1.Ireland.Sun.COM ([129.156.220.70]) by pheriche.sun.com (8.9.3+Sun/8.9.3) with ESMTP id CAA10841; Mon, 25 Feb 2002 02:06:40 -0700 (MST) Received: from maxfly (maxfly [129.156.238.23]) by dub-mail1.Ireland.Sun.COM (8.10.2+Sun/8.10.2/ENSMAIL,v2.1p1) with SMTP id g1P96du22622; Mon, 25 Feb 2002 09:06:39 GMT Message-Id: <200202250906.g1P96du22622@dub-mail1.Ireland.Sun.COM> Date: Mon, 25 Feb 2002 09:06:39 +0000 (GMT) From: "Padraig O'Briain" Reply-To: "Padraig O'Briain" Subject: Re: Trouble to compile atk-0.12 To: gtk-list@gnome.org, oliver_singla@yahoo.com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: DLwcr9KsDr4mKR/NOm8D5g== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4 SunOS 5.8 sun4u sparc Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It seems that pkg-config call for glib_genmarshal in glib-2.0 is returing the strange relative directory path ..//home/... What prefix did you specify when configuring glib? Padraig > > Hi, > > On my RH7.2 box, I have trouble to compile atk-0.12. After I have ran > .configure, here is what I get when I do a make: > > > [omsingla@oliver atk-0.12]$ make > Making all in atk > make[1]: Entering directory `/home/omsingla/gtk/1.3/atk-0.12/atk' > case ..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal in \ > .*) glib_genmarshal=`pwd`/..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmars hal ;; \ *) glib_genmarshal=..//home/omsingla/gtk/1.3/glib-1.3.14/gobject/glib-genmarshal ;; \ > esac; > \ > $glib_genmarshal --prefix=atk_marshal ./atkmarshal.list --body >> xgen-gmc \ > && (cmp -s xgen-gmc ./atkmarshal.c || cp xgen-gmc ./atkmarshal.c) \ > && rm -f xgen-gmc xgen-gmc~ \ > && echo timestamp > stamp-atkmarshal.c > /bin/sh: /home/omsingla/gtk/1.3/atk-0.12/atk/..//home/omsingla/gtk/1.3/glib-1.3.14/gobjec t/glib-genmarshal: No such file or directory > make[1]: *** [stamp-atkmarshal.c] Error 127 > make[1]: Leaving directory `/home/omsingla/gtk/1.3/atk-0.12/atk' > make: *** [all-recursive] Error 1 > [omsingla@oliver atk-0.12]$ > > Any idea ? > > TIA, > Olivier Singla > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From Steph.Fox@btinternet.com Mon Feb 25 04:08:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from rhenium.btinternet.com (rhenium.btinternet.com [194.73.73.93]) by mail.gnome.org (Postfix) with ESMTP id 7BD8618F9B for ; Mon, 25 Feb 2002 04:08:08 -0500 (EST) Received: from host62-7-81-252.in-addr.btopenworld.com ([62.7.81.252] helo=t2r1o8) by rhenium.btinternet.com with smtp (Exim 3.22 #8) id 16fH76-0000gG-00; Mon, 25 Feb 2002 09:08:05 +0000 Message-ID: <00b601c1bddb$c96966a0$96fd7ad5@t2r1o8> From: "Steph" To: "David Joseph" , References: <015701c1bdce$ddb60210$aa0ba8c0@djj> Subject: Re: Problems in attaching GtkScrolledWindow to GtkList Date: Mon, 25 Feb 2002 09:05:53 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yeah, the list already has a parent - the 'fixed'. ps html drives the regulars mad .. ----- Original Message -----=20 From: "David Joseph" To: Sent: Monday, February 25, 2002 7:34 AM Subject: Problems in attaching GtkScrolledWindow to GtkList=20 Hi I am doing a project that involves the use of GtkList. I am trying to attach scroll bars to the lists but am not very = successful. I then tried to do a simple program to see where I was going wrong ..... = The program ran .. but I got this error on the console Gtk-CRITICAL **: file gtkscrolledwindow.c: line 951 = (gtk_scrolled_window_add_with_viewport): assertion `child->parent =3D=3D = NULL' failed. Any Idea what is going wrong here? Thanks in advance David The code is as follows: /////////////////////////////////////////////////////////////////////////= ///////////////////////// GtkWidget * create_window1 (void) { GtkWidget *window1; GtkWidget *fixed1; GtkWidget *list2; GList *list_items =3D NULL; gint count; gchar buff[3]; GtkWidget *scrolled_window =3D NULL; window1 =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_object_set_data (GTK_OBJECT (window1), "window1", window1); gtk_window_set_title (GTK_WINDOW (window1), "window1"); fixed1 =3D gtk_fixed_new (); gtk_widget_ref (fixed1); gtk_object_set_data_full (GTK_OBJECT (window1), "fixed1", fixed1, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (fixed1); gtk_container_add (GTK_CONTAINER (window1), fixed1); list2 =3D gtk_list_new (); gtk_widget_ref (list2); gtk_object_set_data_full (GTK_OBJECT (window1), "list2", list2, (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (list2); gtk_fixed_put (GTK_FIXED (fixed1), list2, 40, 16); gtk_widget_set_uposition (list2, 40, 16); gtk_widget_set_usize (list2, 104, 136); for(count =3D 0; count <10 ; count++) { sprintf(buff, "%d", count); list_items =3D g_list_prepend(list_items, = gtk_list_item_new_with_label(buff)); } g_print("\nafter scrolled window4\n"); gtk_list_append_items(GTK_LIST(list2), list_items); g_print("\nafter scrolled window5\n"); gtk_widget_show_all(list2); =20 scrolled_window =3D gtk_scrolled_window_new(NULL,NULL); if(scrolled_window =3D=3D NULL) g_print("\nscroll =3D NULL\n"); gtk_widget_set_usize(scrolled_window, 200,200); = gtk_scrolled_window_add_with_viewport(GTK_CONTAINER(scrolled_window),list= 2); = gtk_container_set_focus_hadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_hadjustment GTK_SCROLLED_WINDOW(scrolled_window))); = gtk_container_set_focus_vadjustment(GTK_CONTAINER(list2),gtk_scrolled_win= dow_get_vadjustment(GTK_SCROLLED_WINDOW(scrolled_window))); g_print("\nafter scrolled window3\n"); =20 return window1; } /////////////////////////////////////////////////////////////////////////= ///////////////////////// From kasonhuang@kinposh.com.cn Mon Feb 25 04:18:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 6592518211 for ; Mon, 25 Feb 2002 04:18:09 -0500 (EST) Subject: FW: About the focus move in table? Date: Mon, 25 Feb 2002 17:17:13 +0800 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C1BDDD.3626FC52" Message-ID: <92CD479384374A439EFA0077E7C50F82260CE2@kes01.kinposh.com.cn> X-MS-Has-Attach: yes content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: About the focus move in table? Thread-Index: AcG8BZGUSrsvSSg0Eda2ugCAyEUULQB1dxNQ From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1BDDD.3626FC52 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable -----Original Message----- From: =B6=C0=BCy Kason Huang=20 Sent: Saturday, February 23, 2002 9:01 AM To: gtk-list@gnome.org Subject: About the focus move in table? hi guys:=20 anyone could tell how to change the focus in three tables(there is a lot = of buttons in each table) with keyboard.=20 and I find that the buttons focus in one table couldn't be changed = smoothly.for example,when you press left key on keyboard,you expect the = focus will move to the left button,however the focus maybe move to the a = button on the bottom of the table. a table's layout like tablelayout.doc picture:(24 buttons in one table) = =20 when focus in 14 button,i press down key on keyboard.i expect the focus = will move to the 20 button,the result is the focus moves to the15 button = or other button,not 20 button.the same thing is happen to the 18,20 = button.do anyone knows how to handle with the problem? or how to control = the focus in a table? Thanks in advance!=20 kason=20 ------_=_NextPart_001_01C1BDDD.3626FC52 Content-Type: application/msword; name="tablelayout.doc" Content-Transfer-Encoding: base64 Content-Description: tablelayout.doc Content-Disposition: attachment; filename="tablelayout.doc" 0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAIQAAAAAAAAAA EAAAIwAAAAEAAAD+////AAAAACAAAAD///////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////s pcEATSAJBAAA8FK/AAAAAAAAEAAAAAAABAAAzwQAAA4AYmpiauI94j0AAAAAAAAAAAAAAAAAAAAA AAAEBBYAMgwAAIBXAACAVwAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAAAAAAAAAD//w8AAAAA AAAAAAD//w8AAAAAAAAAAAD//w8AAAAAAAAAAAAAAAAAAAAAAGwAAAAAAJAAAAAAAAAAkAAAAJAA AAAAAAAAkAAAAAAAAADgAAAAAAAAAOAAAAAAAAAA4AAAABQAAAAAAAAAAAAAAPQAAAAAAAAA1AEA AAAAAADUAQAAAAAAANQBAAAAAAAA1AEAAAwAAADgAQAADAAAAPQAAAAAAAAAdAoAAPoAAAD4AQAA AAAAAPgBAAAAAAAA+AEAAAAAAAD4AQAAAAAAAPgBAAAAAAAAcQkAAAAAAABxCQAAAAAAAHEJAAAA AAAA8wkAAAIAAAD1CQAAAAAAAPUJAAAAAAAA9QkAAAAAAAD1CQAAAAAAAPUJAAAAAAAA9QkAACQA AABuCwAAIAIAAI4NAAA+AAAAGQoAABUAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAABxCQAAAAAA AAAAAAAAAAAAAAAAAAAAAABPCQAAIgAAAHEJAAAAAAAAcQkAAAAAAABxCQAAAAAAABkKAAAAAAAA rwkAAAAAAACQAAAAAAAAAJAAAAAAAAAA+AEAAAAAAAAAAAAAAAAAAPgBAABXBwAALgoAABYAAACv CQAAAAAAAK8JAAAAAAAArwkAAAAAAABxCQAAAAAAAJAAAAA4AAAA+AEAAAAAAADgAAAAAAAAAPgB AAAAAAAA8wkAAAAAAAAAAAAAAAAAAK8JAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAcQkAAAAAAADzCQAAAAAAAK8JAABEAAAArwkAAAAAAAAAAAAA AAAAAPMJAAAAAAAAyAAAABgAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8wkAAAAAAAD4AQAAAAAAAOwBAAAMAAAAYAmb7dy9 wQH0AAAA4AAAANQBAAAAAAAAcQkAABAAAADzCQAAAAAAAAAAAAAAAAAA8wkAAAAAAABECgAAMAAA AHQKAAAAAAAA8wkAAAAAAADMDQAAAAAAAIEJAAAuAAAAzA0AAAAAAADzCQAAAAAAAK8JAAAAAAAA 9AAAAAAAAAD0AAAAAAAAAJAAAAAAAAAAkAAAAAAAAACQAAAAAAAAAJAAAAAAAAAAAgDZAAAACA0x ICAgICAgICAyICAgICAgIDMgICAgICAgNCAgICAgICA1ICAgICAgIDYgICAgICAgIDcNDTggICAg ICAgIDkgICAgICAxMCAgICAgIDExICAgICAgIDEyICAgICAgMTMgICAgICAgIDE0DQ0xNSAgICAg ICAxNiAgICAgMTcgICAgICAxOCAgICAgIDE5ICAgICAgICAgIDIwDQ0yMSAgICAgICAgMjIgICAg ICAgMjMgICAgICAgICAgICAgICAgICAgICAgMjQNDQ0NAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAA AQQAAM8EAADzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYA2oAAAAAQ0oUAFUIAW1IAARuSAAEdQgBAgAEAAAC BAAANgQAADcEAABtBAAAbgQAAJ0EAACeBAAAzAQAAM0EAADOBAAAzwQAAP0AAAAAAAAAAAAAAAD9 AAAAAAAAAAAAAAAA/QAAAAAAAAAAAAAAAP0AAAAAAAAAAAAAAAD9AAAAAAAAAAAAAAAA/QAAAAAA AAAAAAAAAP0AAAAAAAAAAAAAAAD9AAAAAAAAAAAAAAAA/QAAAAAAAAAAAAAAAP0AAAAAAAAAAAAA AAD9AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAALAAQAAAIE AADOBAAA/v4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBAQIwADGQaAEy UAIAH7CCLiCwxkEhsAgHIrAIByOQoAUkkKAFJbAAABewUwMYsOADDJCpAQAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAPAAoAAQBp AA8AAwAAAAMAAAAAAEAAAEDx/wIAQAAMAAIAZ1GHZQAABQAAADEkAAAkAENKGABLSAIAUEoDAF9I AQRhShgAbUgJBG5IBARzSAkEdEgEBAAAAAAAAAAAAAAAAAAAAAAAABwAQUDy/6EAHAAMAAYAEJgt irVrPYRXW4tXAAAAAAAAAAAAAAAAAAAAAMsAAADPAAAAAQAAAAAAAAAAAP////8CBAAAAAAAAP// //8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAywAAAM4AAAAAAAAAAAj//wAAAAAAAAAAzwAAAAcAAAwA AAAA/////wAAAAACAAAANgAAADcAAABtAAAAbgAAAJ0AAACeAAAAzAAAAM0AAADQAAAAmAAAAAAw AAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAA AAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAA AIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAAAACAmAAAAAAwAAAAAAAAAIAA AACAAAQAAM8EAAADAAAAAAQAAM8EAAAEAAAAAAQAAM4EAAAFAAAADwAA8DgAAAAAAAbwGAAAAAII AAACAAAADQAAAAEAAAABAAAADgAAAEAAHvEQAAAA//8AAAAA/wCAgIAA9wAAEAAPAALwDgcAABAA CPAIAAAADAAAAA0EAAAPAAPwrAYAAA8ABPAoAAAAAQAJ8BAAAAAAAAAAAAAAAAAAAAAAAAAAAgAK 8AgAAAAABAAABQAAAA8AA/B0BgAADwAE8JYAAAABAAnwEAAAACQJAAAIBwAAkCQAAEgSAAACAArw CAAAAA0EAAABAgAAIwAL8DoAAACDwy4AAAC/AwAAQAAFAAgACADS////AAAAANL///9gVAAAvFQA AGBUAAC8VAAAAAAAANL///8AAAAAIwAi8QwAAACPAwAAAACRAwAAAAAAABDwBAAAAAAAAAAAABHw BAAAAAEAAAAPAATwiAAAABIACvAIAAAAAgQAAAIKAAAzAAvwQAAAAIAAAAABAIPDLgAAAL8DAABA AAUACAAIANL///8AAAAA0v///2BUAACOVAAAYFQAAI5UAAAAAAAA0v///wAAAAAAAA/wEAAAACQJ AAAIBwAAkCQAAEgSAAAAABHwBAAAABcAAAAAAA3wBAAAAAAAAQAPAATwjgAAAEIBCvAIAAAABAQA AAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIANL/ //8AAAAA0v///wAAAACOVAAAAAAAAI5UAAAAAAAA0v///wAAAAAAAA/wEAAAACQJAADYCQAAkCQA ANgJAAAAABHwBAAAABAAAAAPAATwjgAAAEIBCvAIAAAABQQAAAIKAABjAAvwUgAAAEQBBAAAAH8B AAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIANL///8AAAAA0v///wAAAACOVAAAAAAA AI5UAAAAAAAA0v///wAAAAAAAA/wEAAAACQJAACoDAAAkCQAAKgMAAAAABHwBAAAABAAAAAPAATw jgAAAEIBCvAIAAAABgQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAA AL8DAABAAAUACAAIANL///8AAAAA0v///wAAAACOVAAAAAAAAI5UAAAAAAAA0v///wAAAAAAAA/w EAAAACQJAAB4DwAAkCQAAHgPAAAAABHwBAAAABAAAAAPAATwjgAAAEIBCvAIAAAABwQAAAIKAABj AAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAA AAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAAKgMAAAIBwAAqAwAAEgSAAAA ABHwBAAAABAAAAAPAATwjgAAAEIBCvAIAAAACAQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8B AAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAA AAAAAAAAAAAAAAAAAA/wEAAAACwQAAAIBwAALBAAAEgSAAAAABHwBAAAABUAAAAPAATwjgAAAEIB CvAIAAAACQQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABA AAUACAAIAAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAALAT AAAIBwAAsBMAAHgPAAAAABHwBAAAABsAAAAPAATwjgAAAEIBCvAIAAAACgQAAAIKAABjAAvwUgAA AEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAAAAAAAPBT AAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAADQXAAAIBwAANBcAAEgSAAAAABHwBAAA ABwAAAAPAATwjgAAAEIBCvAIAAAACwQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8B EAAQAIPDLgAAAL8DAABAAAUACAAIAAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAA AAAAAAAAAA/wEAAAAGwbAAAIBwAAbBsAAHgPAAAAABHwBAAAAB0AAAAPAATwjgAAAEIBCvAIAAAA DAQAAAIKAABjAAvwUgAAAEQBBAAAAH8BAAABAL8BAAAQAP8BEAAQAIPDLgAAAL8DAABAAAUACAAI AAAAAAAAAAAAAAAAAPBTAAAAAAAA8FMAAAAAAAAAAAAAAAAAAAAAAAAAAA/wEAAAAKQfAAAIBwAA pB8AAKgMAAAAABHwBAAAABwAAAAPAATwQgAAABIACvAIAAAAAQQAAAAOAABTAAvwHgAAAL8BAAAQ AMsBAAAAAP8BAAAIAAQDCQAAAD8DAQABAAAAEfAEAAAAAQAAAAAAAADPAAAADQQAABwCAABUBgAA IBwAAJQRAACUAAAAAAAAAAAAAgAAANAAAAAHAAcAAAAAAAIAAAA1AAAANwAAAG0AAABuAAAAywAA ANAAAAAHAAUABwAFAAcABQAHAP//AgAAAAUAQwBsAGkAbgBlABgAQwA6AFwATQB5ACAARABvAGMA dQBtAGUAbgB0AHMAXABEAG8AYwAxAC4AZABvAGMA/0ADgAEAAAAAAAAAAADI6G4AAQAAAAAAAAAA AAAAAAAAAAAAAAACEAAAAAAAAADPAAAAcAAACABAAAD//wEAAAAHAFUAbgBrAG4AbwB3AG4A//8B AAgAAAAAAAAAAAAAAP//AQAAAAAA//8AAAIA//8AAAAA//8AAAIA//8AAAAABAAAAEcWkAEAAAIC BgMFBAUCAwSHOgAAAAAAAAAAAAAAAAAA/wAAAAAAAABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBt AGEAbgAAADUWkAECAAUFAQIBBwYCBQcAAAAAAAAAEAAAAAAAAAAAAAAAgAAAAABTAHkAbQBiAG8A bAAAADMmAAAAAAILBgQCAgICAgSHOgAAAAAAAAAAAAAAAAAA/wAAAAAAAABBAHIAaQBhAGwAAABD FpABiAUCAgMAAAAAAAAAAQAAAAAACAgQAAAAAAAAAAAAEAAAAAAAsGUwfQ5m1JoAAFAATQBpAG4A ZwBMAGkAVQAAACAABAAxCIgYAADgAQAAaAEAAAAARMxiJk/MYiYAAAAAAQALAAAAAAAAAAEAAAAB AAEAAAAEAAMQAQAAAAAAAAAAAAAAAQABAAAAAQAAAAAAAAAhAwAAAAAAAAMAPwAcACEAKQAsAC4A OgA7AD8AXQB9AKIAtwATIBQgGSAdICIgJSAmICcgMiB0JQEwAjAJMAswDTAPMBEwFTAeMDD+Mf4z /jT+Nv44/jr+PP4+/kD+Qv5E/k/+UP5R/lL+VP5V/lb+V/5a/lz+Xv4B/wn/DP8O/xr/G/8f/1z/ Xf9k/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAFsAewCjAKUAGCAcIDUgCDAKMAwwDjAQMBQwHTA1/jf+ Of47/j3+P/5B/kP+Wf5b/l3+CP9b/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAIB6AFtAC0AIKAcgAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAA AAEygxEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//xIAAAAAAAAAAAAAAAAA AAAFAEMAbABpAG4AZQAFAEMAbABpAG4AZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP7/AAAECgIAAAAAAAAAAAAA AAAAAAAAAAEAAADghZ/y+U9oEKuRCAArJ7PZMAAAAGgBAAARAAAAAQAAAJAAAAACAAAAmAAAAAMA AACkAAAABAAAALAAAAAFAAAAwAAAAAYAAADMAAAABwAAANgAAAAIAAAA7AAAAAkAAAD8AAAAEgAA AAgBAAAKAAAAJAEAAAwAAAAwAQAADQAAADwBAAAOAAAASAEAAA8AAABQAQAAEAAAAFgBAAATAAAA YAEAAAIAAAC2AwAAHgAAAAEAAAAAAHMAHgAAAAEAAAAAAHMAHgAAAAYAAABDbGluZQBmAB4AAAAB AAAAAGxpbh4AAAABAAAAAGxpbh4AAAALAAAATm9ybWFsLmRvdAAAHgAAAAYAAABDbGluZQAuZB4A AAACAAAAMQBpbh4AAAATAAAATWljcm9zb2Z0IFdvcmQgOS4wAABAAAAAAAJkiQEAAABAAAAAAIAR Xdu9wQFAAAAAAIJ15ty9wQEDAAAAAQAAAAMAAAAAAAAAAwAAAAEAAAADAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/wAABAoCAAAAAAAAAAAAAAAAAAAAAAAB AAAAAtXN1ZwuGxCTlwgAKyz5rjAAAADsAAAADAAAAAEAAABoAAAADwAAAHAAAAAFAAAAgAAAAAYA AACIAAAAEQAAAJAAAAAXAAAAmAAAAAsAAACgAAAAEAAAAKgAAAATAAAAsAAAABYAAAC4AAAADQAA AMAAAAAMAAAAzQAAAAIAAAC2AwAAHgAAAAYAAABLaW5wbwBucAMAAAABAAAAAwAAAAEAAAADAAAA AQAAAAMAAADtDgkACwAAAAAAAAALAAAAAAAAAAsAAAAAAAAACwAAAAAAAAAeEAAAAQAAAAEAAAAA DBAAAAIAAAAeAAAABQAAALzQw0QAAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAIAAAADAAAABAAAAAUAAAAGAAAABwAAAP7///8J AAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAA/v///xEAAAASAAAAEwAAABQAAAAVAAAAFgAAABcA AAD+////GQAAABoAAAAbAAAAHAAAAB0AAAAeAAAAHwAAAP7////9////IgAAAP7////+/////v// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////9SAG8AbwB0ACAARQBuAHQAcgB5AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFgAFAf//////////AwAAAAYJAgAAAAAAwAAA AAAAAEYAAAAAAAAAAAAAAAAgMaTt3L3BASQAAACAAAAAAAAAADEAVABhAGIAbABlAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAIA//////////// ////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAQAAAAAAAAVwBvAHIA ZABEAG8AYwB1AG0AZQBuAHQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABoAAgEFAAAA//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABAAAAAAAAAFAFMAdQBtAG0AYQByAHkASQBuAGYAbwByAG0AYQB0AGkAbwBuAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAKAACAQIAAAAEAAAA/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAABAAAAAAEAAAAAAAAAUARABvAGMAdQBtAGUAbgB0AFMAdQBtAG0AYQByAHkASQBu AGYAbwByAG0AYQB0AGkAbwBuAAAAAAAAAAAAAAA4AAIB////////////////AAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAAQAAAAAAAAAQBDAG8AbQBwAE8AYgBqAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAgEBAAAABgAAAP// //8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZgAAAAAAAABPAGIAagBl AGMAdABQAG8AbwBsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA FgABAP///////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAIDGk7dy9wQEgMaTt3L3BAQAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA////////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAP7///////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////8BAP7/AwoAAP////8GCQIAAAAAAMAAAAAAAABGFAAAAE1pY3Jv c29mdCBXb3JkIKTlpfMACgAAAE1TV29yZERvYwAQAAAAV29yZC5Eb2N1bWVudC44APQ5snEAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAA== ------_=_NextPart_001_01C1BDDD.3626FC52-- From lettere@di.unipi.it Mon Feb 25 04:30:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailserver.di.unipi.it (apis.di.unipi.it [131.114.4.6]) by mail.gnome.org (Postfix) with ESMTP id B044318766 for ; Mon, 25 Feb 2002 04:30:16 -0500 (EST) Received: from orione.di.unipi.it (orione [131.114.2.112]) by mailserver.di.unipi.it (8.11.6/8.11.6) with ESMTP id g1P9U5m31578 for ; Mon, 25 Feb 2002 10:30:05 +0100 Received: from localhost (lettere@localhost) by orione.di.unipi.it (8.11.2/8.9.1) with ESMTP id g1P9UcB26585 for ; Mon, 25 Feb 2002 10:30:38 +0100 X-Authentication-Warning: orione.di.unipi.it: lettere owned process doing -bs Date: Mon, 25 Feb 2002 10:30:38 +0100 (CET) From: Marco Lettere To: Subject: how to align a label in GtkTable Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello, I always get a label attached in a GtkTable to be centered in its cell. How do I get it to be left aligned? is it possible using only gtk_table_*() or gtk_label_*() functions? thanx, M. ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| From kasonhuang@kinposh.com.cn Mon Feb 25 04:37:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 3A3B418C94 for ; Mon, 25 Feb 2002 04:37:37 -0500 (EST) Subject: RE: how to align a label in GtkTable Date: Mon, 25 Feb 2002 17:36:42 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: how to align a label in GtkTable Thread-Index: AcG93xNEYNo31mkHQeiwoEBleADDCQAAGWIA From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: "Marco Lettere" Cc: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi: you could try gtk_label_set_justify(GtkLabel *label,GtkJustification = jtype); typedef enum { GTK_JUSTIFY_LEFT, GTK_JUSTIFY_RIGHT, GTK_JUSTIFY_CENTER, GTK_JUSTIFY_FILL } GtkJustification; for example: gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT); -----Original Message----- From: Marco Lettere [mailto:lettere@di.unipi.it] Sent: Monday, February 25, 2002 5:31 PM To: gtk-list@gnome.org Subject: how to align a label in GtkTable hello, I always get a label attached in a GtkTable to be centered in its cell. How do I get it to be left aligned? is it possible using only gtk_table_*() or gtk_label_*() functions? thanx, M. ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| _______________________________________________ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list From anjali_grover@yahoo.com Mon Feb 25 04:46:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14606.mail.yahoo.com (web14606.mail.yahoo.com [216.136.224.86]) by mail.gnome.org (Postfix) with SMTP id 617BF18C94 for ; Mon, 25 Feb 2002 04:46:14 -0500 (EST) Message-ID: <20020225094613.99455.qmail@web14606.mail.yahoo.com> Received: from [155.69.5.223] by web14606.mail.yahoo.com via HTTP; Mon, 25 Feb 2002 01:46:13 PST Date: Mon, 25 Feb 2002 01:46:13 -0800 (PST) From: Anjali Grover Subject: Making Linux system calls as a signal to an event To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I am a new user of GTK. I want to execute a Linux system call (like "ls" or "make" on the command line) by clicking on a button on my GTK interface. I am using C for my GTK code. I have associate the "clicked" event to my button as a signal to call a callback function. Within this callback function, how can I make system calls. ALso, how can I send parameters filled in by the user in my text entries to my other C files. I need to pass the content of the text entries to variables inside my other C files. Thank you, Anjali __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From lettere@di.unipi.it Mon Feb 25 04:46:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailserver.di.unipi.it (apis.di.unipi.it [131.114.4.6]) by mail.gnome.org (Postfix) with ESMTP id D9C7218C94 for ; Mon, 25 Feb 2002 04:46:16 -0500 (EST) Received: from orione.di.unipi.it (orione [131.114.2.112]) by mailserver.di.unipi.it (8.11.6/8.11.6) with ESMTP id g1P9k4m00765; Mon, 25 Feb 2002 10:46:04 +0100 Received: from localhost (lettere@localhost) by orione.di.unipi.it (8.11.2/8.9.1) with ESMTP id g1P9kcv26730; Mon, 25 Feb 2002 10:46:38 +0100 X-Authentication-Warning: orione.di.unipi.it: lettere owned process doing -bs Date: Mon, 25 Feb 2002 10:46:38 +0100 (CET) From: Marco Lettere To: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= Cc: Subject: RE: how to align a label in GtkTable In-Reply-To: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Mon, 25 Feb 2002, [big5] =B6=C0=BCy Kason Huang wrote: yes I tried it by it doesn't seem to work in a table cell context. I do create a table, create a label, set the label justification and then attach the label. I don't know if I'm doing something wrong. Are there some caveats like "first set alignment of the label and then attach it to the table" or or viceversa? M. > hi: > you could try gtk_label_set_justify(GtkLabel *label,GtkJustification jtyp= e); > typedef enum > { > GTK_JUSTIFY_LEFT, > GTK_JUSTIFY_RIGHT, > GTK_JUSTIFY_CENTER, > GTK_JUSTIFY_FILL > } GtkJustification; > > > hello, > > I always get a label attached in a GtkTable to be centered in its cell. > How do I get it to be left aligned? is it possible using only > gtk_table_*() or gtk_label_*() functions? > thanx, > M. > > ____ _____ > | _ \ ___ ___ _ __| ____| > | | | |/ __/ _ \| '__| _| > | |_| | (_| (_) | | | |___ > |____/ \___\___/|_| |_____| > > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > ____ _____ | _ \ ___ ___ _ __| ____| | | | |/ __/ _ \| '__| _| | |_| | (_| (_) | | | |___ |____/ \___\___/|_| |_____| From kasonhuang@kinposh.com.cn Mon Feb 25 05:10:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id B174018163 for ; Mon, 25 Feb 2002 05:10:44 -0500 (EST) Subject: about curses programming? Date: Mon, 25 Feb 2002 18:09:49 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F82260CE8@kes01.kinposh.com.cn> X-MS-Has-Attach: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-TNEF-Correlator: Thread-Topic: about curses programming? Thread-Index: AcG95I2fx3U53SoQEda2ugCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Cc: "Paul Davis" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello: it 's not gtk problem. anyone know Curses programming? how to create Makefile,how to make? like the following code how to do? /* File: helloworld.c */ #include int main(int argc, char *argv[]) { initscr(); =09 box(stdscr, ACS_VLINE, ACS_HLINE); =09 mvaddstr(11, 30, "Hello World!"); refresh(); getch(); endwin(); return 0; } Thanks for you help. kason From Steph.Fox@btinternet.com Mon Feb 25 05:13:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium.btinternet.com (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id D70BF18830 for ; Mon, 25 Feb 2002 05:13:12 -0500 (EST) Received: from host213-1-158-138.btinternet.com ([213.1.158.138] helo=t2r1o8) by protactinium.btinternet.com with smtp (Exim 3.22 #8) id 16fI7v-0005QJ-00; Mon, 25 Feb 2002 10:13:00 +0000 Message-ID: <00da01c1bde4$dad6fc00$96fd7ad5@t2r1o8> From: "Steph" To: "Marco Lettere" , "=?iso-8859-1?B?tsC8eSBLYXNvbiBIdWFuZw==?=" Cc: References: Subject: Re: how to align a label in GtkTable Date: Mon, 25 Feb 2002 10:11:48 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I've never managed to get the text justification working in a label = either. But GtkMisc functions set_alignment(x, y) and set_padding(x, y) work = just fine .. ----- Original Message -----=20 From: "Marco Lettere" To: "=B6=C0=BCy Kason Huang" Cc: Sent: Monday, February 25, 2002 9:46 AM Subject: RE: how to align a label in GtkTable On Mon, 25 Feb 2002, [big5] =B6=C0=BCy Kason Huang wrote: yes I tried it by it doesn't seem to work in a table cell context. I do create a table, create a label, set the label justification and then attach the label. I don't know if I'm doing something wrong. Are there some caveats like "first set alignment of the label and then attach it to the table" or or viceversa? M. > hi: > you could try gtk_label_set_justify(GtkLabel *label,GtkJustification = jtype); > typedef enum > { > GTK_JUSTIFY_LEFT, > GTK_JUSTIFY_RIGHT, > GTK_JUSTIFY_CENTER, > GTK_JUSTIFY_FILL > } GtkJustification; > > > hello, > > I always get a label attached in a GtkTable to be centered in its = cell. > How do I get it to be left aligned? is it possible using only > gtk_table_*() or gtk_label_*() functions? > thanx, > M. > > ____ _____ > | _ \ ___ ___ _ __| ____| > | | | |/ __/ _ \| '__| _| > | |_| | (_| (_) | | | |___ > |____/ \___\___/|_| |_____| > > > _______________________________________________ > 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 John.Cupitt@ng-london.org.uk Mon Feb 25 07:14:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id C10C518779 for ; Mon, 25 Feb 2002 07:14:07 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMF7X>; Mon, 25 Feb 2002 12:14:06 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMF74; Mon, 25 Feb 2002 12:13:57 -0000 Message-ID: <3C7A2734.1090803@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: ehml@pacific.net.sg Cc: gtk-list@gnome.org Subject: Re: Scrolled window unable to handle huge list ( > 1700 entries) in it Date: Mon, 25 Feb 2002 11:59:48 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ehml wrote: > I notice that when I have more than 1700 (exact number is around 167+) > entries in a list (or tree), and the list is in a scrolled window, it will > not be displayed correctly. Anyone know limitation on the number of entry > (or height) a scrolled window can support, and is there a known way to > workaround this? Hi, GtkList and GtkTree use an X window to scroll. X windows have 16-bit coordinates, so you're probably running into a 32767 pixel limit. I think GtkCList does not have this problem. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From pvosta@unionbio-eu.com Mon Feb 25 07:15:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from unionbio-eu.com (unknown [213.193.139.10]) by mail.gnome.org (Postfix) with SMTP id 66DC01879B for ; Mon, 25 Feb 2002 07:15:45 -0500 (EST) Received: (qmail 25003 invoked from network); 25 Feb 2002 12:11:50 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 25 Feb 2002 12:11:50 -0000 Message-ID: <3C7A2AAF.89B66FFE@unionbio-eu.com> Date: Mon, 25 Feb 2002 13:14:39 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: list of functions in menu Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want to build software on RedHat Linux 7.2 with a frontend based on GTK. I already have several C-functions that will be the "backend" of the application. I am now looking for a way to use a list of these functions with their arguments to put them "automatically" into menus and submenus in a graphical interface. So eg. the interface item for the function "readimage( file )" would be placed in a window with automatic generation a text box "readimage" to fill out the filename or even a filebrowser. Are there tools available to do this ? Best regards, Peter From John.Cupitt@ng-london.org.uk Mon Feb 25 07:25:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 65D971879B for ; Mon, 25 Feb 2002 07:25:38 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMF89>; Mon, 25 Feb 2002 12:25:37 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMF88; Mon, 25 Feb 2002 12:25:32 -0000 Message-ID: <3C7A29EB.7040902@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: ehml@pacific.net.sg Cc: gtk-list@gnome.org Subject: Re: key input get grab by other widget Date: Mon, 25 Feb 2002 12:11:23 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: ehml wrote: > In the drawing-area, I assign "key press event" to it. It work find for key > like "a" and "b", but does not work for arrow key. Once I press a arrow key, > the "check button" grab that input, and subsequently, all key is grab by the > "check button". The same will happen if I point at the menu-bar and click in a > empty space following by pressing a key. What I need is: > > If the pointer is in the drawing-area, drawing-area should grab all key event. Hi again :) the problem is that GtkDrawingArea does not implement any of the focus stuff that other widgets have (eg. drawing a focus highlight, catching focus_in/_out events, etc.). This means that keyboard input to a drawing area does not work well, especially if you mix drawing areas and widgets with "real" keyboard handling. I think the best solution is to subclass drawing area and implement the gtk focus system. It's not actually that hard ... when I did this I think I read gtkbutton and based it on that code. As I recall, you just need to implement draw_focus focus_in_event focus_out_event button_press_event button_release_event expose (you need to add code to draw the focus indicator) John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From John.Cupitt@ng-london.org.uk Mon Feb 25 07:28:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 133B618779 for ; Mon, 25 Feb 2002 07:28:18 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMF9P>; Mon, 25 Feb 2002 12:28:17 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMF93; Mon, 25 Feb 2002 12:28:08 -0000 Message-ID: <3C7A2A88.7060406@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: Romain.Parmantier@wanadoo.fr Cc: gtk-list@gnome.org Subject: Re: GTK Background Date: Mon, 25 Feb 2002 12:14:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Romain wrote: > For my application, I need a transparent background for a GtkText (not a > white background). It is possible? And how can I do this if it is possible ? You can have a static pixmap in the background with a theme, but I think that's all you can do without a lot of work :-( Of course, I'm probably wrong. John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From hp@redhat.com Mon Feb 25 10:37:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 16D63193BE for ; Mon, 25 Feb 2002 10:37:16 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1PFbCa10189; Mon, 25 Feb 2002 10:37:12 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: =?big5?b?tsC8eQ==?= Kason Huang Cc: "Marco Lettere" , Subject: Re: how to align a label in GtkTable References: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> From: Havoc Pennington Date: 25 Feb 2002 10:37:12 -0500 In-Reply-To: <92CD479384374A439EFA0077E7C50F82260CE5@kes01.kinposh.com.cn> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: =B6=C0=BCy Kason Huang writes: > hi: > you could try gtk_label_set_justify(GtkLabel *label,GtkJustification jtyp= e); > typedef enum > { > GTK_JUSTIFY_LEFT, > GTK_JUSTIFY_RIGHT, > GTK_JUSTIFY_CENTER, > GTK_JUSTIFY_FILL > } GtkJustification; >=20 > for example: > gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_LEFT); >=20 This is the wrong function - see the FAQ. You want gtk_misc_set_alignment() Havoc From anjali_grover@yahoo.com Mon Feb 25 10:43:06 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14608.mail.yahoo.com (web14608.mail.yahoo.com [216.136.224.88]) by mail.gnome.org (Postfix) with SMTP id AFBFC187D4 for ; Mon, 25 Feb 2002 10:43:05 -0500 (EST) Message-ID: <20020225154305.35127.qmail@web14608.mail.yahoo.com> Received: from [155.69.5.223] by web14608.mail.yahoo.com via HTTP; Mon, 25 Feb 2002 07:43:05 PST Date: Mon, 25 Feb 2002 07:43:05 -0800 (PST) From: Anjali Grover Subject: Plotting x-y graph with GTK To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Is there a way to plot a linear x versus y graph on the GUI developed with GTK? Thanx! Anjali __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From rwalden@tripos.com Mon Feb 25 11:42:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id AFE3B18B19 for ; Mon, 25 Feb 2002 11:42:41 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id KAA29754 for ; Mon, 25 Feb 2002 10:42:40 -0600 (CST) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma029691; Mon, 25 Feb 02 10:41:51 -0600 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id KAA43025 for ; Mon, 25 Feb 2002 10:41:51 -0600 (CST) Message-ID: <3C7A694E.FE8E50DD@tripos.com> Date: Mon, 25 Feb 2002 10:41:50 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: GTK List Subject: GTK_TYPE_BOXED References: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I'm attempting to port some gtk+-1.2 widgets to 2.0 (1.3.13 actually) and I'm running into a problem with an object that is derived from a GTK_TYPE_BOXED type. This seems to cause a segfault in the g_type system. I found some mention of this in the some of the list archives, but I couldn't figure what the resolution was. Is it an O.K. thing to derive objects from GTK_TYPE_BOXED and expect it to work with the new g_type system? Sorry for being so vague, but I'm on the fuzzy frontier of the understanding of my own problem... :) Thanks, Ralph Walden -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From flavio@maqplas.com.br Mon Feb 25 12:36:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sithdroid.ns1.com.br (sithdroid.ns1.com.br [200.185.44.17]) by mail.gnome.org (Postfix) with ESMTP id B376218B30 for ; Mon, 25 Feb 2002 12:36:23 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by sithdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1PHa8Aj024452 for ; Mon, 25 Feb 2002 14:36:09 -0300 (BRT) Subject: Scrollbar flickers when clock run From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 25 Feb 2002 14:38:24 -0300 Message-Id: <1014658705.1109.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I'm using GTK 1.2 and my application has a clock that run always when I start the program, I make this clock using gtk_timeout_add with 1 second of interval and each 1 second it changes a gtk_label to show the elapsed time, and the program has too a CList with vertical scrollbar, but this scrollbar is making randon flickering when the numbers (gtk_label) of clock are swapped, why this occurs ? How to fix this ? Thanks in advance for all help Flavio Alberto From p@dirac.org Mon Feb 25 13:04:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from satan.diablo.localnet (adsl-64-164-47-8.dsl.scrm01.pacbell.net [64.164.47.8]) by mail.gnome.org (Postfix) with ESMTP id CEA8F181A5 for ; Mon, 25 Feb 2002 13:04:11 -0500 (EST) Received: from p by satan.diablo.localnet with local (Exim 3.34 #1 (Debian)) id 16fPU0-0005lz-00 for ; Mon, 25 Feb 2002 10:04:16 -0800 Date: Mon, 25 Feb 2002 10:04:16 -0800 To: gtk-list@gnome.org Subject: help with linked lists Message-ID: <20020225180416.GA21684@dirac.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i From: Peter Jay Salzman Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hi there, using sdl i draw a number of circles (electric charges) and would like to know when the user clicks on a charge. a basic charge is a struct: typedef struct { SDL_Surface *img; int magnitude; SDL_Rect rect; } ChargeStruct; and i have a double linked list of them: GList *ChargeList = NULL; ChargeStruct puck; ... ChargeList = g_list_append (ChargeList, &puck); i'd like to take the mouse coordinates on a button click and check to see if the click happened on a charge. if it finds a clicked charge, it returns a pointer to the ChargeStruct belonging to the clicked charge: ChargeStruct *ChargeClicked(GList *ChgList, SDL_Event event) { GList *ptr; int x, y; while (ptr != NULL) { ptr = g_list_next(ChgList); x = ptr->data->rect.x; y = ptr->data->rect.y; if (event.button.x > x - 10 && event.button.x < x + 10) { printf("click\n"); } } return(ptr->data); } i don't have any experience with GList's, so i'm grasping at straws. ptr->data should be a pointer to a ChargeStruct. so ptr->data->rect should be the rect element of a ChargeStruct which is pointed to by data. but this function gives the compile errors: functions.c: In function `ChargeClicked': functions.c:21: warning: dereferencing `void *' pointer functions.c:21: request for member `rect' in something not a structure or union functions.c:22: warning: dereferencing `void *' pointer functions.c:22: request for member `rect' in something not a structure or union i feel like i'm losing my grip on what a pointer is. the code makes sense to me, but obviously i'm mistaken about something. can someone help me out? how do i access rect.x and rect.y of the ChargeStruct pointed to by ptr->data? thanks! pete From rsteinke@w-link.net Mon Feb 25 13:15:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ouroboros (usw3620-11-205-162-12-90.w-link.net [205.162.12.90]) by mail.gnome.org (Postfix) with ESMTP id AF04B18B82 for ; Mon, 25 Feb 2002 13:15:17 -0500 (EST) Received: from rsteinke by ouroboros with local (Exim 3.34 #1 (Debian)) id 16fPeZ-0002Rh-00; Mon, 25 Feb 2002 10:15:11 -0800 Date: Mon, 25 Feb 2002 10:15:11 -0800 From: rsteinke@w-link.net To: p@dirac.org, gtk-list@gnome.org Subject: Re: help with linked lists Message-ID: <3C7A7F2F.nail78A1CT1JE@w-link.net> References: <20020225180416.GA21684@dirac.org> In-Reply-To: <20020225180416.GA21684@dirac.org> User-Agent: nail 9.29 12/10/01 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: From: Peter Jay Salzman > > hi there, > > using sdl i draw a number of circles (electric charges) and would like > to know when the user clicks on a charge. a basic charge is a struct: > > typedef struct { > SDL_Surface *img; > int magnitude; > SDL_Rect rect; > } ChargeStruct; > > and i have a double linked list of them: > > GList *ChargeList = NULL; > ChargeStruct puck; > ... > ChargeList = g_list_append (ChargeList, &puck); > > i'd like to take the mouse coordinates on a button click and check to > see if the click happened on a charge. if it finds a clicked charge, it > returns a pointer to the ChargeStruct belonging to the clicked charge: > > > ChargeStruct *ChargeClicked(GList *ChgList, SDL_Event event) > { > GList *ptr; > int x, y; > > while (ptr != NULL) { > ptr = g_list_next(ChgList); > x = ptr->data->rect.x; > y = ptr->data->rect.y; > if (event.button.x > x - 10 && event.button.x < x + 10) { > printf("click\n"); > } > } > return(ptr->data); > } > > i don't have any experience with GList's, so i'm grasping at straws. > > ptr->data should be a pointer to a ChargeStruct. so ptr->data->rect > should be the rect element of a ChargeStruct which is pointed to by > data. > > but this function gives the compile errors: > > functions.c: In function `ChargeClicked': > functions.c:21: warning: dereferencing `void *' pointer > functions.c:21: request for member `rect' in something not a structure or union > functions.c:22: warning: dereferencing `void *' pointer > functions.c:22: request for member `rect' in something not a structure or union > > i feel like i'm losing my grip on what a pointer is. the code makes > sense to me, but obviously i'm mistaken about something. > > can someone help me out? how do i access rect.x and rect.y of the > ChargeStruct pointed to by ptr->data? > > thanks! > pete This appears to be more of a C typecasting issue than anything else. What you need is ((ChargeStruct *) ptr->data)->rect, so that C knows what kind of pointer ptr->data is. GList stores things as void*, so that you can portably store any kind of pointer there. You could also do: ChargeStruct *data; ptr = g_list_next(ChgList); // Maybe should be g_list_next(ptr) instead? data = (ChargeStruct*) ptr->data; and just use "data" in the rest of the code, so things look cleaner. Ron Steinke From John.Cupitt@ng-london.org.uk Mon Feb 25 13:22:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id 5A77E18B82 for ; Mon, 25 Feb 2002 13:22:12 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id <18TXMHBP>; Mon, 25 Feb 2002 18:22:11 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 18TXMHB3; Mon, 25 Feb 2002 18:22:09 -0000 Message-ID: <3C7A7D80.1090404@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: p@dirac.org Cc: gtk-list@gnome.org Subject: Re: help with linked lists Date: Mon, 25 Feb 2002 18:08:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Peter Jay Salzman wrote: > typedef struct { > SDL_Surface *img; > int magnitude; > SDL_Rect rect; > } ChargeStruct; > > and i have a double linked list of them: > > GList *ChargeList = NULL; > ChargeStruct puck; > ... > ChargeList = g_list_append (ChargeList, &puck); Hi Peter, Is ChargeStruct a local? You probably want to allocate space for a struct of the heap, and then add a pointer to that area to your list. ChargeStruct *puck = g_new (ChargeStruct); ChargeList = g_list_append (ChargeList, puck); (also, _prepend() is much faster if you don't care about having the order reversed) (also GList keeps forwards and back pointers ... if you just want a one-way list, you can use GSList (singly-linked list) and save a little space) (also the usual convention is to use MixedCaps for type names, and underscore_names for variables ... so I'd call ChargeList charge_list) Of course, you'll need something to g_free() all these pucks when you're done with them. > ChargeStruct *ChargeClicked(GList *ChgList, SDL_Event event) > { > GList *ptr; > int x, y; > > while (ptr != NULL) { > ptr = g_list_next(ChgList); > x = ptr->data->rect.x; > y = ptr->data->rect.y; > if (event.button.x > x - 10 && event.button.x < x + 10) { > printf("click\n"); > } > } > return(ptr->data); > } You need to init ptr to the start of your list, and you need to cast ptr to ChargeStruct* (the compiler does not know what sort of thing you have in your list ... it just sees a dumb pointer). the usual g_idiom for iterating over lists is GList *i; for( i = ChargeList; i; i = i->next ) { ChargeStruct *puck = (ChargeStruct *) i->data; if( puck->rect.x ... etc. } John ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From sven@gimp.org Mon Feb 25 13:45:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 247D918188 for ; Mon, 25 Feb 2002 13:45:40 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16fQ7o-00018W-00; Mon, 25 Feb 2002 19:45:24 +0100 To: =?iso-8859-1?q?Fl=E1vio?= Alberto Lopes Soares Cc: gtk-list Subject: Re: Scrollbar flickers when clock run References: <1014658705.1109.0.camel@flavio.maqplas> From: Sven Neumann Date: 25 Feb 2002 19:45:23 +0100 In-Reply-To: <1014658705.1109.0.camel@flavio.maqplas> Message-ID: Lines: 21 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Fl=E1vio Alberto Lopes Soares writes: > Hello all, I'm using GTK 1.2 and my application has a clock that run > always when I start the program, I make this clock using gtk_timeout_add > with 1 second of interval and each 1 second it changes a gtk_label to > show the elapsed time, and the program has too a CList with vertical > scrollbar, but this scrollbar is making randon flickering when the > numbers (gtk_label) of clock are swapped, why this occurs ? How to fix > this ? the GtkLabel you use for the clock has to recalculate its size when you change the text every second. Most probably this size change propagates to the GtkClist which has to adapt to the new size and thus redraws itself. Try to change your box layout so the label size doesn't affect the size of any other containers, especially not one that holds larger widgets like your GtkCList. Salut, Sven From pbd@op.net Mon Feb 25 14:15:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 2FB5618365 for ; Mon, 25 Feb 2002 14:15:40 -0500 (EST) Received: from someip.ppp.op.net (maxtnt05-412.phlpa.fast.net [209.92.100.158]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id OAA06904; Mon, 25 Feb 2002 14:14:45 -0500 (EST) Message-Id: <200202251914.OAA06904@renoir.op.net> To: Sven Neumann Cc: Flávio Alberto Lopes Soares , gtk-list Subject: Re: Scrollbar flickers when clock run In-reply-to: Your message of "25 Feb 2002 19:45:23 +0100." Date: Mon, 25 Feb 2002 14:13:50 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >the GtkLabel you use for the clock has to recalculate its size when you >change the text every second. Most probably this size change propagates >to the GtkClist which has to adapt to the new size and thus redraws >itself. Try to change your box layout so the label size doesn't affect >the size of any other containers, especially not one that holds larger >widgets like your GtkCList. and maybe ensure the clock uses a fixed-size font, and a fixed format for the display, so that its size never actually changes. --p From flavio@maqplas.com.br Mon Feb 25 15:07:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pkdroid.ns1.com.br (pkdroid.ns1.com.br [200.185.44.16]) by mail.gnome.org (Postfix) with ESMTP id 4648218536 for ; Mon, 25 Feb 2002 15:07:07 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by pkdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1PK6wvD020181; Mon, 25 Feb 2002 17:06:59 -0300 (BRT) Subject: Re: Scrollbar flickers when clock run From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Sven Neumann Cc: gtk-list In-Reply-To: References: <1014658705.1109.0.camel@flavio.maqplas> Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: Evolution/0.10 (Preview Release) Date: 25 Feb 2002 17:09:01 -0300 Message-Id: <1014667751.1108.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ok, it's true, my program has other modal window that has a CList too, and your scrollbar hasn't the problem while the clock is runing, probably this is the explanation about other problem that occurs in my program : it has a big pixmap (with green background) that blinks in about 400ms (usin gtk_timeout_add) swapping other pixmap with white background, when the clock and pixmap are runing this flicker occur with pixmap happening an "ugly effect". I will try something in this way. Thanks a lot Flavio Alberto Em 25 Feb 2002 19:45:23 +0100, Sven Neumann escreveu: > Hi, > > Flávio Alberto Lopes Soares writes: > > > Hello all, I'm using GTK 1.2 and my application has a clock that run > > always when I start the program, I make this clock using gtk_timeout_add > > with 1 second of interval and each 1 second it changes a gtk_label to > > show the elapsed time, and the program has too a CList with vertical > > scrollbar, but this scrollbar is making randon flickering when the > > numbers (gtk_label) of clock are swapped, why this occurs ? How to fix > > this ? > > the GtkLabel you use for the clock has to recalculate its size when you > change the text every second. Most probably this size change propagates > to the GtkClist which has to adapt to the new size and thus redraws > itself. Try to change your box layout so the label size doesn't affect > the size of any other containers, especially not one that holds larger > widgets like your GtkCList. > > > Salut, Sven From yfcho@ms9.hinet.net Mon Feb 25 18:07:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailout5.nyroc.rr.com (mailout5-1.nyroc.rr.com [24.92.226.169]) by mail.gnome.org (Postfix) with ESMTP id 60FCD182FF for ; Mon, 25 Feb 2002 18:07:28 -0500 (EST) Received: from talon (roc-24-161-69-214.rochester.rr.com [24.161.69.214]) by mailout5.nyroc.rr.com (8.11.6/Road Runner 1.12) with SMTP id g1PN7PM07430 for ; Mon, 25 Feb 2002 18:07:25 -0500 (EST) From: "Yu-Fong Cho" To: "GTK list" Subject: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? Date: Mon, 25 Feb 2002 18:07:06 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is a little different, so please take a look. Thank you!!! I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! I tried to install Netscape 6.2, but it keep telling me: error in loading shared libraries: libgtk-1.2.so.0: cannot open shared object file: No such file or directory. My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my whole file system. There is just no libgtk-1.2.so.0. What's wrong with it? Yu-Fong From superylam@netscape.net Mon Feb 25 20:39:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from imo-m02.mx.aol.com (imo-m02.mx.aol.com [64.12.136.5]) by mail.gnome.org (Postfix) with ESMTP id 8C1ED18201 for ; Mon, 25 Feb 2002 20:39:32 -0500 (EST) Received: from superylam@netscape.net by imo-m02.mx.aol.com (mail_out_v32.5.) id t.f0.3190109 (16229); Mon, 25 Feb 2002 20:39:14 -0500 (EST) Received: from netscape.net (ip-244-195.cyberec.com [202.60.244.195]) by air-in02.mx.aol.com (v83.35) with ESMTP id MAILININ25-0225203913; Mon, 25 Feb 2002 20:39:13 -0500 Message-ID: <3C7AE6E4.40204@netscape.net> Date: Tue, 26 Feb 2002 09:37:40 +0800 From: Yick Lam User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: xpert@xfree86.org Cc: gtk-list@gnome.org Subject: Re: How X application distinguish input devices? References: <3C7A3C5F.7070000@netscape.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailer: Unknown (No Version) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I posted this question and I found an answer with a guy who replied my email. There is an EXCELLENT example called xinput that complete solved my problem. The xinput description can be found at http://www.gtk.org/~otaylor/ (Owen Taylor). My heartiest thank to that guy who replied my email. Yick Hong Kong, China. superylam@netscape.net wrote: > Dear Sir, > > I have just devleoped a X input driver for my small graphic tablet. > It is a small tablet that is very popular in Hong Kong, Taiwan and China > for Chinese handwriting recoginition. It is working now. I have cursor > that will move according to mouse OR graphic tablet. > > Now I want to devlope a GTK application (honestly I posted this > question > in GTK mailing list) or X application that will ONLY respond the event > from > my graphic tablet. I have a callback function in my X application, > motion_notify_event and I have compared the event content > of my mouse and my graphic tablet and they look the same (the deviceid > content etc). and I have no way to distuguish whether the event is from the > mouse or from the graphic tablet. > > What did I do wrong in my driver? can please have a look at > http://input.foruto.com/IME/BINARIES/gogopen.tar.gz and tell me whether > I did wrong in the device driver? (BTW I would like if someone can > distribute > this driver). How can I pass special information from the driver to my X > applicaton? > > Yick Lam > Hong Kong, China > > > Yick > Hong Kong china > > > > > From scherfa@web.de Mon Feb 25 20:51:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mail.gnome.org (Postfix) with ESMTP id 86D69194FB for ; Mon, 25 Feb 2002 20:51:05 -0500 (EST) Received: from [143.93.58.8] (helo=rmpc06.fh-trier.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.28 #21) id 16fWkk-0005VZ-00; Tue, 26 Feb 2002 02:50:02 +0100 Subject: Re: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? From: Andreas Scherf To: Yu-Fong Cho Cc: Gtk Liste In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 26 Feb 2002 02:48:34 +0100 Message-Id: <1014688115.14155.2.camel@xerxes> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Am Die, 2002-02-26 um 00.07 schrieb Yu-Fong Cho: > Hi, > > I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is > a little different, so please take a look. Thank you!!! > > I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any > gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so > and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! > > I tried to install Netscape 6.2, but it keep telling me: > > error in loading shared libraries: libgtk-1.2.so.0: cannot open shared > object file: No such file or directory. > > My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my > whole file system. There is just no libgtk-1.2.so.0. > > What's wrong with it? > > > Yu-Fong libgtk-1.2.so.0 is a link to the original lib: lrwxrwxrwx 1 root root 19 Jun 29 2001 libgtk-1.2.so.0 -> libgtk-1.2.so.0.9.1 you could add it by your won by tipping ln -s libgtk-1.2.so.0.10.x libgtk-1.2.so.0 You could look into $prefix/lib which gtk lib your are owning ... and fill the x with the right version.. Hope this helps Scherf -- Andreas Scherf ICQ: 52910964 scherfa@web.de From yfcho@ms9.hinet.net Mon Feb 25 21:05:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailout5.nyroc.rr.com (mailout5-1.nyroc.rr.com [24.92.226.169]) by mail.gnome.org (Postfix) with ESMTP id 3B021186EB for ; Mon, 25 Feb 2002 21:05:36 -0500 (EST) Received: from talon (roc-24-161-69-214.rochester.rr.com [24.161.69.214]) by mailout5.nyroc.rr.com (8.11.6/Road Runner 1.12) with SMTP id g1Q25VM01588; Mon, 25 Feb 2002 21:05:32 -0500 (EST) From: "Yu-Fong Cho" To: Cc: "Gtk Liste" Subject: RE: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? Date: Mon, 25 Feb 2002 21:05:12 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <1014688115.14155.2.camel@xerxes> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, My system only has libgtk-1.2.so --> libgtk-1.2.so.9 libgtk-1.2.so.9 I tried to link libgtk-1.2.so.0 --> libgtk-1.2.so.9 but Netscape 6.2 complained error in loading shared libraries: libgtk-1.2.so.0: ELF file OS ABI invalid. It looks like a Linux binary (Netscape) try to use a FreeBSD binary.... :-( That's all I got. Yu-Fong -----Original Message----- From: scherfa@web.de [mailto:scherfa@web.de] Sent: Monday, February 25, 2002 8:49 PM To: Yu-Fong Cho Cc: Gtk Liste Subject: Re: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? Am Die, 2002-02-26 um 00.07 schrieb Yu-Fong Cho: > Hi, > > I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is > a little different, so please take a look. Thank you!!! > > I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any > gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so > and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! > > I tried to install Netscape 6.2, but it keep telling me: > > error in loading shared libraries: libgtk-1.2.so.0: cannot open shared > object file: No such file or directory. > > My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my > whole file system. There is just no libgtk-1.2.so.0. > > What's wrong with it? > > > Yu-Fong libgtk-1.2.so.0 is a link to the original lib: lrwxrwxrwx 1 root root 19 Jun 29 2001 libgtk-1.2.so.0 -> libgtk-1.2.so.0.9.1 you could add it by your won by tipping ln -s libgtk-1.2.so.0.10.x libgtk-1.2.so.0 You could look into $prefix/lib which gtk lib your are owning ... and fill the x with the right version.. Hope this helps Scherf -- Andreas Scherf ICQ: 52910964 scherfa@web.de From s2108287@student.rmit.edu.au Tue Feb 26 00:27:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from its-mu-earth.its.rmit.edu.au (its-mu-earth.its.rmit.edu.au [131.170.2.10]) by mail.gnome.org (Postfix) with ESMTP id 5D24D18197 for ; Tue, 26 Feb 2002 00:27:26 -0500 (EST) Received: from student.rmit.edu.au (its-mn-ntce.its.rmit.edu.au [131.170.11.141]) by its-mu-earth.its.rmit.edu.au (8.10.1/8.10.1/ANTI-SPAM/ANTI-RELAY/EARTH) with ESMTP id g1Q5ROp15994 for ; Tue, 26 Feb 2002 16:27:24 +1100 (EST) Received: from bungalow [203.164.86.2] by student.rmit.edu.au with Novonyx SMTP Server $Revision: 2.75.1.9 $; Tue, 26 Feb 2002 16:27:25 +1100 (ESUT) Message-ID: <001401c1be86$2b92ca60$0300a8c0@bungalow> Reply-To: "Daniel Farrell" From: "Daniel Farrell" To: "GTK list" Subject: Compiling GTK+ 1.2.10 Date: Tue, 26 Feb 2002 16:26:40 +1100 Organization: RMIT MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0011_01C1BEE2.5ECAA630" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C1BEE2.5ECAA630 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I recently installed RedHat 7.0, then compiled kernel 2.4.17, and = installed XFree86 4.2.0, at this stage X works fine on my system. Next I was ready to start compiling Gnome 1.4 so ... compiled gmp 4.0.1, = gdbm 1.8.0, librep 0.15.2, glib 1.2.10 in that order. Then while configuring gtk+ 1.2.10, configure could find X include files = it wanted. So being a bit of a newbie I'm stumped. Does anybody know what I should = do? Or shouldn't have done? I would appreciate any response...Thanks Daniel Farrell. ------=_NextPart_000_0011_01C1BEE2.5ECAA630 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I recently installed RedHat 7.0,=20 then compiled kernel 2.4.17, and installed XFree86 4.2.0, at = this=20 stage X works fine on my system.
 
Next I was ready to start = compiling Gnome 1.4=20 so ... compiled gmp 4.0.1, gdbm 1.8.0, librep 0.15.2, glib = 1.2.10 in=20 that order.
 
Then while configuring gtk+ 1.2.10, = configure could=20 find X include files it wanted.
 
So being a bit of a newbie I'm=20 stumped.  Does anybody know what I should do? Or shouldn't = have=20 done?
 
I would appreciate any=20 response...Thanks
 
Daniel = Farrell.
------=_NextPart_000_0011_01C1BEE2.5ECAA630-- From kasonhuang@kinposh.com.cn Tue Feb 26 00:49:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from kes01.kinposh.com.cn (unknown [210.78.17.12]) by mail.gnome.org (Postfix) with ESMTP id 8030C182E9 for ; Tue, 26 Feb 2002 00:49:33 -0500 (EST) Subject: about GdkEventFocus and ...........? Date: Tue, 26 Feb 2002 13:48:30 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Message-ID: <92CD479384374A439EFA0077E7C50F822611AA@kes01.kinposh.com.cn> content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: about GdkEventFocus and ...........? Thread-Index: AcG+iTYlDaBPsSq3Eda2ugCAyEUULQ== From: =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= To: Cc: "Paul Davis" , "Havoc Pennington" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello, anyone could tell me two member variables of meaning in struct = GdkEventFocus of gtk source code. source code as following: struct _GdkEventFocus { GdkEventType type; GdkWindow *window; gint8 send_event; ----------->what meaning? gint16 in; ---------------------->what meaning? } why i want to ask that question. for i want to control the buttons focus move with keyboard (not by = mouse) in a gtktable not by the default done . anyone find that you couldn't move Parallelly the buttons focus in two = tables ,and you move buttons focus with up-down-left-right key in one = table sometime not as you expected. the following code is the problem about the buttons focus move in one = table,you can test it with up-down-left-right key then see the focus is = at the button as you expected. /*file ProblemInOneTable.c */ #include gint delete_event( GtkWidget *widget, GdkEvent *event,gpointer data ) { gtk_main_quit (); return(FALSE); } int main( int argc,char *argv[] ) { GtkWidget *window; GtkWidget *table; GtkWidget = *button1,*button2,*button3,*button4,*button5,*button6,*button7,*button8; =20 gtk_init (&argc, &argv); window =3D gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), "Table"); gtk_signal_connect (GTK_OBJECT (window), "delete_event", GTK_SIGNAL_FUNC (delete_event), NULL); gtk_container_set_border_width (GTK_CONTAINER (window), 20); table =3D gtk_table_new (4,4, TRUE); gtk_container_add (GTK_CONTAINER (window), table); button1 =3D gtk_button_new_with_label ("button 1"); gtk_table_attach_defaults (GTK_TABLE(table), button1, 0, 1, 0, 1); gtk_widget_show (button1); button2 =3D gtk_button_new_with_label ("button = 2");-------------------focus moves with down key not as expected? gtk_table_attach_defaults (GTK_TABLE(table), button2, 1, 2, 0,1); gtk_widget_show (button2); button3 =3D gtk_button_new_with_label ("button 3"); gtk_table_attach_defaults (GTK_TABLE(table), button3, 2, 3, 0, 1); gtk_widget_show (button3); button4 =3D gtk_button_new_with_label ("button = 4");------------------focus moves with down key not as expected? gtk_table_attach_defaults (GTK_TABLE(table), button4, 3, 4, 0,1); gtk_widget_show (button4); button5 =3D gtk_button_new_with_label ("button 5"); gtk_table_attach_defaults (GTK_TABLE(table), button5, 0, 1, 1, 2); gtk_widget_show (button5); button6 =3D gtk_button_new_with_label ("button 6"); gtk_table_attach_defaults (GTK_TABLE(table), button6, 1, 4, 1, 2); gtk_widget_show (button6); button7 =3D gtk_button_new_with_label ("button 7"); gtk_table_attach_defaults (GTK_TABLE(table), button7, 0,2,2, 3); gtk_widget_show (button7); button8 =3D gtk_button_new_with_label ("button 8"); gtk_table_attach_defaults (GTK_TABLE(table), button8, 2, 4, 2, 3); gtk_widget_show (button8); gtk_widget_show_all(window); gtk_main(); return 0; } someone knows this problem? Thanks in advance! kason From rwan@cs.mu.oz.au Tue Feb 26 01:01:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from vike.cs.mu.OZ.AU (vike.cs.mu.OZ.AU [128.250.36.73]) by mail.gnome.org (Postfix) with ESMTP id E08C1182DF for ; Tue, 26 Feb 2002 01:01:33 -0500 (EST) Received: by vike.cs.mu.OZ.AU (Postfix, from userid 1057) id 74BA675C0; Tue, 26 Feb 2002 17:01:32 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by vike.cs.mu.OZ.AU (Postfix) with SMTP id 74079ACAA for ; Tue, 26 Feb 2002 17:01:32 +1100 (EST) Date: Tue, 26 Feb 2002 17:01:32 +1100 (EST) From: Raymond Wan Reply-To: Raymond Wan To: gtk-list@gnome.org Subject: (1.3.15) - compiling pango In-Reply-To: <20020224065818.C5086241BE2@fresnel.labs.redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, On Sun, 24 Feb 2002, Owen Taylor wrote: > Overview of Changes in Pango 0.26 > ================================= > > * Fixes for AIX compilation [Miroslaw Dobrzanski-Neumann] > * Fix zero-width characters being displayed [Sven Neumann] > * Add some padding to class structures [Owen Taylor] I tried compiling pango and came up with some errors. I don't think I did anything wrong, though. The errors were: ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_ruleset_new' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_info_find_feature' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_ruleset_add_feature' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_ruleset_shape' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_info_new' ../pango/.libs/libpangoft2.so: undefined reference to `pango_ot_info_find_script' while doing a make on pango. The problem occurs soon after it enters the pango-0.26/examples directory. I configured pango with: ./configure --prefix=$GTK_DIR --enable-shared --enable-static --with-included-loaders=xpm,png,gif,jpeg --with-included-modules=yes and have already installed pkgconfig and glib. As they're only examples, I may be able to continue installation without affecting my program, but perhaps someone should try it to prove that I'm not insane. :-) Thanks! Ray From anjali_grover@yahoo.com Tue Feb 26 05:02:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14608.mail.yahoo.com (web14608.mail.yahoo.com [216.136.224.88]) by mail.gnome.org (Postfix) with SMTP id CD45518150 for ; Tue, 26 Feb 2002 05:02:49 -0500 (EST) Message-ID: <20020226100248.69046.qmail@web14608.mail.yahoo.com> Received: from [155.69.5.223] by web14608.mail.yahoo.com via HTTP; Tue, 26 Feb 2002 02:02:48 PST Date: Tue, 26 Feb 2002 02:02:48 -0800 (PST) From: Anjali Grover Subject: Making a label text bold To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, In order to get a bold label text, I loaded the desired font into GtkFont boldfont; Then I tried to get bold label text via: label=gtk_label_new(text); style = gtk_widget_get_style(label); style->font = boldfont; The result was everything bold, inlcuding the text in all buttons on my window. Then, I made a copy of GdkStyle, so I tried: label=gtk_label_new(text); style = gtk_widget_get_style(label); bstyle = *style; bstyle.font = boldfont; gtk_widget_set_style(label, &bstyle); The result was: nothing bold. I can't trace the problem:( Regards, Anjali __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com From rhfreeman@micron.com Tue Feb 26 06:59:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-srv1.micron.com (masquerade.micron.com [137.201.242.130]) by mail.gnome.org (Postfix) with ESMTP id C550E181BB for ; Tue, 26 Feb 2002 06:59:53 -0500 (EST) Received: from mail-srv1.micron.com (localhost [127.0.0.1]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g1QBxrV16918 for ; Tue, 26 Feb 2002 04:59:53 -0700 (MST) Received: from ntexchange01.micron.com (ntexchange01.micron.com [137.201.128.223]) by mail-srv1.micron.com (8.11.1/8.11.1) with ESMTP id g1QBxqe16912 for ; Tue, 26 Feb 2002 04:59:52 -0700 (MST) Received: by ntexchange01.micron.com with Internet Mail Service (5.5.2653.19) id ; Tue, 26 Feb 2002 04:59:52 -0700 Message-ID: From: rhfreeman To: "'gtk-list@gnome.org'" Subject: ItemFactory callbacks not quite working Date: Tue, 26 Feb 2002 04:59:47 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-MTHubFilter-1.5: mail-srv1 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Folks, I've got these few snips of code: void set_xaxis_context(gpointer cb_data, guint action, GtkWidget *w); static GtkItemFactoryEntry context_menu[] = { { "/Set X-Axis", NULL, set_xaxis_context, 0, NULL }, }; w_layout[number].context_menu=gtk_item_factory_new(GTK_TYPE_MENU, "
", NULL); gtk_item_factory_create_items(w_layout[number].context_menu, nmenu_items, context_menu, NULL); gtk_object_set_data(GTK_OBJECT(w_layout[number].context_menu), "id", GINT_TO_POINTER(number)); void set_xaxis_context(gpointer cb_data, guint action, GtkWidget *widget) { gpointer data; data=gtk_object_get_data(GTK_OBJECT(widget), "id"); if (data!=NULL) printf("ID %d\n", GPOINTER_TO_INT(data)); else printf("NULL!\n"); } gint button_press_event(GtkWidget *widget, GdkEventButton *event, gpointer data) { // other stuff if(event->button==3) { gtk_item_factory_popup(w_layout[foc].context_menu, (guint) event->x_root, (guint) event->y_root, 1, 0); return TRUE; } return FALSE; } This code all looks good. I press the RMB on my area and the popup menu appears normally. When I click on the "Set X-Axis" item the callback is called but it always returns NULL. I've tried using the widget->parent widget instead and that didn't help. Can anyone point out what I am doing wrong? Thanks! Rich From sven@gimp.org Tue Feb 26 07:34:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id C429118FD7 for ; Tue, 26 Feb 2002 07:34:58 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16fgop-0000f2-00; Tue, 26 Feb 2002 13:34:55 +0100 To: =?cn-big5?b?tsC8eQ==?= Kason Huang Cc: Subject: Re: about GdkEventFocus and ...........? References: <92CD479384374A439EFA0077E7C50F822611AA@kes01.kinposh.com.cn> From: Sven Neumann Date: 26 Feb 2002 13:34:54 +0100 In-Reply-To: <92CD479384374A439EFA0077E7C50F822611AA@kes01.kinposh.com.cn> Message-ID: Lines: 26 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=cn-big5 Content-Transfer-Encoding: quoted-printable Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, =B6=C0=BCy Kason Huang writes: > anyone could tell me two member variables of meaning in struct GdkEventFo= cus of gtk source code. > source code as following: > struct _GdkEventFocus > { > GdkEventType type; > GdkWindow *window; > gint8 send_event; ----------->what meaning? > gint16 in; ---------------------->what meaning? > } this maps pretty close to X11, so reading the XFocusChangeEvent docs may help send_event: TRUE if this came from a SendEvent request in : TRUE for FocusIn, FALSE for FocusOut Salut, Sven BTW: Could you try to send emails with shorter lines? Your mails are hard to read which makes it less probable that someone takes the time to answer them. From mssuser@localhost.localdomain Tue Feb 26 08:18:35 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.224.172]) by mail.gnome.org (Postfix) with ESMTP id 883C718471 for ; Tue, 26 Feb 2002 08:18:28 -0500 (EST) Received: from localhost (localhost [[UNIX: localhost]]) by localhost.localdomain (8.11.2/8.11.2) id g1O9wv202410 for gtk-list@gnome.org; Sun, 24 Feb 2002 15:28:57 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: gtk-list@gnome.org Subject: [INIMSS] How can I get the GList of items in a GtkList. Date: Sun, 24 Feb 2002 15:28:53 +0530 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02022415285301.00975@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All How can I get the pointer to the Glist of all the items in a GtkList of a GtkCombo? I am trying to get the index of the currently selected item in the list. Thank You Dino From hp@redhat.com Tue Feb 26 09:43:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 1BE89182D6 for ; Tue, 26 Feb 2002 09:43:28 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1QEhQd21881; Tue, 26 Feb 2002 09:43:26 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Anjali Grover Cc: gtk-list@gnome.org Subject: Re: Making a label text bold References: <20020226100248.69046.qmail@web14608.mail.yahoo.com> From: Havoc Pennington Date: 26 Feb 2002 09:43:26 -0500 In-Reply-To: <20020226100248.69046.qmail@web14608.mail.yahoo.com> Message-ID: Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Anjali Grover writes: > > In order to get a bold label text, I loaded the > desired font into GtkFont boldfont; > > Then I tried to get bold label text via: > label=gtk_label_new(text); > style = gtk_widget_get_style(label); > style->font = boldfont; > > The result was everything bold, inlcuding the text in > all buttons on my window. > > Then, I made a copy of GdkStyle, so I tried: > > label=gtk_label_new(text); > style = gtk_widget_get_style(label); > bstyle = *style; > bstyle.font = boldfont; > gtk_widget_set_style(label, &bstyle); > > The result was: nothing bold. You want to use gtk_widget_modify_style() probably. See http://pobox.com/~hp/gtk-colors.html In GTK 2 (1.3.15 is the most recent GTK 2 beta) you could use gtk_label_set_markup() or gtk_widget_modify_font() instead, which would be a lot easier. Havoc From ramses@computer.org Tue Feb 26 16:39:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id 791E918155; Tue, 26 Feb 2002 16:39:49 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020226214014.SZVF480.sv16@adsl50>; Tue, 26 Feb 2002 16:40:14 -0500 Subject: I think I found a freak bug on GTK+-1.3.15 From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 26 Feb 2002 16:47:54 -0500 Message-Id: <1014760074.1197.5.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: If I compile an app with this two lines: GtkTreeViewColumn *ca; GtkTreeViewColumn *cb; When I run the app, I get a Segmentation Fault. *cb isn't used on the code. If I compile the app after comenting: GtkTreeViewColumn *ca; /*GtkTreeViewColumn *cb;*/ ...it runs nicely. This is wierd. From rwalden@tripos.com Tue Feb 26 16:48:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id D8E971821B for ; Tue, 26 Feb 2002 16:48:51 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id PAA10547 for ; Tue, 26 Feb 2002 15:48:51 -0600 (CST) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma010534; Tue, 26 Feb 02 15:48:00 -0600 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id PAA24217 for ; Tue, 26 Feb 2002 15:47:59 -0600 (CST) Message-ID: <3C7C028F.BEE311DD@tripos.com> Date: Tue, 26 Feb 2002 15:47:59 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: GTK List Subject: Re: GTK_TYPE_BOXED References: <3C7A694E.FE8E50DD@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Can anyone comment on the changes between 1.2 and 2.0 that woud break code using gtk_type_unique(GTK_TYPE_BOXED, &some_subclass_info ); in the _get_type function for a derived type? Thanks, Ralph Walden Ralph Walden wrote: > > I'm attempting to port some gtk+-1.2 widgets to 2.0 (1.3.13 actually) > and I'm running into a problem with an object that is derived from > a GTK_TYPE_BOXED type. This seems to cause a segfault in the g_type > system. > > I found some mention of this in the some of the list archives, but I > couldn't > figure what the resolution was. > > Is it an O.K. thing to derive objects from GTK_TYPE_BOXED and expect it > to > work with the new g_type system? > > Sorry for being so vague, but I'm on the fuzzy frontier of the > understanding > of my own problem... :) > > Thanks, > > Ralph Walden > > -- > > Ralph E. Walden > Tripos, Inc. > rwalden@tripos.com > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From hp@redhat.com Tue Feb 26 17:09:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id F1CD018AB1 for ; Tue, 26 Feb 2002 17:09:01 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1QM8x831894; Tue, 26 Feb 2002 17:08:59 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ralph Walden Cc: GTK List Subject: Re: GTK_TYPE_BOXED References: <3C7A694E.FE8E50DD@tripos.com> <3C7C028F.BEE311DD@tripos.com> From: Havoc Pennington Date: 26 Feb 2002 17:08:59 -0500 In-Reply-To: <3C7C028F.BEE311DD@tripos.com> Message-ID: Lines: 13 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ralph Walden writes: > Can anyone comment on the changes between 1.2 and 2.0 that > woud break code using > > gtk_type_unique(GTK_TYPE_BOXED, &some_subclass_info ); > > in the _get_type function for a derived type? > You probably want g_boxed_type_register_static() instead. Havoc From pbd@op.net Tue Feb 26 17:23:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id D86C51812F; Tue, 26 Feb 2002 17:23:35 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-239.phlpa.fast.net [209.92.96.239]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id RAA29528; Tue, 26 Feb 2002 17:22:44 -0500 (EST) Message-Id: <200202262222.RAA29528@renoir.op.net> To: Rams s Morales Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org Subject: Re: I think I found a freak bug on GTK+-1.3.15 In-reply-to: Your message of "26 Feb 2002 16:47:54 EST." <1014760074.1197.5.camel@adsl50> Date: Tue, 26 Feb 2002 17:22:03 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >If I compile an app with this two lines: > >GtkTreeViewColumn *ca; >GtkTreeViewColumn *cb; > >When I run the app, I get a Segmentation Fault. *cb isn't used on the >code. > >If I compile the app after comenting: > >GtkTreeViewColumn *ca; >/*GtkTreeViewColumn *cb;*/ > >...it runs nicely. > >This is wierd. it may or may not be wierd, but its the classic fingerprint of a memory overrun bug in your code. the extra declaration of "cb" changes the memory layout of other variables in a way that causes the memory overrun to have a visible effect. there are not too many fast ways to debug this. electric fence is not bad, dmalloc can help sometimes, purify is good but costs money for the real thing and is pretty big. i generally find that deep meditation while reading the code and a few printfs most helpful. --p From torriem@cs.byu.edu Tue Feb 26 17:33:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from divit.cs.byu.edu (divit.cs.byu.edu [128.187.168.136]) by mail.gnome.org (Postfix) with ESMTP id 3674D1812F; Tue, 26 Feb 2002 17:33:38 -0500 (EST) Received: (from caseih@localhost) by divit.cs.byu.edu (8.11.6/8.9.3) id g1QMXUo32623; Tue, 26 Feb 2002 15:33:30 -0700 X-Authentication-Warning: divit.cs.byu.edu: caseih set sender to torriem@cs.byu.edu using -f Subject: Re: I think I found a freak bug on GTK+-1.3.15 From: Michael Torrie To: =?ISO-8859-1?Q?Rams=E9s?= Morales Cc: gtk-app-devel-list@gnome.org, gtk-list@gnome.org In-Reply-To: <1014760074.1197.5.camel@adsl50> References: <1014760074.1197.5.camel@adsl50> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-sgV79JrogDTT8yBKJZBI" X-Mailer: Evolution/1.0.2 Date: 26 Feb 2002 15:33:30 -0700 Message-Id: <1014762810.32494.14.camel@divit.cs.byu.edu> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --=-sgV79JrogDTT8yBKJZBI Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, 2002-02-26 at 14:47, Rams=E9s Morales wrote: > If I compile an app with this two lines: >=20 > GtkTreeViewColumn *ca; > GtkTreeViewColumn *cb; >=20 > When I run the app, I get a Segmentation Fault. *cb isn't used on the > code. >=20 > If I compile the app after comenting: >=20 > GtkTreeViewColumn *ca; > /*GtkTreeViewColumn *cb;*/ >=20 > ...it runs nicely. >=20 > This is wierd. This type of thing is very likely indicative of some memory corruption in your code. It's unlikely to be in gtk (but could be). Just the fact that removing the second pointer declaration makes it work indicates that it's your code that's messing up somewhere. Just declaring a pointer doesn't do any object initialization (ie gtk_tree_view_new type stuff). What it does do is change your stack layout slightly such that whatever memory corruption you're doing won't cause an immediate crash when you remove that unused variable. Adding it back in changes offsets just slightly so that something important on the stack is overwritten. Pointer errors always maifest themselves in this type of manner. Very frustrating. Good luck. You'll want to run your code through DDD debugger. It has some very powerful facilities for viewing your variables etc. You can then watch what happens when the offending line is executed. Also you can load the core file into the debugger after the fact and see what line triggered the core dump, see the variables, etc. Should help you establish what's happening. (DDD is run by the command ddd. It's downloadable from the internet too -- see freshmeat.net) Michael >=20 >=20 >=20 > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list --=20 Public key available from http://students.cs.byu.edu/~torriem --=-sgV79JrogDTT8yBKJZBI Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8fA069bTmAa2MOJ8RAv5aAKCZX9ftnoDGKaNS0eQgjRP8CPqvpACgphjV boS2et4NQ7l1qTemwTWLVSk= =3SYB -----END PGP SIGNATURE----- --=-sgV79JrogDTT8yBKJZBI-- From rbultje@ronald.bitfreak.net Tue Feb 26 17:41:14 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gizmo.localdomain (ucu-104-70.ucu.uu.nl [131.211.104.70]) by mail.gnome.org (Postfix) with ESMTP id CE25818DCE for ; Tue, 26 Feb 2002 17:41:13 -0500 (EST) Received: from [192.168.100.101] (IDENT:rbultje@[192.168.100.101]) by gizmo.localdomain (8.12.1/8.12.1) with ESMTP id g1QMUu4K002400 for ; Tue, 26 Feb 2002 23:30:58 +0100 (CET) Subject: gtkfileselectiondialog is slow? From: Ronald Bultje To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 26 Feb 2002 23:41:10 +0100 Message-Id: <1014763272.18710.77.camel@tux> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, if I do the following on a gtkfileselectiondialog in gtk-1.3.14: * go to dir / using GtkOptionMenu widget * click dir media/ in the folders window * click dir mp3/ in the folders window * in the right window (files), go to the bottom of this dir (it has about 1000 files) * now, double click "../" in the left window (folders) It will take a terrible amount of time for the thing to load the "../" dir or to unload the current dir (I don't know exactly). Since entering this directory happens almost instanteniously, I suppose this is a small design flaw or so in the widget? I'd be tempted to call it a bug but it doesn't crash ;-). Should I file this on bugzilla or is this fixed in 1.3.15? (sorry, I haven't had the time yet to upgrade to 1.3.15, I will do so this weekend). Thanks, Ronald -- - .-. - /V\ | Ronald Bultje - // \\ | Running: Linux 2.4.17-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^ From ramses@computer.org Tue Feb 26 18:26:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sv16.cwpanama.net (sv16.cwpanama.net [206.128.192.216]) by mail.gnome.org (Postfix) with ESMTP id B0A21182A1; Tue, 26 Feb 2002 18:26:17 -0500 (EST) Received: from adsl50 ([207.50.140.169]) by sv16.cwpanama.net with ESMTP id <20020226232642.TNCI480.sv16@adsl50>; Tue, 26 Feb 2002 18:26:42 -0500 Subject: Re: I think I found a freak bug on GTK+-1.3.15 From: =?ISO-8859-1?Q?Rams=E9s?= Morales To: gtk-app-devel-list@gnome.org, gtk-list@gnome.org In-Reply-To: <1014760074.1197.5.camel@adsl50> References: <1014760074.1197.5.camel@adsl50> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.1 Date: 26 Feb 2002 18:34:22 -0500 Message-Id: <1014766463.1169.2.camel@adsl50> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Yup, the problem is some pointer on my code, not a GTK+ bug. I'll hunt it with njam. Thanks for your help. From lnx1138@us.ibm.com Tue Feb 26 19:47:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sm11.texas.rr.com (sm11.texas.rr.com [24.93.35.42]) by mail.gnome.org (Postfix) with ESMTP id 2AA2F185B5 for ; Tue, 26 Feb 2002 19:47:50 -0500 (EST) Received: from cs24273-101.austin.rr.com (cs24273-101.austin.rr.com [24.27.3.101]) by sm11.texas.rr.com (8.12.1/8.12.0) with ESMTP id g1R0icKW020318 for ; Tue, 26 Feb 2002 18:44:43 -0600 Subject: cancelling/aborting an emitted signal From: Luciano Chavez To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 26 Feb 2002 18:46:50 -0600 Message-Id: <1014770815.8243.17.camel@localhost> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, Can someone suggest the proper generic way to abort a signal from actually causing the default handler to change the widget value. Must I connect the signal handler in a certain order? For example, in a "toggled" signal handler for a toggle button if some condition is true then I want the "toggled" signal to be canceled so the widget does not signify the change (a checkmark displayed or removed). I've tried the following but get a Gtk Warning indicating there is to no emitted signal to stop: gtk_signal_emit_stop_by_name (GTK_OBJECT (button), "toggled"); Again, I want to know the generic method to cancel a signal within a signal handler so the widget does not reflect the change. This applies to GtkAdjustment value changes (for GtkHScale and GtkSpinButton changes), GtkCList row selection and unselection, and others. -- regards, Luciano Chavez lnx1138@us.ibm.com http://sf.net/projects/evms From Steph.Fox@btinternet.com Tue Feb 26 19:55:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gadolinium.btinternet.com (gadolinium.btinternet.com [194.73.73.111]) by mail.gnome.org (Postfix) with ESMTP id 9B3F6185B5 for ; Tue, 26 Feb 2002 19:55:56 -0500 (EST) Received: from host213-1-199-78.in-addr.btopenworld.com ([213.1.199.78] helo=t2r1o8) by gadolinium.btinternet.com with smtp (Exim 3.22 #8) id 16fsNt-0003bC-00; Wed, 27 Feb 2002 00:55:53 +0000 Message-ID: <00ef01c1bf29$32786580$73417bd5@t2r1o8> From: "Steph" To: "Luciano Chavez" , References: <1014770815.8243.17.camel@localhost> Subject: Re: cancelling/aborting an emitted signal Date: Wed, 27 Feb 2002 00:53:33 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: can't you just set_sensitive(false)? - otherwise, signal_handler_block() is your friend. ----- Original Message -----=20 From: "Luciano Chavez" To: Sent: Wednesday, February 27, 2002 12:46 AM Subject: cancelling/aborting an emitted signal > Hello, >=20 > Can someone suggest the proper generic way to abort a signal from > actually causing the default handler to change the widget value. Must = I > connect the signal handler in a certain order? >=20 > For example, in a "toggled" signal handler for a toggle button if some > condition is true then I want the "toggled" signal to be canceled so = the > widget does not signify the change (a checkmark displayed or removed). > I've tried the following but get a Gtk Warning indicating there is to = no > emitted signal to stop: >=20 > gtk_signal_emit_stop_by_name (GTK_OBJECT (button), "toggled"); >=20 > Again, I want to know the generic method to cancel a signal within a > signal handler so the widget does not reflect the change. This applies > to GtkAdjustment value changes (for GtkHScale and GtkSpinButton > changes), GtkCList row selection and unselection, and others. > =20 > --=20 > regards, >=20 > Luciano Chavez >=20 > lnx1138@us.ibm.com =20 > http://sf.net/projects/evms >=20 > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From seberino@dt092n42.san.rr.com Tue Feb 26 20:02:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id F2813185B5 for ; Tue, 26 Feb 2002 20:02:11 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16fsUH-0001R5-00 for gtk-list@gnome.org; Tue, 26 Feb 2002 17:02:29 -0800 Date: Tue, 26 Feb 2002 17:02:29 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: Does *packing* a drawing area into a box fire off a configure event? Message-ID: <20020226170228.A5520@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: By adding print statements it seems that when I pack a drawing area into a box that a configure or expose event gets fired. even before gtk_main gets called and show widget commands. Is this right? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Tue Feb 26 20:03:42 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 6A03718D50 for ; Tue, 26 Feb 2002 20:03:42 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-96.phlpa.fast.net [209.92.96.96]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id UAA19387; Tue, 26 Feb 2002 20:03:40 -0500 (EST) Message-Id: <200202270103.UAA19387@renoir.op.net> To: Luciano Chavez Cc: gtk-list@gnome.org Subject: Re: cancelling/aborting an emitted signal In-reply-to: Your message of "26 Feb 2002 18:46:50 CST." <1014770815.8243.17.camel@localhost> Date: Tue, 26 Feb 2002 20:03:01 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hello, > >Can someone suggest the proper generic way to abort a signal from >actually causing the default handler to change the widget value. Must I >connect the signal handler in a certain order? > >For example, in a "toggled" signal handler for a toggle button if some >condition is true then I want the "toggled" signal to be canceled so the >widget does not signify the change (a checkmark displayed or removed). >I've tried the following but get a Gtk Warning indicating there is to no >emitted signal to stop: > >gtk_signal_emit_stop_by_name (GTK_OBJECT (button), "toggled"); catch the button_press_event and you'll probably find that you're in better shape. also, check and double check that you're calling it on the correct widget - i've sometimes done cut-n-paste ops that have led to that error message. >Again, I want to know the generic method to cancel a signal within a >signal handler so the widget does not reflect the change. This applies >to GtkAdjustment value changes (for GtkHScale and GtkSpinButton >changes), GtkCList row selection and unselection, and others. i do this a LOT in my code, and i always use gtk_signal_emit_stop_by_name(), but i always catch the underlying events (button press/release etc.), not the "translations" like clicked/selected/activate and so forth. you also need to still return TRUE, sometimes. --p From ruben@mrbrklyn.com Tue Feb 26 22:53:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www2.mrbrklyn.com (dsl254-112-136.nyc1.dsl.speakeasy.net [216.254.112.136]) by mail.gnome.org (Postfix) with ESMTP id 049D318122 for ; Tue, 26 Feb 2002 22:53:40 -0500 (EST) Received: from www2 (localhost [127.0.0.1]) by www2.mrbrklyn.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g1R3rdS15972 for ; Tue, 26 Feb 2002 22:53:39 -0500 Date: Tue, 26 Feb 2002 22:53:39 -0500 From: Ruben I Safir To: gtk-list@gnome.org Subject: Balsa Message-ID: <20020226225339.A15963@www2.mrbrklyn.com> Reply-To: ruben@mrbrklyn.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.2.3 Lines: 20 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Anyone seen the Balsa Product lately? Ruben -- __________________________ Brooklyn Linux Solutions __________________________ http://www.mrbrklyn.com - Consulting http://www.brooklynonline.com - For the love of Brooklyn http://www.nylxs.com - Leadership Development in Free Software http://www.nyfairuse.org - The foundation of Democracy http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from around the net http://www2.mrbrklyn.com/mp3/sins.mp3 - C'est La Vie and a boy named Joe http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn.... 1-718-382-5752 From mssuser@localhost.localdomain Tue Feb 26 23:26:01 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from localhost.localdomain (unknown [202.88.224.172]) by mail.gnome.org (Postfix) with ESMTP id B07D718185 for ; Tue, 26 Feb 2002 23:25:58 -0500 (EST) Received: from localhost (localhost [[UNIX: localhost]]) by localhost.localdomain (8.11.2/8.11.2) id g1R4SgP01258 for gtk-list@gnome.org; Wed, 27 Feb 2002 09:58:42 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Dino Cherian K Organization: ini technologies To: gtk-list@gnome.org Subject: [INIMSS] How can I get the GList of items in a GtkList. Date: Wed, 27 Feb 2002 09:58:39 +0530 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <02022709583900.01123@dino> Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All How can I get the pointer to the Glist of all the items in a GtkList of a GtkCombo? I am trying to get the index of the currently selected item in the list. Thank You Dino From wombat@borg.apana.org.au Tue Feb 26 23:52:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from borg.apana.org.au (borg.apana.org.au [203.11.114.137]) by mail.gnome.org (Postfix) with ESMTP id 1F1C21833B for ; Tue, 26 Feb 2002 23:52:26 -0500 (EST) Received: from developer ([10.0.0.23] ident=mail) by borg.apana.org.au with esmtp (Exim 3.12 #1 (Debian)) id 16fw4j-0004ck-00 for ; Wed, 27 Feb 2002 12:52:21 +0800 Received: from wombat by developer with local (Exim 3.34 #1 (Debian)) id 16fw6D-0000Xl-00 for ; Wed, 27 Feb 2002 12:53:53 +0800 Subject: file handling with fopen() and fclose() From: John Breen To: gtk-list@gnome.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 27 Feb 2002 12:53:53 +0800 Message-Id: <1014785633.976.49.camel@developer> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Help! I'm in the process of developing an app. using gtk1.2 that requires the user to login, and thus needs to read /etc/shadow to get username and password info. Problem is, I've tried doing it with something like fp=fopen("/etc/shadow"); if(fp==NULL) fatal_error("cannot open file"); fclose(fp); showmessage("login processing done"); and are my own functions that work ok - i have tested them, so they're not at issue here. Problem is that the code never gets to either the showmessage() or fatalerror() calls. I need to do line-by-line text processing with fp, so a stream-based approach that lets me use fgets() is better. Is there a workaround? Has anyone run into similar problems? I have very similar code working fine in an ncurses-based version, but this is really bugging me. TIA, John Breen From Valdis.Kletnieks@vt.edu Wed Feb 27 00:05:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 025BB1833B for ; Wed, 27 Feb 2002 00:05:09 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1R550Vj027116; Wed, 27 Feb 2002 00:05:00 -0500 Message-Id: <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: John Breen Cc: gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() In-Reply-To: Your message of "Wed, 27 Feb 2002 12:53:53 +0800." <1014785633.976.49.camel@developer> From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_-534300354P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 27 Feb 2002 00:04:59 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_-534300354P Content-Type: text/plain; charset=us-ascii On Wed, 27 Feb 2002 12:53:53 +0800, John Breen said: > fp=fopen("/etc/shadow"); SYNOPSIS #include FILE *fopen(const char *path, const char *mode); Might want to pass a mode there, it would SIGSEGV pretty quickly otherwise. Also, note that /etc/shadow is probably only readable by root - which means that you're in for *LOADS* of security fun (you get to run set-UID, or run as root, or figure out how to use PAM on systems that support it). Personally, I think PAM is your best bet if you can use it. -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_-534300354P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8fGj7cC3lWbTT17ARAtH0AJ0dyb+2mKPuQ+T6wssjMqYam8iJQQCgnpVp xrI13SbK/8pLgcKCxipFp/w= =HS9C -----END PGP SIGNATURE----- --==_Exmh_-534300354P-- From wombat@borg.apana.org.au Wed Feb 27 00:17:13 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from borg.apana.org.au (borg.apana.org.au [203.11.114.137]) by mail.gnome.org (Postfix) with ESMTP id 28FE71929B for ; Wed, 27 Feb 2002 00:17:11 -0500 (EST) Received: from developer ([10.0.0.23] ident=mail) by borg.apana.org.au with esmtp (Exim 3.12 #1 (Debian)) id 16fwSt-0004gQ-00 for ; Wed, 27 Feb 2002 13:17:19 +0800 Received: from wombat by developer with local (Exim 3.34 #1 (Debian)) id 16fwUO-0000Z7-00 for ; Wed, 27 Feb 2002 13:18:52 +0800 Subject: Re: file handling with fopen() and fclose() From: John Breen To: gtk-list@gnome.org In-Reply-To: <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 27 Feb 2002 13:18:51 +0800 Message-Id: <1014787131.976.56.camel@developer> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-27 at 13:04, Valdis.Kletnieks@vt.edu wrote: > On Wed, 27 Feb 2002 12:53:53 +0800, John Breen said: > > > fp=fopen("/etc/shadow"); > > SYNOPSIS > #include > > FILE *fopen(const char *path, const char *mode); sorry, the code is actually fp = fopen("/etc/shadow", "r"); > > > Might want to pass a mode there, it would SIGSEGV pretty quickly otherwise. > > Also, note that /etc/shadow is probably only readable by root - which means > that you're in for *LOADS* of security fun (you get to run set-UID, or > run as root, or figure out how to use PAM on systems that support it). the code's been compiled, and then chgrp shadow executable chmod g+s executable which means that the app will be run if by a member of the shadow group, which is the group on /etc/shadow, and has read-access to /etc/shadow. > > Personally, I think PAM is your best bet if you can use it. I hadn't thought of PAM (and don't know how to use it in the context of this app. anyway :( ) the thing is, it works ok for me in a console version, just won't work in GTK+ - it seems to get to the first line using the file after fopen() and close the app down totally. oh well, time to climb the ol' learning curve again. shame, 'cause i wanted to get this bit out of the way quickly - the rest of the app should be pretty easy after that... cheers, John Breen From anjali_grover@yahoo.com Wed Feb 27 00:59:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web14602.mail.yahoo.com (web14602.mail.yahoo.com [216.136.224.82]) by mail.gnome.org (Postfix) with SMTP id 0546B181DF for ; Wed, 27 Feb 2002 00:59:30 -0500 (EST) Message-ID: <20020227055929.90176.qmail@web14602.mail.yahoo.com> Received: from [155.69.5.123] by web14602.mail.yahoo.com via HTTP; Tue, 26 Feb 2002 21:59:29 PST Date: Tue, 26 Feb 2002 21:59:29 -0800 (PST) From: Anjali Grover Subject: Undefined references fro Gtkdatabox To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have follwed the installation steps ('./configure' followed by 'make' an then 'make install') fro GtkDatabox. I can successfully run the testdatabox. However, when I copy-paste the code for say the basic data box to my pre-existing gtk program in another directory, I get undefined references for the databox functions at run-time. (I can compile the code) I believe I would have to copy the databox libraries to my previous original set of other gtk libraries. I am not sure how to do this??? Thanx, Anjali __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com From michael@cs.millersville.edu Wed Feb 27 06:24:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.millersville.edu (cs.millersville.edu [166.66.64.14]) by mail.gnome.org (Postfix) with ESMTP id 080B71865F for ; Wed, 27 Feb 2002 06:24:16 -0500 (EST) Received: from cs.millersville.edu (localhost.0.0.127.in-addr.arpa [127.0.0.1] (may be forged)) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RBNwIQ004892; Wed, 27 Feb 2002 06:23:59 -0500 Received: from localhost (michael@localhost) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RBNw5X004888; Wed, 27 Feb 2002 06:23:58 -0500 Date: Wed, 27 Feb 2002 06:23:58 -0500 (EST) From: Michael Mitton To: Valdis.Kletnieks@vt.edu Cc: John Breen , Subject: Re: file handling with fopen() and fclose() In-Reply-To: <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Even with PAM you need to be root. I had this trouble myself and ended up writing a helper script that ran suid as root and passed login info via pipes. If you are not root, it seems to only auth the user your are running your script as. -Michael On Wed, 27 Feb 2002 Valdis.Kletnieks@vt.edu wrote: > On Wed, 27 Feb 2002 12:53:53 +0800, John Breen said: > > > fp=fopen("/etc/shadow"); > > SYNOPSIS > #include > > FILE *fopen(const char *path, const char *mode); > > > Might want to pass a mode there, it would SIGSEGV pretty quickly otherwise. > > Also, note that /etc/shadow is probably only readable by root - which means > that you're in for *LOADS* of security fun (you get to run set-UID, or > run as root, or figure out how to use PAM on systems that support it). > > Personally, I think PAM is your best bet if you can use it. > > -- > Valdis Kletnieks > Computer Systems Senior Engineer > Virginia Tech > > From sven@gimp.org Wed Feb 27 08:02:46 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 98C52187B2 for ; Wed, 27 Feb 2002 08:02:46 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16g3j8-0000ZA-00; Wed, 27 Feb 2002 14:02:34 +0100 To: John Breen Cc: gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> <1014787131.976.56.camel@developer> From: Sven Neumann Date: 27 Feb 2002 14:02:33 +0100 In-Reply-To: <1014787131.976.56.camel@developer> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, John Breen writes: > > Also, note that /etc/shadow is probably only readable by root - which means > > that you're in for *LOADS* of security fun (you get to run set-UID, or > > run as root, or figure out how to use PAM on systems that support it). > > the code's been compiled, and then > > chgrp shadow executable > chmod g+s executable > > which means that the app will be run if by a member of the shadow group, > which is the group on /etc/shadow, and has read-access to /etc/shadow. which is actually a very bad idea for a GUI application. You can as well make /etc/shadow world-readable then. See http://gtk.org/setuid.html. GTK+-2.0 will even refuse to run if you make the executable setuid or setgid. Salut, Sven From wombat@borg.apana.org.au Wed Feb 27 08:25:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (relay1-us.simplemente.net [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id DCF3718E5E for ; Wed, 27 Feb 2002 08:25:22 -0500 (EST) Received: from borg.apana.org.au (borg.apana.org.au [203.11.114.137]) by relay1-us.simplemente.net (Postfix) with ESMTP id C89B2D780E for ; Wed, 27 Feb 2002 08:25:18 -0500 (EST) Received: from developer ([10.0.0.23] ident=mail) by borg.apana.org.au with esmtp (Exim 3.12 #1 (Debian)) id 16g3sY-0005V2-00 for ; Wed, 27 Feb 2002 21:12:18 +0800 Received: from wombat by developer with local (Exim 3.34 #1 (Debian)) id 16g3u2-0000tP-00 for ; Wed, 27 Feb 2002 21:13:50 +0800 Subject: Re: file handling with fopen() and fclose() From: John Breen To: gtk-list@gnome.org In-Reply-To: References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> <1014787131.976.56.camel@developer> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 27 Feb 2002 21:13:49 +0800 Message-Id: <1014815629.1706.68.camel@developer> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-27 at 21:02, Sven Neumann wrote: > Hi, > > John Breen writes: > > > which is actually a very bad idea for a GUI application. You can as > well make /etc/shadow world-readable then. See http://gtk.org/setuid.html. > GTK+-2.0 will even refuse to run if you make the executable setuid or > setgid. > > Ok, I sit corrected. I guess I'll have to add more overhead and figure out _how_ to handle the authentication. PAM _looks_ like it will do it, but then again maybe not. Has anyone done such a thing then, and prepared to share the methodology? If not the code? Regards, John Breen From satyajit.kanungo@wipro.com Wed Feb 27 09:58:25 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by mail.gnome.org (Postfix) with ESMTP id 54A4218844 for ; Wed, 27 Feb 2002 09:58:20 -0500 (EST) Received: from m2vwall5.wipro.com (m2vwall5.wipro.com [10.115.50.5]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id g1REwJe07948 for ; Wed, 27 Feb 2002 20:28:19 +0530 (IST) Received: from satyajit ([10.114.9.188]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GS75JN00.HZ0 for ; Wed, 27 Feb 2002 20:27:23 +0530 From: "satyajit kanungo" To: Subject: drawing area and expose event Date: Wed, 27 Feb 2002 20:35:37 +0530 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi All I have a gtk drawing area put in a window. I have a function to draw something on this drawing area [ using GdkRGB gdk_draw_rgb_image (darea,..) call ] Now I find if I directly call this funtion to draw on to the drawing area I get warnings such as : GLib-GObject-WARNING **: invalid cast from (NULL) pointer to `GdkDrawable' Gdk-CRITICAL **: file gdkdraw.c: line 244: assertion `GDK_IS_DRAWABLE (drawable)' failed Then I attached an "expose-event" to the drawing area and in the callback I put the same function(drawing fuction) and it draws properly . Do we always need to attach the expose event to the drawing area to draw anything on it . Is there any other way where I can force the drawing . Thanks, Satyajit From hp@redhat.com Wed Feb 27 10:45:03 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id E0AE2182F6 for ; Wed, 27 Feb 2002 10:45:02 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RFit402249; Wed, 27 Feb 2002 10:44:55 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: John Breen Cc: gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() References: <1014785633.976.49.camel@developer> <200202270505.g1R550Vj027116@foo-bar-baz.cc.vt.edu> <1014787131.976.56.camel@developer> <1014815629.1706.68.camel@developer> From: Havoc Pennington Date: 27 Feb 2002 10:44:54 -0500 In-Reply-To: <1014815629.1706.68.camel@developer> Message-ID: Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: John Breen writes: > > Ok, I sit corrected. I guess I'll have to add more overhead and figure > out _how_ to handle the authentication. PAM _looks_ like it will do it, > but then again maybe not. > > Has anyone done such a thing then, and prepared to share the > methodology? If not the code? > You're just trying to authenticate a user? On Red Hat Linux we use an external program which authenticates then runs the app that needs higher privileges. Look at any of the admin tools such as redhat-config-network for how it's set up. I'm not all that familiar with it myself and don't know if there are docs or where they are. The relevant package is "usermode" There isn't really a very good portable way to do this sort of thing... UNIX flavors and Linux distributions tend to have their own setup. Havoc From Valdis.Kletnieks@vt.edu Wed Feb 27 10:50:18 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from foo-bar-baz.cc.vt.edu (foo-bar-baz.cc.vt.edu [128.173.14.103]) by mail.gnome.org (Postfix) with ESMTP id 86EF418BDA for ; Wed, 27 Feb 2002 10:50:18 -0500 (EST) Received: from foo-bar-baz.cc.vt.edu (valdis@localhost [127.0.0.1]) by foo-bar-baz.cc.vt.edu (8.12.2/8.12.2) with ESMTP id g1RFo5Vj006288; Wed, 27 Feb 2002 10:50:05 -0500 Message-Id: <200202271550.g1RFo5Vj006288@foo-bar-baz.cc.vt.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4+dev To: Michael Mitton Cc: John Breen , gtk-list@gnome.org Subject: Re: file handling with fopen() and fclose() In-Reply-To: Your message of "Wed, 27 Feb 2002 06:23:58 EST." From: Valdis.Kletnieks@vt.edu X-Url: http://black-ice.cc.vt.edu/~valdis/ X-Face-Viewer: See ftp://cs.indiana.edu/pub/faces/index.html to decode picture X-Face: 34C9$Ewd2zeX+\!i1BA\j{ex+$/V'JBG#;3_noWWYPa"|,I#`R"{n@w>#:{)FXyiAS7(8t( ^*w5O*!8O9YTe[r{e%7(yVRb|qxsRYw`7J!`AM}m_SHaj}f8eb@d^L>BrX7iO[ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_361658866P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 27 Feb 2002 10:50:05 -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --==_Exmh_361658866P Content-Type: text/plain; charset=us-ascii On Wed, 27 Feb 2002 06:23:58 EST, Michael Mitton said: > Even with PAM you need to be root. I had this trouble myself and ended up > writing a helper script that ran suid as root and passed login info via > pipes. If you are not root, it seems to only auth the user your are > running your script as. Very true - but on the *other* hand - under what conditions do you *want* to be able to authenticate as some other user? That's a big security hole. 1) Unless you're very careful, the progam can then be used as a password guesser for another userid. You can even automate it using XTest or similar. 2) Since you're still running as yourself, authenticating as somebody else doesn't do squat for you - you only have your own access permissions. You *could* invoke or contact something else - but *that* something should be doing its *own* authentication. For instance, having your program shout down a named pipe "Yeah, it's really the other guy" is broken security wise - the program at the other end of the pipe needs to verify *for itself* that whatever is at the sending end is who it claims to be. -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech --==_Exmh_361658866P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQE8fQAtcC3lWbTT17ARAv5QAKCTCfBzvdLJVg2cz7FWOgKF+bZK1QCg2R+4 7b7Q4lOmwD8x6V7SI1RZvJU= =nVDw -----END PGP SIGNATURE----- --==_Exmh_361658866P-- From hp@redhat.com Wed Feb 27 11:10:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 63D25181CC for ; Wed, 27 Feb 2002 11:10:38 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RGASC23616; Wed, 27 Feb 2002 11:10:28 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "satyajit kanungo" Cc: Subject: Re: drawing area and expose event References: From: Havoc Pennington Date: 27 Feb 2002 11:10:28 -0500 In-Reply-To: Message-ID: Lines: 10 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "satyajit kanungo" writes: > Do we always need to attach the expose event to the drawing area to draw anything on it . > Is there any other way where I can force the drawing . > Yes, all drawing should happen in expose_event. There are other ways to do it sometimes, but they are almost always a bad idea. Havoc From hunchback@netcabo.pt Wed Feb 27 11:27:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id D0A9E181CC for ; Wed, 27 Feb 2002 11:27:21 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Wed, 27 Feb 2002 16:21:10 +0000 Content-Class: urn:content-classes:message From: To: , "satyajit kanungo" Subject: RE: drawing area and expose event Date: Wed, 27 Feb 2002 16:21:10 -0000 Message-ID: <058c01c1bfaa$c45058b0$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG/qsRQbq+ojiubEdaCegBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, > Then I attached an "expose-event" to the drawing area and in the = callback I put >the same > function(drawing fuction) and it draws properly . > Do we always need to attach the expose event to the drawing area to = draw >anything on it . > Is there any other way where I can force the drawing . i also did something similar, and the only way it worked was connecting = to=20 expose-event, i think that it is always necessary to do that because the = area is only=20 showed when gtk_main_init starts, so when you try to paint on the area = before that=20 you are painting on something that does not exist... so in order to it = happear, it is=20 only painted when the drawing-area is exposed. Somebody correct me if i'm wrong... Afonso From michael@cs.millersville.edu Wed Feb 27 11:44:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from cs.millersville.edu (cs.millersville.edu [166.66.64.14]) by mail.gnome.org (Postfix) with ESMTP id 2E68818D0F for ; Wed, 27 Feb 2002 11:44:08 -0500 (EST) Received: from cs.millersville.edu (localhost.0.0.127.in-addr.arpa [127.0.0.1] (may be forged)) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RGi2IQ014203; Wed, 27 Feb 2002 11:44:02 -0500 Received: from localhost (michael@localhost) by cs.millersville.edu (8.12.1/8.12.1/Debian -5) with ESMTP id g1RGi0x2014199; Wed, 27 Feb 2002 11:44:00 -0500 Date: Wed, 27 Feb 2002 11:44:00 -0500 (EST) From: Michael Mitton To: Valdis.Kletnieks@vt.edu Cc: John Breen , Subject: Re: file handling with fopen() and fclose() In-Reply-To: <200202271550.g1RFo5Vj006288@foo-bar-baz.cc.vt.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 27 Feb 2002 Valdis.Kletnieks@vt.edu wrote: > On Wed, 27 Feb 2002 06:23:58 EST, Michael Mitton said: > > Even with PAM you need to be root. I had this trouble myself and ended up > > writing a helper script that ran suid as root and passed login info via > > pipes. If you are not root, it seems to only auth the user your are > > running your script as. > > Very true - but on the *other* hand - under what conditions do you *want* > to be able to authenticate as some other user? That's a big security hole. > > 1) Unless you're very careful, the progam can then be used as a password > guesser for another userid. You can even automate it using XTest or similar. > > 2) Since you're still running as yourself, authenticating as somebody else > doesn't do squat for you - you only have your own access permissions. > You *could* invoke or contact something else - but *that* something should > be doing its *own* authentication. For instance, having your program > shout down a named pipe "Yeah, it's really the other guy" is broken > security wise - the program at the other end of the pipe needs to verify > *for itself* that whatever is at the sending end is who it claims to be. We were actually using a web script that needed authenticated, and apache runs as www. :) > > > -- > Valdis Kletnieks > Computer Systems Senior Engineer > Virginia Tech > > From rwalden@tripos.com Wed Feb 27 11:45:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from gatekeeper.tripos.com (gatekeeper.tripos.com [192.160.145.62]) by mail.gnome.org (Postfix) with ESMTP id 48DD918D41 for ; Wed, 27 Feb 2002 11:45:59 -0500 (EST) Received: (from uucp@localhost) by tripos.com (8.8.8+Sun) id KAA20596 for ; Wed, 27 Feb 2002 10:45:54 -0600 (CST) Received: from ariel.tripos.com(172.20.5.145) by gatekeeper.tripos.com via smap (V5.5) id xma020551; Wed, 27 Feb 02 10:45:01 -0600 Received: from tripos.com (localhost [127.0.0.1]) by ariel.tripos.com (SGI-8.9.3/8.9.3) with ESMTP id KAA54812; Wed, 27 Feb 2002 10:45:00 -0600 (CST) Message-ID: <3C7D0D0C.94AF34F3@tripos.com> Date: Wed, 27 Feb 2002 10:45:00 -0600 From: Ralph Walden Organization: Tripos Inc. X-Mailer: Mozilla 4.7C-SGI [en] (X11; U; IRIX 6.5 IP32) X-Accept-Language: en MIME-Version: 1.0 To: Havoc Pennington Cc: GTK List Subject: Re: GTK_TYPE_BOXED References: <3C7A694E.FE8E50DD@tripos.com> <3C7C028F.BEE311DD@tripos.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks, that was the lead I needed. So, if you were deriving a type from GTK_TYPE_BOXED in gtk+-1.2, with the requisite GtkTypeInfo structure and gtk_type_unique call, for gtk-2.0 you just call newtype = g_boxed_type_register_static( name, copy_func, free_func ); and you're all set, no need to fill in a GTypeInfo structure. Thanks again, Ralph Walden Havoc Pennington wrote: > > Ralph Walden writes: > > Can anyone comment on the changes between 1.2 and 2.0 that > > woud break code using > > > > gtk_type_unique(GTK_TYPE_BOXED, &some_subclass_info ); > > > > in the _get_type function for a derived type? > > > > You probably want g_boxed_type_register_static() instead. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- Ralph E. Walden Tripos, Inc. rwalden@tripos.com From stonybrk@ix.netcom.com Wed Feb 27 11:47:23 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from barry.mail.mindspring.net (barry.mail.mindspring.net [207.69.200.25]) by mail.gnome.org (Postfix) with ESMTP id 88FF318DAB for ; Wed, 27 Feb 2002 11:47:23 -0500 (EST) Received: from user-2iniv3c.dialup.mindspring.com ([165.121.124.108] helo=norman) by barry.mail.mindspring.net with smtp (Exim 3.33 #1) id 16g7Eb-00038d-00; Wed, 27 Feb 2002 11:47:18 -0500 Message-ID: <006a01c1bfae$728f6760$0200a8c0@norman> From: "Norman Black" To: "Havoc Pennington" Cc: "gtk-list" References: Subject: Re: drawing area and expose event Date: Wed, 27 Feb 2002 08:47:26 -0800 Organization: Stony Brook Software 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hmmm. "all drawing"!!! Are you saying that when a user hits the "e" key in my program I should generate an expose event to draw the "e" in my window rather than simply draw the "e" in response to them pressing "e". Best Regards, Norman Black Stony Brook Software ----- Original Message ----- From: "Havoc Pennington" To: "satyajit kanungo" Cc: Sent: Wednesday, February 27, 2002 8:10 AM Subject: Re: drawing area and expose event > > "satyajit kanungo" writes: > > Do we always need to attach the expose event to the drawing area to draw anything on it . > > Is there any other way where I can force the drawing . > > > > Yes, all drawing should happen in expose_event. There are other ways > to do it sometimes, but they are almost always a bad idea. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From iain@ximian.com Wed Feb 27 11:58:54 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from peabody.ximian.com (peabody.ximian.com [141.154.95.10]) by mail.gnome.org (Postfix) with ESMTP id 6ECE018D2F for ; Wed, 27 Feb 2002 11:58:54 -0500 (EST) Received: (qmail 25616 invoked from network); 27 Feb 2002 16:58:53 -0000 Received: from peabody.ximian.com (HELO localhost.localdomain) (141.154.95.10) by peabody.ximian.com with SMTP; 27 Feb 2002 16:58:53 -0000 Subject: Re: drawing area and expose event From: iain To: Norman Black Cc: Havoc Pennington , gtk-list In-Reply-To: <006a01c1bfae$728f6760$0200a8c0@norman> References: <006a01c1bfae$728f6760$0200a8c0@norman> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Ximian, Inc X-Mailer: Evolution/1.1.0.99 (Preview Release) Date: 27 Feb 2002 17:59:53 +0000 Message-Id: <1014832795.2179.12.camel@discomachinegun.prettypeople.org> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: On Wed, 2002-02-27 at 16:47, Norman Black wrote: > Hmmm. "all drawing"!!! > > Are you saying that when a user hits the "e" key in my program I should > generate an expose event to draw the "e" in my window rather than simply > draw the "e" in response to them pressing "e". Well, if you don't do it in the expose callback anyway, it's not going to be there, so you might as well. iain -- "All men of conscience or prudence ply to windward, to maintain their wars to be defensive." -- Roger Williams From pbd@op.net Wed Feb 27 12:02:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 3570818E66 for ; Wed, 27 Feb 2002 12:02:33 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-470.phlpa.fast.net [209.92.97.216]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id MAA24793; Wed, 27 Feb 2002 12:02:28 -0500 (EST) Message-Id: <200202271702.MAA24793@renoir.op.net> To: "Norman Black" Cc: "Havoc Pennington" , "gtk-list" Subject: Re: drawing area and expose event In-reply-to: Your message of "Wed, 27 Feb 2002 08:47:26 PST." <006a01c1bfae$728f6760$0200a8c0@norman> Date: Wed, 27 Feb 2002 12:01:58 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hmmm. "all drawing"!!! > >Are you saying that when a user hits the "e" key in my program I should >generate an expose event to draw the "e" in my window rather than simply >draw the "e" in response to them pressing "e". call gtk_widget_queue_draw(), then redraw in the subsequent expose event. you have to draw the "e" in the expose event anyway, because if you window is hidden or minimized-then-restored or unmapped in any way, the X server will ask you to redraw it. X does not store the contents of windows - when an area of a window is uncovered, the application needs to redraw it from scratch. your program design becomes simpler by doing everything from an expose event. --p From hp@redhat.com Wed Feb 27 12:43:16 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id AEB7F19715 for ; Wed, 27 Feb 2002 12:43:16 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RHhFQ23054; Wed, 27 Feb 2002 12:43:15 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Norman Black" Cc: "gtk-list" Subject: Re: drawing area and expose event References: <006a01c1bfae$728f6760$0200a8c0@norman> From: Havoc Pennington Date: 27 Feb 2002 12:43:14 -0500 In-Reply-To: <006a01c1bfae$728f6760$0200a8c0@norman> Message-ID: Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Norman Black" writes: > > Are you saying that when a user hits the "e" key in my program I should > generate an expose event to draw the "e" in my window rather than simply > draw the "e" in response to them pressing "e". > What you should do is call gtk_widget_queue_draw_area() or gdk_window_invalidate_rect() for the rectangle containing the "e". Then you will get an expose event for that area, and then you paint the "e" So all drawing is in the expose handler. The expose handler must be able to redraw any area anyway, so you may as well put all drawing there for code cleanliness; putting all drawing there is also crucial to be sure you don't have any flicker in GTK 2. Havoc From hp@redhat.com Wed Feb 27 12:44:04 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id C306419715 for ; Wed, 27 Feb 2002 12:44:03 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RHhsW23058; Wed, 27 Feb 2002 12:43:54 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Cc: , "satyajit kanungo" Subject: Re: drawing area and expose event References: <058c01c1bfaa$c45058b0$0914a8c0@netcabo.net> From: Havoc Pennington Date: 27 Feb 2002 12:43:54 -0500 In-Reply-To: <058c01c1bfaa$c45058b0$0914a8c0@netcabo.net> Message-ID: Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: writes: > > Then I attached an "expose-event" to the drawing area and in the callback I put >the same > > function(drawing fuction) and it draws properly . > > Do we always need to attach the expose event to the drawing area to draw >anything on it . > > Is there any other way where I can force the drawing . > > i also did something similar, and the only way it worked was connecting to > expose-event, i think that it is always necessary to do that because the area is only > showed when gtk_main_init starts, so when you try to paint on the area before that > you are painting on something that does not exist... so in order to it happear, it is > only painted when the drawing-area is exposed. > > Somebody correct me if i'm wrong... > You're exactly right. Havoc From trefftzs@tcsn.net Wed Feb 27 14:05:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from thoth.trefftzs.org (psrb-ppp1-210.tcsn.net [63.174.82.210]) by mail.gnome.org (Postfix) with ESMTP id 595B21840D for ; Wed, 27 Feb 2002 14:05:56 -0500 (EST) Received: from outmail.tcsn.net (jeff@localhost) by thoth.trefftzs.org (8.9.3/8.9.3) with ESMTP id LAA05491 for ; Wed, 27 Feb 2002 11:06:27 -0800 Message-Id: <200202271906.LAA05491@thoth.trefftzs.org> X-Authentication-Warning: thoth.trefftzs.org: jeff owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: gtk-list@gnome.org Subject: More pango-0.26 compile problems Reply-To: Jeff Trefftzs From: Jeff Trefftzs Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 27 Feb 2002 11:06:26 -0800 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all - I downloaded pango-0.26.tar.gz last night, and have begun trying to compile and install it. I managed the ./configure step okay -- I have installed glig-1.3.15 -- but, like Raymond Wan, my compilation breaks in the examples directory. Can anyone tell me where to start looking in order to fix this? I really need pango only so I can compile gtk+-1.3.15, so I can get to work on gimp-1.3. All help greatly appreciated. Here's the make output: Making all in examples make[2]: Entering directory `/mnt/S.home/trefftzs/downloads/Sourc es/pango-0.26/examples' c++ -DHAVE_CONFIG_H -I. -I. -I.. -DG_DISABLE_DEPRECATED -I.. -I /usr/lib/qt-2.0.1/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype 2 -g -O2 -c viewer-qt.cc c++ -DHAVE_CONFIG_H -I. -I. -I.. -DG_DISABLE_DEPRECATED -I.. -I /usr/lib/qt-2.0.1/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype 2 -g -O2 -c moc_viewer-qt.cc moc_viewer-qt.cc: In function `static class QString ViewerView::tr(const char *)': moc_viewer-qt.cc:42: no matching function for call to `QApplication::translate (char[11], const char *&, int)' /usr/lib/qt-2.0.1/include/qapplication.h:139: candidates are: QApplication::translate(const char *, const char *) const moc_viewer-qt.cc: At top level: moc_viewer-qt.cc:46: prototype for `class QString ViewerView::tr( const char *, const char *)' does not match any in class `ViewerView' moc_viewer-qt.cc:41: candidate is: static class QString ViewerView::tr(const char *) moc_viewer-qt.cc: In method `class QString ViewerView::tr(const char *, const char *)': moc_viewer-qt.cc:47: no matching function for call to `QApplication::translate (char[11], const char *&, const char *&)' /usr/lib/qt-2.0.1/include/qapplication.h:139: candidates are: QApplication::translate(const char *, const char *) const moc_viewer-qt.cc: At top level: moc_viewer-qt.cc:53: new declaration `static class QMetaObject * ViewerView::staticMetaObject()' viewer-qt.h:53: ambiguates old declaration `static void ViewerView::staticMetaObject()' moc_viewer-qt.cc: In function `static class QMetaObject * ViewerView::staticMetaObject()': moc_viewer-qt.cc:59: `Access' is not a member of type `QMetaData' moc_viewer-qt.cc:59: `slot_tbl_access' undeclared (first use this function) moc_viewer-qt.cc:59: (Each undeclared identifier is reported only once moc_viewer-qt.cc:59: for each function it appears in.) moc_viewer-qt.cc:68: no matching function for call to `QMetaObject::new_metaobject (char[11], char[12], int, int, int, int, int, int, int, int, int, int)' /usr/lib/qt-2.0.1/include/qmetaobject.h:65: candidates are: QMetaObject::new_metaobject(const char *, const char *, QMetaData *, int, QMetaData *, int) moc_viewer-qt.cc:69: confused by earlier errors, bailing out make[2]: *** [moc_viewer-qt.o] Error 1 make[2]: Leaving directory `/mnt/S.home/trefftzs/downloads/Source s/pango-0.26/examples' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/S.home/trefftzs/downloads/Source s/pango-0.26' make: *** [all-recursive-am] Error 2 -- --Jeff Jeff Trefftzs http://www.tcsn.net/trefftzs Home Page http://gug.sunsite.dk/gallery.php?artist=68 Gimp Gallery http://trefftzs.topcities.com/home.html Photo galleries From sven@gimp.org Wed Feb 27 14:44:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (buserror-extern.convergence.de [212.84.236.66]) by mail.gnome.org (Postfix) with ESMTP id 2D7F118531 for ; Wed, 27 Feb 2002 14:44:19 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16g9zo-0002bF-00; Wed, 27 Feb 2002 20:44:12 +0100 To: Jeff Trefftzs Cc: gtk-list@gnome.org Subject: Re: More pango-0.26 compile problems References: <200202271906.LAA05491@thoth.trefftzs.org> From: Sven Neumann Date: 27 Feb 2002 20:44:12 +0100 In-Reply-To: <200202271906.LAA05491@thoth.trefftzs.org> Message-ID: Lines: 16 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Jeff Trefftzs writes: > I downloaded pango-0.26.tar.gz last night, and have begun trying > to compile and install it. I managed the ./configure step okay > -- I have installed glig-1.3.15 -- but, like Raymond Wan, my > compilation breaks in the examples directory. Can anyone tell > me where to start looking in order to fix this? I really need > pango only so I can compile gtk+-1.3.15, so I can get to work on > gimp-1.3. configure --without-qt should do the trick. Salut, Sven From andreabergia@yahoo.it Wed Feb 27 15:09:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp011.mail.yahoo.com (smtp011.mail.yahoo.com [216.136.173.31]) by mail.gnome.org (Postfix) with SMTP id CFF5618531 for ; Wed, 27 Feb 2002 15:09:39 -0500 (EST) Received: from andreabergia (AUTH poptime) at unknown (HELO alfa) (212.171.122.243) by smtp.mail.vip.sc5.yahoo.com with SMTP; 27 Feb 2002 20:09:29 -0000 Message-ID: <008701c1bfca$bddad9e0$f37aabd4@alfa> From: "Andrea Bergia" To: "gtk-list" Subject: Fixed size window Date: Wed, 27 Feb 2002 21:07:57 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have a simple questions about GTK: how can I lock the size of a window? I want that the the user cannot resize the windows, is there a simple way to do this? Thanks. Andrea. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From hummaida@cs.man.ac.uk Wed Feb 27 15:16:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mail.gnome.org (Postfix) with ESMTP id 3B91E19249 for ; Wed, 27 Feb 2002 15:16:57 -0500 (EST) Received: from cs.man.ac.uk ([62.252.242.142]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020227201652.INIW7000.mta06-svc.ntlworld.com@cs.man.ac.uk>; Wed, 27 Feb 2002 20:16:52 +0000 Message-ID: <3C7D3E61.5080506@cs.man.ac.uk> Date: Wed, 27 Feb 2002 20:15:29 +0000 From: A R Hummaida User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Andrea Bergia Cc: gtk-list Subject: Re: Fixed size window References: <008701c1bfca$bddad9e0$f37aabd4@alfa> Content-Type: multipart/related; boundary="------------020002090807010808080100" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: --------------020002090807010808080100 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit this is from API :). read more there under GtkWindow void gtk_window_set_policy (GtkWindow *window, gint allow_shrink, gint allow_grow, gint auto_shrink); Changes how a toplevel window deals with its size request and user resize attempts. There are really only two reasonable ways to call this function: 1. gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, FALSE) means that the window is user-resizable. 2. gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, TRUE) means that the window's size is program-controlled, and should simply match the current size request of the window's children. Andrea Bergia wrote: >Hi, I have a simple questions about GTK: how can I lock the size of a >window? I want that the the user cannot resize the windows, is there a >simple way to do this? >Thanks. Andrea. > > > >_________________________________________________________ >Do You Yahoo!? >Get your free @yahoo.com address at http://mail.yahoo.com > >_______________________________________________ >gtk-list mailing list >gtk-list@gnome.org >http://mail.gnome.org/mailman/listinfo/gtk-list > --------------020002090807010808080100-- From hummaida@cs.man.ac.uk Wed Feb 27 15:20:30 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mail.gnome.org (Postfix) with ESMTP id C733418531 for ; Wed, 27 Feb 2002 15:20:29 -0500 (EST) Received: from cs.man.ac.uk ([62.252.242.142]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020227202028.IQMY7000.mta06-svc.ntlworld.com@cs.man.ac.uk>; Wed, 27 Feb 2002 20:20:28 +0000 Message-ID: <3C7D3F3A.5010202@cs.man.ac.uk> Date: Wed, 27 Feb 2002 20:19:06 +0000 From: A R Hummaida User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 Cc: Andrea Bergia , gtk-list Subject: Re: Fixed size window References: <008701c1bfca$bddad9e0$f37aabd4@alfa> <3C7D3E61.5080506@cs.man.ac.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: oops read here http://developer.gnome.org/doc/API/gtk/gtkwindow.html A R Hummaida wrote: > this is from API :). read more there under GtkWindow > > > > > > > void gtk_window_set_policy (GtkWindow > *window, > gint > > allow_shrink, > gint > > allow_grow, > gint > > auto_shrink); > > > Changes how a toplevel window deals with its size request and user > resize attempts. There are really only two reasonable ways to call > this function: > > 1. > > gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, FALSE) > means that the window is user-resizable. > > 2. > > gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, TRUE) > means that the window's size is program-controlled, and should > simply match the current size request of the window's children. > > > > Andrea Bergia wrote: > >> Hi, I have a simple questions about GTK: how can I lock the size of a >> window? I want that the the user cannot resize the windows, is there a >> simple way to do this? >> Thanks. Andrea. >> >> >> >> _________________________________________________________ >> Do You Yahoo!? >> Get your free @yahoo.com address at http://mail.yahoo.com >> >> _______________________________________________ >> gtk-list mailing list >> gtk-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/gtk-list >> > > From hunchback@netcabo.pt Wed Feb 27 15:28:22 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from netcabo.pt (unknown [212.113.174.249]) by mail.gnome.org (Postfix) with ESMTP id 45B1B18106 for ; Wed, 27 Feb 2002 15:28:22 -0500 (EST) Received: from mail pickup service by netcabo.pt with Microsoft SMTPSVC; Wed, 27 Feb 2002 20:22:19 +0000 Content-Class: urn:content-classes:message From: To: Subject: New Documentation? Date: Wed, 27 Feb 2002 20:22:18 -0000 Message-ID: <537201c1bfcc$745537a0$0914a8c0@netcabo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcG/zHRSkEJsYSu8EdaCegBQixNM+A== X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I'm just wondering if GTK+ will have a better documentation? I ask this = because some metods aren't even commented, and just by the name you can't say what it = does=20 (at least on the gtk 1.2, i haven't used gtk 2). The Java Specification = is much better=20 in that mather.. Afonso From stonybrk@ix.netcom.com Wed Feb 27 16:13:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from smtp10.atl.mindspring.net (smtp10.atl.mindspring.net [207.69.200.246]) by mail.gnome.org (Postfix) with ESMTP id E74891907E for ; Wed, 27 Feb 2002 16:13:19 -0500 (EST) Received: from user-38ldm4k.dialup.mindspring.com ([209.86.216.148] helo=norman) by smtp10.atl.mindspring.net with smtp (Exim 3.33 #1) id 16gBNx-00023Q-00 for gtk-list@gnome.org; Wed, 27 Feb 2002 16:13:14 -0500 Message-ID: <007a01c1bfd3$99730060$0200a8c0@norman> From: "Norman Black" To: "gtk-list" References: <006a01c1bfae$728f6760$0200a8c0@norman> Subject: Re: drawing area and expose event Date: Wed, 27 Feb 2002 13:13:21 -0800 Organization: Stony Brook Software 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > The expose handler must be able to redraw any area anyway, so you may > as well put all drawing there for code cleanliness; putting all > drawing there is also crucial to be sure you don't have any flicker in > GTK 2. My code does not flicker now on GTK or Win32. So if GTK 2 makes my code flicker, what does that mean? Best Regards, Norman Black Stony Brook Software ----- Original Message ----- From: "Havoc Pennington" To: "Norman Black" Cc: "gtk-list" Sent: Wednesday, February 27, 2002 9:43 AM Subject: Re: drawing area and expose event > > "Norman Black" writes: > > > > Are you saying that when a user hits the "e" key in my program I should > > generate an expose event to draw the "e" in my window rather than simply > > draw the "e" in response to them pressing "e". > > > > What you should do is call gtk_widget_queue_draw_area() or > gdk_window_invalidate_rect() for the rectangle containing the > "e". Then you will get an expose event for that area, and then you > paint the "e" > > So all drawing is in the expose handler. > > The expose handler must be able to redraw any area anyway, so you may > as well put all drawing there for code cleanliness; putting all > drawing there is also crucial to be sure you don't have any flicker in > GTK 2. > > Havoc From hp@redhat.com Wed Feb 27 17:29:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 8FF70184FF for ; Wed, 27 Feb 2002 17:29:45 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1RMTgb23323; Wed, 27 Feb 2002 17:29:42 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Norman Black" Cc: "gtk-list" Subject: Re: drawing area and expose event References: <006a01c1bfae$728f6760$0200a8c0@norman> <007a01c1bfd3$99730060$0200a8c0@norman> From: Havoc Pennington Date: 27 Feb 2002 17:29:42 -0500 In-Reply-To: <007a01c1bfd3$99730060$0200a8c0@norman> Message-ID: Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Norman Black" writes: > > The expose handler must be able to redraw any area anyway, so you may > > as well put all drawing there for code cleanliness; putting all > > drawing there is also crucial to be sure you don't have any flicker in > > GTK 2. > > My code does not flicker now on GTK or Win32. So if GTK 2 makes my code > flicker, what does that mean? > It probably doesn't make it flicker if it doesn't flicker now. But you are probably doing extra work that is not necessary in GTK 2. Havoc From castor.fou@wanadoo.fr Wed Feb 27 18:13:32 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mel-rto6.wanadoo.fr (smtp-out-6.wanadoo.fr [193.252.19.25]) by mail.gnome.org (Postfix) with ESMTP id 125F518112 for ; Wed, 27 Feb 2002 18:13:32 -0500 (EST) Received: from mel-rta8.wanadoo.fr (193.252.19.79) by mel-rto6.wanadoo.fr; 28 Feb 2002 00:13:31 +0100 Received: from athlon (193.248.96.45) by mel-rta8.wanadoo.fr; 28 Feb 2002 00:13:14 +0100 Message-ID: <001b01c1bfe4$56cdc860$2d60f8c1@athlon> From: "Romain Epita" To: Subject: Transparent GtkWidget Date: Thu, 28 Feb 2002 00:13:16 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: It is possible to set a GtkWidget transparent ? as a GdkWindow with the function gdk_window_shape_combine_mask ! If it is possible, how I do that ? Romain PARMANTIER A.K.A Castor Delegue SpeC2 Sécretaire BDE Epita-Epitech tel : 06-07-66-16-18 parman_r@epita.fr "L'homme commence par aimer l'amour et finit par aimer une femme. La femme commence par aimer un homme et finit par aimer l'amour." Remy de Gourmont, Physique de l'amour From shane_b@operamail.com Wed Feb 27 19:23:49 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail001.syd.optusnet.com.au (mail001.syd.optusnet.com.au [203.2.75.244]) by mail.gnome.org (Postfix) with ESMTP id 282E2197AE for ; Wed, 27 Feb 2002 19:23:48 -0500 (EST) Received: from pluto (geeax3-042.dialup.optusnet.com.au [198.142.133.42]) by mail001.syd.optusnet.com.au (8.11.1/8.11.1) with ESMTP id g1S0NVd01622 for ; Thu, 28 Feb 2002 11:23:35 +1100 Subject: GTK+2 - GtkTreeModel From: Shane Butler To: "List, GTK+" Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.99.2 (Preview Release) Date: 28 Feb 2002 11:25:14 +1100 Message-Id: <1014855940.937.5.camel@pluto> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Just wondering if someone could suggest the best way to move a row in a GtkTreeModel up or down. Thanks, Shane From oliver-singla@nc.rr.com Wed Feb 27 20:24:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail7.nc.rr.com (fe7.southeast.rr.com [24.93.67.54]) by mail.gnome.org (Postfix) with ESMTP id B405418425 for ; Wed, 27 Feb 2002 20:24:51 -0500 (EST) Received: from nc.rr.com ([66.57.252.230]) by mail7.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Wed, 27 Feb 2002 20:24:49 -0500 Message-ID: <3C7D86DC.8070906@nc.rr.com> Date: Wed, 27 Feb 2002 20:24:44 -0500 From: Oliver Singla User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901 X-Accept-Language: en-us MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Force a widget to redraw itself (1.2.10) Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, How can I really force a widget to redraw itself ? If I call gtk_widget_queue_draw(), that seems to work only for widgets without an X-Window (such GtkLabel or GtkHSeparator). I attached a expose_event signal to see if the draw is performed or not. TIA, Olivier Singla, QNX, Raleigh NC oliver_singla@nc.rr.com From pyaggi@aulamagna.com.ar Wed Feb 27 21:12:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aulamagna.com.ar (unknown [200.49.75.38]) by mail.gnome.org (Postfix) with SMTP id 01B7118137 for ; Wed, 27 Feb 2002 21:12:56 -0500 (EST) Received: (qmail 16138 invoked from network); 28 Feb 2002 02:22:41 -0000 Received: from unknown (HELO there) (200.63.161.149) by 0 with SMTP; 28 Feb 2002 02:22:41 -0000 Content-Type: text/plain; charset="iso-8859-3" From: Pablo Yaggi Organization: Aulamagna To: gtk-list@gnome.org Subject: Best way to Print Date: Wed, 27 Feb 2002 23:10:36 -0300 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020228021256.01B7118137@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want to build a simple application to test printing, I need to print formated text (in paragraphs) and graphics could anyone please give me a direction, how do I do that, with bonobo? gnome_print ? ? ?? Pablo From seberino@dt092n42.san.rr.com Wed Feb 27 21:15:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 996D419091 for ; Wed, 27 Feb 2002 21:15:01 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16gG6R-00017D-00; Wed, 27 Feb 2002 18:15:27 -0800 Date: Wed, 27 Feb 2002 18:15:27 -0800 From: Christian Seberino To: Havoc Pennington Cc: gtk-list@gnome.org Subject: Re: drawing area and expose event Message-ID: <20020227181527.A4284@spawar.navy.mil> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from hp@redhat.com on Wed, Feb 27, 2002 at 11:10:28AM -0500 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Havoc I thought configure event handler draws *everything* and expose event handler just redraws portion *uncovered* e.g. covering with corner of window and then not. This would imply that all drawing should happen in configure event with "patches" being done in expose event. Am I missing something? Chris On Wed, Feb 27, 2002 at 11:10:28AM -0500, Havoc Pennington wrote: > > "satyajit kanungo" writes: > > Do we always need to attach the expose event to the drawing area to draw anything on it . > > Is there any other way where I can force the drawing . > > > > Yes, all drawing should happen in expose_event. There are other ways > to do it sometimes, but they are almost always a bad idea. > > Havoc > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From hp@redhat.com Wed Feb 27 21:30:24 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id CACE918137 for ; Wed, 27 Feb 2002 21:30:23 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1S2ULf23665; Wed, 27 Feb 2002 21:30:21 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: drawing area and expose event References: <20020227181527.A4284@spawar.navy.mil> From: Havoc Pennington Date: 27 Feb 2002 21:30:20 -0500 In-Reply-To: <20020227181527.A4284@spawar.navy.mil> Message-ID: Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Christian Seberino writes: > > I thought configure event handler draws *everything* and > expose event handler just redraws portion *uncovered* > e.g. covering with corner of window and then not. > > This would imply that all drawing should happen in configure > event with "patches" being done in expose event. > > Am I missing something? > Yes, there is no reason to draw anything in configure event. It just means you got a new size. You'll also get an expose when this happens so drawing in expose only is fine. Havoc From hp@redhat.com Wed Feb 27 21:33:36 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 761A71837B for ; Wed, 27 Feb 2002 21:33:36 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1S2XZA23669; Wed, 27 Feb 2002 21:33:35 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Shane Butler Cc: "List, GTK+" Subject: Re: GTK+2 - GtkTreeModel References: <1014855940.937.5.camel@pluto> From: Havoc Pennington Date: 27 Feb 2002 21:33:35 -0500 In-Reply-To: <1014855940.937.5.camel@pluto> Message-ID: Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Shane Butler writes: > > Just wondering if someone could suggest the best way to move a row in a > GtkTreeModel up or down. > The GtkTreeModel interface is read-only; you have to use the specific subclass of GtkTreeModel to modify things. So for example with GtkListStore you could move a row up by removing it then reinserting it, or by swapping the contents of a row and the row above it, whatever is convenient for your app. I usually have a list store with a single column containing an object or struct, so I would just call list_store_set() a couple times to swap the row contents. Havoc From ganesan.sethuraman@wipro.com Wed Feb 27 23:48:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by mail.gnome.org (Postfix) with ESMTP id 8B307180F1 for ; Wed, 27 Feb 2002 23:48:49 -0500 (EST) Received: from m2vwall5.wipro.com (m2vwall5.wipro.com [10.115.50.5]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id g1S4mle09699 for ; Thu, 28 Feb 2002 10:18:47 +0530 (IST) Received: from wipro.com ([192.168.165.86]) by bhairavi.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GS881500.K7L for ; Thu, 28 Feb 2002 10:18:41 +0530 Message-ID: <3C7DB6DB.F959A8FA@wipro.com> Date: Thu, 28 Feb 2002 10:19:31 +0530 From: Ganesan Sethuraman Organization: Wipro Technologies X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: Info Regarding GtkEntry Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Could you please tell me if there is any limatations on the number of characters a GtkEntry widget can hold ? If I give more than 7300(approx) characters, the characters are getting overlapped. Any idea on what could be the problem ? Thanks, S.Ganesan. From satyajit.kanungo@wipro.com Wed Feb 27 23:53:34 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from wiprom2mx1.wipro.com (wiprom2mx1.wipro.com [203.197.164.41]) by mail.gnome.org (Postfix) with ESMTP id 924E4180F1 for ; Wed, 27 Feb 2002 23:53:04 -0500 (EST) Received: from m2vwall5.wipro.com (m2vwall5.wipro.com [10.115.50.5]) by wiprom2mx1.wipro.com (8.11.3/8.11.3) with SMTP id g1S4r2e11601 for ; Thu, 28 Feb 2002 10:23:02 +0530 (IST) Received: from satyajit ([10.114.9.188]) by m3mail.mail.wipro.com (Netscape Messaging Server 4.15) with ESMTP id GS886U00.03O; Thu, 28 Feb 2002 10:22:06 +0530 From: "satyajit kanungo" To: "Havoc Pennington" , "Norman Black" Cc: "gtk-list" Subject: RE: drawing area and expose event Date: Thu, 28 Feb 2002 10:30:22 +0530 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.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal In-Reply-To: Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Thanks a lot I shall put all my drawings in the expose event and try my application again. I had taken the sample program form GdkRGB chapter (gdk API Reference) and was trying it the other way round . So whenever I want some drawings to happen in my drawable I should better call a gtk_widget_queue_draw_area() or gdk_window_invalidate_rect() and do all the drawing in the expose event callback . Please correct me if I have understood it wrongly Behalf Of Havoc Pennington >What you should do is call gtk_widget_queue_draw_area() or >gdk_window_invalidate_rect() for the rectangle containing the >"e". Then you will get an expose event for that area, and then you >paint the "e" >So all drawing is in the expose handler. Havoc From davidgn@servidor.unam.mx Thu Feb 28 00:11:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by mail.gnome.org (Postfix) with ESMTP id 930431832B for ; Thu, 28 Feb 2002 00:11:30 -0500 (EST) Received: from hikaru (IDENT:dabicho@[132.248.113.36]) by servidor.unam.mx (8.11.1/8.11.1) with SMTP id g1S59tP25947 for ; Wed, 27 Feb 2002 23:09:55 -0600 (CST) Date: Wed, 27 Feb 2002 23:29:25 -0600 From: David Eduardo Gomez Noguera To: "gtk-list@gnome.org" Subject: now that we're on GtkDrawingArea... =) Message-Id: <20020227232925.09c86401.davidgn@servidor.unam.mx> Reply-To: davidgn@servidor.unam.mx Organization: casa X-Mailer: Sylpheed version 0.7.1 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I was doing some tests on it. I have my DrawingArea on a ViewPort on a ScrolledWindow on a pane on a notebook on a table..... like the song... I couldnt use any function that gets a GdkWindow as a parameter. As in the scribble example, the Area is just under the Window, and it works. But i had the DrawingArea somewhere else, and area->window sent messages like: Gdk-CRITICAL **: file gdkdraw.c: line 42 (gdk_draw_point): assertion `drawable != NULL' failed. As i read, some widgets does not have its own window (but the example worked using the Area's window, widget-window), and they draw on its parent window. I thought maybe DrawingArea is one such widget (though doesnt sound like it), and since the example works, i used the main window's window as the parameter to gdk_pixmap_new and other functions. It works. Though i want to know whether i did right, or if i did a stupid thing and what would have been the right one? -- ICQ: 15605359 Bicho =^..^= First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi. -------------------------------$B5$8!BN$N0lCW(B------------------------------------ $B=k$54($5$bH`4_$^$G!#(B $BNx$K$7$7$g$&$J$7!#Nx$O$7$"$s$NB>!#(B $B%"%s(B $B%"%s(B $B%"%s(B $B$H$C$F$bBg9%$-(B From youssa@voila.fr Thu Feb 28 03:42:29 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailsmtp4.ftmms (smtp-out.voila.wanadooportails.com [193.252.117.74]) by mail.gnome.org (Postfix) with ESMTP id BF7D0181EB for ; Thu, 28 Feb 2002 03:42:29 -0500 (EST) Received: from voila.fr (10.3.7.82) by mailsmtp4.ftmms (5.1.071) id 3C7AC6FC0002ADA1; Thu, 28 Feb 2002 09:42:08 +0100 Date: Thu, 28 Feb 2002 09:42:08 +0100 Message-Id: Subject: =?iso-8859-1?Q?Re:Transparent_GtkWidget?= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?utf-8?Q?youssa@voila.fr?=" To: castor.fou@wanadoo.fr Cc: gtk-list@gnome.org X-XaM3-API-Version: 301build11 X-type: 0 X-SenderIP: 193.95.113.27 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQpUYWtlIGEgbG9vayBvbiB0aGUgd2VlbGJhcm93dyBleGVtcGxlICENCg0KRXQgcHVp cyBlbiBmcmFu52FpcyBwb3VyIHZvdXMgUm9tYWluLCBqZXR0ZSB1biBjb3VwIGQnb2V1aWwg c3VyIGwnZXhlbXBsZSB3ZWVsYmFyb3csIHZvdXMgcG91dmV6IHJlbXBsYWNlciBsZSB3ZWVs YmFycm93IHBhciB1biBpbWFnZSAueHBtLg0KSidhaSBldSBiZXNvaW4gbW9pIGF1c3NpIGQn dW5lIGZlbmV0cmUgdHJhbnNwYXJlbnRlLCB0b3V0IGNlIHF1ZSBqJ2FpIHB1IGF2b2lyIGMn ZXN0IGNldCBleGVtcGxlLiBTaSB2b3VzIGVuIHRyb3V2ZXIgdW4gbWVpbGxldXIgZXhlbXBs ZSwgbWVyY2kgZGUgbWUgY29udGFjdGVyLg0KQ29yZGlhbGVtZW50LCBJRVMgQkgNCmonYWpv dXRlIGVuZmluLCBMJ2Ftb3VyIGVzdCB1biBwbGFpc2lyLCBMJ0hvbW1lIGVzdCB1biBkZXZv aXIuDQoNCg0KPiBJdCBpcyBwb3NzaWJsZSB0byBzZXQgYSBHdGtXaWRnZXQgdHJhbnNwYXJl bnQgPyBhcyBhIEdka1dpbmRvdyB3aXRoIHRoZQ0KPiBmdW5jdGlvbiBnZGtfd2luZG93X3No YXBlX2NvbWJpbmVfbWFzayAhIElmIGl0IGlzIHBvc3NpYmxlLCBob3cgSSBkbyB0aGF0ID8N Cj4gICAgICAgUm9tYWluIFBBUk1BTlRJRVINCj4gICAgICAgICBBLksuQSBDYXN0b3INCj4g ICAgICAgIERlbGVndWUgU3BlQzINCj4gU+ljcmV0YWlyZSBCREUgRXBpdGEtRXBpdGVjaA0K PiAgICAgdGVsIDogMDYtMDctNjYtMTYtMTgNCj4gICAgICAgcGFybWFuX3JAZXBpdGEuZnIN Cj4gDQo+ICJMJ2hvbW1lIGNvbW1lbmNlIHBhciBhaW1lciBsJ2Ftb3VyIGV0IGZpbml0DQo+ IHBhciBhaW1lciB1bmUgZmVtbWUuIExhIGZlbW1lIGNvbW1lbmNlIHBhcg0KPiBhaW1lciB1 biBob21tZSBldCBmaW5pdCBwYXIgYWltZXIgbCdhbW91ci4iDQo+ICAgICAgICAgICAgICAg ICAgICAgICBSZW15IGRlIEdvdXJtb250LCBQaHlzaXF1ZSBkZSBsJ2Ftb3VyDQo+IA0KPiAN Cj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCj4g Z3RrLWxpc3QgbWFpbGluZyBsaXN0DQo+IGd0ay1saXN0QGdub21lLm9yZw0KPiBodHRwOi8v bWFpbC5nbm9tZS5vcmcvbWFpbG1hbi9saXN0aW5mby9ndGstbGlzdA0KPiANCg0KX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f DQpGYWl0ZXMgdW4gdm9ldSBldCBwdWlzIFZvaWxhICEgd3d3LnZvaWxhLmZyIA0KQXZlYyBW b2lsYSBNYWlsLCBjb25zdWx0ZXogdm9zIGUtbWFpbHMgc3VyIHZvdHJlIG1vYmlsZSBXYXAu IA0K From youssa@voila.fr Thu Feb 28 03:50:56 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mailsmtp5.ftmms (smtp-out.voila.wanadooportails.com [193.252.117.74]) by mail.gnome.org (Postfix) with ESMTP id AB99F18528 for ; Thu, 28 Feb 2002 03:50:56 -0500 (EST) Received: from voila.fr (10.3.7.82) by mailsmtp5.ftmms (5.1.071) id 3C7CE6080000B1E3 for gtk-list@gnome.org; Thu, 28 Feb 2002 09:50:31 +0100 Date: Thu, 28 Feb 2002 09:50:31 +0100 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: base64 From: "=?utf-8?Q?youssa@voila.fr?=" To: gtk-list@gnome.org X-XaM3-API-Version: 301build11 X-type: 0 X-SenderIP: 193.95.113.27 Subject: (no subject) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: SGksDQpQbGVhc2UgY2FuIGFueSBvbmUgc2VuZCBtZSBhIGxpdHRsZSBleGVtcGxlIHRvIGhl bHAgbWUgdG8gaW5jbHVkZSBhIEphdmEgQXBwbGV0IGluIGEgZ3RrIHdpbmRvdz8/DQpIb3cg dG8gY29tcGlsZSBpdD8/LCBXaGF0IEkgbmVlZCB0byBoYXZlPz8NClRoYW5rIHlvdSB2ZXJ5 IG11Y2guDQpQLlMgOiBJIHNlbmQgdGhpcyBxdWVzdGlvbiBtYW55IHRpbWVzIHRvIEdUSy1B UFAtREVWRUwtTElTVCBidXQgSSBzdGlsbCB3aXRob3V0IGFueSBoZWxwLCBSZWNlbnRseSBI YXZvYyBQIHRlbGwgbWUgdG8gc2VuZCB0aGlzIHF1emVzdGlvbiB0byB0aGlzIGxpc3QsIEkg bWF5IGhhdmUgYSBoZWxwLg0KVGhhbmsgeW91IHZlcnkgbXVjaA0KR29vZCBUaW1lLg0KDQoN Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fXw0KRmFpdGVzIHVuIHZvZXUgZXQgcHVpcyBWb2lsYSAhIHd3dy52b2lsYS5mciAN CkF2ZWMgVm9pbGEgTWFpbCwgY29uc3VsdGV6IHZvcyBlLW1haWxzIHN1ciB2b3RyZSBtb2Jp bGUgV2FwLiANCg== From syed@mimos.my Thu Feb 28 04:50:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from filter.mimos.my (filter.mimos.my [192.228.137.70]) by mail.gnome.org (Postfix) with ESMTP id D5A63198C2 for ; Thu, 28 Feb 2002 04:50:48 -0500 (EST) Received: from ew.mimos.my (localhost.localdomain [127.0.0.1]) by filter.mimos.my (8.11.0/8.11.0) with ESMTP id g1S9bSm31874 for ; Thu, 28 Feb 2002 17:37:28 +0800 Received: (from root@localhost) by ew.mimos.my (8.11.6/8.11.6) id g1S9olU41225 for gtk-list@gnome.org; Thu, 28 Feb 2002 17:50:47 +0800 (MYT) (envelope-from syed@mimos.my) Received: from mimos.my (infoniti25.nat.mimos.my [10.1.21.25]) by ew.mimos.my (8.11.6/8.11.6) with ESMTP id g1S9oka41169 for ; Thu, 28 Feb 2002 17:50:46 +0800 (MYT) (envelope-from syed@mimos.my) Message-ID: <3C7DFCE2.9606ADA7@mimos.my> Date: Thu, 28 Feb 2002 17:48:18 +0800 From: mrzali X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtknotebook & pixmap X-scanner: scanned by Inflex 1.0.10 - (http://pldaniels.com/inflex/) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How i want to attach pixmap into gtk-notebook-tab? As far i know we can only set label on it. Any suggestion. Thanks, mr_zali From pclouds@fptnet.com Thu Feb 28 05:36:12 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dns2.hcm.fpt.vn (dns2.hcm.fpt.vn [203.162.45.36]) by mail.gnome.org (Postfix) with ESMTP id 9A308180F1 for ; Thu, 28 Feb 2002 05:36:07 -0500 (EST) Received: from isp-mailsrv.hcm.fpt.vn (isp-mailsrv.hcm.fpt.vn [203.162.45.131]) by dns2.hcm.fpt.vn (8.11.6/8.11.6) with ESMTP id g1SAZ6s28452 for ; Thu, 28 Feb 2002 17:35:06 +0700 Received: from hcm.fpt.vn ([203.162.45.138]) by isp-mailsrv.hcm.fpt.vn with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id FZ0XND0G; Thu, 28 Feb 2002 17:44:19 +0700 Received: from [203.162.70.201] by hcm.fpt.vn [203.162.45.138] Received: (from pclouds@localhost) by localhost.localdomain (8.11.2/8.11.2) id g1RI2gR00736 for gtk-list@gnome.org; Wed, 27 Feb 2002 13:02:42 -0500 Date: Wed, 27 Feb 2002 13:02:42 -0500 From: pclouds To: gtk-list@gnome.org Subject: gtk default binding sets Message-ID: <20020227130242.A733@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Is there any document that describe the default binding set of each widget? From Steph.Fox@btinternet.com Thu Feb 28 05:49:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from protactinium.btinternet.com (protactinium.btinternet.com [194.73.73.176]) by mail.gnome.org (Postfix) with ESMTP id 8DBAD1837B for ; Thu, 28 Feb 2002 05:49:27 -0500 (EST) Received: from host213-122-214-197.in-addr.btopenworld.com ([213.122.214.197] helo=t2r1o8) by protactinium.btinternet.com with smtp (Exim 3.22 #8) id 16gO5d-0003uF-00; Thu, 28 Feb 2002 10:47:09 +0000 Message-ID: <00aa01c1c044$f4536620$243e7bd5@t2r1o8> From: "Steph" To: "pclouds" , References: <20020227130242.A733@localhost.localdomain> Subject: Re: gtk default binding sets Date: Thu, 28 Feb 2002 10:44:48 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I've been doing that when I've noticed them, in the PHP-GTK manual = http://gtk.php.net/manual/en which is about half complete at present. = It depends which widget you're talking about ... oh, and which version = of GTK+, we're using 1.2 and some of the bindings have been changed = since then. ----- Original Message -----=20 From: "pclouds" To: Sent: Wednesday, February 27, 2002 6:02 PM Subject: gtk default binding sets > Hi > Is there any document that describe the default binding set of each = widget? > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list From neil@fnxweb.com Thu Feb 28 06:57:51 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from ntsc0034.int.rdel.co.uk (mail.uk.thalesgroup.com [194.128.85.7]) by mail.gnome.org (Postfix) with ESMTP id 1453618854 for ; Thu, 28 Feb 2002 06:57:51 -0500 (EST) Received: from mail.uk.thalesgroup.com (lisc0022.int.rdel.co.uk) by ntsc0034.int.rdel.co.uk (Content Technologies SMTPRS 4.2.5) with ESMTP id for ; Thu, 28 Feb 2002 11:56:19 +0000 Received: from mail.uk.thalesgroup.com (localhost.localdomain [127.0.0.1]) by mail.uk.thalesgroup.com (8.11.6/8.11.0) with ESMTP id g1SBvnY17420 for ; Thu, 28 Feb 2002 11:57:49 GMT Received: from ntscxch1.int.rdel.co.uk (ntscxch1.int.rdel.co.uk [172.21.100.149]) by mail.uk.thalesgroup.com (8.11.6/8.11.0) with ESMTP id g1SBvlu17405; Thu, 28 Feb 2002 11:57:48 GMT Received: from fnxweb.com (172-21-182-92-roaming.int.rdel.co.uk [172.21.182.92]) by ntscxch1.int.rdel.co.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id DVB4LRFW; Thu, 28 Feb 2002 11:57:48 -0000 Message-ID: <3C7E1B3A.3020200@fnxweb.com> Date: Thu, 28 Feb 2002 11:57:46 +0000 From: Neil Bird Reply-To: GTK Mailing List User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.8) Gecko/20020204 X-Accept-Language: en-us MIME-Version: 1.0 To: GTK Mailing List Cc: mrzali Subject: Re: gtknotebook & pixmap References: <3C7DFCE2.9606ADA7@mimos.my> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Around about 28/02/02 09:48, mrzali scribbled ... > How i want to attach pixmap into gtk-notebook-tab? > As far i know we can only set label on it. > Any suggestion. Do it in glade! Here's an edited example of how glade does it: notebook1 = gtk_notebook_new (); empty_notebook_page = gtk_vbox_new (FALSE, 0); gtk_widget_show (empty_notebook_page); gtk_container_add (GTK_CONTAINER (notebook1), empty_notebook_page); pixmap1 = create_pixmap (window1, NULL); gtk_widget_show (pixmap1); gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), pixmap1); Nothing to stop you putting a container in the tab that contains pixmap+text, or pretty well anything, I guess. -- [neil@fnx ~]# rm -f .signature [neil@fnx ~]# ls -l .signature ls: .signature: No such file or directory [neil@fnx ~]# exit From edscott@imp.mx Thu Feb 28 08:31:58 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.imp.mx (imp.mx [192.100.181.86]) by mail.gnome.org (Postfix) with ESMTP id 6B7B51895B for ; Thu, 28 Feb 2002 08:31:58 -0500 (EST) Received: from there (gukumatz.imp.mx [192.100.181.220]) by www.imp.mx (SGI-8.9.3/8.9.3) with SMTP id HAA95238 for ; Thu, 28 Feb 2002 07:33:07 -0600 (CST) Message-Id: <200202281333.HAA95238@www.imp.mx> Content-Type: text/plain; charset="iso-8859-1" From: Edscott Wilson =?iso-8859-1?q?Garc=EDa?= Reply-To: edscott@imp.mx To: gtk-list@gnome.org Subject: GtkCTree drag bug workaround Date: Thu, 28 Feb 2002 07:31:35 -0600 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Time ago I asked a question on this list and noone knew the answer. So now I am sending a bug workaround to help whoever might confront the same problem. If you create a gtkctree and do a gtk_drag_source_set() from the start, what happens is that the first drag it receives from another gtk application will mistakenly start a drag on the gtkctree destination widget, without generating any of the signals. This only happens until the first "real" drag is initiated and finished in the offending gtkctree. And it will happen again after a expand or contract event. The workaround is to tie a signal to the buttonpress event, so that gtk_drag_source_set() is called with the buttonpress. And call gtk_drag_source_unset() on expand and contract events. Whether each gtk_drag_source_set() should be matched by a gtk_drag_source_unset(), I am not sure whether it is important or not. Edscott From pvosta@unionbio-eu.com Thu Feb 28 09:56:33 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from relay1-us.simplemente.net (relay1-us.simplemente.net [216.167.121.82]) by mail.gnome.org (Postfix) with ESMTP id 603F918D95 for ; Thu, 28 Feb 2002 09:56:33 -0500 (EST) Received: from unionbio-eu.com (unknown [213.193.139.10]) by relay1-us.simplemente.net (Postfix) with SMTP id BC83ED780D for ; Thu, 28 Feb 2002 09:56:31 -0500 (EST) Received: (qmail 2215 invoked from network); 28 Feb 2002 14:52:23 -0000 Received: from linux-1.unionbio-eu.com (HELO unionbio-eu.com) (192.168.0.20) by server.unionbio-eu.com with SMTP; 28 Feb 2002 14:52:23 -0000 Message-ID: <3C7E44CE.E993AF42@unionbio-eu.com> Date: Thu, 28 Feb 2002 15:55:10 +0100 From: Peter Van Osta Reply-To: pvosta@unionbio-eu.com Organization: Union Biometrica ESO X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: GTK-list Subject: gdk_draw_gray_image problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I ahve problem with "gdk_draw_gray_image". The code to display a greyvalue image is shown below. If I take gdk_draw_gray_image" out of the loop or reduce the number of loops below 3, either a solid grey image window display is shown (0 loops ) or only the lower half of the image (2 loops) ? Anyone any information about what is going wrong ( the test code is somewhat modified for clarity)? Best regards, Peter void xyz_rgb_display (GtkWidget *drawing_area, image *im ) { int *p = NULL; guchar buf[WIDTH * HEIGHT * 3]; gint i = 0, j = 0; gboolean dither = 1; p = image_data( im ); for (j = 0; j < WIDTH * HEIGHT; j++) buf[j] = *p++;; for( i = 0; i < 3; i++ ){ gdk_draw_gray_image (drawing_area->window, drawing_area->style->white_gc, 0, 0, WIDTH, HEIGHT, dither ? GDK_RGB_DITHER_MAX : GDK_RGB_DITHER_NONE, buf, WIDTH); } } From pbd@op.net Thu Feb 28 09:56:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 98A8818D95 for ; Thu, 28 Feb 2002 09:56:38 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-506.phlpa.fast.net [209.92.97.252]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id JAA09776; Thu, 28 Feb 2002 09:56:23 -0500 (EST) Message-Id: <200202281456.JAA09776@renoir.op.net> To: davidgn@servidor.unam.mx Cc: "gtk-list@gnome.org" Subject: Re: now that we're on GtkDrawingArea... =) In-reply-to: Your message of "Wed, 27 Feb 2002 23:29:25 CST." <20020227232925.09c86401.davidgn@servidor.unam.mx> Date: Thu, 28 Feb 2002 09:56:00 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >I have my DrawingArea on a ViewPort on a ScrolledWindow on a pane on a noteboo >k on a table..... like the song... > >I couldnt use any function that gets a GdkWindow as a parameter. As in the scr >ibble example, the Area is just under the Window, and it works. But i had the >DrawingArea somewhere else, and area->window sent messages like: > >Gdk-CRITICAL **: file gdkdraw.c: line 42 (gdk_draw_point): assertion `drawable > != NULL' failed. at what point in your code are you trying to draw on the DrawingArea? i hope, given all the messages about this, that its within an expose_event handler. >As i read, some widgets does not have its own window (but the example worked u >sing the Area's window, widget-window), and they draw on its parent window. >I thought maybe DrawingArea is one such widget (though doesnt sound like it), >and since the example works, i used the main window's window as the parameter >to gdk_pixmap_new and other functions. It works. it has its own window. --p From hp@redhat.com Thu Feb 28 10:36:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 71C6A18CF2 for ; Thu, 28 Feb 2002 10:35:56 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SFZls32016; Thu, 28 Feb 2002 10:35:47 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Ganesan Sethuraman Cc: gtk-list@gnome.org Subject: Re: Info Regarding GtkEntry References: <3C7DB6DB.F959A8FA@wipro.com> From: Havoc Pennington Date: 28 Feb 2002 10:35:47 -0500 In-Reply-To: <3C7DB6DB.F959A8FA@wipro.com> Message-ID: Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Ganesan Sethuraman writes: > Could you please tell me if there is any limatations on the number of > characters a GtkEntry widget can hold ? If I give more than 7300(approx) > characters, the characters are getting overlapped. Any idea on what > could be the problem ? > Is this GTK 1.2 or GTK 2? It's probably an integer overflow for the character positions. In GTK 2 this isn't really supposed to happen though. Havoc From John.Cupitt@ng-london.org.uk Thu Feb 28 10:48:59 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from www.ng-london.org.uk (mailhost.ng-london.org.uk [193.60.236.65]) by mail.gnome.org (Postfix) with ESMTP id F315918229 for ; Thu, 28 Feb 2002 10:48:58 -0500 (EST) Received: by www.ng-london.org.uk with Internet Mail Service (5.5.2653.19) id ; Thu, 28 Feb 2002 15:48:58 -0000 Received: from ng-london.org.uk (pc93.ng-london.org.uk [193.60.236.93]) by www.ng-london.org.uk with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F5CML7Y2; Thu, 28 Feb 2002 15:48:56 -0000 Message-ID: <3C7E4E16.4000405@ng-london.org.uk> From: John.Cupitt@ng-london.org.uk To: pvosta@unionbio-eu.com Cc: gtk-list@gnome.org Subject: Re: gdk_draw_gray_image problem Date: Thu, 28 Feb 2002 15:34:46 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hiya, almost exactly that code works for me, so I guess the problem must be somewhere else :-( Does testrgb work OK? If it does, what's that code doing that you're not doing? Peter Van Osta wrote: > I ahve problem with "gdk_draw_gray_image". The code to display a > greyvalue image is shown below. If I take gdk_draw_gray_image" out of > the loop or reduce the number of loops below 3, either a solid grey > image window display is shown (0 loops ) or only the lower half of the > image (2 loops) ? > > Anyone any information about what is going wrong ( the test code is > somewhat modified for clarity)? > > Best regards, > > Peter > > > void xyz_rgb_display (GtkWidget *drawing_area, image *im ) > { > > int *p = NULL; > guchar buf[WIDTH * HEIGHT * 3]; > gint i = 0, j = 0; > gboolean dither = 1; > > p = image_data( im ); > > for (j = 0; j < WIDTH * HEIGHT; j++) > buf[j] = *p++;; > > for( i = 0; i < 3; i++ ){ > gdk_draw_gray_image (drawing_area->window, > drawing_area->style->white_gc, > 0, 0, WIDTH, HEIGHT, > dither ? GDK_RGB_DITHER_MAX : > GDK_RGB_DITHER_NONE, > buf, WIDTH); > } > } ========================================================== Aelbert Cuyp 13 February - 12 May 2002 For information and tickets: http://www.nationalgallery.org.uk From seberino@dt092n42.san.rr.com Thu Feb 28 11:02:52 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id 8225918F22 for ; Thu, 28 Feb 2002 11:02:52 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16gT1h-0001Jt-00 for gtk-list@gnome.org; Thu, 28 Feb 2002 08:03:25 -0800 Date: Thu, 28 Feb 2002 08:03:25 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: configure event & pixmap question... Message-ID: <20020228080325.A5074@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: After much analysis I figured out that if I dereference a global pixmap pointer and then redefine it in configure event handler ALL IS WELL. If I don't dereference but just keep drawing on top of old global pixmap pointer in new configure event handler calls then NOTHING gets drawn on screen. HOW COME PIXMAP MUST BE NEWLY CREATED IN EACH CONFIGURE EVENT CALL? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From seberino@dt092n42.san.rr.com Thu Feb 28 11:07:47 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from dt092n42.san.rr.com (dt092n42.san.rr.com [204.210.48.66]) by mail.gnome.org (Postfix) with ESMTP id EAE07184C3 for ; Thu, 28 Feb 2002 11:07:46 -0500 (EST) Received: from seberino by dt092n42.san.rr.com with local (Exim 3.32 #1) id 16gT6S-0001KC-00 for gtk-list@gnome.org; Thu, 28 Feb 2002 08:08:20 -0800 Date: Thu, 28 Feb 2002 08:08:20 -0800 From: Christian Seberino To: gtk-list@gnome.org Subject: expose event & pixmap question Message-ID: <20020228080820.B5074@spawar.navy.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: gint exposeEventHandler(GtkWidget* widget, GdkEventExpose* event) { gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], Pixmaps::myPicture, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return FALSE; }; Pixmaps make expose event handlers easy I think because you can just redraw uncovered portion with a single function call as in function above. WHY CAN'T WE REDRAW A PORTION OF THE DRAWING AREA THE SAME WAY AND AVOID NEED FOR PIXMAP? Chris -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || seberino@spawar.navy.mil | ======================================================= From pbd@op.net Thu Feb 28 11:27:41 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 04B4218C74 for ; Thu, 28 Feb 2002 11:27:41 -0500 (EST) Received: from someip.ppp.op.net (maxtnt04-506.phlpa.fast.net [209.92.97.252]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id LAA23626; Thu, 28 Feb 2002 11:27:37 -0500 (EST) Message-Id: <200202281627.LAA23626@renoir.op.net> To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: expose event & pixmap question In-reply-to: Your message of "Thu, 28 Feb 2002 08:08:20 PST." <20020228080820.B5074@spawar.navy.mil> Date: Thu, 28 Feb 2002 11:27:20 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >gint exposeEventHandler(GtkWidget* widget, GdkEventExpose* event) { > gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widge >t)], > Pixmaps::myPicture, event->area.x, event->area.y, > event->area.x, event->area.y, event->area.width, event->area.height); > > return FALSE; >}; > > >Pixmaps make expose event handlers easy I think because you can just >redraw uncovered portion with a single function call as in function above. > >WHY CAN'T WE REDRAW A PORTION OF THE DRAWING AREA THE SAME >WAY AND AVOID NEED FOR PIXMAP? because we're shouting? its because a Pixmap is a different kind of resource than a Window. They are both considered to "drawables" - you can draw things on them by calling the gdk_draw_*() functions. However, a pixmap is an "offscreen" drawable that is never mapped to the display. A window in an "onscreen" drawable that can be mapped to the display. when you draw on a window, you are either going to fail (the window is not mapped), or the results show up "right away". when you draw in a pixmap, the results don't show up till you draw the pixmap into a window. a drawing area has a window, not a pixmap, as its drawable. if you want something else, then i suspect that the Canvas might be worth getting to know. does this make it any clearer? --p From hp@redhat.com Thu Feb 28 11:33:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 834BA19702 for ; Thu, 28 Feb 2002 11:33:05 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SGX2g32295; Thu, 28 Feb 2002 11:33:02 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: configure event & pixmap question... References: <20020228080325.A5074@spawar.navy.mil> From: Havoc Pennington Date: 28 Feb 2002 11:33:02 -0500 In-Reply-To: <20020228080325.A5074@spawar.navy.mil> Message-ID: Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Christian Seberino writes: > After much analysis I figured out that if I dereference > a global pixmap pointer and then redefine it in > configure event handler ALL IS WELL. > > If I don't dereference but just keep drawing on top > of old global pixmap pointer in new configure event > handler calls then NOTHING gets drawn on screen. > > HOW COME PIXMAP MUST BE NEWLY CREATED IN EACH > CONFIGURE EVENT CALL? > Normally you create a new pixmap in order to resize it. Havoc From hp@redhat.com Thu Feb 28 11:34:37 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id D996D198E1 for ; Thu, 28 Feb 2002 11:34:36 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SGYT532299; Thu, 28 Feb 2002 11:34:29 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: Christian Seberino Cc: gtk-list@gnome.org Subject: Re: expose event & pixmap question References: <20020228080820.B5074@spawar.navy.mil> From: Havoc Pennington Date: 28 Feb 2002 11:34:29 -0500 In-Reply-To: <20020228080820.B5074@spawar.navy.mil> Message-ID: Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Christian Seberino writes: > gint exposeEventHandler(GtkWidget* widget, GdkEventExpose* event) { > gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], > Pixmaps::myPicture, event->area.x, event->area.y, > event->area.x, event->area.y, event->area.width, event->area.height); > > return FALSE; > }; > > > Pixmaps make expose event handlers easy I think because you can just > redraw uncovered portion with a single function call as in function above. > > WHY CAN'T WE REDRAW A PORTION OF THE DRAWING AREA THE SAME > WAY AND AVOID NEED FOR PIXMAP? Because the user will see each individual drawing operation, causing flicker. Try it. This is what GTK 2 fixes - it automatically double buffers, so you can redraw directly to the drawing area and do not need the pixmap. Havoc From flavio@maqplas.com.br Thu Feb 28 12:43:31 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from powerdroid.ns1.com.br (smtphost.ns1.com.br [200.185.44.15]) by mail.gnome.org (Postfix) with ESMTP id 10D11198BB for ; Thu, 28 Feb 2002 12:43:31 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by powerdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1SHh92m068940 for ; Thu, 28 Feb 2002 14:43:11 -0300 (BRT) Subject: How to catch Pixmap widget x & y coordinates ? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: gtk-list Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 28 Feb 2002 14:45:47 -0300 Message-Id: <1014918350.1154.0.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, I need to know how to catch the coordinates from a pixmap Widget; Thanks for any help Thanks a lot Flavio Alberto From pbd@op.net Thu Feb 28 13:03:57 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from renoir.op.net (renoir.op.net [207.29.195.4]) by mail.gnome.org (Postfix) with ESMTP id 02E761992E for ; Thu, 28 Feb 2002 13:03:57 -0500 (EST) Received: from someip.ppp.op.net (maxtnt02-247.phlpa.fast.net [209.92.227.247]) by renoir.op.net (o1/$Revision: 1.18 $) with ESMTP id NAA09231; Thu, 28 Feb 2002 13:03:54 -0500 (EST) Message-Id: <200202281803.NAA09231@renoir.op.net> To: Fl vio Alberto Lopes Soares Cc: gtk-list Subject: Re: How to catch Pixmap widget x & y coordinates ? In-reply-to: Your message of "28 Feb 2002 14:45:47 -0300." <1014918350.1154.0.camel@flavio.maqplas> Date: Thu, 28 Feb 2002 13:03:38 -0500 From: Paul Davis Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: >Hello all, > >I need to know how to catch the coordinates from a pixmap Widget; >Thanks for any help your question is not clear. please be more specific. From venkat_ramakrishnan@hotmail.com Thu Feb 28 13:13:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f73.law11.hotmail.com [64.4.17.73]) by mail.gnome.org (Postfix) with ESMTP id 4E4B01834B for ; Thu, 28 Feb 2002 13:13:20 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 28 Feb 2002 10:13:19 -0800 Received: from 61.11.57.127 by lw11fd.law11.hotmail.msn.com with HTTP; Thu, 28 Feb 2002 18:13:19 GMT X-Originating-IP: [61.11.57.127] From: "Venkat Ramakrishnan" To: gtk-list@gnome.org Subject: PangoFontMetrics Date: Thu, 28 Feb 2002 18:13:19 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Feb 2002 18:13:19.0541 (UTC) FILETIME=[99B99650:01C1C083] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi I am new to GTK+ . I used to use X and motif calls for UI design and i really find GTK to be very flexible and powerful. Thanks to the people who brought it up . I have a small question . I want to write some strings into a drawing area using certain fonts . And I am using Pango for this . Now I want to find out the height and width (ascent and descent etc) of the string so that i can place it properly . Hence I am using the PangoFontMterics. But there is one call which is confusing for me pango_language_from_string (const char *language); where language : a string representing a language tag (as the API says) Can somebosy tell me what string to passed as the "language" in the above call .Is it related somehow to the locale . I tried passing the string (i want to draw , but it does not work ) I mean for different strings I get the same ascent and descent . I am confused . I think the ascent and descent is based on the font being used . I would apprecite any help on this. Is there any application using pango . Cyrrently I am refering the API Refarence (from gtk.org) Thanks vankat _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From flavio@maqplas.com.br Thu Feb 28 13:44:45 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from pkdroid.ns1.com.br (pkdroid.ns1.com.br [200.185.44.16]) by mail.gnome.org (Postfix) with ESMTP id 8E40B18FB0 for ; Thu, 28 Feb 2002 13:44:44 -0500 (EST) Received: from flavio.maqplas (200-206-167-234.dsl.telesp.net.br [200.206.167.234]) by pkdroid.ns1.com.br (8.12.2/8.12.2) with ESMTP id g1SIicff042634; Thu, 28 Feb 2002 15:44:38 -0300 (BRT) Subject: Re: How to catch Pixmap widget x & y coordinates ? From: =?ISO-8859-1?Q?Fl=E1vio?= Alberto Lopes Soares To: Paul Davis Cc: gtk-list In-Reply-To: <200202281803.NAA09231@renoir.op.net> References: <200202281803.NAA09231@renoir.op.net> Content-Type: text/plain X-Mailer: Evolution/0.10 (Preview Release) Date: 28 Feb 2002 15:47:06 -0300 Message-Id: <1014922027.1156.1.camel@flavio.maqplas> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Em 28 Feb 2002 13:03:38 -0500, Paul Davis escreveu: Ok, I want to use gdk_draw_pixmap to exchange one Gtk Pixmap with a file pixmap, I made some experiences with this command as above : int troca_pixmap(gpointer user_data, char *nome_pixmap, char *filename, gboolean use_pixmap_interno, GdkPixmap *pixmap_interno) { GtkWidget *pixmap; GdkColormap *colormap; GdkPixmap *gdkpixmap; GdkBitmap *mask; gchar *pathname = NULL; pixmap = lookup_widget(user_data, nome_pixmap); if(use_pixmap_interno == FALSE) { if (!filename || !filename[0]) return -1; pathname = gnome_pixmap_file (filename); if (!pathname) { g_warning (_("Couldn't find pixmap file: %s"), filename); return -1; } colormap = gtk_widget_get_colormap (user_data); gdkpixmap = gdk_pixmap_colormap_create_from_xpm (NULL, colormap, &mask, NULL, pathname); if (gdkpixmap == NULL) { g_warning (_("Couldn't create pixmap from file: %s"), pathname); g_free (pathname); return -1; } } else { if (pixmap_interno == NULL) { g_warning (_("Couldn't create pixmap from pixmap_interno")); return -1; } gdkpixmap = pixmap_interno; } if(use_pixmap_interno == FALSE) { g_free (pathname); gdk_draw_pixmap (pixmap->window, pixmap->style->fg_gc[GTK_WIDGET_STATE(pixmap)], gdkpixmap, -1, -1, -1, -1, GTK_WIDGET (pixmap)->requisition.width, GTK_WIDGET (pixmap)->requisition.height); } else { gtk_widget_hide(GTK_WIDGET(pixmap)); gtk_pixmap_set(GTK_PIXMAP(pixmap), gdkpixmap, NULL); gtk_widget_show(GTK_WIDGET(pixmap)); } if(use_pixmap_interno == FALSE) { gdk_pixmap_unref (gdkpixmap); gdk_bitmap_unref (mask); } return 1; } This works fine, but the position of pixmaps are allways in left up corner I believe because the parameters -1, -1, -1, -1, but I don't know what to put in these parameters, the gdk reference manual says that these parameters are the x,y coordinates of source and destination, but I don't know how to obtain this information. Any help to a newbie are Welcome Thanks a lot Flavio Alberto > >Hello all, > > > >I need to know how to catch the coordinates from a pixmap Widget; > >Thanks for any help > > your question is not clear. please be more specific. From a9308317@unet.univie.ac.at Thu Feb 28 14:09:40 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from email02.aon.at (WARSL401PIP3.highway.telekom.at [195.3.96.75]) by mail.gnome.org (Postfix) with SMTP id BE1C41832F for ; Thu, 28 Feb 2002 14:09:39 -0500 (EST) Received: (qmail 338460 invoked from network); 28 Feb 2002 19:09:38 -0000 Received: from n603p019.dipool.highway.telekom.at (HELO email.aon.at) ([212.183.85.83]) (envelope-sender ) by qmail2.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 28 Feb 2002 19:09:38 -0000 From: Markus Klein To: gtk-list@gnome.org Subject: messed up GTK Message-ID: <20020228201425.A1179@pcd-5nd> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Balsa 1.0.0 X-Mutt-Fcc: Gesendet Lines: 84 Date: Thu, 28 Feb 2002 14:09:39 -0500 (EST) Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi everybody. I am looking for help with my Gnome/GTK installation. I want to compile some gnome programs but "make" always complains about missing files, though "./configure" is just fine: (Note: "Datei oder Verzeichnis nicht gefunden" means "file or directory not found").. ---cut --- In file included from /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid.h:23, from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:104, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden In file included from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:106, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-start.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-start.h:23: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden In file included from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:107, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-standard.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-standard.h:23: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden In file included from /opt/gnome/include/gnome-1.0/libgnomeui/libgnomeui.h:108, from /opt/gnome/include/gnome-1.0/gnome.h:17, from gtkdial.c:20: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-finish.h:22: gtk/gtk.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-druid-page-finish.h:23: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden In file included from gtkdial.c:21: /opt/gnome/include/gnome-1.0/libgnomeui/gnome-window-icon.h:28: gdk_imlib.h: Datei oder Verzeichnis nicht gefunden /opt/gnome/include/gnome-1.0/libgnomeui/gnome-window-icon.h:29: gtk/gtkwindow.h: Datei oder Verzeichnis nicht gefunden make[2]: *** [gtkdial.o] Error 1 make[2]: Leaving directory `/home/mox/gtkdial-0.4.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mox/gtkdial-0.4.0' make: *** [all-recursive-am] Error 2 mox@pcd-5nd:~/gtkdial-0.4.0 > As far as I can see all the relevant files are actually there. I have installed all the devel-packages (GTK, imlib, X, gnome-libs, etc.) but I have installed GTK-1.2.10 twice: One time by the dist-rpm-packages, one time by the *.tar.gz source (configure/make/make install). I remember that this was due to a "configure" didn't find GTK one time, so I did this. Now I have to find a solution for this problem. GTK-1.2.10 is in /usr/local/include/gtk-1.2/ and /opt/gnome/include/gtk-1.2/ The other files are were they should be, I suppose: mox@pcd-5nd:~ > ls /opt/gnome/include/ gdk_imlib.h gdk-pixbuf-1.0 Imlib.h libIDL-1.0 gdk_imlib_private.h gnome-1.0 Imlib_private.h libmedusa gdk_imlib_types.h gtk-1.2 Imlib_types.h orbit-1.0 gtk-config says following: # gtk-config --prefix /usr/local # gtk-config --exec-prefix /usr/local # gtk-config --libs -L/usr/local/libs -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm My distribution is a Suse7.2 (Xfree3) and Ximian Gnome (red-carpet). ... ?help? thanx mox From hp@redhat.com Thu Feb 28 14:26:17 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from icon.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id C2AFF1832F for ; Thu, 28 Feb 2002 14:26:17 -0500 (EST) Received: (from hp@localhost) by icon.devel.redhat.com (8.11.6/8.11.6) id g1SJQF424517; Thu, 28 Feb 2002 14:26:15 -0500 X-Authentication-Warning: icon.devel.redhat.com: hp set sender to hp@redhat.com using -f To: "Venkat Ramakrishnan" Cc: gtk-list@gnome.org Subject: Re: PangoFontMetrics References: From: Havoc Pennington Date: 28 Feb 2002 14:26:15 -0500 In-Reply-To: Message-ID: Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: "Venkat Ramakrishnan" writes: > I am new to GTK+ . I used to use X and motif calls for UI design and > i really find GTK to be very flexible and powerful. Thanks to the > people who brought it up . > I have a small question . I want to write some strings into a drawing > area using certain fonts . And I am using Pango for this . Now I want > to find out the height and width (ascent and descent etc) of the > string so that i can place it properly . Hence I am using the > PangoFontMterics. > But there is one call which is confusing for me > pango_language_from_string (const char *language); > where > language : a string representing a language tag (as the API says) > > Can somebosy tell me what string to passed as the "language" in the > above call .Is it related somehow to the locale . > I tried passing the string (i want to draw , but it does not work ) > I mean for different strings I get the same ascent and descent . > > I am confused . I think the ascent and descent is based on the font > being used . > I would apprecite any help on this. Is there any application using > pango . Cyrrently I am refering the API Refarence (from gtk.org) > Rather than fooling with font metrics, you probably just want to call pango_layout_get_pixel_extents(). If you need a PangoLanguage gtk_get_default_language() is the simplest way. Havoc From gtk_plus@yahoo.com Thu Feb 28 14:33:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web11905.mail.yahoo.com (web11905.mail.yahoo.com [216.136.172.189]) by mail.gnome.org (Postfix) with SMTP id 30D3F1817F for ; Thu, 28 Feb 2002 14:33:27 -0500 (EST) Message-ID: <20020228193326.31707.qmail@web11905.mail.yahoo.com> Received: from [195.202.246.117] by web11905.mail.yahoo.com via HTTP; Thu, 28 Feb 2002 11:33:26 PST Date: Thu, 28 Feb 2002 11:33:26 -0800 (PST) From: Ibrahim Shaame Subject: Installing test gtk-1.3.15 To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I have downloaded the lattest version, and would like to install it. I have created a directory within gnome directory (opt/gnome/gtk-1.3.15), successfully compiled glib-2.0, tried to load the libraries (from gtk-1.3.15/lib), but when trying to compile atk-0.13 I get a message the message that glib >= 1.3.12 is not found, and that I should try to edit the "script"/opt/gnome/bin/pkg-config (which infact is binary!). I have already compiled the new pkg-config into the directory /opt/gnome/gtk-1.3.15. I think my problem is how to make the system use the directory /opt/gnome/gtk-1.3.15. Could anyone help me how to use another another copy of gtk instead of the one which came with the system. Thanks IS __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com From maldonado@ibiquity.com Thu Feb 28 14:41:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from radioflyer.ibocradio.com (unknown [208.33.57.98]) by mail.gnome.org (Postfix) with ESMTP id 7BFA51820E for ; Thu, 28 Feb 2002 14:41:06 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1C08F.DCBB67F2" Subject: floating points Date: Thu, 28 Feb 2002 14:41:05 -0500 Message-ID: <6AC325EB1D98F84B986D83F985121C1F16FDBF@radioflyer.ibocradio.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: floating points Thread-Index: AcHAj9yuAivZs6oORZSsd9GtkHA2XQ== From: "Lourdes Maldonado" To: "Gtk-List" Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------_=_NextPart_001_01C1C08F.DCBB67F2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 I have an entry field where the user enters a string that should correspond to a floating point number (an FM frequency). When I retrieve the string from the entry field and convert it (using strtod) to a floating point, the number does not come out exact (i.e. if I enter the string 85.3 the floating point number I get is 85.299995). =20 I'm sorry this is not necessarily a gtk question, but the other day I saw a message on this Gtk-list were someone mentioned a similar issue with floating point representation and I forget if there was a solution included in the message. =20 Any help would be appreciated, =20 Lourdes ------_=_NextPart_001_01C1C08F.DCBB67F2 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

 

I have an entry field where the user enters a string = that should correspond to a floating point number (an FM frequency).  = When I retrieve the string from the entry field and convert it (using strtod) = to a floating point, the number does not come out exact (i.e. if I enter the = string 85.3 the floating point number I get is 85.299995).

 

I’m sorry this is not necessarily a gtk = question, but the other day I saw a message on this Gtk-list were someone mentioned a = similar issue with floating point representation and I forget if there was a = solution included in the message.

 

Any help would be appreciated,

 

Lourdes

=00 ------_=_NextPart_001_01C1C08F.DCBB67F2-- From sven@gimp.org Thu Feb 28 15:26:50 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from bender.convergence.de (pD9587782.dip.t-dialin.net [217.88.119.130]) by mail.gnome.org (Postfix) with ESMTP id 622DE18152 for ; Thu, 28 Feb 2002 15:26:50 -0500 (EST) Received: from neo by bender.convergence.de with local (Exim 3.33 #1 (Debian)) id 16gX8e-0004vP-00; Thu, 28 Feb 2002 21:26:52 +0100 To: Ibrahim Shaame Cc: gtk-list@gnome.org Subject: Re: Installing test gtk-1.3.15 References: <20020228193326.31707.qmail@web11905.mail.yahoo.com> From: Sven Neumann Date: 28 Feb 2002 21:26:51 +0100 In-Reply-To: <20020228193326.31707.qmail@web11905.mail.yahoo.com> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, Ibrahim Shaame writes: > I have downloaded the lattest version, and would like > to install it. I have created a directory within gnome > directory (opt/gnome/gtk-1.3.15), successfully > compiled glib-2.0, tried to load the libraries (from > gtk-1.3.15/lib), but when trying to compile atk-0.13 I > get a message the message that glib >= 1.3.12 is not > found, and that I should try to edit the > "script"/opt/gnome/bin/pkg-config (which infact is > binary!). I have already compiled the new pkg-config > into the directory /opt/gnome/gtk-1.3.15. I think my > problem is how to make the system use the directory > /opt/gnome/gtk-1.3.15. read the output of configure again. It asked you to add the location of glib-2.0.pc to your PKG_CONFIG_PATH. You might also have to adapt your LD_LIBRARY_PATH. Salut, Sven From trefftzs@tcsn.net Thu Feb 28 17:18:48 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from thoth.trefftzs.org (psrb-ppp1-130.tcsn.net [63.174.82.130]) by mail.gnome.org (Postfix) with ESMTP id 2D1B118245 for ; Thu, 28 Feb 2002 17:18:47 -0500 (EST) Received: from outmail.tcsn.net (jeff@localhost) by thoth.trefftzs.org (8.9.3/8.9.3) with ESMTP id OAA01497; Thu, 28 Feb 2002 14:17:42 -0800 Message-Id: <200202282217.OAA01497@thoth.trefftzs.org> X-Authentication-Warning: thoth.trefftzs.org: jeff owned process doing -bs X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Ibrahim Shaame Cc: gtk-list@gnome.org Subject: Re: Installing test gtk-1.3.15 In-Reply-To: Message from Ibrahim Shaame of "Thu, 28 Feb 2002 11:33:26 PST." <20020228193326.31707.qmail@web11905.mail.yahoo.com> From: Jeff Trefftzs Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 28 Feb 2002 14:17:42 -0800 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi Ibrahim - You're in luck. I had exactly the same problem last night. Here's how I fixed it (at least according to my notes). First, as root run /sbin/ldconfig to update your libraries. Find where your pkgconfig files are. There might be one under /opt/gnome. If so, the export PKG_CONFIG_PATH="/opt/gnome/pkgconfig:$PKG_CON FIG_PATH" and try again. You may also need to set LD_LIBRARY_PATH. I did, but I was installing in a *really* strange place (/usr/local/development). HTH, -- --Jeff Jeff Trefftzs http://www.tcsn.net/trefftzs Home Page http://gug.sunsite.dk/gallery.php?artist=68 Gimp Gallery http://trefftzs.topcities.com/home.html Photo galleries From shane_b@users.sourceforge.net Sun Feb 24 04:31:02 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail009.syd.optusnet.com.au (mail009.syd.optusnet.com.au [203.2.75.170]) by mail.gnome.org (Postfix) with ESMTP id 60B5E18129 for ; Sun, 24 Feb 2002 04:31:01 -0500 (EST) Received: from pluto (geeax5-103.dialup.optusnet.com.au [198.142.96.103]) by mail009.syd.optusnet.com.au (8.11.1/8.11.1) with ESMTP id g1O9Uvn22774 for ; Sun, 24 Feb 2002 20:30:58 +1100 Subject: GTK+2 - GtkTreeModel From: Shane Butler To: "List, GTK+" Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.99.2 (Preview Release) Date: 24 Feb 2002 20:32:52 +1100 Message-Id: <1014543176.8347.5.camel@pluto> Mime-Version: 1.0 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi all, Just wondering if someone could suggest the best way to move a row in a GtkTreeModel up or down. Thanks, Shane From amrithamani@hotmail.com Sun Feb 24 12:56:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from hotmail.com (f94.law3.hotmail.com [209.185.241.94]) by mail.gnome.org (Postfix) with ESMTP id 7B966180E9 for ; Sun, 24 Feb 2002 12:56:27 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 24 Feb 2002 09:56:26 -0800 Received: from 137.132.3.9 by lw3fd.law3.hotmail.msn.com with HTTP; Sun, 24 Feb 2002 17:56:26 GMT X-Originating-IP: [137.132.3.9] From: "Amritha Mani" To: gtk-list@gnome.org Subject: Scrolling of Drawing area within GTKLayout Date: Mon, 25 Feb 2002 01:56:26 +0800 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 24 Feb 2002 17:56:26.0854 (UTC) FILETIME=[9476D060:01C1BD5C] Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I have just started using GTK. I need to draw a diagram with lines that depicts data flow between a client and a server, i.e, keeps growing in the vertical direction. I tried using Gtk Window-> Gtk Layout->Gtk Drawing area but the drawing area doesnt grow(and shows only the first few data lines) Is there some other simple way to do this? Kindly help. Amritha _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From falconer@falconer.best.vwh.net Mon Feb 25 15:57:28 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id D017618C15 for ; Mon, 25 Feb 2002 15:57:27 -0500 (EST) Received: (qmail 41813 invoked by uid 25889); 25 Feb 2002 20:57:23 -0000 Received: from unknown (HELO localhost) ([192.220.101.33]) (envelope-sender ) by 192.220.101.33 (qmail-ldap-1.03) with SMTP for ; 25 Feb 2002 20:57:23 -0000 Date: Mon, 25 Feb 2002 20:57:23 +0000 (GMT) From: Edward A Falk Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests In-Reply-To: <200202241320.IAA17161@renoir.op.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > > arguments. > > which window is that for? think about it. First window, or even all top-level windows. It would still be more useful than not being able to specify at all. Face it, most applications start with one initial window. Throwing away a useful feature because it's ambiguous (note: ambiguous, not broken) in the general case is silly. > > * It would be nice to add a scale factor option to sliders and > > you can write this yourself. ... Yes, but it's a fair bit of work, the way how is non-obvious (I didn't even know it was possible until I read your post), and most app writers won't even think to do it. In the slider widget I wrote for Xt, input scaling was simply set through a resource, and by default was automatic for sliders less than 100 pixels long. > > * It would be nice for TextEntry widgets to have signals which > > indicate that the widget has received/lost keyboard focus. > > focus_in_event > focus_out_event Doh! Didn't think to look at the signals in the super-classes. Thanks; I have a lot of code to re-write now. > > * I found the toolkit's habit of highlighting the widget under the > > cursor rather than highlighting the widget with keyboard focus > > to be confusing. > > catch enter_notify_event and leave_notify_event and stop the > emission. this will prevent prelighting. i wish there was a way to > turn off prelighting on a global basis, but it appears to contradict > the desire of GTK+'s designers for a consistent GUI experience. I was thinking of the general case. The prelighting should reflect the keyboard focus, not the mouse position. The user *knows* where the mouse is. > > * It would be nice if I could use my own select loop with gtk; > > GTK uses glib, and its inner loop is a bit more complex than > this. I was afraid of that. I've been able to use gtk_input_add(), but in my years of programming experience, I've learned that there are always cases that the API designer didn't think of. Someday, an application will come up that needs to react to events that are not file input events or signals, and then what? Anyway, thanks for your comments. -ed falk From falconer@falconer.best.vwh.net Mon Feb 25 16:07:08 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from sj1-3-5-9.securesites.net (sj1-3-5-9.securesites.net [192.220.127.10]) by mail.gnome.org (Postfix) with ESMTP id 2897618B10 for ; Mon, 25 Feb 2002 16:07:08 -0500 (EST) Received: (qmail 42710 invoked by uid 25889); 25 Feb 2002 21:07:07 -0000 Received: from unknown (HELO localhost) ([192.220.101.33]) (envelope-sender ) by 192.220.101.33 (qmail-ldap-1.03) with SMTP for ; 25 Feb 2002 21:07:07 -0000 Date: Mon, 25 Feb 2002 21:07:07 +0000 (GMT) From: Edward A Falk Cc: gtk-list@gnome.org Subject: Re: Gtk feature requests In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > Both features and bug reports should go in bugzilla - Thanks, didn't know about bugzilla. > Certainly a number of these comments would be useful in bugzilla. > > > * Toolkit should recognize traditional "-g WxH+X+Y" commandline > > arguments. > > gtk_window_parse_geometry(). Thanx; missed that one in the docs. Better than nothing. > > * It would be very handy to be able to somehow specify the > > width of a TextEntry widget in terms of displayed characters > > instead of pixels. > > gtk_entry_set_width_chars() Also thanx. This one not my copy of the docs. I need to get an updated set. Or was this new with gtk 2? Wait, never mind. I see it's new with gtk 2. Excellent. > > * Scrollbars and scales desperately need a way for callbacks to > > differentiate a scroll-in-progress from a scroll-completed type > > gtk_range_set_update_policy() is the intended feature here, though it > doesn't handle the case you mention. Right. I know how to specify events under each policy, but there's no way to collect *both* kinds of events and differentiate them. I've already written two different CAD applications that need to know the difference. > > * It would be nice to add a scale factor option to sliders and > > scrollbars so that a large mouse motion results in a small > > change in slider position (very useful feature when dealing > > with very small sliders. See > > Wouldn't it make more sense for the slider to autocompute the scale > factor depending on its size and range and step increment? The slider I wrote does exactly that by default. If AutoScale is true, then scaling is set appropriate to the size of the slider. Otherwise, the application may manually set a scale factor. > > * It would be a nice feature to add "focus follows mouse" to the > > Hrm, I think you'll find little enthusiasm for that... no modern > toolkit does this. I know. I was re-writing the old Xaw toolkit to support keyboard traversal, and I had to face the issue that some users would object to changing the paradigm. So I added a user-setable flag to choose the focus model. Then I realized that the two models aren't incompatible and set the default behavior to use both. It really works quite well. -ed falk From syborg@janeway.vonbek.dhs.org Mon Feb 25 18:36:27 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from janeway.vonbek.dhs.org (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by mail.gnome.org (Postfix) with ESMTP id 584D019453 for ; Mon, 25 Feb 2002 18:36:27 -0500 (EST) Received: by janeway.vonbek.dhs.org (Postfix, from userid 12347) id 382D6FC70A4; Mon, 25 Feb 2002 18:37:30 -0500 (EST) Date: Mon, 25 Feb 2002 18:37:30 -0500 (EST) From: John Bleichert To: GTK list Subject: Re: There is no libgtk-1.2.so.0 in GTK+ 1.2.10? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I just recently setup gtk on freebsd and I had similar results. I removed what I installed, and then installed gtk using /stand/sysinstall (the proper package management, along with the pkg_* tools) and it worked fine. Try that out - at first attempt I treated it like linux/ldconfig, but they are not the same system and it had, erm, unexpected results hehe ;-) I'M rtfm on that particular subject right now. JB On Mon, 25 Feb 2002, Yu-Fong Cho spewed forth: > Hi, > > I know the "libgtk-1.2.so.0" problem has been asked many times, but mine is > a little different, so please take a look. Thank you!!! > > I installed GTK 1.2.10 and GLIB 1.2.10 in FreeBSD 4.5 and I didn't have any > gtk package before installing 1.2.10. After that, I only have libgtk-1.2.so > and libgtk-1.2.so.9 in /usr/local/lib directory. NO libgtk-1.2.so.0 !!! > > I tried to install Netscape 6.2, but it keep telling me: > > error in loading shared libraries: libgtk-1.2.so.0: cannot open shared > object file: No such file or directory. > > My /etc/ld.so.conf looks ok and I also set up LD_LIBRARY_PATH. I search my > whole file system. There is just no libgtk-1.2.so.0. > > What's wrong with it? > > > Yu-Fong > > _______________________________________________ > gtk-list mailing list > gtk-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-list > From pyaggi@aulamagna.com.ar Tue Feb 26 16:20:05 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from aulamagna.com.ar (unknown [200.49.75.38]) by mail.gnome.org (Postfix) with SMTP id C913E1925D for ; Tue, 26 Feb 2002 16:20:04 -0500 (EST) Received: (qmail 4941 invoked from network); 26 Feb 2002 21:29:46 -0000 Received: from unknown (HELO there) (200.63.133.120) by 0 with SMTP; 26 Feb 2002 21:29:46 -0000 Content-Type: text/plain; charset="iso-8859-3" From: Pablo Yaggi To: gtk-list@gnome.org Subject: Slot never called Date: Tue, 26 Feb 2002 18:17:42 -0300 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Organization: Aulamagna Message-Id: <20020226212004.C913E1925D@mail.gnome.org> Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I new on gtk-- and also in C++, so please be patient =) I'm doing this: - I create a window with glade (with anjusta) - I create a button in that window (with glade) and connect the click signal to some slot named on_clicked (with glade) - I manually add on_clicked to the class declaration (is that correct ?) because glade didn't do it. - In that function I call the constructor of a file_select dialog created with glade. Then there is no problem the file_select dialog is created and sown. - I connected the clicked signal of the ok button to a slot named on_clicked (with glade) and add that slot to the file_select class declaration manually. - That slot is never called, why ? Pablo From adam@cfar.umd.edu Tue Feb 26 17:37:39 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from chia.umiacs.umd.edu (chia.umiacs.umd.edu [128.8.120.111]) by mail.gnome.org (Postfix) with ESMTP id 67D911812F; Tue, 26 Feb 2002 17:37:39 -0500 (EST) Received: from localhost (adam@localhost) by chia.umiacs.umd.edu (8.9.3/8.9.1) with ESMTP id RAA02535; Tue, 26 Feb 2002 17:37:29 -0500 (EST) X-Authentication-Warning: chia.umiacs.umd.edu: adam owned process doing -bs Date: Tue, 26 Feb 2002 17:37:29 -0500 (EST) From: Adam X-X-Sender: To: Michael Torrie Cc: =?ISO-8859-1?Q?Rams=E9s?= Morales , , Subject: Re: I think I found a freak bug on GTK+-1.3.15 In-Reply-To: <1014762810.32494.14.camel@divit.cs.byu.edu> Message-ID: X-WEB: http://www.eax.com Content-Type-X: multipart/mixed; boundary="------------3897B7E0F65FF08A89ED6C92" MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: > This type of thing is very likely indicative of some memory corruption > in your code. It's unlikely to be in gtk (but could be). Just the fact > that removing the second pointer declaration makes it work indicates > that it's your code that's messing up somewhere. Just declaring a > pointer doesn't do any object initialization (ie gtk_tree_view_new type > stuff). What it does do is change your stack layout slightly such that > whatever memory corruption you're doing won't cause an immediate crash > when you remove that unused variable. Adding it back in changes offsets > just slightly so that something important on the stack is overwritten. > > Pointer errors always maifest themselves in this type of manner. Very > frustrating. Good luck. You'll want to run your code through DDD > debugger. It has some very powerful facilities for viewing your > variables etc. You can then watch what happens when the offending line > is executed. Also you can load the core file into the debugger after > the fact and see what line triggered the core dump, see the variables, > etc. Should help you establish what's happening. (DDD is run by the > command ddd. It's downloadable from the internet too -- see > freshmeat.net) actually I would suggset memory debugger. some of those include efence njamd purify (non-free) my favourie is njamd (it comes with redhat 7.2 and possibly others) run it until it stop showing any errors and the above problem should get auto-magically corrected -- Adam http://www.eax.com The Supreme Headquarters of the 32 bit registers From asmcoded@home.com Tue Feb 26 23:04:21 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from femail16.sdc1.sfba.home.com (femail16.sdc1.sfba.home.com [24.0.95.143]) by mail.gnome.org (Postfix) with ESMTP id C60F618122 for ; Tue, 26 Feb 2002 23:04:20 -0500 (EST) Received: from asm ([68.81.142.15]) by femail16.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20020227040420.LZHH12244.femail16.sdc1.sfba.home.com@asm> for ; Tue, 26 Feb 2002 20:04:20 -0800 Message-ID: <002f01c1bf5d$94f2fa20$6501a8c0@asm> From: "Kevin Candelaria" To: Subject: gtk-engine compile problem. Date: Tue, 26 Feb 2002 23:08:38 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002C_01C1BF1A.86836EE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_002C_01C1BF1A.86836EE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable i compiled glib all standard=20 ./configure make make install then gtk all the latest sources. but when i do gtk-engine=20 i get this: checking for gtk-config... /usr/local/bin/gtk-config checking for GTK - version >=3D 1.2.9... no *** Could not run GTK test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding GTK or finding the wrong *** version of GTK. If it is not finding GTK, you'll need to set your *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to = point *** to the installed location Also, make sure you have run ldconfig if = that *** is required on your system *** *** If you have an old version installed, it is best to remove it, = although *** you may also be able to get things to work by modifying = LD_LIBRARY_PATH *** *** If you have a RedHat 5.0 system, you should remove the GTK package = that *** came with the system with the command *** *** rpm --erase --nodeps gtk gtk-devel configure: error: *** GTK+-1.2.9 not installed - please install first = *** i have dont ldconfig and stuff but i dont understand about the = LD_LIBRARY_PATH thanks. ------=_NextPart_000_002C_01C1BF1A.86836EE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
i compiled glib all standard =
./configure
make
make install
then gtk
all the latest sources.
but when i do gtk-engine
i get this:
 
checking for gtk-config...=20 /usr/local/bin/gtk-config
checking for GTK - version >=3D 1.2.9... = no
***=20 Could not run GTK test program, checking why...
*** The test program=20 compiled, but did not run. This usually means
*** that the run-time = linker is=20 not finding GTK or finding the wrong
*** version of GTK. If it is not = finding=20 GTK, you'll need to set your
*** LD_LIBRARY_PATH environment = variable, or=20 edit /etc/ld.so.conf to point
*** to the installed location  = Also, make=20 sure you have run ldconfig if that
*** is required on your=20 system
***
*** If you have an old version installed, it is best to = remove=20 it, although
*** you may also be able to get things to work by = modifying=20 LD_LIBRARY_PATH
***
*** If you have a RedHat 5.0 system, you = should remove=20 the GTK package that
*** came with the system with the=20 command
***
***    rpm --erase --nodeps gtk=20 gtk-devel
configure: error: *** GTK+-1.2.9 not installed - please = install=20 first ***
 
i have dont ldconfig and stuff but i = dont=20 understand about the LD_LIBRARY_PATH
thanks.
 
------=_NextPart_000_002C_01C1BF1A.86836EE0-- From unicorn@minet.uni-jena.de Wed Feb 27 09:31:38 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fsuj20.rz.uni-jena.de (fsuj20.rz.uni-jena.de [141.35.1.18]) by mail.gnome.org (Postfix) with ESMTP id 59131184CD for ; Wed, 27 Feb 2002 09:31:38 -0500 (EST) Received: from virusscan.rz.uni-jena.de (virusscan.rz.uni-jena.de [141.35.1.23]) by fsuj20.rz.uni-jena.de (8.12.0.Beta7/8.11.1) with ESMTP id g1REVVmH008215 for ; Wed, 27 Feb 2002 15:31:31 +0100 (MET) Received: from virusscan.rz.uni-jena.de (localhost [127.0.0.1]) by virusscan.rz.uni-jena.de (8.11.6/8.11.6) with ESMTP id g1REVbq10224 for ; Wed, 27 Feb 2002 15:31:37 +0100 Received: from pax10e3.mipool.uni-jena.de (daemon@pax10e2.mipool.uni-jena.de [141.35.13.142]) by pax08e3.mipool.uni-jena.de (8.11.6/8.11.6) with ESMTP id g1REVak417168 for ; Wed, 27 Feb 2002 15:31:36 +0100 (CET) From: Randy Rueckner Received: (from unicorn@localhost) by pax10e3.mipool.uni-jena.de (8.11.6/8.11.6) id g1REVao459665 for gtk-list@gnome.org; Wed, 27 Feb 2002 15:31:36 +0100 (MET) Message-Id: <200202271431.g1REVao459665@pax10e3.mipool.uni-jena.de> Subject: progressbar update To: gtk-list@gnome.org Date: Wed, 27 Feb 2002 15:31:36 +0100 (MET) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: hello there! maybe someone can help me here. i've made a little gtk_progress_bar to show the progress of long calculations. i use »gtk_progress_set_value(...)« to update the progressbar and »while(g_main_iteration(FALSE))« to update the display. works fine with gtk v1.2.10, but my program must also run with gtk v1.1.5 and i have no idea how to update the display with v1.1.5. thanks in advance, randy r. From kalsuram@yahoo.com Wed Feb 27 12:45:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from web21302.mail.yahoo.com (web21302.mail.yahoo.com [216.136.173.210]) by mail.gnome.org (Postfix) with SMTP id 94B6E1971E for ; Wed, 27 Feb 2002 12:45:06 -0500 (EST) Message-ID: <20020227174505.56584.qmail@web21302.mail.yahoo.com> Received: from [210.214.128.63] by web21302.mail.yahoo.com via HTTP; Wed, 27 Feb 2002 09:45:05 PST Date: Wed, 27 Feb 2002 09:45:05 -0800 (PST) From: Kal ram Subject: Number of Characters in GtkEntry widget To: gtk-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, I want to know is there is any limit on the max no of characters entered for a GtkEntry Widget ? When I try to enter more than 7200(approx) characters the characters are getting overlapped. Thanks, kalsuram. __________________________________________________ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com From gparrot@free.fr Thu Feb 28 02:51:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from postfix2-1.free.fr (postfix2-1.free.fr [213.228.0.9]) by mail.gnome.org (Postfix) with ESMTP id E9DBF18418 for ; Thu, 28 Feb 2002 02:51:06 -0500 (EST) Received: from gilkar (nas-cbv-1-128-110.dial.proxad.net [62.147.128.110]) by postfix2-1.free.fr (Postfix) with SMTP id 51D83150 for ; Thu, 28 Feb 2002 08:51:05 +0100 (CET) From: "Gilles Parrot" To: Subject: Zend Studio Date: Thu, 28 Feb 2002 08:50:18 +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.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello, I have downloaded the demo version of Zend Studio 2.0 to see if it corresponds to my needs. It is a good tool but I have a problem with my GTK developpements. Zend Studio uses its own version of php and don't read the php.ini stored in c:\windows. The php.ini stored in the Zend's directory has only two lines. I've tried to add the following line, like in the other php.ini: php-gtk.extensions = php_gtk_libglade.dll, php_gtk_sqpane.dll It doesn't work. Has anybody allready tried to use GTK with Zend Studio ? Thanks. Gilles PARROT From syed@mimos.my Thu Feb 28 04:38:07 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from filter.mimos.my (filter.mimos.my [192.228.137.70]) by mail.gnome.org (Postfix) with ESMTP id 43B0D181EB for ; Thu, 28 Feb 2002 04:38:06 -0500 (EST) Received: from ew.mimos.my (localhost.localdomain [127.0.0.1]) by filter.mimos.my (8.11.0/8.11.0) with ESMTP id g1S9Oim08200 for ; Thu, 28 Feb 2002 17:24:44 +0800 Received: (from root@localhost) by ew.mimos.my (8.11.6/8.11.6) id g1S9c3c27893 for gtk-list@gnome.org; Thu, 28 Feb 2002 17:38:03 +0800 (MYT) (envelope-from syed@mimos.my) Received: from mimos.my (infoniti25.nat.mimos.my [10.1.21.25]) by ew.mimos.my (8.11.6/8.11.6) with ESMTP id g1S9c2a27837 for ; Thu, 28 Feb 2002 17:38:02 +0800 (MYT) (envelope-from syed@mimos.my) Message-ID: <3C7DF9E5.34D0B8A5@mimos.my> Date: Thu, 28 Feb 2002 17:35:33 +0800 From: mrzali X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk notebook & pixmap X-scanner: scanned by Inflex 1.0.10 - (http://pldaniels.com/inflex/) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: How i want to attach pixmap into gtk-notebook-tab? As far i know we can only set label on it. Any suggestion. Thanks, mr_zali From feiguin@magnet.fsu.edu Thu Feb 28 13:25:10 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from fangio.magnet.fsu.edu (fangio.magnet.fsu.edu [146.201.234.41]) by mail.gnome.org (Postfix) with ESMTP id D36821853E for ; Thu, 28 Feb 2002 13:25:09 -0500 (EST) Received: from localhost (feiguin@localhost) by fangio.magnet.fsu.edu (8.11.6/8.11.6) with ESMTP id g1SIP9w16309 for ; Thu, 28 Feb 2002 13:25:09 -0500 (EST) X-Authentication-Warning: fangio.magnet.fsu.edu: feiguin owned process doing -bs Date: Thu, 28 Feb 2002 13:25:09 -0500 (EST) From: Adrian Feiguin To: gtk-list@gnome.org Subject: built-in types Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: I wonder if somebody can shed some light on the way the BOXED data types are generated. I understand that maketypes.awk is used, are there any guidelines? Thank you! From kevin@mpcf.com Thu Feb 28 13:30:19 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail.mpcf.com (unknown [209.215.137.161]) by mail.gnome.org (Postfix) with ESMTP id 972AF18165 for ; Thu, 28 Feb 2002 13:30:18 -0500 (EST) Received: from mpcf.com (10.0.0.8 [10.0.0.8]) by mail.mpcf.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id FKYGZG9C; Thu, 28 Feb 2002 13:27:54 -0500 Message-ID: <3C7E7669.68BAF389@mpcf.com> Date: Thu, 28 Feb 2002 13:26:49 -0500 From: kevin X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.17 i686) X-Accept-Language: en MIME-Version: 1.0 To: gtk-list@gnome.org Subject: gtk 1.2.10 configure issues Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hello all, First off, i am not a list member so please direct any replies to kevin@mpcf.com, thanks. I am trying to compile Gtk+1.2.10 on a Slackware 8 box. I downloaded glib1.2.10 and gtk1.2.10 tarballs from the Gtk site. Glib compiled and installed just fine but when i run ./configure for Gtk, it keeps saying glib 1.2.8 (or greater) is not installed. I run "glib-config --version" and it spits 1.2.10 back at me, so obviously it is installed and running fine. I removed the glib.h and gmodules.h from the /usr/local/include/ dir, as directed by the INSTALL file and my ld.so.conf is pointing to all the correct places for libraries. Anyone have any ideas as to where i should look first? Thanks for your help, VeKTeReX From gtw@research.att.com Thu Feb 28 16:03:20 2002 Return-Path: Delivered-To: gtk-list@gnome.org Received: from mail-blue.research.att.com (mail-blue.research.att.com [135.207.30.102]) by mail.gnome.org (Postfix) with ESMTP id 34094181D9 for ; Thu, 28 Feb 2002 16:03:20 -0500 (EST) Received: from postal.research.att.com (postal.research.att.com [135.207.23.30]) by mail-blue.research.att.com (Postfix) with ESMTP id C43034CF1A for ; Thu, 28 Feb 2002 16:03:19 -0500 (EST) Received: from pc-gtw.research.att.com (root@pc-gtw.research.att.com [135.207.22.247]) by postal.research.att.com (8.8.7/8.8.7) with ESMTP id PAA20602 for ; Thu, 28 Feb 2002 15:59:26 -0500 (EST) Received: (from gtw@localhost) by pc-gtw.research.att.com (8.9.3/8.9.3) id QAA25224 for gtk-list@gnome.org; Thu, 28 Feb 2002 16:03:18 -0500 Date: Thu, 28 Feb 2002 16:03:18 -0500 From: Gary Wong To: gtk-list@gnome.org Subject: pixbuf-engine: image borders when stretch = FALSE Message-ID: <20020228160318.A25166@pc-gtw.research.att.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: gtk-list-admin@gnome.org Errors-To: gtk-list-admin@gnome.org X-BeenThere: gtk-list@gnome.org X-Loop: gtk-list@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General discussion of GTK+ List-Unsubscribe: , List-Archive: Hi, The pixbuf-engine (CVS head) behaviour for image borders when stretch is FALSE doesn't match what I expect. For example, suppose I am using the definition: image { ... file = "foo.png" border = { 1, 1, 1, 1 } stretch = FALSE } and foo.png is a 4x4 image which looks like this: #### #x.# #.x# #### When this image is drawn on a (say) 10x10 area, I expect to see: ########## #x.x.x.x.# #.x.x.x.x# #x.x.x.x.# #.x.x.x.x# #x.x.x.x.# #.x.x.x.x# #x.x.x.x.# #.x.x.x.x# ########## but instead I get something like the following (the "offset" varies depending on the position of the window): ########## x.##x.##x. .x##.x##.x ########## ########## x.##x.##x. .x##.x##.x ########## ########## x.##x.##x. Is this behaviour wrong? Am I using pixbuf-engine incorrectly? Or am I just expecting the wrong thing to happen? After a very brief look at the source, it seems that theme_pixbuf_render() ignores theme_pb->border_* when theme_pb->stretch is FALSE. I'm happy to mention something on bugzilla and/or have a go at modifying this function, but I thought I'd ask for advice here first in case I misunderstand the situation. Cheers, Gary. -- Gary Wong gtw@gnu.org http://www.cs.arizona.edu/~gary/